Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compiling with gcc3.1 fails recently though it worked before
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
elridion
n00b
n00b


Joined: 30 Jun 2002
Posts: 7
Location: russia

PostPosted: Sun Jun 30, 2002 11:48 am    Post subject: compiling with gcc3.1 fails recently though it worked before Reply with quote

Today I i tried to emerge various packeges but they all failed with that error:
Code:

checking whether the C compiler (cc -D_GNU_SOURCE ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 1
!!! (no error message)

!!! emerge aborting on  /usr/portage/sys-libs/db/db-3.2.9.ebuild .

I searched the topic but I didn't find anything related. Reemerging gcc fails with the same error. In the case above he uses cc .. but its exactly the same with gcc:
Code:

checking whether the C compiler (gcc -march=athlon-tbird -fomit-frame-pointer -funroll-loops -m3dnow -mmmx -O3 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 2, Exitcode 1
!!! (no error message)

!!! emerge aborting on  /usr/portage/net-ftp/ncftp/ncftp-3.1.3.ebuild .


Just the same error (i guess) in a different style ,) :
Code:

>>> Source unpacked.
collect2: ld terminated with signal 11 [Segmentation fault], core dumped

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 5, Exitcode 1
!!! cant compile runscript.c

!!! emerge aborting on  /usr/portage/sys-apps/baselayout/baselayout-1.7.9-r1.ebuild .


I was thinking whether the CPU-flags are responsible but using -march=i486 -O3 -pipe instead doesn't work out as well.

What does "emerge --clean" do by the way.. I was wondering if my mis-typing of "emerge clean" damaged my gcc. That was one thing I did before the error occured. If that is responsible.. any ideas how to fix?
Back to top
View user's profile Send private message
alec
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 270
Location: Here

PostPosted: Sun Jun 30, 2002 12:58 pm    Post subject: Reply with quote

The reason I switched to gcc3 was because I did an 'emerge clean' and then couldn't do much of anything on my computer.
Back to top
View user's profile Send private message
elridion
n00b
n00b


Joined: 30 Jun 2002
Posts: 7
Location: russia

PostPosted: Sun Jun 30, 2002 2:44 pm    Post subject: Reply with quote

well.. actually after i did an "emerge clean" all my system works well.. but compiling with gcc fails. The rest is up and running.
Back to top
View user's profile Send private message
elridion
n00b
n00b


Joined: 30 Jun 2002
Posts: 7
Location: russia

PostPosted: Sun Jun 30, 2002 2:55 pm    Post subject: Oh my! Reply with quote

Well, people, it seems I found the solution even though I don't like these windows repair-techniques. I rebootet the system and afterwards compiling works well again ( with ncftp so far). I guess the rest will work fine as well. Otherwise I will post in this thread again.
Back to top
View user's profile Send private message
petecool
n00b
n00b


Joined: 17 Apr 2002
Posts: 11
Location: Laval, Québec, Canada

PostPosted: Mon Jul 01, 2002 1:59 am    Post subject: Reply with quote

I had that a while ago... I simply removed some optimisation flags (don't remember if I was using -O2 or -O3 after reducing), and compliation worked again. I haven't looked around for the cause of the problem, though.
Back to top
View user's profile Send private message
elridion
n00b
n00b


Joined: 30 Jun 2002
Posts: 7
Location: russia

PostPosted: Mon Jul 01, 2002 7:08 am    Post subject: Reply with quote

hmm.. all that is quite strange.. Rebooting seems to become a powerful tool to solve compile problems.
I found another bug compiling mplayer. First it doesnt compile due to an error (dont remember) but after rebooting it workes fine again. Though all other packages I tried to emerge before I rebooted didnt fail during compiling.
Back to top
View user's profile Send private message
elridion
n00b
n00b


Joined: 30 Jun 2002
Posts: 7
Location: russia

PostPosted: Mon Jul 01, 2002 7:09 am    Post subject: Reply with quote

petecool wrote:
I had that a while ago... I simply removed some optimisation flags (don't remember if I was using -O2 or -O3 after reducing), and compliation worked again. I haven't looked around for the cause of the problem, though.


Well.. as I said in my first post I did try that with less flags.. even with i486-flags but that didnt work out as well.
The solution (beside rebooting ,] ) must be something else...
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