Summary: | Emerging wine fails on amd64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Havard Bjerke <havard.bjerke> |
Component: | Current packages | Assignee: | Wine Maintainers <wine> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amd64, aris.basic, transier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Havard Bjerke
2005-07-24 23:29:33 UTC
This is because the linker finds /lib/libz.so which is the 64bit version of libz. The 32bit version is in a different directory. Adjusting the makefile /var/tmp/portage/wine-20050628/work/wine-20050628/tools/Makefile by adding -L/emul/linux/x86/lib to the corresponding linker command line solves this error. Unfortunately, I don't know how the clean solution for this would be like. And ... the next error will appear soon: ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./glu32.spec glu.o glu32.dll.dbg.o -o glu32.dll.so -L../../dlls -L../../dlls/kernel32 -L../../dlls/ntdll -lkernel32 -lntdll -L../../libs/wine -lwine -L/usr/lib64 -lSM -lICE -lXxf86dga -lXxf86vm -lXext -lX11 -lGL -lGLU -L../../libs/port -lwine_port -m32 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible ../../libs/wine/libwine.so when searching for -lwine /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwine collect2: ld returned 1 exit status winegcc: x86_64-pc-linux-gnu-gcc failed. make: *** [glu32.dll.so] Error 2 which is a little different, since libwine.so.1 now already is a 32bit-version. fixed in cvs winegcc wasnt passing -m32 along to the linker *** Bug 101553 has been marked as a duplicate of this bug. *** *** Bug 101553 has been marked as a duplicate of this bug. *** Still can't emerge wine: x86_64-pc-linux-gnu-gcc -march=athlon64 -pipe -m32 -O2 -D__i386__ -o sfnt2fnt sfnt2fnt.o -L../libs/unicode -lwine_unicode -L../libs/port -lwine_port -lfreetype -lz /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /lib/libz.so when searching for /lib/libz.so /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /lib/libz.so collect2: ld returned 1 exit status you neglected to say what version of wine you're trying to emerge it's version wine-20050725 Hi, this is another problem about linking when trying to emerge app-emulation/wine-20050725-r1 : /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386:x86-64 architecture of input file `c_28606.o' is incompatible with i386 output /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Section non-repr Hi, this is another problem about linking when trying to emerge app-emulation/wine-20050725-r1 : /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386:x86-64 architecture of input file `c_28606.o' is incompatible with i386 output /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Section non-représentable pour la sortie collect2: ld a retourné 1 code d'état d'exécution make[2]: *** [libwine_unicode.so.1] Erreur 1 make[2]: Leaving directory `/var/tmp/portage/wine-20050725-r1/work/wine-20050725/libs/unicode' make[1]: *** [unicode] Erreur 2 make[1]: Leaving directory `/var/tmp/portage/wine-20050725-r1/work/wine-20050725/libs' make: *** [libs] Erreur 2 Emerge Info : Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r5 x86_64) ================================================================= System uname: 2.6.12-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre6 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -m64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -m64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo ftp://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LINGUAS="fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X a52 aac alsa apache2 apm arts audiofile avi bash-completion berkdb bindist bitmap-fonts bmp bonobo bzlib cdb cdr cpudetection crypt cups curl dga dts dv dvb dvd dvdr dvdread eds encode esd exif fam fbcon flac foomaticdb fortran ftp gb gd gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile gveejay hal icq ieee1394 imagemagick imlib ipv6 jabber jack java jpeg kde libwww lzw lzw-tiff mad mikmod mime mjpeg motif mozilla mp3 mpeg mplayer nas ncurses nls nvidia ofx ogg oggvorbis openal opengl oss pam pdflib perl png ppds print python qt quicktime rar readline real sdl speex spell ssl subtitles svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 videos visualization vorbis wmf xface xine xml xml2 xmms xosd xpm xprint xsl xv xvid yahoo zlib linguas_fr userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS Tristan. some news about my problem : I modified my CFLAGS to "-march=k8 -O3 -pipe -m32" (change the -m64 to -m32) in /etc/make.conf. Then it compiles and works fine. There is maybe something to do in the ebuild about the -m64 CFLAG ? (changing it from -m64 to -m32 if it is present ?) Or is it my make.conf that is wrong ? Ok, self-answering to my question about cflag -m64 or -m32... As said here http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags , I should NOT put the -m64 flag in my CFLAGS variable... so I suppress it and you can forgot all my posts ;) sounds good |