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++?
Can you confirm it is part of bug 23465 in gcc that has been resolved long time ago? Apparently Apple never completely fixed the broken version installed with Tiger and Leopard:
Bug 23465 - Assignment fails on TR1 unordered containers: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23465
Similar issues when compiling other applications on OS X Leopard:
[ABySS-Users] Compiling abyss-1.1.0 on OSX 10.5 http://www.bcgsc.ca/pipermail/abyss-users/2009-December/000567.html
CompilingOnMacOSX < FST < TWiki: http://mohri-lt.cs.nyu.edu/twiki/bin/view/FST/CompilingOnMacOSX
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.
I'll follow up if I have more information about either building a (newer) gcc version via MacPorts or possibly using configure flags for OS X 10.5.8. At the moment I am hesitant to patch individual c++ header files of Apple's gcc as described in above links.
Any further advice would be very appreciated!
~suv