Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188273 - genkernel 3.4.8 fails to build gentoo sources with --dmraid
Summary: genkernel 3.4.8 fails to build gentoo sources with --dmraid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-09 22:01 UTC by Alan Hourihane
Modified: 2007-11-28 22:32 UTC (History)
0 users

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


Attachments
genkernel.log (genkernel.log,312.10 KB, text/plain)
2007-08-10 18:33 UTC, Alan Hourihane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Hourihane 2007-08-09 22:01:43 UTC
Even this shows the unstable kernel, it still fails with the stable kernel too.

* Gentoo Linux Genkernel; Version 3.4.8
* Running with options: --dmraid --slowusb --disklabel --no-clean all

* Linux Kernel 2.6.22-gentoo-r2 for x86...
mount: special device /dev/BOOT does not exist
* WARNING: Failed to mount /boot!

* config: --no-clean is enabled; leaving the .config alone.
*         >> Compiling 2.6.22-gentoo-r2 bzImage...
*         >> Compiling 2.6.22-gentoo-r2 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.22-gentoo-r2
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Appending busybox cpio data...
*         >> Appending dmraid cpio data...
* DMRAID: Adding support (compiling binaries)...
* device-mapper: >> Compiling...
*         >> Copying to cache...
* dmraid: >> Configuring...
* dmraid: >> Compiling...
* ERROR: Failed to compile the "" target...

* -- Grepping log... --


* Gentoo Linux Genkernel; Version 3.4.8
* Running with options: --dmraid --slowusb --disklabel --no-clean all

* Linux Kernel 2.6.22-gentoo-r2 for x86...
* WARNING: Failed to mount /boot!
--
dmraid.c:(.text+0x5d): undefined reference to `handle_args'
dmraid.c:(.text+0x6b): undefined reference to `libdmraid_exit'
dmraid.c:(.text+0x84): undefined reference to `init_locking'
dmraid.c:(.text+0x9c): undefined reference to `perform'
collect2: ld returned 1 exit status
make[1]: *** [tools/dmraid] Error 1


Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 09:57:54 UTC
Please, attach the complete log; also emerge --info missing.
Comment 2 Alan Hourihane 2007-08-10 18:33:17 UTC
Created attachment 127506 [details]
genkernel.log

Tried with my hardened build and the same occurs, so attaching emerge --info and genkernel.log


Portage 2.1.2.11 (selinux/2007.0/x86/hardened, gcc-4.1.1, glibc-2.5-r4, 2.6.21-gentoo-r4 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.21-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 10 Aug 2007 15:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -fomit-frame-pointer -march=i486 -mtune=pentium -pipe -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-Os -fomit-frame-pointer -march=i486 -mtune=pentium -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks loadpolicy metadata-transfer sandbox selinux sesandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="activefilter adsl apache2 atm berkdb bitmap-fonts cli cracklib crypt cups dhcp dri eap-tls fortran gdbm gpm hardened iconv ipppd ipv6 isdnlog ldap midi minimal mpm-prefork mppe-mppc mschap mudflap ncurses netboot nls nptl nptlonly openmp pam pcre perl pic pppd python radius readline reflection savedconfig selinux session spl ssl tcpd truetype-fonts type1-fonts unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Alan Hourihane 2007-08-10 18:33:33 UTC
Reopen
Comment 4 Ian Stakenvicius 2007-08-13 13:27:54 UTC
is this a duplicate of bug 145415 ?
Comment 5 Alan Hourihane 2007-08-13 13:31:29 UTC
Not exactly. Different version of genkernel and this is with gentoo-sources & hardened-sources.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2007-08-22 19:48:08 UTC
This should be fixed in genkernel 3.4.9_pre1 which is now in the tree for testing.  If this doesn't fix it, please REOPEN this bug.
Comment 7 Alan Hourihane 2007-08-31 15:55:12 UTC
Nope. Doesn't fix it, and I've just retried with _pre2
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2007-08-31 17:25:58 UTC
Alan, so you're only getting this problem with gentoo-sources or both gentoo-sources and hardened-sources?
Comment 9 Alan Hourihane 2007-08-31 17:38:49 UTC
The last test was with h2.6.20-hardened-r6, but I can try gentoo-sources again if that helps.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2007-09-17 20:06:58 UTC
Alan, I don't think this will change anything, but can you try with genkernel 3.4.9_pre3 and attach the genkernel log it produces here?
Comment 11 Alan Hourihane 2007-09-24 17:18:57 UTC
Tried. Fails with the same error.
Comment 12 Ian Stakenvicius 2007-10-03 19:01:06 UTC
Do you have dmraid and/or device-mapper emerged?  Not that this should affect genkernel, but..

Comment 13 Alan Hourihane 2007-10-03 20:08:12 UTC
Yes, I have both device-mapper & dmraid emerged before the kernel build.
Comment 14 Alan Hourihane 2007-10-12 20:23:18 UTC
O.k. So after my insight into genkernel for doing mdadm support I took a look at why this fails.

It's because the default genkernel tries to build with -j2 and the DMRAID package compiles out of order and tries to compile the 'tools' directory before actually compiling the appropriate libraries.

Setting MAKEOPTS="-j1" in /etc/genkernel.conf fixes the problem.
Comment 15 Alan Hourihane 2007-10-12 21:21:40 UTC
I think both of these bugs are directly related to this, so if this gets fixed properly I suspect both of these will work too.

http://bugs.gentoo.org/show_bug.cgi?id=145415
http://bugs.gentoo.org/show_bug.cgi?id=164572
Comment 16 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-13 17:35:14 UTC
Nice.  I'll come up with a way to override the MAKEOPTS setting for dmraid and will put it into the next genkernel 3.4.9_pre version.  Of course, patches welcome.  ;]
Comment 17 Andrew Gaffney (RETIRED) gentoo-dev 2007-11-17 02:47:48 UTC
This is fixed in SVN.
Comment 18 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-28 22:32:07 UTC
This should be done in 3.4.9_pre10 which will be hitting the tree soon.