Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-08-2006, 04:15 PM
|
#1
|
LQ Newbie
Registered: May 2006
Posts: 11
Rep:
|
wanting to build gcc-2.95 in slackware 10.2
I'm wanting to build gcc-2.95 in slackware 10.2 but it won't compile.
I have some legacy code that depends on older compilers and don't know where to look.
|
|
|
05-08-2006, 04:51 PM
|
#2
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
I did that too.
take a look at this:
http://ldp.rtin.bz/LDP/lfs/html/chapter06/gcc-2953.html
After you install it, make sure to add "/opt/gcc-2.95.3/lib" in /etc/ld.so.conf otherwise you won't be able to run what you compile.
*EDIT*
Welcome to LQ Forums
Last edited by perfect_circle; 05-08-2006 at 04:56 PM.
|
|
|
05-09-2006, 03:39 AM
|
#3
|
LQ Newbie
Registered: May 2006
Posts: 11
Original Poster
Rep:
|
gcc 2.9.5 still won't compile
I get this error message still:
gcc -c -DIN_GCC -g -O2 -I. -I.. -I. -I./.. -I./../config -I./../../include loop.c
loop.c:321:8: missing terminating " character
loop.c:322:38: missing terminating " character
make[2]: *** [loop.o] Error 1
make[2]: Leaving directory `/home/blazemonger/source/gcc-2.95.3/gcc/ch'
make[1]: *** [cc1chill] Error 2
make[1]: Leaving directory `/home/blazemonger/source/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2
what version of gcc did you use?
|
|
|
05-09-2006, 04:20 AM
|
#4
|
LQ Newbie
Registered: May 2006
Posts: 11
Original Poster
Rep:
|
*p.S. thanks for the welcome* I'll be a regular on here
|
|
|
05-09-2006, 04:57 AM
|
#5
|
LQ Newbie
Registered: May 2006
Posts: 11
Original Poster
Rep:
|
do you have a slackware package for gcc-2.95 and a few other gcc versions that will install to /opt?
if so i would be extremely thankful.
|
|
|
05-09-2006, 06:20 AM
|
#6
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
Here's my gcc-2.95 source dir:
http://distro.ibiblio.org/pub/linux/...ls/gcc-2.95.3/
or you can get binary packages for 2.95, 3.1 and 3.2.3 here:
http://distro.ibiblio.org/pub/linux/...86/DevelTools/
They all install to /opt and won't disturb yiour existing compiler. I provide a wrapper to run it with, which sets up the PATH and LD_LIBRARY_PATH if you want it.
I was using 2.95.3 for the oldest code until recently when I discovered that gcc-3.1 would compile the same stuff without creating dependencies for the gcc-2.x cxx libs. My script for gcc-2.95 will build a separate package with the extra cxxlibs if you need them, or there's a prebuilt package.
Have a look around my site for some very useful and interesting older stuff, plus newer stuff as well.
Make it real easy to build my sources by installing amigo PkgBuild
|
|
|
05-09-2006, 07:15 AM
|
#7
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
Quote:
Originally Posted by blazemonger
I get this error message still:
gcc -c -DIN_GCC -g -O2 -I. -I.. -I. -I./.. -I./../config -I./../../include loop.c
loop.c:321:8: missing terminating " character
loop.c:322:38: missing terminating " character
make[2]: *** [loop.o] Error 1
make[2]: Leaving directory `/home/blazemonger/source/gcc-2.95.3/gcc/ch'
make[1]: *** [cc1chill] Error 2
make[1]: Leaving directory `/home/blazemonger/source/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2
what version of gcc did you use?
|
that's strange.
Mine compiled just fine.
Did you follow the procedure?
DOn't know if this has anything to do, but you are supposed to compile it ouside the source directory:
Code:
tar -xvjf gcc-2.95.3.tar.bz2
mkdir gcc-2-build
cd gcc-2-build
../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3
make bootstrap
make install
I also added the paches you see in the page if that make any difference at all
Last edited by perfect_circle; 05-09-2006 at 11:15 AM.
|
|
|
05-09-2006, 07:40 AM
|
#8
|
Member
Registered: Jan 2005
Posts: 189
Rep:
|
Hi,
I have compiled gcc-2.95 on slack-10.2.
And got the same error.
as far as I an remember there is missin quote in the specified line
of the file ($sourcedir)/gcc/ch/loop.c (line 322).
I dont have the file now, so I cannot tell you correctly but you will know by seeing that you just need to add " there.
after this it should compile.
Hardik
|
|
|
05-09-2006, 01:36 PM
|
#9
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
This error is common in multi-line quotes in old software:
something "more
stuff here
and then here"
You need to insert \ or \n at the end of each line to make it work:
something "more \
stuff here \
and then here"
Try my source tarball for an easier way.
|
|
|
05-11-2006, 08:54 AM
|
#10
|
LQ Newbie
Registered: May 2006
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by gnashley
Here's my gcc-2.95 source dir:
http://distro.ibiblio.org/pub/linux/...ls/gcc-2.95.3/
or you can get binary packages for 2.95, 3.1 and 3.2.3 here:
http://distro.ibiblio.org/pub/linux/...86/DevelTools/
They all install to /opt and won't disturb yiour existing compiler. I provide a wrapper to run it with, which sets up the PATH and LD_LIBRARY_PATH if you want it.
I was using 2.95.3 for the oldest code until recently when I discovered that gcc-3.1 would compile the same stuff without creating dependencies for the gcc-2.x cxx libs. My script for gcc-2.95 will build a separate package with the extra cxxlibs if you need them, or there's a prebuilt package.
Have a look around my site for some very useful and interesting older stuff, plus newer stuff as well.
Make it real easy to build my sources by installing amigo PkgBuild
|
i installed the gcc packages and i sometimes get this when exiting xmms:
libgcc_s.so.1 must be installed for pthread_cancel to work
btw im using slackware 10.2
|
|
|
05-11-2006, 10:34 AM
|
#11
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
You need to install this package:
http://distro.ibiblio.org/pub/linux/...0.0-i486-1.tgz
It supplies the compiler libraries generated when compiling gcc itself.
Not all programs you compile with gcc-2.95 will need these -you can alwasy check the binaries with ldd to see if they need them.
As I mentioned, by using gcc-3.1 you can eliminate the gcc-2.x.so lib dependencies, since it links to the gcc libs already on your system.
So far, all the code that I was having to use gcc-2.95 to compile is compiling fine with gcc-3.1.
|
|
|
05-11-2006, 10:43 AM
|
#12
|
LQ Newbie
Registered: May 2006
Posts: 11
Original Poster
Rep:
|
ui noticed that if i install that package it will overwrite the libs for gcc i already have..that's the only reason i didn't install it.
|
|
|
05-12-2006, 02:13 AM
|
#13
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
No, all my sources and packages for gcc-2.95, 3.1 and 3.2.3 are configured to not overwrite existing libs, bins or documents.
|
|
|
All times are GMT -5. The time now is 07:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|