Building gcc

Building gcc

Post by Daniel Gonzale » Mon, 24 Apr 2000 04:00:00



Hi all,

Due to problems compiling the "linux-pmac-devel" tree, I think I have
to upgrade my gcc. I have downloaded the gcc sources from www.gnu.org
(latest release is 2.95.2) and I try to recompile it in my machine.

I currently have:
gcc -v
Reading specs from /usr/lib/gcc-lib/ppc-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

(this is the one which is failing when trying to recompile the devel
tree)

My problem is that when I try to recompile the 2.95.2 gcc, I get the
following error:

ln -s /home/gonvaled/download/gcc-2.95.2/gcc/../libiberty/obstack.c
obstack.c
stage1/xgcc -Bstage1/ -B/usr/local/powerpc-unknown-linux-gnu/bin/ -c
-DIN_GCC -DHAIFA    -O2 -g -O2  -DHAVE_CONFIG_H    -I.
-I/home/gonvaled/download/gcc-2.95.2/gcc
-I/home/gonvaled/download/gcc-2.95.2/gcc/config
-I/home/gonvaled/download/gcc-2.95.2/gcc/../include obstack.c
stage1/xgcc -Bstage1/ -B/usr/local/powerpc-unknown-linux-gnu/bin/
-DIN_GCC -DHAIFA    -O2 -g -O2  -DHAVE_CONFIG_H  -o cccp cccp.o cexp.o
intl.o prefix.o version.o  mbchar.o  obstack.o
../libiberty/libiberty.a
/usr/bin/ld: unrecognised emulation mode: elf32ppclinux
Supported emulations: elf32ppc
collect2: ld returned 1 exit status
make[2]: *** [cccp] Error 1
make[2]: Leaving directory `/root/gcc/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/root/gcc/gcc'
make: *** [bootstrap] Error 2

What is that ? I fear that I maybe should upgrade my binutils. Does
this ring a bell somewhere ?

Thanks in advance,

Daniel

 
 
 

Building gcc

Post by John Fishe » Mon, 24 Apr 2000 04:00:00


On my machine:

$ gcc -v
Reading specs from /usr/lib/gcc-lib/ppc-redhat-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release/franzo)

This is from LinuxPPC 2000.  You should be able to grab the rpms from
their ftp site, or perhaps rpmfind.net or similar.

John

 
 
 

Building gcc

Post by Dietmar Herrend?rfe » Thu, 27 Apr 2000 04:00:00



> ...
> My problem is that when I try to recompile the 2.95.2 gcc, I get the
> following error:
> ...
> /usr/bin/ld: unrecognised emulation mode: elf32ppclinux
> Supported emulations: elf32ppc
> collect2: ld returned 1 exit status
> ...
> What is that ? I fear that I maybe should upgrade my binutils. Does
> this ring a bell somewhere ?

Why do you fear this?  It's the solution to your problem!

Dietmar

 
 
 

1. gcc 4.1.1 build under Intel Solaris 10 does not build gcc

This is strange. gcc compiled fine (i did it yesterday on Sparc, and
today on Intel).

While a call to "g++ -v" tells me that 4.1.1 is invoked (using the
standard prefix /usr/local/bin)
the "gcc" executable is not installed. It is still the 3.3 that i
installed as a package from sunfreeware.com

Any ideas where i can find the gcc ?

I did a simple "configure ; make ; make install" without any parameters.

2. peer authentication under SCO UnixWare

3. Can't build GCC 2.7.2 on Linux

4. What do I do with *local files?

5. Trouble building gcc-2.7.2.2/g77-0.5.20 on linux

6. security advice needed

7. building gcc on 4.1.5

8. kermit

9. "invalid option" error while building gcc as a cross-compiler

10. how to build gcc 2.95.3 cross compiler

11. Building gcc

12. Building gcc on SCO OS5?

13. Building gcc on Alpha workstation