Move LIBCXX_DEBUG flag from Travis to AWS codebuild#4724
Move LIBCXX_DEBUG flag from Travis to AWS codebuild#4724smowton merged 1 commit intodiffblue:developfrom
Conversation
hannes-steffenhagen-diffblue
left a comment
There was a problem hiding this comment.
LGTM
allredj
left a comment
There was a problem hiding this comment.
✔️
Passed Diffblue compatibility checks (cbmc commit: f734176).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/113611993
buildspec.yml
Outdated
| - make -C src CXX="ccache g++" CXXFLAGS="-D_GLIBCXX_DEBUG" -j2 | ||
| - make -C unit CXX="ccache g++" CXXFLAGS="-D_GLIBCXX_DEBUG" -j2 | ||
| - make -C jbmc/src CXX="ccache g++" CXXFLAGS="-D_GLIBCXX_DEBUG" -j2 | ||
| - make -C jbmc/unit CXX="ccache g++" CXXFLAGS="-D_GLIBCXX_DEBUG" -j2 |
There was a problem hiding this comment.
Note that you are completely replacing CXXFLAGS at this point - you might actually want CXXFLAGS="-Wall -pedantic -Werror -Wno-deprecated-declarations -Wswitch-enum -D_GLIBCXX_DEBUG"
| # env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer" | ||
| env: | ||
| - COMPILER="ccache /usr/bin/g++-5" | ||
| - EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG" |
There was a problem hiding this comment.
Note that EXTRA_CXXFLAGS also applied to the unit and regression tests in our Travis config. You are not currently doing so for the buildspec. That might actually be the explanation of the error, given the particular tests that are failing.
|
You're right, the cause was compiling the little driver program provided by the invariants regression tests without |
f734176 to
0ab1ecd
Compare
|
@tautschnig pushed an alternative solution introducing |
86857c2 to
697edd9
Compare
|
@tautschnig turns out the offending code (which did indeed call |
The Travis build takes too long to complete with this flag set; moving it to AWS CodeBuild means we can take advantage of AWS' longer timeout and even the load between Travis and AWS.
697edd9 to
44458f6
Compare
|
@smowton It seems this needs another rebase as clang-format was confused. |
allredj
left a comment
There was a problem hiding this comment.
✔️
Passed Diffblue compatibility checks (cbmc commit: 44458f6).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/113765649
The Travis build takes too long to complete with this flag set; moving it to AWS CodeBuild
means we can take advantage of AWS' longer timeout and even the load between Travis and AWS.