Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317671 - sys-apps/sandbox-2.2 cannot run C compiled programs
Summary: sys-apps/sandbox-2.2 cannot run C compiled programs
Status: RESOLVED DUPLICATE of bug 272871
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-28 21:09 UTC by Arsen Shnurkov
Modified: 2016-02-01 04:29 UTC (History)
0 users

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


Attachments
/var/tmp/portage/sys-apps/sandbox-2.2/temp/build.log (build.log,2.56 KB, text/plain)
2010-04-28 21:10 UTC, Arsen Shnurkov
Details
/var/tmp/portage/sys-apps/sandbox-2.2/work/build-x86/config.log (config.log,19.75 KB, text/plain)
2010-04-28 21:14 UTC, Arsen Shnurkov
Details
/var/tmp/portage/sys-apps/sandbox-2.2/temp/environment (environment,98.51 KB, text/plain)
2010-04-28 21:15 UTC, Arsen Shnurkov
Details
emerge --info =sys-apps/sandbox-2.2 (info.txt,4.41 KB, text/plain)
2010-04-28 21:17 UTC, Arsen Shnurkov
Details
emerge -pqv =sys-apps/sandbox-2.2 (pqv.txt,56 bytes, text/plain)
2010-04-28 21:18 UTC, Arsen Shnurkov
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***