| Summary: | wine 20050524 fails to build on amd64 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Robert Führicht <the_master_of_disaster> |
| Component: | New packages | Assignee: | Wine Maintainers <wine> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | amd64, piotr.banasik |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Other | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
The build was completed flawlessly, and my wine installation is able to run the ufo 2000 installer. you neglected to post `emerge info` Portage 2.0.51.22-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo x86_64) ================================================================= System uname: 2.6.12-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.12 dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.9 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.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=k8" 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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/skel /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -pipe -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig digest distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.inode.at/" LINGUAS="de" 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 aac acpi alsa berkdb bitmap-fonts cdparanoia cdr crypt cups curl dga dillo directfb dts dvd dvdread encode fam firefox flac font-server foomaticdb gd gif gtk gtk2 hal icq imagemagick imlib java jp2 jpeg kde kdeenablefinal libwww lzw lzw-tiff matroska motif mp3 mpeg mplayer ncurses nls nptl nptlonly offensive ogg oggvorbis opengl oss pam pdflib png ppds qt readline samba sdl ssl svg symlink sysfs tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xpm xrandr xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS Exactly the same error as reported happens here as well. Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo x86_64) ================================================================= System uname: 2.6.12-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.12 ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.9 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.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -ftracer -ffast-math -pipe" 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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -ftracer -ffast-math -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE.UTF8" LC_ALL="de_DE.UTF8" 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 acpi alsa berkdb bitmap-fonts cdr crypt cups curl eds encode fam font-server foomaticdb fortran gcj gd gif gimp gimpprint glitz gnome gphoto2 gstreamer gtk gtk2 guile hal imagemagick imlib java jp2 jpeg junit leim libwww lzw lzw-tiff mad mp3 ncurses nls nomotif nptl nptlonly offensive ogg oggvorbis opengl pam pda perl png readline scanner sdl speex spell ssl t1lib tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS The "fix" mentioned in comment #0 solved the problems for me as well and made wine compile (and run) fine if use amd64 ; then
[[ -n $(get_abi_var) ]] \
&& export ABI=x86 \
|| append-flags -m32
fi
Not sure what you're trying to do here. The function get_abi_var() expects at
least one argument and will always return an empty string if used without. All
that's really needed is to "export ABI=x86" (which is what was done before this
change) and the profile will then append the neccessary CFLAGS to compile a
32bit app.
what i was trying to do was detect pre/post 2005.0 profiles exporting ABI=x86 does not mean squat if you're not using a 2005.0+ profile I see, well in that case you should probably use has_multilib_profile() i.e.
if use amd64 ; then
has_multilib_profile \
&& export ABI=x86 \
|| append-flags -m32
fi
thanks, i'll give that a try exactly the same problem here, BUT the "fix" didn't change anything, still getting same error messages... Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r 1, 2.6.9-gentoo-r14 x86_64) ================================================================= System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 18 2005, 08:25:12)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disab led] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" 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/shar e/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" MAKEOPTS="-j3" 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 acpi apache2 arts bash-completion berkdb bitmap-fonts cdparanoia cd r crypt cups curl dba dvd eds esd exif fam flac flash font-server foomaticdb for tran gd gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jce joystick jp2 jpeg junit ldap libwww lirc lzw lzw-tiff mad mikmod mng mozilla mp3 mplayer multilib mysql ncurses network nls ogg oggvorbis opengl oss pam pdf pdflib perl php png p pds python qt readline rtc sdl session slang sqlite ssl svg tcltk tcpd tga tiff truetype truetype-fonts type1-fonts ucs2 unicode usb userlocales utf8 v4l v4l2 v orbis wmf xine xml xml2 xmms xpm xrandr xv xvid zlib userland_GNU kernel_linux e libc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS added to cvs |
Build dies with errors like these: usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `c_28606.o' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status After examining the ebuild, I think this is to be held responsible for this error: if use amd64 ; then [[ -n $(get_abi_var) ]] \ && export ABI=x86 \ || append-flags -m32 fi From multilib.eclass: # get_abi_var <VAR> [<ABI>]: # returns the value of ${<VAR>_<ABI>} which should be set in make.defaults I tried replacing the above with if use amd64 ; then export ABI=x86 && append-flags -m32 fi This fixed the errors, but I don't know if this breaks wine or does other horribly stupid things. I'll let you know when the build is finished.