View previous topic :: View next topic |
Author |
Message |
wap32. n00b
Joined: 11 Jun 2004 Posts: 8 Location: Portugal
|
Posted: Fri Jun 11, 2004 4:53 pm Post subject: problems with compiler when emerging system |
|
|
hi, i'm having trouble emerging system i'm doing an amd64 stage 2 install and after doing emerge --fetchonly system, i do the following:
livecd portage # emerge system
and i get:
Calculating system dependencies ...done!
>>> emerge (1 of 74) sys-apps/gawk-3.1.3-r1 to /
>>> md5 src_uri gawk-3.1.3-r1.tar.gz
>>> Unpacking source...
>>> Unpacking gawk-3.1.3-r1.tar.gz to /var/tmp/portage/gawk-3.1.3-r1/work
* Applying 64bitnumfile.patch... [ ok ]
>>> Source unpacked.
nls
* Building gawk ...
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... ./install-sh -c
checking whether build enviroment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-strip... no
checking for strip... strip
checking for egrep... grep -E
checking for bison... bison -y
checking whether ln -s works... yes
checking x86_64-pc-linux-gnu-gcc... gcc
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 43, Exitcode 77
!!! (no error message)
what is the problem here, is there something i've done wrong??
thank you in advance! |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Fri Jun 11, 2004 5:10 pm Post subject: |
|
|
What did you set your CFLAGS variable to? |
|
Back to top |
|
|
wap32. n00b
Joined: 11 Jun 2004 Posts: 8 Location: Portugal
|
Posted: Fri Jun 11, 2004 5:22 pm Post subject: |
|
|
-march=athlon64 -pipe -O2 |
|
Back to top |
|
|
OneSeventeen n00b
Joined: 10 Jun 2004 Posts: 12 Location: NM, USA
|
Posted: Sun Jun 13, 2004 8:10 pm Post subject: |
|
|
I've got the same problem. There are tons of threads describing this as a generic error that can have around 10 or more solutions, and I've tried all that I've found and still cannot get it working.
I used -march=athlonxp -pipe -03 first, then I used the safe flag settings from a gentoo site I found, then I ran about 48 hours worth of memtests (as bad memory has been attributed for this problem), and I've tried eveything from a stage 1 through 3, with not success.
If you find the solution, please let me know. If not, I fear my computer's soul is doomed to an enternity in rpm-hell, as mandrake is insanely easy to install, and at least my computer will be worth something. (I'll probably be trying another week though, as gentoo looks a few thousand times better than any of the other distros I've read up on or used)
If I find something, I'll let you know.
What brand motherboard are you using? I'm using an Asus A7M266 with 2x(512MB) Crucial sticks of ram. An old AGP video card, old networking card, and an Athlon XP. (not sure if system hardware is causing the problem... possibly poor chipset support or just a bad board in general?) |
|
Back to top |
|
|
Useful Idiot Guru
Joined: 30 Aug 2002 Posts: 329 Location: Finland
|
Posted: Sun Jun 13, 2004 8:19 pm Post subject: |
|
|
OneSeventeen wrote: | I used -march=athlonxp -pipe -03 first, then I used the safe flag settings from a gentoo site I found |
You should be using letter O (as in optimization) not zero. _________________ [size=9]We are all in the gutter, but some of us are looking at the stars. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sun Jun 13, 2004 8:26 pm Post subject: |
|
|
wap32.: Are you using gcc-3.4? If not, you can't use -march=athlon64... or indeed -march=<anything>... _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
wap32. n00b
Joined: 11 Jun 2004 Posts: 8 Location: Portugal
|
Posted: Sun Jun 13, 2004 8:56 pm Post subject: |
|
|
so i should just delete the -march=xxx option? |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sun Jun 13, 2004 8:57 pm Post subject: |
|
|
Yup, that should work then! _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
Tii l33t
Joined: 02 Jan 2004 Posts: 733
|
Posted: Sun Jun 13, 2004 9:01 pm Post subject: |
|
|
Why doesn't march work for amd64 in other than gcc 3.4? |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sun Jun 13, 2004 9:07 pm Post subject: |
|
|
I'm not really sure... I suppose robmoss2k is the only person I know of who'd actually know!
Edit: This is what the amd64 technotes have to say on the subject anyway:
The amd64 technotes wrote: | 3.l. Properly Setting CFLAGS
The name of the CPU is "k8", but you don't need to put it as a -march=k8 since there is only one x86-64 CPU out there anyways. GCC version before 3.4 will not recognize -march=k8 and will FAIL if it is set. |
_________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
wap32. n00b
Joined: 11 Jun 2004 Posts: 8 Location: Portugal
|
Posted: Sun Jun 13, 2004 9:31 pm Post subject: |
|
|
Thanks Maedhros, I will try to remove the -march! |
|
Back to top |
|
|
|