Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 775953

Summary: sys-apps/sandbox-2.21 checking whether we are cross compiling... configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.21/work/sandbox-2.21-abi_x86_32.x86
Product: Gentoo Linux Reporter: Andrea Postiglione <andrea.postiglione>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: ionen, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info sandbox
sandbox 2.21 build.log
config.log

Description Andrea Postiglione 2021-03-14 09:21:57 UTC
Created attachment 691329 [details]
emerge --info sandbox

>>> Emerging (1 of 1) sys-apps/sandbox-2.21::gentoo
 * sandbox-2.21.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking sandbox-2.21.tar.xz to /var/tmp/portage/sys-apps/sandbox-2.21/work
>>> Source unpacked in /var/tmp/portage/sys-apps/sandbox-2.21/work
>>> Preparing source in /var/tmp/portage/sys-apps/sandbox-2.21/work/sandbox-2.21 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/sandbox-2.21/work/sandbox-2.21 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
 * econf: updating sandbox-2.21/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating sandbox-2.21/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/sys-apps/sandbox-2.21/work/sandbox-2.21/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/sandbox-2.21 --htmldir=/usr/share/doc/sandbox-2.21/html --with-sysroot=/ --libdir=/usr/lib
checking for a BSD-compatible install... /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking environment state... ok
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.21/work/sandbox-2.21-abi_x86_32.x86':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Comment 1 Andrea Postiglione 2021-03-14 09:22:35 UTC
Created attachment 691332 [details]
sandbox 2.21 build.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-03-14 10:01:11 UTC
> See `config.log' for more details

Can you attach config.log as well?
Comment 3 Ionen Wolkens gentoo-dev 2021-03-14 10:58:39 UTC
>abi_x86_32.x86 [...] cannot run
Kernel without CONFIG_IA32_EMULATION perhaps?
Comment 4 Andrea Postiglione 2021-03-14 12:31:03 UTC
(In reply to Ionen Wolkens from comment #3)
> >abi_x86_32.x86 [...] cannot run
> Kernel without CONFIG_IA32_EMULATION perhaps?


yes i have disabled ia32 and x32 emulation on kernel config
Comment 5 Andrea Postiglione 2021-03-14 12:33:34 UTC
Created attachment 691386 [details]
config.log
Comment 6 Ionen Wolkens gentoo-dev 2021-03-14 12:59:23 UTC
(In reply to Andrea Postiglione from comment #4)
> yes i have disabled ia32 and x32 emulation on kernel config
On a multilib profile without IA32 you most likely won't be able to compile glibc anymore either.

    || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."

If you really wish to disable IA32, you'd need to use a no-multilib profile. I'd personally recommend to just re-enable it but that's up to you (x32 doesn't matter here, can be left disabled).