You are not logged in.

#1 2007-08-18 18:24:30

Mardukas
Banned
From: Lithuania
Registered: 2007-08-05
Posts: 121

I cannot compile gcc :/

[root@marduk ~]# cd /var/abs/base/gcc/; makepkg -csi
...
checking for gcc... gcc
checking whether the C compiler (gcc -march=athlon-xp -pipe -mmmx -msse -O3 -mtune ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.  Aborting...


But I've compiled glibc, some other stuff, so gcc should work.. hmm

Offline

#2 2007-08-18 20:01:17

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: I cannot compile gcc :/

I have no answer to your issue, however, isn't it poor practice to build your package within the ABS tree itself? As per the wiki, all builds should be made in the /abs/local directory, by copying the contents of the /var/abs/category/pkg directory over to /var/abs/local/pkg. The wiki admonishes quite explicitly to avoid modifying the ABS tree in any way, other than in the /var/abs/local directory...correct me if I am wrong. smile
I have also heard that the O3 option may make some packages uncompilable.

Offline

#3 2007-08-18 21:25:55

Mardukas
Banned
From: Lithuania
Registered: 2007-08-05
Posts: 121

Re: I cannot compile gcc :/

Copied PKGBUILD to local, changed to -O2 - still the same.

Offline

#4 2007-08-21 13:56:39

Mardukas
Banned
From: Lithuania
Registered: 2007-08-05
Posts: 121

Re: I cannot compile gcc :/

Ok, seriuos problem - it seems that I cannot compile anything now. This started to hapen when I compiled glibc and binutils by myself with abs...

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.  Aborting...

config.log: http://pastebin.com/m71925eb0

Any ideas how to fix this?

Offline

#5 2007-08-21 14:29:38

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: I cannot compile gcc :/

Your CFLAGS are incorrect:

CFLAGS='-march=athlon-xp -pipe -mmmx -msse -O3 -mtune'

There's nothing set for mtune.

Offline

#6 2007-08-21 15:01:19

Mardukas
Banned
From: Lithuania
Registered: 2007-08-05
Posts: 121

Re: I cannot compile gcc :/

Thank you.

Offline

Board footer

Powered by FluxBB