Bug List: (This bug is not in your last search results)   Show last search results      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
build.log build.log text/plain Maloshtan Andrey 2008-08-30 10:42 0000 8.64 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

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

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


Not eligible to see or edit group visibility for this bug.






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

------- Comment #4 From Maloshtan Andrey 2008-08-30 10:42:33 0000 -------
Created an attachment (id=164114) [details]
build.log

Hello, the problem is still there:


emu.c:317: warning: incompatible implicit declaration of built-in function
‘strcat’
emu.c:330: warning: incompatible implicit declaration of built-in function
‘strcpy’
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:
i386:x86-64 architecture of input file `table.o' is incompatible with i386
output
collect2: ld returned 1 exit status
make: *** [nestra] Error 1
 *
 * ERROR: games-emulation/nestra-0.66-r1 failed.


My info:
Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0,
2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Fri, 29 Aug 2008 01:45:03 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch
sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_UA.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="en ru uk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/my"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli
cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam
firefox fortran gdbm gif gpm gstreamer gtk hal iconv isdnlog jack jpeg kde
kerberos ldap libnotify logitech-mouse mad midi mikmod mmx mp3 mpeg mudflap
multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl
png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl
session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff
truetype unicode usb utf8 vorbis xml xorg xv zlib" ALSA_CARDS="intel8x0"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug
rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic
authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="en ru uk" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug