The problem is on bug 331653. It looks like bug 376877 but its not the same. gcc -Os -DUSE_PTHREADS -c -o monitor.o monitor.c gcc -Os -DUSE_PTHREADS -c -o managemon.o managemon.c gcc -static -o mdadm mdadm.o config.o mdstat.o ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Grow.o Monitor.o dlink.o Kill.o Query.o Incremental.o mdopen.o super0.o super1.o super-ddf.o super-intel.o bitmap.o restripe.o sysfs.o sha1.o mapfile.o crc32.o sg_io.o msg.o platform-intel.o probe_roms.o gcc -static -pthread -z now -o mdmon mdmon.o monitor.o managemon.o util.o mdstat.o sysfs.o config.o Kill.o sg_io.o dlink.o ReadMe.o super0.o super1.o super-intel.o super-ddf.o sha1.o crc32.o msg.o bitmap.o platform-intel.o probe_roms.o gcc: now: No such file or directory make: *** [mdmon] Error 1 make: *** Waiting for unfinished jobs.... config.o: In function `load_conffile': (.text+0x2128): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking config.o: In function `load_conffile': (.text+0x2050): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking * Gentoo Linux Genkernel; Version 3.4.16
It looks like "-z now" is supported by GNU ld, so "-Wl,-z,now" should work, instead. Which version of GCC is involved? Does it compile outside of genkernel?
(In reply to comment #1) > It looks like "-z now" is supported by GNU ld, so "-Wl,-z,now" should work, > instead. Which version of GCC is involved? Does it compile outside of > genkernel? Its gcc-4.4.5, if you look at bug 331653, you'll see the ebuild was modified to add: sed -i -e 's:-z now::' Makefile || die #331653
(In reply to comment #2) > sed -i -e 's:-z now::' Makefile || die #331653 I see, thanks! Please try with genkernel-9999 - should be fixed. http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=fe5f95c9315c23429cac9807671e13da34f57414
I tested -9999 and it works fine. Can we drop a new -rX of genkernel so we can get powerpc images building again?
(In reply to comment #4) > Can we drop a new -rX of genkernel so we can get powerpc images building again? I'm not sure what you mean by that. Could you use different words?
(In reply to comment #5) > (In reply to comment #4) > > Can we drop a new -rX of genkernel so we can get powerpc images building again? > > I'm not sure what you mean by that. Could you use different words? He means to stabilize a new version of genkernel which includes this fix.