I think I have gcc problem?

Anything that pertains to Portage

Moderator: Moderators

I think I have gcc problem?

Postby Unobtanium » Fri Aug 24, 2007 16:15

When trying to emerge I am getting a constant common error message in /var/tmp/portage/.....log
Code: Select all
checking for C compiler default output... configure: error: C compiler cannot create executables

I have tried gcc-config 1, revdep-rebuild, etc-update, browsing the forums and the Gentoo GCC wiki .... none seem to help me - can you?

EDIT /var/log/portage/elog http://paste.uni.cc/17001
A word to the wise ain't necessary -- it's the stupid ones that need the advice.
User avatar
Unobtanium
Young Hen
 
Posts: 38
Joined: Sat Nov 18, 2006 3:32
Location: England UK

Re: I think I have gcc problem?

Postby DontPanic » Fri Aug 24, 2007 17:38

Check out this FAQ entry at the Gentoo forum.

http://forums.gentoo.org/viewtopic-p-2084156.html?sid=aa447c99ed4582777d649a37310e0210

If this doesn't solve your problem, post your /etc/make.conf.
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU E6750@ 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
User avatar
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: I think I have gcc problem?

Postby Unobtanium » Sat Aug 25, 2007 12:45

Thanks for the response :D
Still seem to have a problem. My cflags were not set correctly - now they are.
I have performed the following
Code: Select all
export CFLAGS="-march=nocona -O2 -pipe" 
env-update && source /etc/profile
revdep-rebuild   

Revdep-rebuild is not too happy it is reporting
Code: Select all
localhost ~ # revdep-rebuild

WARNING
WARNING *** This is a rewritten version of revdep-rebuild ***
WARNING
WARNING
WARNING Please report any bugs to http://bugs.gentoo.org
WARNING
WARNING In the bug report please include the following information:
WARNING     emerge --info
WARNING     A copy of the output from the revdep-rebuild command
WARNING     A copy of the .revdep-rebuild* files as an attachment
WARNING
WARNING If the bug is severe, the previous version of revdep-rebuild is located
WARNING at: /usr/lib/gentoolkit/bin/revdep-rebuild
WARNING
WARNING
WARNING *** This is a rewritten version of revdep-rebuild ***
WARNING

/usr/bin/revdep-rebuild: line 310: /etc/init.d/functions.sh: No such file or directory
/usr/bin/revdep-rebuild: line 312: einfo: command not found

/usr/bin/revdep-rebuild: line 456: einfo: command not found
/usr/bin/revdep-rebuild: line 457: einfo: command not found
/usr/bin/revdep-rebuild: line 458: einfo: command not found

/usr/bin/revdep-rebuild: line 461: einfo: command not found
/usr/bin/revdep-rebuild: line 463: einfo: command not found

/usr/bin/revdep-rebuild: line 485: einfo: command not found
/usr/bin/revdep-rebuild: line 487: einfo: command not found

/usr/bin/revdep-rebuild: line 516: einfo: command not found
/usr/bin/revdep-rebuild: line 518: einfo: command not found

/usr/bin/revdep-rebuild: line 615: einfo: command not found
/usr/bin/revdep-rebuild: line 617: einfo: command not found

/usr/bin/revdep-rebuild: line 653: einfo: command not found
/usr/bin/revdep-rebuild: line 655: einfo: command not found

/usr/bin/revdep-rebuild: line 665: einfo: command not found
/usr/bin/revdep-rebuild: line 667: einfo: command not found

/usr/bin/revdep-rebuild: line 706: einfo: command not found
/usr/bin/revdep-rebuild: line 708: einfo: command not found
/usr/bin/revdep-rebuild: line 737: einfo: command not found

/usr/bin/revdep-rebuild: line 772: einfo: command not found
emerge --oneshot  =net-p2p/amule-2.2.0_pre20070815
..........
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-p2p/amule-2.2.0_pre20070815 to /
 * aMule-CVS-20070815.tar.bz2 MD5 ;-) ...                                                                                                             [ ok ]
 * aMule-CVS-20070815.tar.bz2 RMD160 ;-) ...                                                                                                          [ ok ]
 * aMule-CVS-20070815.tar.bz2 SHA1 ;-) ...                                                                                                            [ ok ]
 * aMule-CVS-20070815.tar.bz2 SHA256 ;-) ...                                                                                                          [ ok ]
 * aMule-CVS-20070815.tar.bz2 size ;-) ...                                                                                                            [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking aMule-CVS-20070815.tar.bz2 ;-) ...                                                                                                        [ ok ]
 * wxGTK with unicode and without X support will be used
!!! set-wxconfig: Error:  Can't find normal or debug version:
!!! set-wxconfig:         /usr/lib64/wx/config/base-unicode-release-2.6 not found
!!! set-wxconfig:         /usr/lib64/wx/config/base-unicode-debug-2.6 not found
/usr/bin/revdep-rebuild: line 791: ewarn: command not found
/usr/bin/revdep-rebuild: line 792: ewarn: command not found
/usr/bin/revdep-rebuild: line 793: ewarn: command not found
/usr/bin/revdep-rebuild: line 794: einfo: command not found
/usr/bin/revdep-rebuild: line 795: einfo: command not found
/usr/bin/revdep-rebuild: line 796: einfo: command not found
/usr/bin/revdep-rebuild: line 797: einfo: command not found
/usr/bin/revdep-rebuild: line 798: einfo: command not found
/usr/bin/revdep-rebuild: line 799: einfo: command not found
/usr/bin/revdep-rebuild: line 800: einfo: command not found
/usr/bin/revdep-rebuild: line 801: einfo: command not found
/usr/bin/revdep-rebuild: line 802: einfo: command not found
/usr/bin/revdep-rebuild: line 803: einfo: command not found


Here is my make.conf just in case
Code: Select all
USE="mp3 divx4linux dvb dvd dvdread live mpeg nvidia jpeg truetype v4l v4l2 xv xvid \
multilib gnutls arts cups ppds foomatic-db alsa gimpprint freetype gnome X gtk2 \
unicode moznocompose moznoirc moznomail kde qt livecd samba xinerama xine theora \
kdeenablefinal wifi hal ieee1394 oggvorbis lm_sensors logitech-mouse \
zeroconf artswrappersuid jack nptl nptlonly rdesktop dvdr css gphoto2 openexr pcmcia \
speex jpeg2k povray scanner musicbrainz accessibility audiofile \
exif xscreensaver ffmpeg vcd sndfile musepack asterisk mbrola pam_chroot pam_timestamp \
pwdb gnokii pda sms bluetooth irda kig-scripting speedo browserplugin nsplugin ldap \
kerberos firefox dga aac dts xvmc dbus hal dvi on-the-fly-crypt dri xprint acpi \
symlink ada ruby perforce cjk fat hfs jfs ntfs reiser4 xfs reiserfs \
joystick skins cdda real shout stream a52 wxwindows vlm lirc libcaca remote \
stats lcd unichrome 7zip commercial mozsvg canvas xml2 glut java gcj glitz \
svg avahi ogg vorbis aalib flac gdbm mikmod timidity kdgraphics dlloader exscalibar ipod visualization \
mono cdr nntp cairo djvu nautilus evo ole pdf xml ladspa soundtouch \
bzip2 udev mad fuse rtsp tiff kdehiddenvisibility dvi usb kipi aiglx musicbrainz 3dfx pulseaudio \
x264 dv lame mp3rtp udev cdr beagle dvi djvu libnotify bzip2 aalib startup-notification nsplugin jingle \
gsm dbox2"
CFLAGS="-march=nocona -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LINGUAS="en"
PORTAGE_NICENESS="8"
ACCEPT_KEYWORDS="~amd64"
MAKEOPTS="-s -j3"
CONFIG_PROTECT="/usr/kde/3.5/share/config/kdm /etc"
FEATURES="parallel-fetch"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="evdev keyboard mouse"
LIRC_DEVICES="audio audio_alsa"
source /usr/portage/local/layman/make.conf

I don't think I have exported my cflags correctly as I haven't told them where to go? Can anyone tell me the correct path please :oops:
I am about to try running the older revdep-rebuild to see if that is any better?

EDIT #2 Re-installed system - that should sort things out :x
A word to the wise ain't necessary -- it's the stupid ones that need the advice.
User avatar
Unobtanium
Young Hen
 
Posts: 38
Joined: Sat Nov 18, 2006 3:32
Location: England UK

Re: I think I have gcc problem?

Postby DontPanic » Sat Aug 25, 2007 14:58

OK, I'll wait and see how your re-install goes.

Post a reply if you are still having the same problem (or if you decide not to reinstall and try to fix it)
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU E6750@ 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
User avatar
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: I think I have gcc problem?

Postby Unobtanium » Sat Aug 25, 2007 16:51

I found this on the Sabayon forum - I've re-installed now I'll follow it carefully :)

turquoise wrote:Yes, but as wolfden said, you'd better be careful about that. For example, if you just installed Sabayon 3.4, there might be a little problem: if you do it before doing an emerge --sync, binutils will refuse to compile, and if you do an emerge --sync, there is a gcc update, which is a huge risk if done at the same time as a CHOST change. So upgrade gcc first following the procedure found here. You probably won't need to do the emerge -e system or the emerge -e world since it's also part of the process of the CHOST change. Once it's done, edit your make.conf to change your CHOST and follow the procedure from the official Gentoo doc.

That's what I experienced with 3.4a anyway, and I think it's still the case with 3.4e.
A word to the wise ain't necessary -- it's the stupid ones that need the advice.
User avatar
Unobtanium
Young Hen
 
Posts: 38
Joined: Sat Nov 18, 2006 3:32
Location: England UK

Re: I think I have gcc problem?

Postby DontPanic » Sat Aug 25, 2007 17:14

I haven't played around with the 64 bit versions, but the default CHOST setting should be appropriately set depending on whether you installed the 64 bit version or the x86 version.

If you changed CHOST, that might explain the problems you were seeing.

Wolfden has some good guides for upgrading, so follow those as closely as you can, and you should have less trouble.
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU E6750@ 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
User avatar
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests