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
ci: Travis: use gcc9 with gcov job #10480
Conversation
blueyed
commented
Jul 12, 2019
- it is useful to test with the latest gcc in general
- it might help with gcov issues (merge mismatch)
Fails:
Could not reproduce this locally, so that might be something Arch's gcc has a patch for already. Currently using
|
Not sure though why I am not seeing this myself - appears to be legit after all, isn't it? |
Now:
|
The above should be handled through the |
This comment has been minimized.
This comment has been minimized.
Looks like ccache is causing this?! |
Temporary measure to avoid QuickBuild CI failure: 8:42:54,702 INFO - Executing post-execute action... 18:42:54,702 ERROR - Step 'master>buildall>build-node?testNode=freebsd-64>build-and-run-tests>build-and-run-tests-parameterized?buildType=Release>configure-neovim-and-build-nvim' is failed: Failed to run command: mkdir -p build/Release && cd build/Release && cmake -G "Unix Makefiles" -DBUSTED_OUTPUT_TYPE=TAP -DMIN_LOG_LEVEL=3 -DCMAKE_BUILD_TYPE=Release -DTRAVIS_CI_BUILD=ON ../.. && gmake VERBOSE=1 nvim unittest-prereqs functionaltest-prereqs Command return code: 2 Command error output: /usr/home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/profile.c:70:27: error: implicit conversion changes signedness: 'proftime_T' (aka 'long') to 'unsigned long' [-Werror,-Wsign-conversion] STRICT_ADD(os_hrtime(), nsec, &rv, int64_t); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/assert.h:150:26: note: expanded from macro 'STRICT_ADD' do { *(c) = (t)((a) + (b)); } while (0) ^ 1 error generated. gma...
a4c722b
to
b38152e
Compare
This is the default since ccache 3.3, but Travis has 3.2.4. This fixes compiler warnings from macros with later clang/gcc. Unblocks neovim#10480, and neovim#10487. Ref: ccache/ccache@6d9cb3dfdd9
This is the default since ccache 3.3, but Travis has 3.2.4. This fixes compiler warnings from macros with later clang/gcc. Unblocks neovim#10480, and neovim#10487. Ref: ccache/ccache@6d9cb3dfdd9
Should be good/better after #10533. |
This is the default since ccache 3.3, but Travis has 3.2.4. This fixes compiler warnings from macros with later clang/gcc. Using CCACHE_HASHDIR=1 fixes ccache v3.2.4, but CCACHE_NOHASHDIR=1 does not break v3.7.1. The real issue/fix appears to be ccache/ccache@284e3a0, and using the hashdir option seems to only work around this. Unblocks #10480, and #10487. Ref: ccache/ccache@6d9cb3dfdd9 Closes #10533.
Pulled that out, but happy to create a separate PR if you find it useful. |
This is required to avoid warnings with newer gcc/clang. It is the correct fix - I must have messed up when bisecting. Follow-up to: neovim#10533
packages: | ||
- ccache | ||
- ninja | ||
|
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.
This is only moved to allow using its new anchor below.
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.
Ok, but I hope we don't do more of this type of thing: It forces us to spend too much time managing compiler versions. Travis should be doing that for us.
Also, adding extra apt sources was a source of pain in the past.
Yes, and it still does.
I can imagine. Therefore I think it is good to use YAML's features in this regard. But I agree with your other comment that it should not become too complex. |
This is the default since ccache 3.3, but Travis has 3.2.4. This fixes compiler warnings from macros with later clang/gcc. Using CCACHE_HASHDIR=1 fixes ccache v3.2.4, but CCACHE_NOHASHDIR=1 does not break v3.7.1. The real issue/fix appears to be ccache/ccache@284e3a0, and using the hashdir option seems to only work around this. Unblocks neovim#10480, and neovim#10487. Ref: ccache/ccache@6d9cb3dfdd9 Closes neovim#10533.
* ci: Travis: use gcc-9 in gcov job * ci: Travis: use CCACHE_CPP2=1 This is required to avoid warnings with newer gcc/clang. Follow-up to: neovim#10533