Note: I am running a 64 bit environment. Have not tested on 32. Command: emerge sys-apps/module-init-tools Error: * * ERROR: sys-apps/module-init-tools-3.5 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2636: Called die * The specific snippet of code: * emake || die "emake module-init-tools failed" * The die message: * emake module-init-tools failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/environment'. * >>> Failed to emerge sys-apps/module-init-tools-3.5, Log file: >>> '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/build.log' * Messages for package sys-apps/module-init-tools-3.5: * * ERROR: sys-apps/module-init-tools-3.5 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2636: Called die * The specific snippet of code: * emake || die "emake module-init-tools failed" * The die message: * emake module-init-tools failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/environment'. * Reproducible: Always Steps to Reproduce: 1. emerge sys-apps/module-init-tools 2. wait 3. observe Actual Results: Error message listed in description Expected Results: sys-apps/module-init-tools-3.5 is compiled and installed
Attach whole build log. Post the output of `emerge --info`.
(In reply to comment #1) > Attach whole build log. > Post the output of `emerge --info`. Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64) ================================================================= System uname: Linux-2.6.23-gentoo-r3-x86_64-Intel-R-_Xeon-R-_CPU_X3220_@_2.40GHz-with-glibc2.2.5 Timestamp of tree: Tue, 25 Aug 2009 16:20:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r9, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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://rsync21.us.gentoo.org/gentoo-portage" USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt ctype cups curl dri fortran gdbm gpm iconv isdnlog ithreads jpeg jpeg2k libwww mmx mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl php png pppd python readline reflection session sockets spl sse sse2 ssl symlink sysfs tcpd threads unicode vhosts xml xorg xsl 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 mmap_emul 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" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
PLease attach the complete build.log.
(In reply to comment #3) > PLease attach the complete build.log. I appologize, but where can I locate that?
did you read the error message ? it quite clearly states: * A complete build log is located at '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/build.log'.
>>> Unpacking source... >>> Unpacking module-init-tools-3.5.tar.bz2 to /var/tmp/portage/sys-apps/module-init-tools-3.5/work [32;01m*[0m Replacing obsolete head/tail with POSIX compliant ones [32;01m*[0m - fixed tests/test-depmod/10badcommand.sh [32;01m*[0m Applying module-init-tools-3.1_generate-modprobe-assume-kernel.patch ... [A[92C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying module-init-tools-3.2_pre7-abort-on-modprobe-failure.patch ... [A[92C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying module-init-tools-3.2.2-handle-dupliate-aliases.patch ... [A[92C [34;01m[ [32;01mok[34;01m ][0m >>> Source unpacked in /var/tmp/portage/sys-apps/module-init-tools-3.5/work >>> Compiling source in /var/tmp/portage/sys-apps/module-init-tools-3.5/work/module-init-tools-3.5 ... * econf: updating module-init-tools-3.5/config.guess with /usr/share/gnuconfig/config.guess * econf: updating module-init-tools-3.5/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/lib64 --prefix=/ --enable-zlib checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3 configure: Adding gcc options: -O2 -pipe -Wunused -Wall configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands make -j5 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT lsmod.o -MD -MP -MF .deps/lsmod.Tpo -c -o lsmod.o lsmod.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT modindex.o -MD -MP -MF .deps/modindex.Tpo -c -o modindex.o modindex.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT logging.o -MD -MP -MF .deps/logging.Tpo -c -o logging.o logging.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT index.o -MD -MP -MF .deps/index.Tpo -c -o index.o index.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT insmod.o -MD -MP -MF .deps/insmod.Tpo -c -o insmod.o insmod.c mv -f .deps/logging.Tpo .deps/logging.Po x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT modprobe.o -MD -MP -MF .deps/modprobe.Tpo -c -o modprobe.o modprobe.c mv -f .deps/lsmod.Tpo .deps/lsmod.Po mv -f .deps/modindex.Tpo .deps/modindex.Po x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT zlibsupport.o -MD -MP -MF .deps/zlibsupport.Tpo -c -o zlibsupport.o zlibsupport.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT rmmod.o -MD -MP -MF .deps/rmmod.Tpo -c -o rmmod.o rmmod.c mv -f .deps/insmod.Tpo .deps/insmod.Po x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT depmod.o -MD -MP -MF .deps/depmod.Tpo -c -o depmod.o depmod.c mv -f .deps/zlibsupport.Tpo .deps/zlibsupport.Po x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT moduleops.o -MD -MP -MF .deps/moduleops.Tpo -c -o moduleops.o moduleops.c mv -f .deps/rmmod.Tpo .deps/rmmod.Po x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT tables.o -MD -MP -MF .deps/tables.Tpo -c -o tables.o tables.c mv -f .deps/index.Tpo .deps/index.Po x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.5\" -DCONFIG_USE_ZLIB=1 -I. -O2 -pipe -Wunused -Wall -MT modinfo.o -MD -MP -MF .deps/modinfo.Tpo -c -o modinfo.o modinfo.c mv -f .deps/moduleops.Tpo .deps/moduleops.Po x86_64-pc-linux-gnu-gcc -O2 -pipe -Wunused -Wall -static -Wl,-O1 -o insmod.static insmod.o mv -f .deps/modinfo.Tpo .deps/modinfo.Po x86_64-pc-linux-gnu-gcc -O2 -pipe -Wunused -Wall -Wl,-O1 -o lsmod lsmod.o -lz x86_64-pc-linux-gnu-gcc -O2 -pipe -Wunused -Wall -Wl,-O1 -o modindex modindex.o logging.o index.o -lz mv -f .deps/modprobe.Tpo .deps/modprobe.Po x86_64-pc-linux-gnu-gcc -O2 -pipe -Wunused -Wall -Wl,-O1 -o insmod insmod.o -lz x86_64-pc-linux-gnu-gcc -O2 -pipe -Wunused -Wall -Wl,-O1 -o modprobe modprobe.o logging.o index.o zlibsupport.o -lz /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libc.a(wfileops.o):(.rodata+0x68): undefined reference to `_IO_wfile_doallocate' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libc.a(wfileops.o):(.rodata+0x128): undefined reference to `_IO_wfile_doallocate' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libc.a(wfileops.o):(.rodata+0x1e8): undefined reference to `_IO_wfile_doallocate' collect2: ld returned 1 exit status make: *** [insmod.static] Error 1 make: *** Waiting for unfinished jobs.... mv -f .deps/depmod.Tpo .deps/depmod.Po mv -f .deps/tables.Tpo .deps/tables.Po [31;01m*[0m [31;01m*[0m ERROR: sys-apps/module-init-tools-3.5 failed. [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 49: Called src_compile [31;01m*[0m environment, line 2636: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m emake || die "emake module-init-tools failed" [31;01m*[0m The die message: [31;01m*[0m emake module-init-tools failed [31;01m*[0m [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m*[0m A complete build log is located at '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-apps/module-init-tools-3.5/temp/environment'. [31;01m*[0m I can't get this to paste correctly out of the terminal but that's pretty much it. I just cp'd it to a web accessible directory as well, http://gtwy.net/temp/build.log
never post log files inline. always attach them. you're running a pretty old glibc. please try upgrading to latest stable and try m-i-t again.
(In reply to comment #7) > never post log files inline. always attach them. > you're running a pretty old glibc. please try upgrading to latest stable and > try m-i-t again. * Messages for package sys-libs/glibc-2.9_p20081201-r2: * * ERROR: sys-libs/glibc-2.9_p20081201-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3702: Called eblit-run 'src_compile' * environment, line 1218: Called eblit-glibc-src_compile * src_compile.eblit, line 180: Called src_compile * environment, line 3702: Called eblit-run 'src_compile' * environment, line 1218: Called eblit-glibc-src_compile * src_compile.eblit, line 188: Called toolchain-glibc_src_compile * src_compile.eblit, line 123: Called die * The specific snippet of code: * make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed" * The die message: * make for x86 failed I rebuilt linux-headers (I was up to date). Also, it fails to build gcc because I tried that as well.
Created attachment 202372 [details] glibc failing to build
that glibc error only comes up when you wrongly build glibc with USE=vanilla
Uhm, vanilla is not one of my use flags and never has been. I had no problems with my system until I attempted to update my entire system (which is when I opened this ticket)
if you read the log, no Gentoo patches are applied. that only occurs when USE=vanilla. read toolchain-glibc_src_unpack in glibc/files/eblits/src_unpack.eblit. you can `emerge -pv glibc` and then run `emerge --debug glibc` to verify the code paths. USE=vanilla -> your problem.
(In reply to comment #12) > if you read the log, no Gentoo patches are applied. that only occurs when > USE=vanilla. read toolchain-glibc_src_unpack in > glibc/files/eblits/src_unpack.eblit. > you can `emerge -pv glibc` and then run `emerge --debug glibc` to verify the > code paths. USE=vanilla -> your problem. When I run `emerge -pv glibc` it shows '-vanilla'. Should I open a new bug under glibc (since it seems to really be the culprit here)? I am going to attach the build log w/ --debug also.
Created attachment 202396 [details] zip of build.log (emerge --debug glibc) zipped because it was over size limit. probably should be posting this in a new bug tho.
that log doesnt match the first log you posted at all as for why you're getting that __mremap error, i havent the foggiest ... never seen it before and google doesnt really show anything. misc/mremap.os appears to be created correctly, and then integrated into libc_pic.a, and then integrated into libc_pic.os, and then pulled into libc.so. running `scanelf -qRs+__mremap /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-x86-x86_64-pc-linux-gnu-nptl` should tell you the places where it was integrated properly. also, zip really shouldnt be used in open source work. there are much better, standard, and simpler compression routines out there like gzip or bzip2.