emerge of x11-libs/libXau-1.0.4 stops at the end of compilation with "unknown flag: -compatibility_version". Reproducible: Always Steps to Reproduce: 1.select native-cctools-1 as the binutils 2.emerge =x11-libs/libXau-1.0.4 Actual Results: the last of its output: i686-apple-darwin8-gcc -dynamiclib -o .libs/libXau.6.0.0.dylib .libs/AuDispose.o .libs/AuFileName.o .libs/AuGetAddr.o .libs/AuGetBest.o .libs/AuLock.o .libs/AuRead.o .libs/AuUnlock.o .libs/AuWrite.o -march=nocona -install_name /Users/tetsushi/Gentoo/usr/lib/libXau.6.dylib -Wl,-compatibility_version -Wl,7 -Wl,-current_version -Wl,7.0 /Users/tetsushi/Gentoo/usr/bin/i686-apple-darwin8-ld: unknown flag: -compatibility_version collect2: ld returned 1 exit status make[1]: *** [libXau.la] Error 1 make[1]: Leaving directory `/Users/tetsushi/Gentoo/var/tmp/portage/x11-libs/libXau-1.0.4/work/libXau-1.0.4' make: *** [all] Error 2 I'm using: gcc-apple-4.0.1_p5488 native-cctools-1 At the time I installed 1.0.3, there was no problem. I suspect native-cctools and switch back to binutils-apple, then emerge doesn't fail.
native-cctools is not meant for normal use on OSX. It is only a hack to recover from a broken linker situation, and cannot be expected to work for general stuff.
(In reply to comment #1) > native-cctools is not meant for normal use on OSX. Then, I have to ask how to prevend accidental emerge of native-cctools. Maybe it is automatically pulled in by x-modular.eclass. Thanks anyway for clarification.
I added it to package.mask. If you see a package pulling it in, please file a bug so we can fix that. Only AIX should pull it in, no other platform for the moment.
rsync servers for prefix have outdated metadata/cache entries. This is the root cause why native-cctools has pulled in. The scenario played is the following. DEPEND includes (from old x-modular.eclass, I guess): || ( >=sys-devel/binutils-2.16.1-r3 sys-devel/odcctools sys-devel/native-cctools ) and (1) binutils has no ~x86-macos keyword (2) odcctools is masked (3) native-cctools is keyworded and not (yet) masked thus native-cctools is pulled in. The expected scenario is the following. The DEPEND include: || ( >=sys-devel/binutils-2.16.1-r3 sys-devel/binutils-apple sys-devel/native-cctools ) and (2') binutils-apple has been already installed thus no role for native-cctools. Currently, there's no installable binutils for x86-macos in *the* DEPEND. Please update cache!
thanks, you pointed out a serious bug.
rsync cache generation has been fixed to take eclass changes into account. Thanks!