GENTOO : emerge PORTAGE Failed due to sandbox
Hello everyone,
since one month i cannot emerge portage portage with my gentoo 2007-1 version. I've tried to compil sandbox with a simple 'emerge sandbox' but i have the same error. does anyone know how to solve my problem ? Here is the compil error : ULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:686: warning: implicit declaration of function 'true_getcwd_DEFAULT' ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:686: warning: return makes pointer from integer without a cast make[2]: *** [libsandbox_la-wrappers.lo] Erreur 1 make[2]: *** Attente des tâches non terminées.... make[1]: *** [all-recursive] Erreur 1 make: *** [all] Erreur 2 * Building failed for ABI=x86!. This usually means a broken * multilib setup. Please fix that before filling a bugreport * against sandbox. * * ERROR: sys-apps/sandbox-1.2.20_alpha2-r1 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 2449: Called die * The specific snippet of code: * diefunc "$FUNCNAME" "$LINENO" "$?" "emake failed for ${ABI}" * The die message: * emake failed for x86 * * 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.20_alpha2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-1.2.20_alpha2-r1/temp/environment'. * * Messages for package sys-apps/sandbox-1.2.20_alpha2-r1: * If configure fails with a 'cannot run C compiled programs' error, try this: * FEATURES=-sandbox emerge sandbox * Building failed for ABI=x86!. This usually means a broken * multilib setup. Please fix that before filling a bugreport * against sandbox. * * ERROR: sys-apps/sandbox-1.2.20_alpha2-r1 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 2449: Called die * The specific snippet of code: * diefunc "$FUNCNAME" "$LINENO" "$?" "emake failed for ${ABI}" * The die message: * emake failed for x86 * * 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.20_alpha2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-1.2.20_alpha2-r1/temp/environment'. |
here is a full update of my error compilation
gcc -DHAVE_CONFIG_H -I. -I../../sandbox-1.2.20alpha2/libsandbox -I.. -I../../sandbox-1.2.20alpha2/libsbutil -I../../sandbox-1.2.20alpha2/libsbutil/include -DETCDIR=\"/etc\" -DLIBSANDBOX_PATH=\"/usr/lib32\" -DSANDBOX_BASHRC_PATH=\"/usr/share/sandbox\" -DPIC -fPIC -D_REENTRANT -I../../sandbox-1.2.20alpha2 -Wall -fexceptions -O2 -march=x86-64 -pipe -MT libsandbox_la-wrappers.lo -MD -MP -MF .deps/libsandbox_la-wrappers.Tpo -c ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c -fPIC -DPIC -o .libs/libsandbox_la-wrappers.o ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c: In function 'libsb_open': ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: 'true_open_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: (Each undeclared identifier is reported only once ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: for each function it appears in.) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: 'symname_open_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: 'symver_open_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:675: warning: implicit declaration of function 'true_open_DEFAULT' ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c: In function 'libsb_getcwd': ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:684: error: 'true_getcwd_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:684: error: 'symname_getcwd_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:684: error: 'symver_getcwd_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:686: warning: implicit declaration of function 'true_getcwd_DEFAULT' ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:686: warning: return makes pointer from integer without a cast make[2]: *** [libsandbox_la-wrappers.lo] Erreur 1 make[2]: *** Attente des tâches non terminées.... make[1]: *** [all-recursive] Erreur 1 make: *** [all] Erreur 2 * Building failed for ABI=x86!. This usually means a broken * multilib setup. Please fix that before filling a bugreport * against sandbox. * * ERROR: sys-apps/sandbox-1.2.20_alpha2-r1 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 2448: Called die * The specific snippet of code: * diefunc "$FUNCNAME" "$LINENO" "$?" "emake failed for ${ABI}" * The die message: * emake failed for x86 * * 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.20_alpha2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-1.2.20_alpha2-r1/temp/environment'. * * Messages for package sys-apps/sandbox-1.2.20_alpha2-r1: * If configure fails with a 'cannot run C compiled programs' error, try this: * FEATURES=-sandbox emerge sandbox * Building failed for ABI=x86!. This usually means a broken * multilib setup. Please fix that before filling a bugreport * against sandbox. * * ERROR: sys-apps/sandbox-1.2.20_alpha2-r1 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 2448: Called die * The specific snippet of code: * diefunc "$FUNCNAME" "$LINENO" "$?" "emake failed for ${ABI}" * The die message: * emake failed for x86 * * 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.20_alpha2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-1.2.20_alpha2-r1/temp/environment'. |
Solved, i've removed /etc/portage/package.unmask and now it's working fine again. :-)
|
Quote:
************************************************************************* >>> 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 3347: 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'. ************************************************************************* That was the original output. So I edited /etc/make.conf as stated and ran it again. This is what I get now. ************************************************************************* 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 3347: 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'. I don't know why it says anything about cross-compiling. I just want to update my system as I was told to do after running my first "emerge --sync". Why am I getting this, when my /etc/make.conf is setup for x86_64? Where can I change this to ABI=X86_64? Or should I? On further examination, it seems it should be ABI=amd64. But I have that already set. Should I not have installed the multilib stage3 or not? ************************************************************************* * 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 Shingoshi |
You have to set it for one-time only
FEATURES="-sandbox -usersandbox" emerge -av sandbox |
Please tell me exactly how to do this.
Quote:
make.conf << FEATURES="-sandbox -user sandbox" commandprompt: emerge -av sandbox Please think for a moment. If I knew what I was supposed to be doing, I wouldn't be asking for help. So please don't assume that I should know what I am doing, because I don't! I haven't been able to get Gentoo to run once. So I have absolutely no experience at this. I need to know how to get my system up and running. Once I have a working system, I can then learn the intricacies of it. But right now, I need it to run. Shingoshi |
Just a few more questions.
I put this message in the wrong place. Sorry about that!
Shingoshi |
This is the exact command line, no mistakes, use it as root.
Code:
FEATURES="-sandbox -usersandbox" emerge -av sandbox |
This is what happens when I run the command as stated.
Quote:
starbase64 / # FEATURES="-sandbox -usersandbox" emerge -av sandbox These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-apps/sandbox-1.2.18.1-r2 [1.2.17] 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] Yes >>> Emerging (1 of 1) sys-apps/sandbox-1.2.18.1-r2 to / * sandbox-1.2.18.1.tar.bz2 RMD160 ;-) ... [ ok ] * sandbox-1.2.18.1.tar.bz2 SHA1 ;-) ... [ ok ] * sandbox-1.2.18.1.tar.bz2 SHA256 ;-) ... [ ok ] * sandbox-1.2.18.1.tar.bz2 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking sandbox-1.2.18.1.tar.bz2 ;-) ... [ ok ] >>> 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 3346: 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'. starbase64 / # If I say no to the prompt, I get this: starbase64 / # FEATURES="-sandbox -usersandbox" emerge -av sandbox These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-apps/sandbox-1.2.18.1-r2 [1.2.17] 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] No Quitting. starbase64 / # In either case, I get nothing that helps me move beyond this point. I am simply hung at the build of the sandbox. I cannot proceed any further. So what should I do now? Remove this environment and use multilib without hardening? Can I change the profile, so that hardened status is no longer in effect? Because trying to keep things as they are, isn't working. This is a bug that was claimed to have been fixed. It isn't. Shingoshi |
:twocents: Remove all cruft from /var/tmp/portage and try again?
|
Quote:
What's the problem here. That I am attempting to run multilib, hardened or both? Does it matter that I'm running Gentoo in a chroot? I don't see why it should, since I am fully able to run NetBSD pkgsrc in a chroot. Forget everything else. Just tell me how to change the profile I am running, so that multilib hardened doesn't prevent me from running my system. I'd rather have a running system, than some flaky features that aren't ironed out. And they are indeed flaky, since I have seen many bug reports on this issue. So my situation is not unique. Shingoshi |
I had all sorts of sandbox problems on Gentoo. The response I got to a slightly different problem on the Gentoo forum was:
Quote:
|
Use eselect profile list to see common profiles. Profiles are stored in /usr/portage/profiles/, to use them symlink desired one to /etc/make profile.
/etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2007.0 If you have working sandbox you can skip the build in emerge -e system/world process, use emerge --skipfirst, you can even come back after emerge -e is finished and try again, it may build then. You can also live without sandbox, to turn it off permanently add FEATURES="-sandbox" to your make.conf. @billymayday Setting FEATURES in make.conf has same effect as setting it from command line. Actually command line overrides everything else. -oneshot option does not change anything in build process, the only difference it makes is package is not stored in world file. |
Quote:
I have changed my profile to: ../usr/portage/profiles/default-linux/amd64/2007.0 I also had to run "emerge --skipfirst". Without this, sandbox kept asserting itself. I'm now running "emerge kde". So that's 165 packages going to be to be installed. Shingoshi |
You are welcome!
For a desktop you may want .../profiles/default-linux/amd64/2007.0/desktop It really isn't very important, it just gives different USE flag set to begin with. |
All times are GMT -5. The time now is 06:58 AM. |