Solved

Installing gcc 3.1 on Red Hat Linux 6.0

Posted on 2002-07-10
3
458 Views
Last Modified: 2013-12-06
Hi,

I am trying to install gcc 3.1 on my Red Hat Linux 6.0.

'configure' has completed successfully.

When I ran 'bootstrap', I got the following errors:

...
...
...
stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-linux-gnu/bin/ -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengenrtl \
 gengenrtl.o ../libiberty/libiberty.a
/usr/bin/ld: gengenrtl: Not enough room for program headers (allocated 6, need 7)
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/home/downloads/gcc/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/home/downloads/gcc/gcc-build/gcc'
make: *** [bootstrap] Error 2
0
Comment
Question by:karnovsk
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 7144845
I can't claim to have done this on 6.0, but I have built 3.1 on a 6.2 system. What I had to do was to get and build 3.0.3, then use that to build 3.0.4, and finally use that to build 3.1. I had the same problem on Solaris and Irix, so it seems to me that it has more to do with what 3.1 needs as a compiler than with the OS.
0
 

Author Comment

by:karnovsk
ID: 7148316
Thank you very much. I have downloaded 3.0.4 and was able to build and install it (I did not start with 3.0.3, because 3.0.4 was supposed to be essentially the same, only with some bug fixes).

Maybe you can help me with my following question,  "Installing glibc 2.2.5  on Red Hat Linux 6.0"...
0
 

Expert Comment

by:lordxps
ID: 11628874
Hell I need to Install GCC into my linux server I need all steps Please My server is :
Linux magicword.info 2.4.20-020stab009.21.777-enterprise #1 SMP Tue Jun 15 13:21:55 MSD 2004 i686 i686 i386 GNU/Linux


Give me the answer as soon as you can thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question