LinuxQuestions.org
Visit Jeremy's Blog.
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 06-12-2003, 05:33 AM   #1
Mentor
LQ Newbie
 
Registered: Jun 2003
Location: Newbury, Berkshire
Posts: 2

Rep: Reputation: 0
Installing GCC Newbie...


Hi,

I am new to Linux, but have been given the nasty (in my opinion) task of installing the new GCC onto the company computers. I am attempting to install GCC 3.3 - and things are not going to plan.

On a fresh install of Redhat 7.2 I have done the following commands which I believe should be all I need...

Code:
configure --prefix=/mnts/...<path>.../gcc.3.3.ixl/ --target=i386-unknown-linux
That seems to work OK, then I do....

Code:
make bootstrap
This errors out with...

Quote:
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
./xgcc -B./ -B/mnts/...<path>.../gcc.3.3.ixl//i386-unknown-linux/bin/ -isystem /mnts/...<path>.../gcc.3.3.ixl//i386-unknown-linux/include -isystem /mnts/...<path>.../gcc.3.3.ixl//i386-unknown-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config -I../../gcc-3.3/gcc/../include -DL_muldi3 -c ../../gcc-3.3/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:23,
from ../../gcc-3.3/gcc/libgcc2.c:36:
../../gcc-3.3/gcc/config/i386/linux.h:232:20: signal.h: No such file or directory
../../gcc-3.3/gcc/config/i386/linux.h:233:26: sys/ucontext.h: No such file or directory
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[3]: Leaving directory `/user/me/LinuxGnuCompiler/gcc-3.3-obj/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/user/me/LinuxGnuCompiler/gcc-3.3-obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/user/me/LinuxGnuCompiler/gcc-3.3-obj/gcc'
make: *** [bootstrap] Error 2
Now, I have had a good look around the system for signal.h and have found a few different files. Which ever one I force include it gives different errors.

I figure signal.h is a system file that handles all the error signals etc, but why can't the GCC installation find it?

Thanks for any help in advance for this frustrated newbie
 
Old 06-12-2003, 05:39 AM   #2
painkiller6.6.6
LQ Newbie
 
Registered: Sep 2002
Posts: 7

Rep: Reputation: 0
what kind of distribution do you use? cause, well, I became so lazy that I started using rpms for everything and, why don't you try to install the gcc 3.3.x rpm?
 
Old 06-12-2003, 05:42 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
can i ask why you're trying to install it from source? I'd strongly suggest just using a precompiled RPM file. redhat 7.2 is really knocking on a bit too. you may well want a newer distribution if you really want gcc 3.3, which is brand shiny new...
 
Old 06-12-2003, 05:43 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
the missing files will presumably be as you haven't got the glibc-devel rpm installed.
 
Old 06-12-2003, 05:48 AM   #5
Mentor
LQ Newbie
 
Registered: Jun 2003
Location: Newbury, Berkshire
Posts: 2

Original Poster
Rep: Reputation: 0
Wow, you guys are quick!!

Umm, anyway, RPM? Like I say I am forced onto this Linux stuff and am very new to it. Is that a like a pre-compiled binary?

Do you have any handy links where I can get one I did a search on google, but it wasn't very friendly with the results.

We are stuck with this version of RedHat as we have to support our product on it. We can't move to newer versions until our customers are ready, and even then have to continue to support older OS's. We have only just dropped Win95 support!!
 
Old 06-12-2003, 05:50 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
rpmfind.net it also WILL be one those distro cd's you used to install redhat in the first place. redhat 7.2 used gcc 2.96, which is prety old now though.

please search this site or read a guide like the rute link in my siganture for advice on installing rpms.
 
  


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
gcc- newbie question babambar Linspire/Freespire 3 11-09-2005 05:31 PM
Newbie: how to define cc/gcc path LFCsion Mandriva 3 08-26-2005 03:32 AM
Newbie having problems w/ gcc and g++ awilliams Linux - Newbie 2 01-03-2005 12:07 AM
GCC newbie compile question crisponions Programming 2 07-08-2004 07:16 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM


All times are GMT -5. The time now is 11:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration