You are not logged in.

#1 2010-11-24 17:27:38

fowler
Member
Registered: 2009-01-26
Posts: 152

SOLVED - Trying to install gcc34...

I am running x86-64.  I am trying to build gcc34 from the AUR and I keep getting an error while building:

...
configure: creating cache ./config.cache
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /home/rick/Builds/gcc34/src/gcc-3.4.6/missing makeinfo --split-size=5000000
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking build system type... checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-gcc... /home/rick/Builds/gcc34/src/gcc-build/gcc/xgcc -B/home/rick/Builds/gcc34/src/gcc-build/gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/ -isystem /usr/x86_64-unknown-linux-gnu/include -isystem /usr/x86_64-unknown-linux-gnu/sys-include
x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libiberty] Error 1
make[1]: *** Waiting for unfinished jobs....
yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-linux-gnu-gcc... /home/rick/Builds/gcc34/src/gcc-build/gcc/xgcc -B/home/rick/Builds/gcc34/src/gcc-build/gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/ -isystem /usr/x86_64-unknown-linux-gnu/include -isystem /usr/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/home/rick/Builds/gcc34/src/gcc-build'
make: *** [bootstrap] Error 2
    Aborting...


Any ideas?

Last edited by fowler (2010-11-25 00:49:09)

Offline

#2 2010-11-24 17:56:57

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: SOLVED - Trying to install gcc34...

I would see config.log for more details.

Offline

#3 2010-11-24 18:16:50

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: SOLVED - Trying to install gcc34...

right... I did... it wasn't too helpful... at least I don't see anything useful...

[rick@stupendousman gcc-build]$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:581: checking host system type
configure:602: checking target system type
configure:620: checking build system type
configure:675: checking for a BSD compatible install
configure:2866: checking for x86_64-unknown-linux-gnu-ar
configure:2899: checking for ar
configure:2938: checking for x86_64-unknown-linux-gnu-as
configure:2971: checking for as
configure:3010: checking for x86_64-unknown-linux-gnu-dlltool
configure:3043: checking for dlltool
configure:3082: checking for x86_64-unknown-linux-gnu-ld
configure:3115: checking for ld
configure:3154: checking for x86_64-unknown-linux-gnu-nm
configure:3187: checking for nm
configure:3226: checking for x86_64-unknown-linux-gnu-ranlib
configure:3259: checking for ranlib
configure:3298: checking for x86_64-unknown-linux-gnu-windres
configure:3331: checking for windres
configure:3370: checking for x86_64-unknown-linux-gnu-objcopy
configure:3403: checking for objcopy
configure:3442: checking for x86_64-unknown-linux-gnu-objdump
configure:3475: checking for objdump
configure:3524: checking for x86_64-unknown-linux-gnu-ar
configure:3557: checking for ar
configure:3596: checking for x86_64-unknown-linux-gnu-as
configure:3629: checking for as
configure:3668: checking for x86_64-unknown-linux-gnu-dlltool
configure:3701: checking for dlltool
configure:3740: checking for x86_64-unknown-linux-gnu-ld
configure:3773: checking for ld
configure:3812: checking for x86_64-unknown-linux-gnu-nm
configure:3845: checking for nm
configure:3884: checking for x86_64-unknown-linux-gnu-ranlib
configure:3917: checking for ranlib
configure:3956: checking for x86_64-unknown-linux-gnu-windres
configure:3989: checking for windres
configure:4056: checking whether to enable maintainer-specific portions of Makefiles
[rick@stupendousman gcc-build]$

Offline

#4 2010-11-24 22:32:13

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: SOLVED - Trying to install gcc34...

Well, the proper config.log to check would be the one in the directory with the configure script that failed, i.e. gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/config.log.  Anyway, I ran the build myself, found in config.log that the error is "conftest.c:1: error: bad value (native) for -march= switch".  Thus I expect that temporarily removing the -march and -mtune options from CFLAGS/CXXFLAGS in /etc/makepkg.conf will help.

Offline

#5 2010-11-24 22:45:14

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: SOLVED - Trying to install gcc34...

Correct.   gcc-3.4 did not supoort -march=native so when you go to bootstrap gcc3.4 with itself your build is failing.   But you are better off unsetting them in the PKGBUILD maybe...

Offline

#6 2010-11-25 00:48:41

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: SOLVED - Trying to install gcc34...

That worked... Thanks!  I just commented the CFLAGS/CXXFLAGS in makepkg.conf for this build as tavianator mentioned and it compiled.

Offline

#7 2010-11-25 01:11:57

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: SOLVED - Trying to install gcc34...

fowler wrote:

That worked... Thanks!  I just commented the CFLAGS/CXXFLAGS in makepkg.conf for this build as tavianator mentioned and it compiled.

Entirely commenting out the C(XX)FLAGS in makepkg.conf will disable optimization too, which will probably make your build of gcc 3.4 pretty slow.  I'd at least keep -O2 in it.  And Allan's right, the proper way to handle this would be to override C(XX)FLAGS in the PKGBUILD.  I think just appending CFLAGS="-O2" CXXFLAGS="-O2" to the ./configure line should work.

Offline

Board footer

Powered by FluxBB