First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 94871
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: AMD64 Project <amd64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Igor Rafienko <igorr+gentoobugs@ifi.uio.no>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 94871 depends on: Show dependency tree
Show dependency graph
Bug 94871 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-02 15:43 0000
nestra-0.66-r1 fails to emerge on AMD64, because (I think) the Makefile
attempts
to link against /usr/X11R6/lib/. That fails on AMD64, since libX11.so is a
64-bit binary, while the entire nestra is compiled in 32-bit mode:

# file mapper.o 
mapper.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not
stripped
# file /usr/lib/libX11.so.6.2 
/usr/lib/libX11.so.6.2: ELF 64-bit LSB shared object, AMD x86-64, version 1
(SYSV), not stripped

A quick'n'dirty fix is to patch the Makefile on AMD64 to link against
/emul/linux/x86/usr/lib/. The proper fix can be left to the maintainers :)

Reproducible: Always
Steps to Reproduce:
1. emerge -Dvu nestra
2.
3.

Actual Results:  
Calculating dependencies            ...done!
>>> emerge (1 of 1) games-emulation/nestra-0.66-r1 to /
>>> md5 files   ;-) nestra-0.66-r1.ebuild
>>> md5 files   ;-) files/digest-nestra-0.66-r1
>>> md5 src_uri ;-) nestra-0.66.tar.gz
>>> md5 src_uri ;-) nestra_0.66-7.diff.gz
>>> Unpacking source...
>>> Unpacking nestra-0.66.tar.gz to /var/tmp/portage/nestra-0.66-r1/work
tar: A lone zero block at 480
>>> Unpacking nestra_0.66-7.diff.gz to /var/tmp/portage/nestra-0.66-r1/work
 * Applying nestra_0.66-7.diff ...                                             
                            [ ok ]
>>> Source unpacked.
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
comptbl.c -o comptbl
comptbl.c: In function `main':
comptbl.c:29: warning: return type of 'main' is not `int'
./comptbl
x86_64-pc-linux-gnu-ld  -m elf_i386 -r -b binary -r -defsym
TRANS_TBL=_binary_compdata_start compdata -o table.o
rm compdata
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
-c x86.S
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
-c dynrec.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
-c d6502.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
-c io.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
-c mapper.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
-c x11.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
-c fb.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fexpensive-optimizations
-m32
emu.c mapper.o d6502.o dynrec.o io.o table.o x86.o x11.o fb.o -L/usr/X11R6/lib
-lX11 -o nestra
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../libX11.so
when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../libX11.a
when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
make: *** [nestra] Error 1

!!! ERROR: games-emulation/nestra-0.66-r1 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
nestra being emerged.

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r7-kraxel1 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r7-kraxel1 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.12
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
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-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fexpensive-optimizations"
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/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fexpensive-optimizations"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg candy ccache digest distlocks sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo
http://trumpetti.atm.tut.fi/gentoo/
ftp://mirror.scarlet-internet.nl/pub/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa berkdb bitmap-fonts cdparanoia cdr crypt
curl doc dvd dvdr eds esd fam ffmpeg flac font-server fortran gd gdbm gif gnome
gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jack java jbig jp2 jpeg libcaca
libwww lirc lzw lzw-tiff mad matroska mikmod mng mozilla mp3 nas ncurses nls
ogg
oggvorbis opengl oss pam perl png python qt radeon readline rtc sdl speex
sqlite
ssl tcltk tcpd tetex theora tiff transcode truetype truetype-fonts type1-fonts
usb userlocales v4l v4l2 vcd vorbis wmf wxwindow xine xml2 xmms xpm xrandr xv
zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #1 From SpanKY 2005-06-02 16:43:28 0000 -------
try doing `env ABI=x86 emerge nestra`

------- Comment #2 From Igor Rafienko 2005-06-03 02:51:02 0000 -------
Well, setting ABI to x86 seems to have no effect.

------- Comment #3 From Simon Stelling (RETIRED) 2005-07-13 14:48:24 0000 -------
fixed, sorry for the big delay

First Last Prev Next    No search results available      Search page      Enter new bug