Get the updated "master" git branch or source tarball: http://sage.sagedev.org/home/release/sage-6.4.1.tar.gz
mkdir commonmkdir common/.depsconfig.status: executing default commandsmake[4]: *** [stage1-bubble] Error 2make[3]: *** [all] Error 2real 2m37.652suser 0m36.100ssys 0m33.567s************************************************************************Error installing package gcc-4.9.2************************************************************************
Can you try again? It worked with 6.4 and we didn't change anything that pertains to gcc in 6.4.1.
A recent clang is supposed to understand -Wno-narrowing. Are you sure your xcode/command line tools are up to date?
A recent clang is supposed to understand -Wno-narrowing. Are you sure your xcode/command line tools are up to date?Yes. Xcode 4.6.3 is the last that runs on OS X 10.7.
I suspect that the 4.9 series is the problem here - not a bug, just not compatible. Downloading 6.4.beta6 to test this hypothesis.
I suspect that the 4.9 series is the problem here - not a bug, just not compatible. Downloading 6.4.beta6 to test this hypothesis.A partial (parallel) log is at http://sage.math.washington.edu/home/kcrisman/gcc-4.7.3.p1.log but no problems, and (interestingly) the same option already occurs there, so I am baffled now.Ah, I think the problem is that /usr/bin/clang is the one doing it in 4.7.3, while in 4.9.2 it's g++ doing that. I don't know how to check what that is but presumably it is i686-apple-darwin11-llvm-g++-4.2So maybe, when clang is present, we need to have that doing the compiling of g++ stuff too in gcc-4.9.2?
Ah, I think the problem is that /usr/bin/clang is the one doing it in 4.7.3, while in 4.9.2 it's g++ doing that. I don't know how to check what that is but presumably it is i686-apple-darwin11-llvm-g++-4.2So maybe, when clang is present, we need to have that doing the compiling of g++ stuff too in gcc-4.9.2?
I'm going to try with CXX=/usr/bin/clang and see what happens.
Surveying http://comments.gmane.org/gmane.comp.gcc.bugs/413564 it seems like we need to set clang++ instead, okay, I didn't even know that existed... trying AGAIN.
checking for powerpc-apple-darwin8.11.0-gcc... /Users/student/Desktop/sage-6.4.1/local/var/tmp/sage/build/gcc-4.9.2/gcc-build/./gcc/xgcc -B/Users/student/Desktop/sage-6.4.1/local/var/tmp/sage/build/gcc-4.9.2/gcc-build/./gcc/ -B/Users/student/Desktop/sage-6.4.1/local/powerpc-apple-darwin8.11.0/bin/ -B/Users/student/Desktop/sage-6.4.1/local/powerpc-apple-darwin8.11.0/lib/ -isystem /Users/student/Desktop/sage-6.4.1/local/powerpc-apple-darwin8.11.0/include -isystem /Users/student/Desktop/sage-6.4.1/local/powerpc-apple-darwin8.11.0/sys-include checking for suffix of object files... configure: error: in `/Users/student/Desktop/sage-6.4.1/local/var/tmp/sage/build/gcc-4.9.2/gcc-build/powerpc-apple-darwin8.11.0/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[5]: *** [configure-stage1-target-libgcc] Error 1 make[5]: Target `all-stage1' not remade because of errors. make[4]: *** [stage1-bubble] Error 2 make[4]: Target `stage3-bubble' not remade because of errors. make[3]: *** [all] Error 2
configure:4990: g++ -o conftest -static-libstdc++ -static-libgcc conftest.cpp >&5
powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-static-libstdc++'
conftest.cpp:11:2: error: #error -static-libstdc++ not implemented
configure:4990: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
| #error -static-libstdc++ not implemented
| #endif
| int main() {}
configure:4994: result: noconfigure: error: cannot compute suffix of object files: cannot compile
Bad news for old Mac fans... Is gcc 4.0.1 sufficient to build gcc 4.9.2? I couldn't find an explicit statement on the internet. I was able to successfully compile earlier betas for Sage 6.4, so I have a feeling that the switch to 4.9.2 is why gcc won't build for me now on OS X 10.4 PPC.
> Incidentally, though I don't think I'd want to do this long-term, I think I
> might be interested in pulling off one final set of binaries for PPC for
> Sage 6.4.1 if it were not too hard to go back to commit 9f3a73e9 in
> build/pkgs/gcc/ only - would that screw anything up?
I think we did go to 4.9.1 (initially) purely to support yosemite. So I don't
think that would break anything.
gcc 4.0.1 is definitely too old to build 4.9.x. You have need a stepping stone
at 4.6 or 4.7 (probably not 4.8).
The C++ compiler needs some elements of C++11.
The C++ compiler needs some elements of C++11.In theory everything should work with a C++98 compiler only. But it needs to not bail out when encountering options to turn off warnings that it doesn't understand. Really, if you don't know what narrowing is then "-Wno-narrowing" is clearly a no-op. But older gcc's raise an error here.
Don’t remember where I got the C++11 from but Volker is correct according to
the gcc folks themselves:
https://gcc.gnu.org/install/prerequisites.html
> In theory everything should work with a C++98 compiler only. But it needs to not bail out when encountering options to turn off warnings that it doesn't understand. Really, if you don't know what narrowing is then "-Wno-narrowing" is clearly a no-op. But older gcc's raise an error here.
powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-static-libstdc++'
and I don't know how to do that.