Skip to content
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

-faligned-new does not work under Travis with clang #1478

Open
veripoolbot opened this issue Jul 18, 2019 · 0 comments
Open

-faligned-new does not work under Travis with clang #1478

veripoolbot opened this issue Jul 18, 2019 · 0 comments

Comments

@veripoolbot
Copy link

@veripoolbot veripoolbot commented Jul 18, 2019


Author Name: Todd Strader (@toddstrader)
Original Redmine Issue: 1478 from https://www.veripool.org


It was discovered in #� that the -faligned-new flag causes errors when compiling Verilated code under Travis CI using clang. This should have been detected and dealt with via a test for this behavior in configure, but configure did not observe the same behavior.

For the time being, a band-aid has been applied to configure.ac turn off this flag when compiling with clang under Travis:

AS_IF([test "x$TRAVIS_COMPILER" != xclang], [_MY_CXX_CHECK_OPT(CFG_CXXFLAGS_NO_UNUSED,-faligned-new)])

This resolves the Travis breakage but allows for the same issue to crop up on similar systems. Ultimately, we should understand why configure doesn't catch this behavior with Travis + clang so that the configure test can be improved and the band-aid can be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.