When I try to compile klibc-1.5.7-r2 I get [snip] # # configuration written to .config # scripts/kconfig/conf -s arch/x86/Kconfig.i386 CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 CC arch/x86/kernel/asm-offsets.s GEN include/asm-x86/asm-offsets.h CALL scripts/checksyscalls.sh defconfig has changed, please remove or edit .config make: *** [.config] Error 1 * * ERROR: dev-libs/klibc-1.5.7-r2 failed. * Call stack: * ebuild.sh, line 1762: Called dyn_compile * ebuild.sh, line 891: Called qa_call 'src_compile' * ebuild.sh, line 35: Called src_compile * environment, line 2135: Called die * The specific snippet of code: * emake EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" EXTRA_KLIBCLDFLAGS="-z,noexecstack" HOSTCC="${HOSTCC}" CC="${CC}" INSTALLDIR="/usr/${libdir}/klibc" KLIBCARCH=${KLIBCARCH} KLIBCASMARCH=${KLIBCASMARCH} SHLIBDIR="/${libdir}" libdir="/usr/${libdir}" mandir="/usr/share/man" ${myargs} || diefunc "$FUNCNAME" "$LINENO" "$?" "Compile failed!"; * The die message: * Compile failed! [/snip] Reproducible: Always Portage 2.1.4_rc3 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r0, 2.6.24-rc3-zen1 i686) ================================================================= System uname: 2.6.24-rc3-zen1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.40GHz Timestamp of tree: Tue, 27 Nov 2007 16:00:04 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.2-r1 dev-lang/python: 2.5.1-r4 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc6 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium4m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -march=pentium4m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/" LINGUAS="en" MAKEOPTS="-j5" 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 /usr/local/overlays/common /usr/local/overlays/stormfront /usr/local/overlays/proaudio /usr/local/overlays/custom_kernels /usr/local/overlays/kde4" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa avahi beagle berkdb bitmap-fonts bonjour branding bzip2 cairo cddb cdr cli cracklib crypt dbus dell dri dts dvd dvdread emboss fam fbsplash ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk hal iconv ieee1394 inotify ipv6 isdnlog jabber jack jpeg kde kdehiddenvisibility kerberos ldap libnotify logrotate mad matroska midi mikmod mmap mmx mmxext mng mono mp3 mpeg mplayer mudflap musicbrainz mysql ncurses networkmanager nfs nls nptl nptlonly ogg ole openal opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sndfile spell spl sqlite sse sse2 ssl subversion svg sysfs tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs x264 x86 xcomposite xml xorg xv xvid zeroconf zip zlib" ALSA_CARDS="intel8x0" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 137164 [details] dev-libs:klibc-1.5.7-r2:20071127-211458.log Here's the complete build log for klibc-1.5.7-r2
Can you please attach the kernel .config that it created?
Created attachment 137181 [details] klibc-1.5.7-r2.config I wasn't sure which .config you wanted as there is one in both the klibc-1.5.7 dir and the linux-2.6.23 dir. This one is the .config that was created in the klibc-1.5.7 dir.
Created attachment 137183 [details] linux-2.6.23.config And here is the one from the linux-2.6.23 dir.
same problem here on ~amd64 Portage 2.1.4_rc4 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r0, 2.6.24-rc2-kamikaze1 x86_64) ================================================================= System uname: 2.6.24-rc2-kamikaze1 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Wed, 28 Nov 2007 21:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.2-r1 dev-lang/python: 2.5.1-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -mtune=generic -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -mtune=generic -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ http://gentoo.modulix.net/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="C" LC_ALL="C" LDFLAGS="-Wl,--as-needed" LINGUAS="en en_GB nl" MAKEOPTS="-j3" 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 /usr/portage/local/layman/portato /usr/portage/local/layman/java-experimental /usr/portage/local/layman/xeffects /usr/portage/local/layman/sunrise /usr/portage/local/layman/custom-kernels" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 amr amrnb amrwb apm automount avahi bash-completion berkdb binary-drivers bitmap-fonts bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cpudetection cracklib crypt cups dbus directfb dts dvd dvdnav dvdr dvdread eds emboss emerald encode equalizer esd evo evolution exif extrafilters fam fbcon fbcondecor ffmpeg fftw firefox flac fontconfig fortran gd gdbm gif gimp gksu glitz gnome gphoto2 gpm gstreamer gtk hal hddtemp iconv imap imlib irmc isdnlog jack java javascript jbig jpeg jpeg2k ladcca lcms libnotify libsexy lm_sensors logrotate mad mdnsresponder-compat midi mikmod mmkeys mmx mmxext mng mp160 mp2 mp3 mpeg mplayer mudflap musepack ncurses nls nptl nptlonly nsplugin ntfs nvidia obj-gc objc objc++ objc-gc ogg opengl openmp oss pam paste64 pcre pda pdf perl plugins png pop pppd python quicktime readline realmedia reflection reiser4 rfkill rt61pci rtc rtsp sdl sdl-image sensord session skins smp sms sounds spell spl srt sse sse2 ssl streamripper subtitles svg swat sysfs tcpd test-programs threads threadsafe tiff totem tracker trayicon truetype truetype-fonts twolame type1-fonts um unicode unsupported upnp usb userlocales userpriv vorbis winbind wma wmf wmp x264 xcb xcomposite xml xorg xosd xprint xrandr xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="directory lg_gsm" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB nl" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
On a hunch, could both of you please try one of the 2.1.3.* portage versions?
(In reply to comment #6) > On a hunch, could both of you please try one of the 2.1.3.* portage versions? > downgraded to portage-2.1.3.19, same problem.
Here's emerge --info from the amd64 box that I did test-builds of klibc on while developing the recent ebuilds: I'm going to try and reproduce with newer portage and gcc next. Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.7-r0, 2.6.24-rc2-pmp-g28e80f62 x86_64) ================================================================= System uname: 2.6.24-rc2-pmp-g28e80f62 x86_64 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz Timestamp of tree: Unknown ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.5.1-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc6 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/home/gentoo/distfiles" FEATURES="assume-digests autoaddcvs buildpkg ccache collision-protect cvs distlocks lmirror metadata-transfer mirror parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LINGUAS="en en_CA en_US en_GB en_ZA" MAKEOPTS="-j4" PKGDIR="/home/gentoo/packages/grubb-int/" 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="/dev/shm" PORTDIR="/usr/gentoo-cvs/gentoo-x86" PORTDIR_OVERLAY="/usr/local/portage" SYNC="" USE="3dnow aalib acl acpi adns aio alsa amd amd64 apache2 apm audit berkdb bitmap-fonts cairo cdr cgi clearpasswd cli cracklib crypt cups curl divx4linux dri dvd dvdr encode f77 fam foomaticdb fortran frxp gcj gd gdbm geoip gif glitz gpgme hpn iconv idn imap innodb ipalias ipv6 isdnlog jikes jpeg junit latex libwww logrotate mad maildir mcal md5sum midi mikmod mmx mp3 mpeg mpm-prefork mudflap multicall mysql ncurses nptl nptlonly objc offensive ogg openmp pam pcap pcre pdf pdflib perl pic plotutils png pnp ppds pppd python qmail readline reflection samba scanner session slp smime snmp socks5 spell spl sse sse2 ssl svg tetex tiff truetype truetype-fonts type1 type1-fonts udev ungif unicode usb userlocales v4l v4l2 vhosts vim-syntax vorbis xml xml2 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA en_US en_GB en_ZA" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv v4l vga vesa i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
gerardo: could you please attach both .config files from your failed build?
Created attachment 137452 [details] linux-2.6.23.config /var/tmp/portage/dev-libs/klibc-1.5.7-r2/work/linux-2.6.23/.config from gerardo
Created attachment 137456 [details] klibc-1.5.7.config /var/tmp/portage/dev-libs/klibc-1.5.7-r2/work/klibc-1.5.7/.config from gerardo
I tried method specified in forum item http://forums.gentoo.org/viewtopic-p-4528802.html#4528802 but no succes. fyi: These are the last lines of the build.log scripts/kconfig/conf -s arch/x86/Kconfig.x86_64 CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 CC arch/x86/kernel/asm-offsets.s GEN include/asm-x86/asm-offsets.h CALL scripts/checksyscalls.sh defconfig has changed, please remove or edit .config make: *** [.config] Error 1
Ok, that's totally bizzare. --- robbat2-kernel-amd64.config 2007-12-01 11:45:04.000000000 -0800 +++ gerado-kernel.config 2007-12-01 11:42:29.000000000 -0800 @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.24-rc2 -# Sat Dec 1 11:44:23 2007 +# Sat Dec 1 13:48:16 2007 # CONFIG_X86_64=y CONFIG_64BIT=y That's it. No other changes at all. I'm at a loss to what the actual source of the problem is. I upgraded my box for testing, and still can't reproduce: Portage 2.1.4_rc4 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.24-rc2-pmp-g28e80f62 x86_64) Next idea is maybe something to do with your installed kernel, but it should be, we specifically tried to make it NOT use anything from the installed kernel. However, could you both try 2.6.24-rc2, and I'm going to go to 2.6.24-rc3.
I'm currently using zen-sources-2.6.24_rc3-r4 from the custom-kernels overlay, but it's still the same... I can't use regular gentoo-sources because I need reiser4 with crypt-compress. I tried compiling klibc to my own kernel by copying from /usr/src/linux to workdir but without succes.
That's interesting. On a lark, could you try using a filesystem other than reiser4 to do the build? (tmpfs if you have ~350mb of ram to spare for /dev/shm). I'm wondering about the file time issue that was discussed a long time ago with reiser4 iirc. Nathan: are you using reiser4 as well?
(In reply to comment #15) > That's interesting. > On a lark, could you try using a filesystem other than reiser4 to do the build? > (tmpfs if you have ~350mb of ram to spare for /dev/shm). > > I'm wondering about the file time issue that was discussed a long time ago with > reiser4 iirc. > > Nathan: are you using reiser4 as well? > Yes I am. I was attempting to patch vanilla with the reiser4 patch from mm to see if I could replicate it there, but couldn't get it to compile. Looks like I'll have to test with -mm rc2.
I strongly urge both of you to just make some space that isn't reiserfs4, and set PORTAGE_TMPDIR to that location for testing this. If your /dev/shm isn't large enough (don't forget to remount with exec), you can make a trivial loopback filesystem: # dd if=/dev/zero of=/tmp/lofs bs=1M count=512 # mkfs.ext3 /tmp/lofs (or reiserfs3) # mkdir /mnt/loop # modprobe loop # mount -o loop /tmp/lofs /mnt/loop # PORTAGE_TMPDIR=/mnt/loop emerge klibc
(In reply to comment #17) > I strongly urge both of you to just make some space that isn't reiserfs4, and > set PORTAGE_TMPDIR to that location for testing this. > If your /dev/shm isn't large enough (don't forget to remount with exec), you > can make a trivial loopback filesystem: > # dd if=/dev/zero of=/tmp/lofs bs=1M count=512 > # mkfs.ext3 /tmp/lofs (or reiserfs3) > # mkdir /mnt/loop > # modprobe loop > # mount -o loop /tmp/lofs /mnt/loop > # PORTAGE_TMPDIR=/mnt/loop emerge klibc > tmpfs worked. Strange that this would be a problem with reiser4, as my x86_64 box that uses reiser4 the same version of klibc compiled just fine. Maybe there is a slight difference in the reiser4 patches used.
Same for me. I'm using x86 (AthlonXP and PentiumIII-notebook) with Reiser4. On both machines klibc-1.5.7-r2 fails to compile (same error message). Kernel is gentoo-2.6.23 and the patch is the one from Kamikaze-Sources (http://kamikaze.waninkoko.info/patches/2.6.23/kamikaze5/broken-out/).
musv@gmx.de: please test the build on tmpfs or ext3 as I outline in comment 17, and report back if it works. all: If this is repeatable that it fails on reiser4, I'm going to be marking this as upstream, and leaving you to take it to them.
I tried it again today. And how to wonder, now it compiled successfully on both machines. Partition type was still Reiser4.
Compiles ok with /dev/shm as PORTAGE_TMPDIR It took me some time to find out how to do it. It seems Reiser4 doesn't support loop filesystems: octl: LOOP_SET_FD: Invalid argument So I had to do: mount -o remount,size=500M,exec -rw /dev/shm FEATURES=-ccache PORTAGE_TMPDIR=/dev/shm emerge klibc Thanks!
*** This bug has been marked as a duplicate of bug 201155 ***