Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238679 - 32bit binaries not working on amd64 system
Summary: 32bit binaries not working on amd64 system
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://www.gentoo.org/doc/en/gentoo-a...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 17:22 UTC by Vetoshkin Nikita
Modified: 2008-09-29 13:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,13.38 KB, text/plain)
2008-09-25 17:23 UTC, Vetoshkin Nikita
Details
config.log (config.log,36.35 KB, text/plain)
2008-09-26 06:26 UTC, Vetoshkin Nikita
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vetoshkin Nikita 2008-09-25 17:22:35 UTC
Can't emerge glibc-2.8_p20080602, crashes at configure part.
Succeded to build it in chroot with unpacked stage3 there, emerged it using quickpkg.
But it still failes to rebuild.
"checking size of long double... configure: error: cannot compute sizeof (long double)"
is there a way to make my multilib work again? =(

Reproducible: Always

Steps to Reproduce:
1. USE="multilib" emerge glibc
2.
3.

Actual Results:  
emerging failes


emerge  --info
Portage 2.2_rc9 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-tuxonice x86_64)
=================================================================
System uname: Linux-2.6.26-tuxonice-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-glibc2.2.5
Timestamp of tree: Thu, 25 Sep 2008 06:36:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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 --exclude-from=/etc/portage/package.skip --delete-excluded"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/bobrik-cleartype /var/tmp/portage/infra /usr/local/portage/layman/jokey"
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 emboss encode esd evo fam gdbm gif gpm gtk hal iconv isdnlog jpeg kerberos libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses newspr nls nptl nptlonly ogg opengl openmp pam pcre pdf png ppds pppd python qt3support quicktime readline reflection samba sdl session spell spl sse sse2 ssl ssse2 svg sysfs tcpd tiff truetype unicode usb vorbis xfce xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" USERLAND="GNU" VIDEO_CARDS="i810 intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vetoshkin Nikita 2008-09-25 17:23:51 UTC
Created attachment 166399 [details]
build.log
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-09-25 21:13:54 UTC
Please attach config.log from the build dir.
Comment 3 Vetoshkin Nikita 2008-09-26 06:26:08 UTC
Created attachment 166450 [details]
config.log
Comment 4 SpanKY gentoo-dev 2008-09-26 18:19:47 UTC
i'm just going to go out on a limb and guess you disabled 32bit support in your kernel
Comment 5 Vetoshkin Nikita 2008-09-26 18:31:34 UTC
darkstar ~ # zcat /proc/config.gz | grep EMUL
CONFIG_HPET_EMULATE_RTC=y
CONFIG_IA32_EMULATION=y

I think I didn't =)
Comment 6 Vetoshkin Nikita 2008-09-26 18:32:11 UTC
So can I reopen it?
Comment 7 SpanKY gentoo-dev 2008-09-26 21:04:13 UTC
then run a simple test on your system:
echo 'int main(){puts("hello");}' > test.c
gcc -m32 test.c
./a.out
Comment 8 Vetoshkin Nikita 2008-09-27 07:31:33 UTC
You're right, it doesn't run. How could that be? IA32 emulation is turn on in kernel =(
Comment 9 SpanKY gentoo-dev 2008-09-27 12:50:53 UTC
you also needed to install an amd64 multilib in the first place ...
Comment 10 Vetoshkin Nikita 2008-09-28 17:53:36 UTC
darkstar ~ # emerge -pv glibc gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-libs/glibc-2.8_p20080602  USE="(multilib) nls -debug -gd -glibc-compat20 -glibc-omitfp (-hardened) -profile (-selinux) -vanilla" 16,402 kB
[ebuild   R   ] sys-devel/gcc-4.3.1-r1  USE="gtk mudflap (multilib) nls openmp (-altivec) -bootstrap -build -doc -fortran -gcj (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 57,611 kB

darkstar ~ # profile-config list
Available profile symlink targets:
  [1]   default-linux/amd64/2007.0
  [2]   default-linux/amd64/2007.0/desktop
  [3]   default-linux/amd64/2007.0/no-multilib
  [4]   default-linux/amd64/2007.0/server
  [5]   hardened/amd64
  [6]   hardened/amd64/multilib
  [7]   selinux/2007.0/amd64
  [8]   selinux/2007.0/amd64/hardened
  [9]   default/linux/amd64/2008.0
  [10]  default/linux/amd64/2008.0/desktop *
  [11]  default/linux/amd64/2008.0/developer
  [12]  default/linux/amd64/2008.0/no-multilib
  [13]  default/linux/amd64/2008.0/server
  [14]  hardened/linux/amd64

What else can I do? =(