-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
use $CC if it's set externally #10041
Comments
Previously reported at #9984 - the fix there is kind of ugly, and we're going to be increasing the minimum GCC version requirement on 0.4 before too much longer. I'd recommend you install and start using the devtoolset to get a modern version of GCC. |
[keithc@giada julia]$ echo $CC This is too old? |
No, not at all, 4.8.2 is fine. Are you sure that's the gcc that is getting used to build julia? |
I guess you ended up using the system gcc for some reason. I did the same mistake before I filed #9984. Can you run |
If the Makefile is using $CC, then it is 4.8.2. If Makefile ever references gcc directly then it will pick up gcc 4.4. The release 0.3 branch builds fine. Only master has the problem. Thank you for the tip re devtoolset. Unfortunately, on my fairly locked down system: alias gcc="/usr/depot/gcc-4.8.2" Does not help |
@catawbasam Please post the output of |
|
Clearly we're calling the system gcc here. And yet
Could try replacing all occurrences of |
Yes, that did work. |
I'd like to have it use my CC environment variable instead.
|
Can you identify the precise place where replacing |
Yes, changing CC_BASE is enough. Looks like several of the other gcc references are in if-then branches that may not be exercised when I make. |
OK, thanks. That |
Sounds great. Thanks! |
That line is a workaround for cmake not playing well with ccache. But yeah we should probably check whether CC is set before hard-coding that variable. |
@tkelman What's the issue with CMake exactly? Can we pass it an absolute path to the compiler when |
See the libgit2 PR's. The issue is Julia's makefiles do some really ugly bad-idea things with appending flags ( |
Getting the following after checking out master just now and running make clean all on 64-bit red hat linux:
CC src/llvm-simdloop.o
CC src/gc.o
gc.c:40: error: flexible array member in otherwise empty struct
make[2]: *** [gc.o] Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
The text was updated successfully, but these errors were encountered: