This is a discussion on emerge world/system broke gcc within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> i started an 'emerge -U world' after not having run it for quite some time. part of the way ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| i started an 'emerge -U world' after not having run it for quite some time. part of the way through, emerge died trying to install gawk (i think). after this happened, i started getting errors relating to libstdc++.so.5 not being found. i got this problem fixed by creating a link to the new dir to match the '/etc/ld.so.conf' listing. i could have just added another line, but i didn't. but now, when trying to run 'emerge -U system', the first package fails with : checking for C compiler default output... configure: error: C compiler cannot create executables See `config.log' for more details. !!! ERROR: sys-apps/gawk-3.1.3-r1 failed. !!! Function src_compile, Line 42, Exitcode 77 !!! (no error message) and when i try to 'emerge gcc', i get : Created "Makefile" in /var/tmp/portage/gcc-3.3.2-r5/work/build using "mt-frag" Could not run/locate "gcc" *** The command '/usr/bin/gcc -o conftest -O2 -mcpu=i686 -pipe conftest.c' failed. *** You must set the environment variable CC to a working compiler. !!! ERROR: sys-devel/gcc-3.3.2-r5 failed. !!! Function src_compile, Line 405, Exitcode 1 !!! (no error message) 'echo $CC' outputs 'gcc'. i even tried setting CC to '/usr/bin/gcc' and it still didn't work. i'm not able to compile a simple c program. i get : $ gcc -o hello hello.c Could not run/locate "gcc" $ i don't know what else to try. any help on this is greatly appreciated. |
| |||
| downtime null wrote: > i started an 'emerge -U world' after not having run it for quite some time. > part of the way through, emerge died trying to install gawk (i think). after > this happened, i started getting errors relating to libstdc++.so.5 not being > found. i got this problem fixed by creating a link to the new dir to match the > '/etc/ld.so.conf' listing. i could have just added another line, but i didn't. > > but now, when trying to run 'emerge -U system', the first package fails with : > > checking for C compiler default output... configure: error: C compiler cannot create executables > See `config.log' for more details. > > !!! ERROR: sys-apps/gawk-3.1.3-r1 failed. > !!! Function src_compile, Line 42, Exitcode 77 > !!! (no error message) > > and when i try to 'emerge gcc', i get : > > Created "Makefile" in /var/tmp/portage/gcc-3.3.2-r5/work/build using "mt-frag" > Could not run/locate "gcc" > *** The command '/usr/bin/gcc -o conftest -O2 -mcpu=i686 -pipe conftest.c' failed. > *** You must set the environment variable CC to a working compiler. > > !!! ERROR: sys-devel/gcc-3.3.2-r5 failed. > !!! Function src_compile, Line 405, Exitcode 1 > !!! (no error message) > > 'echo $CC' outputs 'gcc'. i even tried setting CC to '/usr/bin/gcc' and it > still didn't work. i'm not able to compile a simple c program. i get : > > $ gcc -o hello hello.c > Could not run/locate "gcc" > $ > > i don't know what else to try. any help on this is greatly appreciated. # etc-update # env-update && source /etc/profile You might also need to # python-updater -- Ben M. ---------------- What are Software Patents for? To protect the small enterprise from bigger companies. What do Software Patents do? In its current form, they protect only companies with big legal departments as they: a.) Patent everything no matter how general b.) Sue everybody. Even if the patent can be argued invalid, small companies can ill-afford the typical $500k cost of a law-suit (not to mention years of harassment). Don't let them take away your right to program whatever you like. Make a stand on Software Patents before its too late. Read about the ongoing battle at http://swpat.ffii.org/ ---------------- |
| |||
| On 2004-02-25, Ben Measures <saint_abroadremove@removehotmail.com> wrote: > downtime null wrote: >> i started an 'emerge -U world' after not having run it for quite some time. >> part of the way through, emerge died trying to install gawk (i think). after >> this happened, i started getting errors relating to libstdc++.so.5 not being >> found. i got this problem fixed by creating a link to the new dir to match the >> '/etc/ld.so.conf' listing. i could have just added another line, but i didn't. >> >> but now, when trying to run 'emerge -U system', the first package fails with : >> >> checking for C compiler default output... configure: error: C compiler cannot create executables >> See `config.log' for more details. >> >> !!! ERROR: sys-apps/gawk-3.1.3-r1 failed. >> !!! Function src_compile, Line 42, Exitcode 77 >> !!! (no error message) >> >> and when i try to 'emerge gcc', i get : >> >> Created "Makefile" in /var/tmp/portage/gcc-3.3.2-r5/work/build using "mt-frag" >> Could not run/locate "gcc" >> *** The command '/usr/bin/gcc -o conftest -O2 -mcpu=i686 -pipe conftest.c' failed. >> *** You must set the environment variable CC to a working compiler. >> >> !!! ERROR: sys-devel/gcc-3.3.2-r5 failed. >> !!! Function src_compile, Line 405, Exitcode 1 >> !!! (no error message) >> >> 'echo $CC' outputs 'gcc'. i even tried setting CC to '/usr/bin/gcc' and it >> still didn't work. i'm not able to compile a simple c program. i get : >> >> $ gcc -o hello hello.c >> Could not run/locate "gcc" >> $ >> >> i don't know what else to try. any help on this is greatly appreciated. > > # etc-update > # env-update && source /etc/profile > > You might also need to > # python-updater > i ran the first 2 commands and i still get the same error. i don't have python-updater on my system. |
| |||
| downtime null <downtime@do.not.spam.this.address.downtimenull.co m> writes: > ...when trying to run 'emerge -U system', the first package fails with : > > checking for C compiler default output... configure: error: C compiler cannot create executables > See `config.log' for more details... Yechh! I have also seen this, but unfortunately I cannot remember what the problem was. Can you look through config.log for any messages connected with the compiler. Be aware that the config.log may contain many harmless error messages about unrelated things. The 'configure' program is always in charge of finding which things 'work' and which things 'don't work', so expect many error messages which have nothing to do with your problem. |
| |||
| downtime null wrote: > i started an 'emerge -U world' after not having run it for quite some > time. part of the way through, emerge died trying to install gawk (i > think). after this happened, i started getting errors relating to > libstdc++.so.5 not being found. i got this problem fixed by creating a > link to the new dir to match the '/etc/ld.so.conf' listing. i could > have just added another line, but i didn't. > > but now, when trying to run 'emerge -U system', the first package > fails with : > > checking for C compiler default output... configure: error: C compiler > cannot create executables See `config.log' for more details. as root, run the command ldconfig and see if it helps. This was a problem with a recent update of gcc. -- Leif Biberg Kristensen http://solumslekt.org/ Validare necesse est |
| |||
| On 2004-02-25, Leif B. Kristensen <junkmail@solumslekt.org> wrote: > downtime null wrote: > >> i started an 'emerge -U world' after not having run it for quite some >> time. part of the way through, emerge died trying to install gawk (i >> think). after this happened, i started getting errors relating to >> libstdc++.so.5 not being found. i got this problem fixed by creating a >> link to the new dir to match the '/etc/ld.so.conf' listing. i could >> have just added another line, but i didn't. >> >> but now, when trying to run 'emerge -U system', the first package >> fails with : >> >> checking for C compiler default output... configure: error: C compiler >> cannot create executables See `config.log' for more details. > > as root, run the command ldconfig and see if it helps. > > This was a problem with a recent update of gcc. running ldconfig doesn't help. where would i find the config.log? |
| |||
| downtime null <downtime@do.not.spam.this.address.downtimenull.co m> writes: > On 2004-02-25, Leif B. Kristensen <junkmail@solumslekt.org> wrote: > > downtime null wrote: > > > >> i started an 'emerge -U world' after not having run it for quite some > >> time. part of the way through, emerge died trying to install gawk (i > >> think). after this happened, i started getting errors relating to > >> libstdc++.so.5 not being found. i got this problem fixed by creating a > >> link to the new dir to match the '/etc/ld.so.conf' listing. i could > >> have just added another line, but i didn't. > >> > >> but now, when trying to run 'emerge -U system', the first package > >> fails with : > >> > >> checking for C compiler default output... configure: error: C compiler > >> cannot create executables See `config.log' for more details. > > > > as root, run the command ldconfig and see if it helps. > > > > This was a problem with a recent update of gcc. > > running ldconfig doesn't help. > > where would i find the config.log? It varies depending on the operating system. For gentoo, look in: /var/tmp/portage/<packagename>/work/<packagename>/ If in doubt, you can do this: # find /var/tmp/portage -name config.log and just look at any files that show up. |
| |||
| On 2004-02-26, walt <wa1ter@hotmail.com> wrote: > downtime null <downtime@do.not.spam.this.address.downtimenull.co m> writes: > >> On 2004-02-25, Leif B. Kristensen <junkmail@solumslekt.org> wrote: >> > downtime null wrote: >> > >> >> i started an 'emerge -U world' after not having run it for quite some >> >> time. part of the way through, emerge died trying to install gawk (i >> >> think). after this happened, i started getting errors relating to >> >> libstdc++.so.5 not being found. i got this problem fixed by creating a >> >> link to the new dir to match the '/etc/ld.so.conf' listing. i could >> >> have just added another line, but i didn't. >> >> >> >> but now, when trying to run 'emerge -U system', the first package >> >> fails with : >> >> >> >> checking for C compiler default output... configure: error: C compiler >> >> cannot create executables See `config.log' for more details. >> > >> > as root, run the command ldconfig and see if it helps. >> > >> > This was a problem with a recent update of gcc. >> >> running ldconfig doesn't help. >> >> where would i find the config.log? > > It varies depending on the operating system. For gentoo, look in: > /var/tmp/portage/<packagename>/work/<packagename>/ > > If in doubt, you can do this: > > # find /var/tmp/portage -name config.log > > and just look at any files that show up. okay. here's the problem... but i can't imagine what the solution might be. (from config.log) configure:2158: gcc --version </dev/null >&5 Could not run/locate "gcc" configure:2161: $? = 1 configure:2163: gcc -v </dev/null >&5 Could not run/locate "gcc" configure:2166: $? = 1 configure:2168: gcc -V </dev/null >&5 Could not run/locate "gcc" configure:2171: $? = 1 configure:2195: checking for C compiler default output configure:2198: gcc -O2 -mcpu=i686 -pipe conftest.c >&5 Could not run/locate "gcc" configure:2201: $? = 1 configure: failed program was: | #line 2174 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "GNU Awk" | #define PACKAGE_TARNAME "gawk" | #define PACKAGE_VERSION "3.1.3" | #define PACKAGE_STRING "GNU Awk 3.1.3" | #define PACKAGE_BUGREPORT "bug-gawk@gnu.org" | #define PACKAGE "gawk" | #define VERSION "3.1.3" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2240: error: C compiler cannot create executables See `config.log' for more details. |
| |||
| On 2004-02-26, walt <wa1ter@hotmail.com> wrote: > downtime null <downtime@do.not.spam.this.address.downtimenull.co m> writes: > >> On 2004-02-25, Leif B. Kristensen <junkmail@solumslekt.org> wrote: >> > downtime null wrote: >> > >> >> i started an 'emerge -U world' after not having run it for quite some >> >> time. part of the way through, emerge died trying to install gawk (i >> >> think). after this happened, i started getting errors relating to >> >> libstdc++.so.5 not being found. i got this problem fixed by creating a >> >> link to the new dir to match the '/etc/ld.so.conf' listing. i could >> >> have just added another line, but i didn't. >> >> >> >> but now, when trying to run 'emerge -U system', the first package >> >> fails with : >> >> >> >> checking for C compiler default output... configure: error: C compiler >> >> cannot create executables See `config.log' for more details. >> > >> > as root, run the command ldconfig and see if it helps. >> > >> > This was a problem with a recent update of gcc. >> >> running ldconfig doesn't help. >> >> where would i find the config.log? > > It varies depending on the operating system. For gentoo, look in: > /var/tmp/portage/<packagename>/work/<packagename>/ > > If in doubt, you can do this: > > # find /var/tmp/portage -name config.log > > and just look at any files that show up. i just made a rather interesting observation. i compared the listing for gcc on this computer (Gentoo; the one i'm having trouble with) with the listing on another computer (RedHat; gcc works). Gentoo : # ls -l /usr/bin/gcc -rwxr-xr-x 1 root root 7204 Dec 21 14:18 /usr/bin/gcc RedHat : # ls -l /usr/bin/gcc -rwxr-xr-x 2 root root 80644 Feb 25 2003 /usr/bin/gcc you may notice a slight difference in size (~73k!). i think this may very well be the root of my troubles, but how do i fix it? i can't reinstall gcc without a working install of gcc! |
| ||||
| So anyway, it was like, 10:04 CET Feb 27 2004, you know? Oh, and, yeah, downtime null was all like, "Dude, > configure:2158: gcc --version </dev/null >&5 > Could not run/locate "gcc" Have you tried running gcc-config? I'm assuming your recent update included a new glibc as well as gcc? This is always a dicey operation, and should be done in small steps. -- Time flies like an arrow, fruit flies like a banana. Perth ---> * 10:19:02 up 5 days, 16:55, 1 user, load average: 2.27, 2.12, 2.05 $ cat /dev/bollocks "echo y | format c:" Registered Linux user #261729 facilitate distributed functionalities |