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

Bug 205239

Summary: sys-apps/sandbox-1.2.18.1-r2 emerge fails - cannot run C compiled programs.
Product: Portage Development Reporter: muhsin <mrfroasty>
Component: SandboxAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED NEEDINFO    
Severity: normal CC: dhp_gentoo
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info
config.log

Description muhsin 2008-01-10 19:43:18 UTC
My installation is stuck when i want to update portage, and the compiler included in the tarballs is gcc 4.1.1 which fail to compile not only sandbox but some other packages as well including grub and gcc!.

I have tried 
FEATURES="-sandbox -usersandbox" emerge -1av sandbox [playin around as well]
I have tried emerge glibc
I have tried to check in /usr/bin for i686 like some other forum members.
I have tried emerge gcc ....the story goes on and on.

Finally, after 2 days of waiting from the forum and irc no luck...

this is make.conf just incase somebody dont want to go through the forum topic that i left it there:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
CHOST="x86_64-pc-linux-gnu"
ACCEPT_KEYWORDS="amd64"
VIDEO_CARDS="nvidia"
MAKEOPTS="-j2"
#FEATURES="ccache collision-protect strict userfetch userpriv metadata-transfer parallel-fetch assume-digest digest"

#setting language
LINGUAS="en"
CCACHE_SIZE="2G"
CCACHE_DIR=/var/tmp/ccache

GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.tiscali.nl/"
#use flags
USE="multilib  X gtk gnome -kde dvd cdr alsa nvidia qt3 qt4 unicode nptlonly" 


Reproducible: Always

Actual Results:  
some packages cant be compiled eg grub,gcc and sandbox

Expected Results:  
I expected portage emerged and gcc compilling all packages.

>>> Unpacking source...
>>> Unpacking sandbox-1.2.18.1.tar.bz2 to /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work
 * Applying sandbox-1.2.18.1-open-normal-fail.patch ...                                                                   [ ok ]
 * Applying sandbox-1.2.18.1-open-cloexec.patch ...                                                                       [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/sandbox-1.2.18.1 ...
 * If configure fails with a 'cannot run C compiled programs' error, try this:
 * FEATURES=-sandbox emerge sandbox
 * Configuring sandbox for ABI=x86...
 * econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating sandbox-1.2.18.1/config.sub with /usr/share/gnuconfig/config.sub
../sandbox-1.2.18.1//configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --enable-multilib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log

!!! ERROR: sys-apps/sandbox-1.2.18.1-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3379:   Called src_compile
  sandbox-1.2.18.1-r2.ebuild, line 87:   Called econf '--libdir=/usr/lib32' '--enable-multilib'
  ebuild.sh, line 577:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/temp/build.log'.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 19:47:13 UTC
1/ Don't ever refer to forums.g.o. for a bug description.
2/ Please, read the messages provided before filing a bug.

<snip>
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!!
/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log
</snip>

3/ emerge --info missing as well.
Comment 2 muhsin 2008-01-10 20:45:35 UTC
Created attachment 140625 [details]
build log
Comment 3 muhsin 2008-01-10 20:46:02 UTC
Created attachment 140627 [details]
emerge --info
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 20:52:25 UTC
Well, if you are installing, then you pretty like are missing IA32 emulation in your kernel. Otherwise there's tons of duplicates about system getting screwed by eselect-compiler.
Comment 5 muhsin 2008-01-10 21:04:47 UTC
(In reply to comment #4)
> Well, if you are installing, then you pretty like are missing IA32 emulation in
> your kernel. Otherwise there's tons of duplicates about system getting screwed
> by eselect-compiler.
> 

But I can build one in a chrooted enviroment...will that help?...as till now I am only capable only accessing with chroot...

Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 21:11:41 UTC
Well no it won't really help at all until you post the config.log as the error message told you... :)
Comment 7 muhsin 2008-01-10 21:14:41 UTC
(In reply to comment #6)
> Well no it won't really help at all until you post the config.log as the error
> message told you... :)
> 

config.log...isnt that the file i attached later en call it build.log?..
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 21:18:21 UTC
(In reply to comment #7)
> config.log...isnt that the file i attached later en call it build.log?..

No, it isn't... The message even told you the exact path to the file. 

Comment 9 muhsin 2008-01-10 21:27:47 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > config.log...isnt that the file i attached later en call it build.log?..
> 
> No, it isn't... The message even told you the exact path to the file. 
> 

sorry man...i got totally lost of what is config.log[even after googlin]...take it easy on me, u are talkin to a noob here....I only know that build.log which I have attached in this bug...got no idea if there is another file, so pls be specific...if possible with the full path to the location of the file....thanks.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 21:35:04 UTC
(In reply to comment #0)
> !!! Please attach the following file when filing a report to bugs.gentoo.org:
> !!!
> /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log
Comment 11 muhsin 2008-01-10 21:41:41 UTC
Created attachment 140631 [details]
config.log
Comment 12 muhsin 2008-01-10 21:43:00 UTC
(In reply to comment #10)
> (In reply to comment #0)
> > !!! Please attach the following file when filing a report to bugs.gentoo.org:
> > !!!
> > /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log
> 

sorry man its my first time to report a bug....
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 21:44:27 UTC
> ../sandbox-1.2.18.1//configure: line 2353: ./a.out: cannot execute binary file

Well, as noted, this won't work w/o IA32 emulation support; closing.

http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#kernel
Comment 14 muhsin 2008-01-10 21:50:56 UTC
(In reply to comment #13)
> > ../sandbox-1.2.18.1//configure: line 2353: ./a.out: cannot execute binary file
> 
> Well, as noted, this won't work w/o IA32 emulation support; closing.
> 
> http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#kernel
> 

I havent build a kernel yet...but even if build one I am going to stuck on emerge grub [this will fail on almost same errors c/c++ compiler]...that means no chance to boot my system.

..any idea to get gentoo on this machine?
Comment 15 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-14 00:35:57 UTC
(In reply to comment #13)
> > ../sandbox-1.2.18.1//configure: line 2353: ./a.out: cannot execute binary file
> 
> Well, as noted, this won't work w/o IA32 emulation support; closing.
> 
> http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#kernel
> 

Does this mean that <<sandbox can not be compiled in non-multilib x86_64-pc-linux-gnu>> ?
no => I don't understand ...
yes => non-multilib profile should not exist in x86_64 stages.
Comment 16 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-14 01:11:26 UTC
I understood: we just need to activate IA32 support ( CONFIG_IA32_EMULATION ) in kernel, and do not need multilib (any way, multilib is supported in the default profile).

So, we (users) just need to recompile & reboot to fix this. In theory ;)