Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Portage Fails [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cornish
n00b
n00b


Joined: 02 Oct 2007
Posts: 27

PostPosted: Mon May 12, 2008 11:09 am    Post subject: Emerge Portage Fails [solved] Reply with quote

Please help, banging my head on the desk trying to get this to work
Gentoo 2007.1 AMD 64 Bit

emerge portage

Quote:

Calculating dependencies... done!

>>> Emerging (1 of 3) 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.sub with /usr/share/gnuconfig/config.sub
* econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess
../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 3391: 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'.


Last edited by cornish on Mon May 12, 2008 1:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 11:11 am    Post subject: Reply with quote

Quote:
* If configure fails with a 'cannot run C compiled programs' error, try this:
* FEATURES=-sandbox emerge sandbox


quote from error message
Back to top
View user's profile Send private message
cornish
n00b
n00b


Joined: 02 Oct 2007
Posts: 27

PostPosted: Mon May 12, 2008 11:17 am    Post subject: Reply with quote

Tried that all ready, thanks though

Quote:
FEATURES=-sandbox emerge sandbox
Calculating dependencies... done!

>>> 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.sub with /usr/share/gnuconfig/config.sub
* econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess
../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 3393: 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'.
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 11:23 am    Post subject: Reply with quote

please attach result of "emerge --info"
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Mon May 12, 2008 11:25 am    Post subject: Reply with quote

Do you have any "experimental" CFLAGS or LDFLAGS in your /etc/make.conf?
Sometimes that will break some ebuilds.
Back to top
View user's profile Send private message
cornish
n00b
n00b


Joined: 02 Oct 2007
Posts: 27

PostPosted: Mon May 12, 2008 11:26 am    Post subject: Reply with quote

Quote:
System uname: 2.6.24-gentoo-r7 x86_64 Intel(R) Xeon(TM) CPU 3.60GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 12 May 2008 10:35:01 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb cli cracklib crypt dri fortran gpm iconv isdnlog jpeg midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre pppd python readline reflection session spl sse sse2 ssl tcpd unicode urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Back to top
View user's profile Send private message
cornish
n00b
n00b


Joined: 02 Oct 2007
Posts: 27

PostPosted: Mon May 12, 2008 11:27 am    Post subject: Reply with quote

make.conf

# 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="-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"

MAKEOPTS="-j5"
USE="-mysql -postgres -perl ssl -apache2 -curl -gd -gdbm jpeg -pdflib -png -tiff -freetds -X -gnome -gtk -gtk2 -kde -oss -alsa -qt -truetype -ipv6 -cups -sdl urandom"
ACCEPT_KEYWORDS=~amd64
FEATURES="-sandbox"
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 11:39 am    Post subject: Reply with quote

notHerbert wrote:
Do you have any "experimental" CFLAGS or LDFLAGS in your /etc/make.conf?
Sometimes that will break some ebuilds.


informations from emerge info will show it all

cornish: try commenting out MAKE_OPTS and ACCEPT_KEYWORDS (second one is the one which enables you ALL not-tested AND not-working packages on amd64, you shouldn't use it in make.conf). This sandbox ebuild should work on amd64 though.

If it won't work, please attach this file: /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4929

PostPosted: Mon May 12, 2008 12:21 pm    Post subject: Reply with quote

Code:
ACCEPT_KEYWORDS="amd64 ~amd64"


this looks odd to my, why is that? mine has only amd64 in it.
moreover, you cflags is missing the -march option
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 12:23 pm    Post subject: Reply with quote

DaggyStyle wrote:
Code:
ACCEPT_KEYWORDS="amd64 ~amd64"


this looks odd to my, why is that? mine has only amd64 in it.


his make.conf have ACCEPT_KEYWORDS="~amd64" which is concated with profile ACCEPT_KEYWORDS="amd64" giving this one
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4929

PostPosted: Mon May 12, 2008 12:23 pm    Post subject: Reply with quote

migol wrote:
DaggyStyle wrote:
Code:
ACCEPT_KEYWORDS="amd64 ~amd64"


this looks odd to my, why is that? mine has only amd64 in it.


his make.conf have ACCEPT_KEYWORDS="~amd64" which is concated with profile ACCEPT_KEYWORDS="amd64" giving this one


shouldn't it show then only ~amd64?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
easy target
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2008
Posts: 134

PostPosted: Mon May 12, 2008 12:27 pm    Post subject: Reply with quote

Have you updated gcc recently? Which version of gcc are you using?
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 12:34 pm    Post subject: Reply with quote

DaggyStyle wrote:
migol wrote:
DaggyStyle wrote:
Code:
ACCEPT_KEYWORDS="amd64 ~amd64"


this looks odd to my, why is that? mine has only amd64 in it.


his make.conf have ACCEPT_KEYWORDS="~amd64" which is concated with profile ACCEPT_KEYWORDS="amd64" giving this one


shouldn't it show then only ~amd64?


nope, because this would mean he wants only unstable packages.
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2460
Location: Polska / Lenkija

PostPosted: Mon May 12, 2008 1:07 pm    Post subject: Reply with quote

cornish wrote:
Code:
checking whether the C compiler works... configure: error: cannot run C compiled programs.


Do you have CONFIG_IA32_EMULATION=y in .config?
Back to top
View user's profile Send private message
cornish
n00b
n00b


Joined: 02 Oct 2007
Posts: 27

PostPosted: Mon May 12, 2008 1:14 pm    Post subject: Reply with quote

No I dont have that in my make.conf should I?


GCC version is 4.1.1

I have also done the changes to the make.conf but no joy
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 1:15 pm    Post subject: Reply with quote

cornish wrote:
No I dont have that in my make.conf should I?


GCC version is 4.1.1

I have also done the changes to the make.conf but no joy


he meant .config file of your installed kernel, not make.conf
Back to top
View user's profile Send private message
cornish
n00b
n00b


Joined: 02 Oct 2007
Posts: 27

PostPosted: Mon May 12, 2008 1:21 pm    Post subject: Reply with quote

I meant .config as well, I've justed added that and recompiling now, man its hot today
Back to top
View user's profile Send private message
cornish
n00b
n00b


Joined: 02 Oct 2007
Posts: 27

PostPosted: Mon May 12, 2008 1:31 pm    Post subject: Reply with quote

YES FINALLY AND THAT FIXED MY PREVIOUS JAVA PROBLEM AS WELL



:D :D :D :D :D :D :D :D :D

Sorry needed to shout


Last edited by cornish on Mon May 12, 2008 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 1:32 pm    Post subject: Reply with quote

cornish wrote:
YES FINALLY AND THAT FIXED MY PREVIOUS JAVA PROBLEM



:D :D :D :D :D :D :D :D :D

Sorry needed to shout


np. change the topic to include "[solved]"
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4929

PostPosted: Mon May 12, 2008 2:47 pm    Post subject: Reply with quote

still there is something that I dont understand, his make.conf is missing the -march tag, from what I understand, omitting this tag causes alot of problems.....
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon May 12, 2008 2:54 pm    Post subject: Reply with quote

DaggyStyle wrote:
still there is something that I dont understand, his make.conf is missing the -march tag, from what I understand, omitting this tag causes alot of problems.....


it NEVER causes problems. it just makes compiled software work faster if it is set correctly or not work if bad setting is choosen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum