Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100180 - Emerging wine fails on amd64
Summary: Emerging wine fails on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-24 23:29 UTC by Havard Bjerke
Modified: 2005-08-30 13:18 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Havard Bjerke 2005-07-24 23:29:33 UTC
emerge wine fails:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib32/libz.so when searching
for -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


Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS="~amd64" emerge wine
2.
3.




Portage 2.0.51.22-r2 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.5-r0,
2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -pipe -ftracer -ffast-math -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -pipe -ftracer -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.pudas.net/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X acpi alsa apm avi bash-completion berkdb bitmap-fonts cdr
crypt cups curl dvd dvdread encode esd ethereal fam foomaticdb fortran gdbm gif
glut gpm gtk gtk2 imagemagick imlib jabber jack java jpeg kde libwww lzw
lzw-tiff mad motif mozilla mozsvg mp3 mpeg msn multilib ncurses network nls
noplugin nvidia ogg oggvorbis opengl oss pam pdflib perl png portaudio postgres
ppds python qt quicktime readline real rtc samba sdl slang spell ssl svg tcltk
tcpd tetex theora tiff truetype-fonts type1-fonts usb userlocales vim-with-x
vorbis xinerama xml xml2 xmms xpm xscreensaver xv xvid xvmc zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Matthias Transier 2005-07-25 11:45:18 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. 
Comment 2 SpanKY gentoo-dev 2005-08-02 21:54:06 UTC
fixed in cvs

winegcc wasnt passing -m32 along to the linker
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-08-06 08:22:58 UTC
*** Bug 101553 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-08-06 08:47:54 UTC
*** Bug 101553 has been marked as a duplicate of this bug. ***
Comment 5 Havard Bjerke 2005-08-18 08:10:10 UTC
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
Comment 6 SpanKY gentoo-dev 2005-08-18 08:56:13 UTC
you neglected to say what version of wine you're trying to emerge
Comment 7 Havard Bjerke 2005-08-18 09:11:50 UTC
it's version wine-20050725
Comment 8 Tristan RENAUD 2005-08-28 13:01:21 UTC
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
Comment 9 Tristan RENAUD 2005-08-28 13:01:21 UTC
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.  
Comment 10 Tristan RENAUD 2005-08-30 04:16:49 UTC
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 ? 
Comment 11 Tristan RENAUD 2005-08-30 12:49:04 UTC
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 ;) 
Comment 12 SpanKY gentoo-dev 2005-08-30 13:18:56 UTC
sounds good