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

Bug 317671

Summary: sys-apps/sandbox-2.2 cannot run C compiled programs
Product: Gentoo Linux Reporter: Arsen Shnurkov <Arsen.Shnurkov>
Component: Current packagesAssignee: Sandbox Maintainers <sandbox>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/tmp/portage/sys-apps/sandbox-2.2/temp/build.log
/var/tmp/portage/sys-apps/sandbox-2.2/work/build-x86/config.log
/var/tmp/portage/sys-apps/sandbox-2.2/temp/environment
emerge --info =sys-apps/sandbox-2.2
emerge -pqv =sys-apps/sandbox-2.2

Description Arsen Shnurkov 2010-04-28 21:09:12 UTC
I execute:
# FEATURES=-sandbox emerge -1 sandbox
Output:
...
checking whether the C compiler works... configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.2/work/build-x86':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

...
If configure failed with a 'cannot run C compiled programs' error, try this:
FEATURES=-sandbox emerge sandbox
Comment 1 Arsen Shnurkov 2010-04-28 21:10:01 UTC
Created attachment 229581 [details]
/var/tmp/portage/sys-apps/sandbox-2.2/temp/build.log
Comment 2 Arsen Shnurkov 2010-04-28 21:14:38 UTC
Created attachment 229583 [details]
/var/tmp/portage/sys-apps/sandbox-2.2/work/build-x86/config.log
Comment 3 Arsen Shnurkov 2010-04-28 21:15:18 UTC
Created attachment 229585 [details]
/var/tmp/portage/sys-apps/sandbox-2.2/temp/environment
Comment 4 Arsen Shnurkov 2010-04-28 21:17:08 UTC
Created attachment 229587 [details]
emerge --info =sys-apps/sandbox-2.2
Comment 5 Arsen Shnurkov 2010-04-28 21:18:32 UTC
Created attachment 229589 [details]
emerge -pqv =sys-apps/sandbox-2.2
Comment 6 Arsen Shnurkov 2010-04-28 21:29:56 UTC
# cat /etc/make.conf | grep -i flags
CFLAGS="-O2 -pipe -march=core2 -mtune=core2"
CXXFLAGS="-O2 -pipe -march=core2 -mtune=core2"

# gcc-config -l 
 [1] x86_64-pc-linux-gnu-4.5.0 *
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2010-04-28 21:52:35 UTC
Looks like it's picking the wrong architecture target with USE=multilib.
Comment 8 Arsen Shnurkov 2010-04-28 22:07:22 UTC
> Looks like it's picking the wrong architecture target with USE=multilib.

Yes, the system was built without 'multilib', and now I want to add multilib.
I don't understood, what i need to do next from your answer (how to change "architecture target").
Comment 9 Arsen Shnurkov 2010-04-28 22:17:19 UTC
I am trying to follow the article
http://www.gentoo.org/doc/en/change-chost.xml

but the command emerge -av1 binutils gcc glibc
have the sandbox as dependency, and it fails to build
Comment 10 Arsen Shnurkov 2010-04-28 22:28:54 UTC
http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#multilib

"Warning: Currently you cannot switch from a no-multilib to a multilib-enabled profile, so think over your decision twice before you use the no-multilib profile."
Comment 11 SpanKY gentoo-dev 2010-04-29 22:40:44 UTC
not a bug in sandbox.  bugzilla isnt a support forum for people switching between non-multilib/multilib.  seek assistance on the forums or mailing lists.
Comment 12 Arsen Shnurkov 2010-04-30 04:34:43 UTC
> not a bug in sandbox.

every other package out of 793 packages was successfully recompiled with multilib flag. And only sandbox doesn't.
Comment 13 SpanKY gentoo-dev 2016-02-01 04:29:01 UTC

*** This bug has been marked as a duplicate of bug 272871 ***