Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gcc problems and portage
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
rokstar83
Guru
Guru


Joined: 09 Apr 2005
Posts: 423
Location: MD

PostPosted: Sat Apr 09, 2005 6:35 am    Post subject: Gcc problems and portage Reply with quote

I'm having a lot of problems and they all seem to come back to gcc. I'm currently using gcc-3.3.5-r1. Ever since updating to whatever the last revision was i've been unable to emerge anything. The error that results from say...
emerge binutils is :
checking whether the C compiler (gcc -O2 -mcpu=i686 ) works... no
configure: error: installation or configuration problem: C compiler cannot creat

I've searched the fourms and google looking for answers and usually this was cause by problems in make.conf but i've looked at my make.conf till my eyes have started to burn and I can't find anything wrong with them, especially since I didn't change anything after emerging 3.3.5. I can only imagine that there is some problem with PATH variables but i can't figure out what it is. Does any one know what the problem is or know a thread that already exists that they can point me too?

Here is my make.conf:

CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
USE="-gnome kde X acpi arts avi bzlib imagemagick imap jpeg java mozilla nptl ogg pcmcia perl sockets ssl usb x86 dvd alsa xvid"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
FEATURES="ccache"
MAKEOPTS="-j2"
CCACHE_SIZE="2G"
PORTDIR_OVERLAY=/usr/local/portage

and emerge info:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 1 2005, 00:10:16) ]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r7
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/q mail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm arts avi berkdb bitmap-fonts bzlib crypt cups curl dvd embo ss encode esd fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imap imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurse s nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl png python qt quickti me readline sdl sockets spell ssl svga tcpd tiff truetype truetype-fonts type1-f onts usb x86 xml2 xmms xv xvid zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 09, 2005 1:33 pm    Post subject: Reply with quote

Try
Code:
 fix_libtool_files.sh <old gcc version>
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 09, 2005 1:35 pm    Post subject: Reply with quote

Also try to use -march instead of -mcpu
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Sat Apr 09, 2005 1:39 pm    Post subject: Re: Gcc problems and portage Reply with quote

rokstar83 wrote:
The error that results from say...
emerge binutils is :
checking whether the C compiler (gcc -O2 -mcpu=i686 ) works... no
configure: error: installation or configuration problem: C compiler cannot creat

If you go to the build folder for binutils, normally something like /var/tmp/portage/binutils-2.15.92.0.2-r7/work/ and look for config.log in the build directory. Please post the output from that file showing the error.
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
mtz767
n00b
n00b


Joined: 25 Nov 2004
Posts: 2
Location: hamburg

PostPosted: Sat Apr 09, 2005 2:00 pm    Post subject: Reply with quote

I had the same problem, after updating portage.

then I tried

# binutils-config --x86

and now it works :D
Back to top
View user's profile Send private message
rokstar83
Guru
Guru


Joined: 09 Apr 2005
Posts: 423
Location: MD

PostPosted: Sat Apr 09, 2005 8:27 pm    Post subject: Thanks Reply with quote

Thank you everyone, you are a credit to the cause. The problem is fixed and it looks like everything is compiling again. It looks like it was either the -march switch that fixed it. I'm more and more amazed at the speed and resources available in fixing problems like this. This is the reason more people should make the switch.
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