mistydemeo / tigerbrew

Experimental fork of homebrew for PPC Macs on Tiger
Other
535 stars 129 forks source link

Mercurial does not install (G5/10.5) #213

Closed ghost closed 10 years ago

ghost commented 10 years ago

https://gist.github.com/5745f806791f3a043490 https://gist.github.com/9cac189d819d9b3ba101

mistydemeo commented 10 years ago

The error:

gcc-4.2 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c mercurial/base85.c -o build/temp.macosx-10.5-ppc-2.5/mercurial/base85.o
cc1: error: unrecognized command line option "-Wno-long-double"
ghost commented 10 years ago

What does it mean?

mistydemeo commented 10 years ago

Looks like, for some reason, it's trying to build with a flag your version of Python doesn't support.

mistydemeo commented 10 years ago

Not sure where it's getting the option from, but I can confirm gcc-4.2 (and clang on modern OS X) doesn't support that option.

ghost commented 10 years ago

Is it picking up the tigerbrew-installed python?

mistydemeo commented 10 years ago

Hmmm. Looks like /usr/bin/python-config instructs things to be built against Python to use that flag. It was compatible with gcc-4.0, which is the compiler that built the Python that comes with the OS, but not gcc-4.2, which is the default compiler in Xcode 3.1.4.

Can work around this though.

mistydemeo commented 10 years ago

Fixed by adding this flag to superenv's filtering. Thanks for the report!