Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96863 - wine 20050524 fails to build on amd64
Summary: wine 20050524 fails to build on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Other
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-23 07:34 UTC by Robert Führicht
Modified: 2005-07-09 20:59 UTC (History)
2 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 Robert Führicht 2005-06-23 07:34:49 UTC
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.
Comment 1 Robert Führicht 2005-06-23 07:56:23 UTC
The build was completed flawlessly, and my wine installation is able to run the
ufo 2000 installer.
Comment 2 SpanKY gentoo-dev 2005-06-23 08:06:24 UTC
you neglected to post `emerge info`
Comment 3 Robert Führicht 2005-06-23 08:40:20 UTC
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
Comment 4 Sebastian Spaeth 2005-06-27 08:33:18 UTC
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
Comment 5 Sebastian Spaeth 2005-06-27 09:40:46 UTC
The "fix" mentioned in comment #0 solved the problems for me as well and made
wine compile (and run) fine
Comment 6 Herbie Hopkins (RETIRED) gentoo-dev 2005-06-30 07:05:03 UTC
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.
Comment 7 SpanKY gentoo-dev 2005-06-30 08:39:27 UTC
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
Comment 8 Herbie Hopkins (RETIRED) gentoo-dev 2005-06-30 08:51:52 UTC
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
Comment 9 SpanKY gentoo-dev 2005-06-30 10:19:40 UTC
thanks, i'll give that a try
Comment 10 Marius 2005-07-05 14:00:10 UTC
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
Comment 11 SpanKY gentoo-dev 2005-07-09 20:59:26 UTC
added to cvs