Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
c compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Jul 25, 2002 9:43 pm    Post subject: c compiler cannot create executables Reply with quote

i recently installed gcc 3.1.1 (ebuild gcc-3.1.1.ebuild merge) from 2.95, changed the symlink to point to default-1.0-gcc3, and did an emerge -u world

after properly updating binutils, the next packages (ncurses) failed with this:

creating cache ./config.cache
Configuring NCURSES 5.2 ABI 5 (Thu Jul 25 21:43:39 Local time zone must be set--see zic manual page 2002)
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
Configuring for linux-gnu
checking for prefix... /usr
checking for gcc... gcc
checking whether the C compiler (gcc -march=i686 -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 12, Exitcode 1
!!! (no error message)

!!! emerge aborting on /usr/portage/sys-libs/ncurses/ncurses-5.2.20020511-r1.ebuild .

(this also happens on any other package i try to install)

which i find quite worrying, and i suspect is linked to the update of binutils i did beforehand.

Also, when i do an emerge -u world, gcc 3.1-r7 is listed to be 'updated' when i have installed 3.1.1, how do i get it to recognise gcc 3.1.1?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
reverius42
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 166
Location: Tucson, AZ

PostPosted: Thu Jul 25, 2002 9:56 pm    Post subject: Re: c compiler cannot create executables Reply with quote

TheCoop wrote:
checking whether the C compiler (gcc -march=i686 -O3 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.


Okay, try this. Type into a file (hello.c):

Code:
#include <stdio.h>
int main ()
{
printf("Hello World!\n");
}


And then type:

Code:
[user@host /home/user]# gcc hello.c -o hello


If that works, then type:

Code:
[user@host /home/user]# gcc -march=i686 -O3 hello.c -o hello


If that works, then type:

Code:
[user@host /home/user]# gcc -march=i686 -O3 -pipe hello.c -o hello


And if that works... then I have no idea why emerge isn't working :)
_________________
Even a stopped clock gives the right time twice a day.
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Jul 25, 2002 10:07 pm    Post subject: Reply with quote

at the forst gcc compile it gives:

Code:

pooter tmp # gcc hello.c -o hello
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/../../../../i686-pc-linux-gnu/bin/as: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory


libgcc_s.so.1? where do i get that and where do i put it?

[EDIT] Ive found libgcc_s.so.1 (in one of the openoffice dirs...), where do i put it and how do i know its the right version?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
reverius42
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 166
Location: Tucson, AZ

PostPosted: Thu Jul 25, 2002 11:55 pm    Post subject: libgcc_s.so.1 Reply with quote

TheCoop wrote:
at the forst gcc compile it gives:

Code:

pooter tmp # gcc hello.c -o hello
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/../../../../i686-pc-linux-gnu/bin/as: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory


libgcc_s.so.1? where do i get that and where do i put it?

[EDIT] Ive found libgcc_s.so.1 (in one of the openoffice dirs...), where do i put it and how do i know its the right version?


Umm... you don't know it's the right version until you try it. :P

As for where you put it... anything in your lib path is ok... /usr/local/lib is probably good, but /usr/lib is more likely to work.
_________________
Even a stopped clock gives the right time twice a day.
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Jul 26, 2002 6:57 am    Post subject: Reply with quote

fixed thanks :)

what about the unmasking of gcc 3.1.1 so emerge -u world doesnt install 3.1 over the top of it?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
reverius42
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 166
Location: Tucson, AZ

PostPosted: Fri Jul 26, 2002 8:10 pm    Post subject: unmasking gcc 3.1.1 Reply with quote

TheCoop wrote:
fixed thanks :)

what about the unmasking of gcc 3.1.1 so emerge -u world doesnt install 3.1 over the top of it?


Hmm... i'm not sure you to do that. There's a "package.mask" file somewhere... that's all I know about masking stuff.

Glad you got it working. :)

[EDIT]
I think I meant "i'm not sure you need to do that" up there. Not sure. :P
[/EDIT]
_________________
Even a stopped clock gives the right time twice a day.


Last edited by reverius42 on Mon Aug 19, 2002 4:49 am; edited 1 time in total
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Aug 19, 2002 2:12 am    Post subject: Reply with quote

GCC3 to OTG, hosed compilation environment.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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