First build error: ---------------------------------------- ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./activeds.spec activeds_main.o -Wl,--rpath,\$ORIGIN/`../../tools/relpath /usr/lib64/wine /usr/lib64` -o activeds.dll.so -lkernel32 ../../libs/port/libwine_port.a i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_ADVAPI32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith -march=k8 -O2 -pipe -o crypt.o crypt.c ld: Relocatable linking with relocations from format elf64-x86-64 (activeds.JxtgkA.o) to format elf32-i386 (activeds.xijc3B.o) is not supported winebuild: ld -m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib -r failed with status 256 winegcc: ../../tools/winebuild/winebuild failed. make[2]: *** [activeds.dll.so] Error 2 make[2]: Leaving directory `/var/tmp/portage/wine-0.9.18/work/wine-0.9.18/dlls/activeds' make[1]: *** [activeds] Error 2 make[1]: *** Waiting for unfinished jobs.... ---------------------------------------- Then about a dozen files (the ones in the linker error message which follows) are compiled successfully, using the command: i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_ADVAPI32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith -march=k8 -O2 -pipe -o (name of file).o (name of file).c After that, they also fail to link: ---------------------------------------- ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./advapi32.spec advapi.o crypt.o crypt_arc4.o crypt_des.o crypt_lmhash.o crypt_md4.o crypt_md5.o crypt_sha.o eventlog.o lsa.o registry.o security.o service.o -Wl,--rpath,\$ORIGIN/`../../tools/relpath /usr/lib64/wine /usr/lib64` -o advapi32.dll.so -lkernel32 -lntdll ../../libs/port/libwine_port.a ld: Relocatable linking with relocations from format elf64-x86-64 (advapi32.b1Vtu2.o) to format elf32-i386 (advapi32.A59BO1.o) is not supported winebuild: ld -m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib -r failed with status 256 winegcc: ../../tools/winebuild/winebuild failed. make[2]: *** [advapi32.dll.so] Error 2 make[2]: *** Waiting for unfinished jobs.... ---------------------------------------- Then, after several more files get compiled, I get another linking failure, which terminates the build: ---------------------------------------- ../../../tools/winegcc/winegcc -B../../../tools/winebuild -mconsole crypt.o crypt_lmhash.o crypt_md4.o crypt_md5.o crypt_sha.o lsa.o registry.o security.o testlist.o -o advapi32_test.exe.so ../../../libs/port/libwine_port.a -ladvapi32 -lkernel32 ld: Relocatable linking with relocations from format elf64-x86-64 (advapi32_test.ajPxRD.o) to format elf32-i386 (advapi32_test.IBTxtt.o) is not supported winebuild: ld -m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib -r failed with status 256 winegcc: ../../../tools/winebuild/winebuild failed. make[3]: *** [advapi32_test.exe.so] Error 2 make[3]: Leaving directory `/var/tmp/portage/wine-0.9.18/work/wine-0.9.18/dlls/advapi32/tests' make[2]: *** [tests] Error 2 make[2]: Leaving directory `/var/tmp/portage/wine-0.9.18/work/wine-0.9.18/dlls/advapi32' make[1]: *** [advapi32] Error 2 make[1]: Leaving directory `/var/tmp/portage/wine-0.9.18/work/wine-0.9.18/dlls' make: *** [dlls] Error 2 !!! ERROR: app-emulation/wine-0.9.18 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile wine-0.9.18.ebuild, line 113: Called die ---------------------------------------- Here is the output of emerge --info: ---------------------------------------- Portage 2.1.1_pre3-r1 (!../usr/portage/profiles/default-linux/amd64/2006.0, gcc-3.4.6/amd64-vanilla, glibc-2.4-r3, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 AMD Turion(tm) 64 Mobile Technology ML-32 Gentoo Base System version 1.12.1 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/mnt/portage_nfs/distfiles" FEATURES="autoconfig distlocks metadata-transfer nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/mnt/portage_nfs/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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/portage_nfs" PORTDIR_OVERLAY="/usr/portage/local/layman/portage-xgl /usr/portage/local/layman/sunrise" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 X alsa arts audiofile avi berkdb bitmap-fonts caps cdparanoia cdr cli crypt cups dri dv dvd dvdr dvdread eds emboss encode exif fftw flac foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 ieee1394 imlib ipv6 isdnlog jack jpeg kde ladcca ladspa lash libsamplerate lua lzw lzw-tiff mng mp3 mpeg musicbrainz mysql mysqli ncurses nls nptl nptlonly ogg opengl osc pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session sndfile spell spl ssl startup-notification svg tcpd tetex theora threads tiff truetype-fonts type1-fonts usb vorbis wxwindows xine xorg xpm xv zlib elibc_glibc kernel_linux userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of 138296 ***
I really don't think this is a duplicate of bug 138296 - that bug seems to cause build failure immediately after ./configure. The bug I'm reporting happens after a substantial amount of successful compilation, and only fails at the linking stage.
it all comes down to the samething: eselect-compiler *** This bug has been marked as a duplicate of 138296 ***