View previous topic :: View next topic |
Author |
Message |
elridion n00b

Joined: 30 Jun 2002 Posts: 7 Location: russia
|
Posted: Sun Jun 30, 2002 11:48 am Post subject: compiling with gcc3.1 fails recently though it worked before |
|
|
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 |
|
 |
alec Apprentice


Joined: 19 Apr 2002 Posts: 270 Location: Here
|
Posted: Sun Jun 30, 2002 12:58 pm Post subject: |
|
|
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 |
|
 |
elridion n00b

Joined: 30 Jun 2002 Posts: 7 Location: russia
|
Posted: Sun Jun 30, 2002 2:44 pm Post subject: |
|
|
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 |
|
 |
elridion n00b

Joined: 30 Jun 2002 Posts: 7 Location: russia
|
Posted: Sun Jun 30, 2002 2:55 pm Post subject: Oh my! |
|
|
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 |
|
 |
petecool n00b

Joined: 17 Apr 2002 Posts: 11 Location: Laval, Québec, Canada
|
Posted: Mon Jul 01, 2002 1:59 am Post subject: |
|
|
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 |
|
 |
elridion n00b

Joined: 30 Jun 2002 Posts: 7 Location: russia
|
Posted: Mon Jul 01, 2002 7:08 am Post subject: |
|
|
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 |
|
 |
elridion n00b

Joined: 30 Jun 2002 Posts: 7 Location: russia
|
Posted: Mon Jul 01, 2002 7:09 am Post subject: |
|
|
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 |
|
 |
|