Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381089 - mdadm compilation fails on >=genkernel-3.4.16 on alpha
Summary: mdadm compilation fails on >=genkernel-3.4.16 on alpha
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: Alpha Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-08-29 21:19 UTC by Raúl Porcel (RETIRED)
Modified: 2011-11-11 05:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl Porcel (RETIRED) gentoo-dev 2011-08-29 21:19:48 UTC
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
Comment 1 Sebastian Pipping gentoo-dev 2011-08-30 00:07:48 UTC
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?
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2011-08-30 04:38:42 UTC
(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
Comment 3 Sebastian Pipping gentoo-dev 2011-08-30 12:50:03 UTC
(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
Comment 4 Brent Baude (RETIRED) gentoo-dev 2011-11-07 19:59:08 UTC
I tested -9999 and it works fine.  Can we drop a new -rX of genkernel so we can get powerpc images building again?
Comment 5 Sebastian Pipping gentoo-dev 2011-11-08 17:04:20 UTC
(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?
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2011-11-11 05:35:39 UTC
(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.