View previous topic :: View next topic |
Author |
Message |
incubus_head n00b
Joined: 06 Mar 2003 Posts: 13 Location: joisey
|
Posted: Sat Mar 08, 2003 10:04 pm Post subject: Error during emere -u world |
|
|
When i try to do an emerge -u world right after editing my /etc/make.conf file, i get an error that says:
Quote: | checking whether C compiler (gcc -02 -mcpu=i686 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
ERROR: sys-apps/file-3.41 failed |
What do i do now? |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sat Mar 08, 2003 10:04 pm Post subject: |
|
|
env-update
source /etc/profile _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
incubus_head n00b
Joined: 06 Mar 2003 Posts: 13 Location: joisey
|
Posted: Sat Mar 08, 2003 10:10 pm Post subject: |
|
|
nope, didnt do anything, still getting same error, damn |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sat Mar 08, 2003 10:17 pm Post subject: |
|
|
I think I see it now. It seems you have set CFLAGS="-02 -mcpu=i686 -pipe". Change -02 into -O2 because it's the letter O (Optimization), not the number 0. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
incubus_head n00b
Joined: 06 Mar 2003 Posts: 13 Location: joisey
|
Posted: Sat Mar 08, 2003 10:55 pm Post subject: |
|
|
i tried what you said but it didnt work so i went back to the beginning and followed all the steps in the installation document word for word AGAIN and i got the same error in the same place. Im about to give up on this, i've been trying to get this installed for like 4 days now. |
|
Back to top |
|
|
nadmaximus n00b
Joined: 30 Jan 2003 Posts: 17
|
Posted: Mon Mar 10, 2003 3:42 pm Post subject: I have the same problem now |
|
|
I have the same problem, on an established machine. It just started doing it. I have unmerged ccache to see if that might be it, but no help.
Anybody else in the same boat?
-price |
|
Back to top |
|
|
incubus_head n00b
Joined: 06 Mar 2003 Posts: 13 Location: joisey
|
Posted: Mon Mar 10, 2003 3:51 pm Post subject: |
|
|
I really dont want to give up on Gentoo because im very attracted to the BSD style elements and the USE flags system of kernel compilation. The thing is, this is a new distro and for someone like me who's just getting into linux and wants to learn the innerworkings of the OS, Gentoo is the best way to go but until the installation is a bit more streamlined, i'm gonna have to move over to Slackware.
If i can get passed the installation issues and actually get the damn thing working i'll stick with it, but until then, im gonna have to go elsewhere. |
|
Back to top |
|
|
nadmaximus n00b
Joined: 30 Jan 2003 Posts: 17
|
Posted: Mon Mar 10, 2003 3:54 pm Post subject: Ah, figured mine out |
|
|
Ok, I had a really silly mistake. My CFLAGS line looked like this:
CFLAG="march=pentium3 -O3 -pipe'
There is a missing - in front of the march flag!
I would suggest commenting out your CFLAGS line entirely, and try emerging a single package, see what it does. That is what made me realize that there had to be something wrong with my CFLAGS. If it works with no cflags, it's got to be something wrong there.
-price |
|
Back to top |
|
|
incubus_head n00b
Joined: 06 Mar 2003 Posts: 13 Location: joisey
|
Posted: Mon Mar 10, 2003 4:36 pm Post subject: |
|
|
the first time i tried my CFLAGS were commented out, i uncommented the march CFLAG and input my appropriate processor information but it didnt help. It didnt seem to affect the error i got at all. I have no idea what could cause, or even where the C compiler comes or executes from. |
|
Back to top |
|
|
nadmaximus n00b
Joined: 30 Jan 2003 Posts: 17
|
Posted: Mon Mar 10, 2003 5:41 pm Post subject: This is happening to you during install? |
|
|
If this is happening during install, make sure when you did the 'unset USE' line that you made sure to capitalize 'USE' (as opposed to unset use).
You will not get any error message if you 'unset use', but your USE flag will still be set to the value used for emerging portage initially.
Just a thought, good luck.
-price |
|
Back to top |
|
|
incubus_head n00b
Joined: 06 Mar 2003 Posts: 13 Location: joisey
|
Posted: Mon Mar 10, 2003 8:30 pm Post subject: |
|
|
yep, once again i made sure of that. The last time i went through i was extremely careful in my execution of the steps, i honestly dont think it was anything i did in error, i think there is some type of unseen conflict somewhere going on that i dont know about. |
|
Back to top |
|
|
were4isu n00b
Joined: 26 Mar 2003 Posts: 2 Location: Kasson, MN.
|
Posted: Wed Mar 26, 2003 3:52 am Post subject: think I found it |
|
|
OK, try this and see if this helps, in make.conf I commented out the CFLAGS line
AND
the CXXFLAGS line a few lines below it. Then I tried emerging again, and voila it started working.
Could this be a AMD thing? I am trying this on a Duron and started having these problems after I have installed fine dozens of times on PIII and PIV boxes... strange
Good Luck,
-Chris |
|
Back to top |
|
|
derk Guru
Joined: 10 Mar 2003 Posts: 347 Location: St Thomas Ontario
|
Posted: Wed Mar 26, 2003 5:07 am Post subject: |
|
|
Is the position of the -O2 or -O3 flag in the CFLAGS string important? I notice that it appears to be different in the two examples shown in this thread. The default in my make.conf is as follows: CFLAGS="-mcpu=athlon-xp -O3 -pipe"
is gcc fussy about this order or not? just curious
Derk |
|
Back to top |
|
|
|