-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Building with ccache fails with auto-configuration #1164
Comments
Are you building from head? |
I was using the master branch at 0b26f44, and now the issue still persists at the current HEAD 790d2f6. Here's what
By the way, I am not affected by this issue anymore, because I'm using version 0.2.1 + a20352e , and I use my own self-compiled GCC 4.9. |
arf I got the syntax wrong, that was supposed to be I understand your frustration, Bazel was designed originally for a very controlled environment (we vendor our C++ toolchain on the repository in Google). I have made some recent change so custom toolchain works out of the box but there are still some rough edges. Really sorry for that. |
I think you meant to pipe something in there ;)
No worries. I understand that fresh software can be quite rough around the edges. And I really, really appreciate you folks (as in Google) putting your precious code out there in the wild, and you Developers actually tending to it. It's just... hard sometimes. |
Sorry this bug went under my radar. Can you tell what |
Don't worry about it. I'm using 0.2.1 which works, so this bug has low priority for me too. I'm still available to help you fix it though.
|
When I set Without explicitly setting the CC and CXX variables, the compilation still fails like before. |
Ok ccache is the problem with latest version of Bazel it tries to detect gcc, so uses your ccache version which does fails because ccache has not access to previous build in Bazel, that's why setting CC correctly fix the issue. This is working as intended. See #1139 for more information |
Ok, so I'm closing this issue? I suggest that you put this piece of information somewhere visible (like in a FAQ) or something, because on some modern linux distributions, GCC is by default set to use ccache. |
I agree with you so reopening for correctly documenting that issue, maybe we can even try to find gcc behind ccache instead. |
Ok the problems is with installation of ccache, so we should just document that issue as a standard one. ccache use a different gcc that /usr/bin/gcc |
Mind if I ask. What distribution uses ccache by default in place of gcc? |
Ok, apperently it's only Fedora. Not Debian, Ubuntu, Arch or Centos. Did not check any others. However, it seems that my closing the issue was a bit premature. Compilation now fails, even when I set |
For the CC issue, I got it tracked down in #1152 too. I think to make it workaround when ccache is there, we could use the COLLECT_GCC_OPTIONS answer from gcc -E |
Hi! |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post |
Hi! I tried to recompile bazel, but I ran into "missing dependency declarations" errors:
The full output can be found here: https://gist.github.com/akors/16020dac060948e87c1d14a9794f12db
Note that this is very similar #715, HOWEVER, the directories listed are definitely present in my CROSSTOOL file.
I'm running on Fedora 23, and trying to get bazel to use a custom compiler - but I can't even get it to use my system compiler.
The text was updated successfully, but these errors were encountered: