Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229789 - Genkernel 3.4.10 can't build system
Summary: Genkernel 3.4.10 can't build system
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: LiveCD/DVD (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-27 17:55 UTC by Chuck Wegrzyn
Modified: 2011-06-13 22:06 UTC (History)
1 user (show)

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


Attachments
Genkernel log from operation (genkernel.log,443.98 KB, text/plain)
2008-06-27 17:56 UTC, Chuck Wegrzyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chuck Wegrzyn 2008-06-27 17:55:28 UTC
I did an 'emerge genkernel' getting 3.4.10. I followed that up with a 'genkernel all' on gentoo-sources-2.6.24 r8 and it failed!

 The system was just installed off of the 2008.0 beta 2 LiveCD. I followed up the installer with 'emerge --sync; emerge --deep --update world', and then did an 'emerge genkernel gentoo-source'.

Reproducible: Always

Steps to Reproduce:
1.emerge genkernel (getting 3.4.10)
2.genkernel all
3.

Actual Results:  
util-linux/mdev.c:280: warning: ignoring return value of 'write', declared with attribute warn_unused_result
--
  CC      util-linux/rdate.o
  CC      util-linux/swaponoff.o
  CC      util-linux/switch_root.o
  CC      util-linux/umount.o
util-linux/umount.c: In function 'umount_main':
util-linux/umount.c:96: warning: ignoring return value of 'realpath', declared with attribute warn_unused_result
  AR      util-linux/lib.a
  LINK    busybox_unstripped
Trying libraries: crypt m
Failed: gcc -static -o busybox_unstripped -Wl,-Map -Wl,busybox_unstripped.map -Wl,--warn-common -Wl,--sort-common -Wl,--start-group applets/built-in.o archival/lib.a archival/libunarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a ipsvd/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a miscutils/lib.a mdadm/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a archival/built-in.o archival/libunarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o ipsvd/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o miscutils/built-in.o mdadm/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o -Wl,--end-group -Wl,--start-group -Wl,--start-group -lcrypt -lm -Wl,--end-group -Wl,--end-group
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcrypt
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
* Gentoo Linux Genkernel; Version 3.4.10
* Running with options: all

* ERROR: Failed to compile the "all" target...



Expected Results:  
For the kernel to be built.

einstein linux # emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r5 i686)
=================================================================
System uname: 2.6.24-gentoo-r5 i686 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
Timestamp of tree: Fri, 27 Jun 2008 13:36:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg tcpd tiff truetype unicode vorbis win32codecs x86 xml xorg xv 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Chuck Wegrzyn 2008-06-27 17:56:17 UTC
Created attachment 158677 [details]
Genkernel log from operation
Comment 2 Chuck Wegrzyn 2008-06-27 21:20:53 UTC
I tracked the problem down to an issue with GLIBC. It seems the LiveCD has a "bad" glibc on it. After I did an "emerge glibc" I re-executed "genkernel all" and it worked.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-28 07:43:30 UTC
OK.  The CD media is rebuilt from scratch for release, so this shouldn't be an issue.
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2008-07-12 16:40:13 UTC
The CD or the stages? The glibc (or anything, really) on the CD itself shouldn't matter once you're inside the chroot.
Comment 5 Chuck Wegrzyn 2008-08-19 00:01:36 UTC
It turns out this is still a problem but now with 2008.0-r1. When I rebuild glibc, I can run genkernel all.....

Ugh...this does need to be fixed since it has never happened on earlier releases.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2008-08-19 01:37:45 UTC
Exactly which 2008.0-r1? What's the full name of the ISO? You are the only person to report this issue that I'm aware of.
Comment 7 Chuck Wegrzyn 2008-08-19 11:35:19 UTC
I just downloaded the Amd64 (X86_64) LiveCD yesterday (2008.0-r1). I installed the system via the GUI installer after which I did:

emerge --sync
emerge --deep --update world
emerge genkernel
genkernel all

The genkernel all will fail looking for libcrypt. If I do a emerge glibc, I can then do a genkernel all at this time it will work.
Comment 8 Trenton D. Adams 2008-09-03 04:50:54 UTC
I think I have the same problem, but I haven't recompiled glibc yet.  I also downloaded the amd_64 live cd, and installed using the installer.  I synced with the mirrors, and I'm updating my system now.  Hopefully it will work after that.
Comment 9 Marcus 2008-09-29 16:01:50 UTC
Same error here. Reemerging glibc solve the problem.
Comment 10 Andrew Gaffney (RETIRED) gentoo-dev 2008-09-29 16:07:41 UTC
Does this only happen when you do an install with the GUI installer, or does it also happen if you extract a stage3 and do a "normal" install?
Comment 11 Chuck Wegrzyn 2008-09-29 16:16:24 UTC
I am sorry to say that I don't remember.
Comment 12 Anonymous User 2009-03-22 21:23:42 UTC
Hey,

I installed via console on the 2008-r1 LiveCD (amd64).  I experienced the same "lcrypt not found" error, and, after a rebuild with glibc (emerge glibc), I am now able to build with "genkernel all".
Comment 13 Dan Reidy 2009-04-22 23:56:36 UTC
confirmed using the AMD64 installer on:
2.6.24-gentoo-r7 SMP x86_64 Intel Pentium Dual T3400

attempting to copy over a glibc from another box and compile.. this is a pain, since i cant compile drivers for my network card... bah!
Comment 14 Sebastian Pipping gentoo-dev 2011-05-31 17:35:06 UTC
If I read the change log correctly, the oldest glibc we still have in Gentoo is newer than what you originally reported against:

  *glibc-2.9_p20081201 (08 Dec 2008)

    08 Dec 2008; Mike Frysinger <vapier@gentoo.org>
    +glibc-2.9_p20081201.ebuild:
    Version bump #237236.

I don't expect live CDs from 2008 to be used much either.
I would therefore like to close this bug.
If you object please raise your voice during the next two weeks.
After that I may close this bug.
Comment 15 Sebastian Pipping gentoo-dev 2011-06-13 22:06:59 UTC
(In reply to comment #14)
> If you object please raise your voice during the next two weeks.
> After that I may close this bug.

Closing.

if you have reason to re-open this bug: please go ahead.