View previous topic :: View next topic |
Author |
Message |
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Thu Jul 25, 2002 9:43 pm Post subject: c compiler cannot create executables |
|
|
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 |
|
|
reverius42 Apprentice
Joined: 16 Jul 2002 Posts: 166 Location: Tucson, AZ
|
Posted: Thu Jul 25, 2002 9:56 pm Post subject: Re: c compiler cannot create executables |
|
|
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 |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Thu Jul 25, 2002 10:07 pm Post subject: |
|
|
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 |
|
|
reverius42 Apprentice
Joined: 16 Jul 2002 Posts: 166 Location: Tucson, AZ
|
Posted: Thu Jul 25, 2002 11:55 pm Post subject: libgcc_s.so.1 |
|
|
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.
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 |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Jul 26, 2002 6:57 am Post subject: |
|
|
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 |
|
|
reverius42 Apprentice
Joined: 16 Jul 2002 Posts: 166 Location: Tucson, AZ
|
Posted: Fri Jul 26, 2002 8:10 pm Post subject: unmasking gcc 3.1.1 |
|
|
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.
[/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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Mon Aug 19, 2002 2:12 am Post subject: |
|
|
GCC3 to OTG, hosed compilation environment. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|