Created attachment 26174 [details] Build log G++ 4.7.0 (trunk from 20111219) compiler doesn't work on Solaris (x86_64-pc-solaris2.11). But G++ 4.6.2 does. Steps to reproduce: # /usr/gcc/4.7/bin/g++ test.cpp -o test # FAIL # /usr/gcc/4.6/bin/g++ -m64 test.cpp -o test # WIN Build log is attached. Trivial test program and preprocessed files are below.
Created attachment 26175 [details] Trivial test program
Created attachment 26176 [details] /usr/gcc/4.6/bin/g++ -m64 -E test.cpp -o test.46
Created attachment 26177 [details] /usr/bin/g++-4.7 -E test.cpp -o test.47
Created attachment 26178 [details] Diff of test.46 and test.47
Sorry, GCC 4.7 is installed in /usr, not in /usr/gcc/4.7
This looks like a bug in Solaris's headers.
Created attachment 26179 [details] Diff of macros
This is supposed to be handled by fixinclude in the solaris_cxx_linkage rule. Can you try and see why it isn't applied?
(In reply to comment #8) > This is supposed to be handled by fixinclude in the solaris_cxx_linkage rule. > Can you try and see why it isn't applied? Well, I'm a little confused. Directory /usr/lib/gcc/x86_64-pc-solaris2.11/4.7/include-fixed was mostly empty. I run /usr/lib/gcc/x86_64-pc-solaris2.11/4.7/install-tools/mkheaders, and now that directory is full on fixed headers. Now g++ does work. BTW GCC 4.6.2 in Solaris ships all possible fixed headers :-\