-
Notifications
You must be signed in to change notification settings - Fork 277
Move LIBCXX_DEBUG flag from Travis to AWS codebuild #4724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move LIBCXX_DEBUG flag from Travis to AWS codebuild #4724
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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"
@@ -107,7 +107,6 @@ jobs: | |||
# 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
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.