LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2006, 04:52 AM   #1
TheBrick
Member
 
Registered: Mar 2006
Location: London
Distribution: SUSE 10.0 Home soon to go (no internet conection), gentoo laptop, slack on development box
Posts: 81

Rep: Reputation: 15
installing gcc 4.1 as secondary compiler problem


Hello, I have just finished setting up my lovly new laptop apart from one thing. I need both the installed gcc 3.4.4 and a 4.x version of gcc. Here is what I did.
1. downloaded gcc-4.1.0 unziped e.t.c
2. Make a directory called making to make gcc in.
3. configure with
~/Desktop/gcc-4.1.0/configure --prefix=/opt/gcc41 --program-suffix=-4.1

So that gcc will be installed in /opt/gcc41 and have the suffix 4.1 (as I said this will be a seconadary compiler).
4. Then

make bootstrap

I get the error

make[2]: *** No rule to make target `../../build-i686-pc-linux-gnu/libiberty/libiberty.a', needed by `build/genmodes'. Stop.
make[2]: Leaving directory `/home/tommy/Desktop/making/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/tommy/Desktop/making/gcc'
make: *** [bootstrap] Error 2

5. So I think maybe I should try and specify the host rather than the configure script guessing so i try

~/Desktop/gcc-4.1.0/configure --prefix=/opt/gcc41 --program-suffix=-4.1 --host=pentium-m

6. Again

make bootstrap

this time my error is

checking build system type... Invalid configuration `pentium-m': system `m' not recognized
configure: error: /bin/sh /home/tommy/Desktop/gcc-4.1.0/libiberty/../config.sub pentium-m failed
make: *** [configure-build-libiberty] Error 1

7. So obvesouly petium-m is not an option. so I try again specifing that

--host=i686-pc-linux-gnu
This of course just takes me straight back to number 4.

I am sure I must be missing something ver obveouse but I need your help.

T
 
Old 08-14-2006, 08:06 PM   #2
ljubak
LQ Newbie
 
Registered: Apr 2006
Location: Belgrade, Serbia
Distribution: Slackware
Posts: 26

Rep: Reputation: 15
This is good tutorial:

http://www.linuxfromscratch.org/blfs...neral/gcc.html

it helped me, i had the same problem!
 
Old 08-15-2006, 04:05 AM   #3
TheBrick
Member
 
Registered: Mar 2006
Location: London
Distribution: SUSE 10.0 Home soon to go (no internet conection), gentoo laptop, slack on development box
Posts: 81

Original Poster
Rep: Reputation: 15
ljubak thanks I'll have a look. I had just been remote working to another machine when I needed to use 4.1 but I do need to get it sorted. Lazy me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing another gcc compiler in mandrake 10.0 lbabey Linux - Software 8 03-31-2005 05:22 PM
Installing Gcc (it requires a compiler) funkatron Linux - Software 2 09-25-2004 10:38 AM
installing devel-packages and gcc-compiler supersucker Linux - Software 1 08-30-2004 10:18 PM
Installing a GCC-compiler Jeff_G_1974 Fedora 1 02-28-2004 03:36 PM
Gcc Compiler Problem mjkramer Linux - Software 6 10-24-2003 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration