Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Your compiler seems to be unable to compile 32bit code
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
mandolin
n00b
n00b


Joined: 03 Nov 2004
Posts: 46
Location: Sweden

PostPosted: Tue Jul 05, 2005 10:37 am    Post subject: "Your compiler seems to be unable to compile 32bit code Reply with quote

I tried to install ZSNES (the SNES emulator), something that worked without issues on my previous gentoo amd64 system. Not so now however.

Code:
Calculating dependencies ...done!
>>> emerge (1 of 1) games-emulation/zsnes-1.42 to /
>>> md5 files   ;-) zsnes-1.42.ebuild
>>> md5 files   ;-) files/1.42-configure.patch
>>> md5 files   ;-) files/digest-zsnes-1.42
>>> md5 src_uri ;-) zsnes142src.tar.gz
 * Your compiler seems to be unable to compile 32bit code.
 * Make sure you compile gcc with:

 *     USE=multilib FEATURES=-sandbox

!!! ERROR: games-emulation/zsnes-1.42 failed.
!!! Function pkg_setup, Line 37, Exitcode 0
!!! Cannot produce 32bit code
!!! If you need support, post the topmost build error, NOT this status message.


Should I do as it says? Recompile gcc with USE=multilib and FEATURES=-sandbox? If so, I have two questions: 1) Isn't multilib supposed to be a "built-in" USE-flag? 2) where to set a "feature"? In package.keywords?

Thanks!
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Jul 05, 2005 12:16 pm    Post subject: Re: "Your compiler seems to be unable to compile 32bit Reply with quote

mandolin wrote:
Should I do as it says? Recompile gcc with USE=multilib and FEATURES=-sandbox? If so, I have two questions: 1) Isn't multilib supposed to be a "built-in" USE-flag?
Yes, but only in the 2005.x profiles. It will still be a USE flag if you're using 2004.3.

mandolin wrote:
2) where to set a "feature"? In package.keywords?
In this case you only want to disable the sandbox while you build gcc, so specify it on the command line (just do USE=multilib FEATURES=-sandbox emerge -av gcc). This is because if you don't have a mutlilib gcc already, then you probably don't have a 32-bit sandbox either. That will cause the gcc to fail to compile when it gets to compiling the 32-bit multilib section, so you should disable the sandbox until that's done, then re-enable it and rebuild either portage if you're running stable amd64 or sandbox if you're running ~amd64.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
mandolin
n00b
n00b


Joined: 03 Nov 2004
Posts: 46
Location: Sweden

PostPosted: Tue Jul 05, 2005 7:41 pm    Post subject: Reply with quote

Disabling sandbox doesn't seem to help. I did USE=multilib FEATURES=-sandbox emerge -av gcc just like you said but the compile fails nevertheless :?

Code:
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Fel 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc'
make[2]: *** [stmp-multilib] Fel 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc'
make[1]: *** [stage1_build] Fel 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc'
make: *** [profiledbootstrap] Fel 2

!!! ERROR: sys-devel/gcc-3.4.4 failed.
!!! Function gcc_do_make, Line 1212, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.


Any ideas?
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Jul 05, 2005 7:44 pm    Post subject: Reply with quote

Hmm... please can you post your emerge --info?
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
mandolin
n00b
n00b


Joined: 03 Nov 2004
Posts: 46
Location: Sweden

PostPosted: Tue Jul 05, 2005 9:20 pm    Post subject: Reply with quote

Here you go :)

Code:

Portage 2.0.51.22-r1 (default-linux/amd64/2004.3, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
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.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo"
LANG="sv_SE.UTF-8"
LC_ALL="sv_SE.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 apm avi bash-completion berkdb bitmap-fonts bzip2 canna cdr cjk crypt dvd dvdr font-server fortran gif gpm gtk gtk2 imagemagick ipv6 jp2 jpeg lzw lzw-tiff mad matroska mime mp3 multilib ncurses nls nvidia ogg opengl oss pam perl png python readline sdl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml2 xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Jul 05, 2005 9:47 pm    Post subject: Reply with quote

Ah, I've found a solution -- re-emerge emul-linux-x86-glibc. If you're still having problems, please follow up to https://forums.gentoo.org/viewtopic-t-323531.html

Moved from Gentoo on AMD64 to Duplicate Threads.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum