Skip to content

Conversation

@sjaeckel
Copy link
Member

Introduce a new meta_build where we build several things in one spin-up of a travis instance

@sjaeckel sjaeckel requested a review from karel-m October 12, 2017 16:17
@sjaeckel sjaeckel changed the base branch from develop to improve/mpi_selection October 12, 2017 16:17
@sjaeckel sjaeckel force-pushed the improve/mpi_selection branch from bc6718c to 9d5a471 Compare October 12, 2017 17:44
@sjaeckel sjaeckel force-pushed the improve/travis_build branch from 3e05077 to 221b925 Compare October 12, 2017 17:44
@sjaeckel sjaeckel changed the base branch from improve/mpi_selection to develop October 12, 2017 17:46
@sjaeckel sjaeckel force-pushed the improve/travis_build branch from 221b925 to fa9be2d Compare October 12, 2017 17:47
install:
- sudo apt-get update -qq
- sudo apt-get install libtommath-dev
- sudo apt-get install libtommath-dev libgmp-dev valgrind
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what was needed in ecc branch (latest ltm + tfm)
https://github.com/libtom/libtomcrypt/blob/pr/ecc-asn1-part/.travis.yml#L22

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I'd like to stay on standard-built packages as long as possible as the packages that are installed in the ecc branch are built by me ;)

make clean &>/dev/null

make CFLAGS="-fsanitize=address -fno-omit-frame-pointer -static-libasan $2 $CFLAGS $4" EXTRALIBS="-lasan $5" test LTC_DEBUG=1 1>gcc_1.txt 2>gcc_2.txt
ASAN_OPTIONS=verbosity=1 ./test t ltm 1>test_std.txt 2> test_err.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't ASAN go into run_clang ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought so too ... then I wasn't able to get the ASAN build done with clang which can be installed in xenial ... but it worked with gcc, so I thought let's give it a try...

}
#endif

int crypt_mp_init(const char* mpi)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still not sure if we need this. I am not strongly against, just in doubts.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we absolutely don't need it, but I thought it's better than the other init functions that exist, so we just remove them ASAP (that's also why I marked them already as deprecated)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn, now I know why this change is in this PR, I changed the base branch :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's focus on the other PR first, I've still to get this one to build

#endif

#ifndef LTC_DEPRECATED
#error "You need to define LTC_DEPRECATED for this compiler"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like this. It is very unfriendly to non-gcc/non-msvc compilers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hoped you're going to build this on "the other compilers" and then either fill it in or define it to nothing if the "deprecation" feature doesn't exist for "the other compilers"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider:

#ifdef __GNUC__
   #define LTC_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
   #define LTC_DEPRECATED __declspec(deprecated)
#else
   #define LTC_DEPRECATED
#endif

It might also cause troubles on older gcc as I do not know since what version this attribute is supported.

Copy link
Member Author

@sjaeckel sjaeckel Oct 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like gcc-3.1 introduced it as it wasn't in gcc-3.0.4

but yeah, let's be a bit less strict

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be supported on gcc 3.1+

Copy link
Member

@karel-m karel-m Oct 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)

@@ -1,5 +1,11 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth a separate script (scan_build.sh)? What about incorporating the stuff into meta_builds.sh?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, I just re-used it as it mostly worked OOTB - I'm going to incorporate it.

@sjaeckel sjaeckel changed the base branch from develop to improve/mpi_selection October 12, 2017 18:25
@sjaeckel sjaeckel added this to the next milestone Oct 13, 2017
@sjaeckel sjaeckel force-pushed the improve/mpi_selection branch from 343a46d to d709e3d Compare October 18, 2017 06:46
@sjaeckel sjaeckel closed this Oct 18, 2017
@sjaeckel sjaeckel changed the base branch from improve/mpi_selection to develop October 18, 2017 06:50
@karel-m
Copy link
Member

karel-m commented Oct 18, 2017

closed? what about meta_builds.sh?

@sjaeckel
Copy link
Member Author

github closed this when I deleted the base branch and somehow I can't re-open... @github

@karel-m
Copy link
Member

karel-m commented Oct 18, 2017

try to rebase on develop locally and push --force

@sjaeckel
Copy link
Member Author

did that already (did it now once again) but the reopen button is greyed out

@sjaeckel sjaeckel mentioned this pull request Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants