LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2011, 02:27 AM   #1
kavi_gtm
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
error in buliding of gcc 2.95.2


Hi,
i already have gcc 3.4.3 on my machine and i want to install gcc 2.95.2
i am using the following commands

./configure --prefix=/usr/local
make bootstrap
make install

(gnu make version is 3.80)
i am getting following error in "make bootstrap" sequence

echo "void __foo () {}" > dummy.c
/export/home/ads/gcc-2.95.2/gcc/xgcc -B/export/home/ads/gcc-2.95.2/gcc/ -B/usr/local/i386-pc-solaris2.11/bin/ -I/usr/local/i386-pc-solaris2.11/include -DIN_GCC -o -I./include -c dummy.c
ld.so.1: as: fatal: libc.so.1: version `SUNW_1.23' not found (required by file /usr/ccs/bin/as)
ld.so.1: as: fatal: libc.so.1: open failed: No such file or directory
xgcc: Internal compiler error: program as got fatal signal 9
make[1]: *** [libgcc1.null] Error 1
make[1]: Leaving directory `/export/home/ads/gcc-2.95.2/gcc'
make: *** [all-gcc] Error 2

How i can fix this?



Thanks in advance
 
Old 03-17-2011, 06:06 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
So... is this OpenSolaris? What build? Or is it Solaris 11 Express?
 
Old 03-17-2011, 06:20 AM   #3
kavi_gtm
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
It is open solaris based Operating system ( schillix). and i am trying to install the gcc 2.95 compiler.
for that thee are threee steps
./configure
make bootstrap ---> here i am getting the error which i describe in my previous post.
make install
 
Old 03-17-2011, 08:07 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Ok, from searching on your error message, "version `SUNW_1.23' not found", I found that if this were OpenSolaris you'd need to be on at least build 38. So try updating your system to the latest so you get the right C libraries.
 
Old 03-17-2011, 09:39 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Well, gcc-2.95 is interesting, as it doesn't compile on any newer Linux OS.
The preferred version should be gcc-2.95.3.
OpenSolaris 2009.06 was used. With gcc-3.4.3-csl-20050525.i386.tar.bz2
unpacked in ///home/knudfl, and a link made from gcc-3.4.3/bin/gcc to
/usr/bin/gcc343.
( ftp://ftp.uni-ulm.de/mirrors/schilli...5.i386.tar.bz2 )

export CC=gcc343 && mkdir build-gcc295 && cd build-gcc295/ &&
../gcc-2.95.3/configure --prefix=/usr/local/gcc295 --enable-shared --verbose
&& make bootstrap : No errors.

Three things : 1) gcc requires a build directory outside the source.
2) GCC-2.95.2 is not bug free.
3) And it is a good idea to install any extra gcc to a hideaway location,
to insure, that none of the files make any conflicts with the default gcc.

Last edited by knudfl; 03-17-2011 at 09:57 AM.
 
  


Reply

Tags
gcc2953


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 (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7) compilation error adhesh_19 Red Hat 0 01-05-2010 05:34 AM
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 02:28 PM
Buliding a low budget linux box. theoldnyx Linux - Hardware 1 07-20-2006 10:51 AM
Buliding a PC for linux prowzen General 5 05-09-2001 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration