On 14/1/10 23:44, Krzysztof Kosiński wrote:
W dniu 14 stycznia 2010 21:28 użytkownik ~suv <suv-sf@...58...> napisał:
I have the most up-to-date version of Xcode (3.1.4) installed. Changing from gcc 4.0.1 to 4.2 still doesn't compile the hash-tables test.
The error messages say you are still using the same broken headers from GCC 4.0.0. Did you also upgrade libstdc++?
I did not upgrade anything tonight (the latest Xcode version is needed to build the dependencies for Inkscape in MacPorts, so I had it already installed). Xcode on Leopard installs both versions of gcc, but uses 4.0.1 as default. I never changed that default and only now tried if using 4.2.1 would make a difference.
There are not separate c++ headers for g++-4.2 for 'tr1' (see attached file with the default paths used by the installed gcc/g++ versions)
I guess the old __gnu_cxx::hash_set should still work. I replaced std::tr1::unordered_set with that, for now. It triggers deprecation warnings in GCC 4.4 though.
revision 8980 built ok on OS X 10.5.8
Thank you for the quick response!
:)
~suv
Last login: Thu Jan 14 22:00:45 on ttys003 FYI: ~/.bashrc sourced. LeWitt:~ suv$ export LANG="en_US.UTF-8" LeWitt:~ suv$ gcc -v -x c -E /dev/null Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5493) /usr/libexec/gcc/i686-apple-darwin9/4.0.1/cc1 -E -quiet -v -D__DYNAMIC__ /dev/null -fPIC -mmacosx-version-min=10.5.8 -mtune=generic -march=apple ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-apple-darwin9/4.0.1/../../../../i686-apple-darwin9/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/i686-apple-darwin9/4.0.1/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. # 1 "/dev/null" # 1 "<built-in>" # 1 "<command line>" # 1 "/dev/null" LeWitt:~ suv$ g++ -v -x c++ -E /dev/null Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5493) /usr/libexec/gcc/i686-apple-darwin9/4.0.1/cc1plus -E -quiet -v -D__DYNAMIC__ /dev/null -fPIC -mmacosx-version-min=10.5.8 -mtune=generic -march=apple -D__private_extern__=extern ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-apple-darwin9/4.0.1/../../../../i686-apple-darwin9/include" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.0.0 /usr/include/c++/4.0.0/i686-apple-darwin9 /usr/include/c++/4.0.0/backward /usr/lib/gcc/i686-apple-darwin9/4.0.1/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. # 1 "/dev/null" # 1 "<built-in>" # 1 "<command line>" # 1 "/dev/null" LeWitt:~ suv$ g++-4.2 -v -x c++ -E /dev/null Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc_42/gcc_42-5577~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5577) /usr/libexec/gcc/i686-apple-darwin9/4.2.1/cc1plus -E -quiet -v -D__DYNAMIC__ /dev/null -fPIC -mmacosx-version-min=10.5.8 -mtune=core2 -D__private_extern__=extern ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../../i686-apple-darwin9/include" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.0.0 /usr/include/c++/4.0.0/i686-apple-darwin9 /usr/include/c++/4.0.0/backward /usr/lib/gcc/i686-apple-darwin9/4.2.1/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. # 1 "/dev/null" # 1 "<built-in>" # 1 "<command-line>" # 1 "/dev/null" LeWitt:~ suv$