LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-10-2013, 05:11 AM   #1
johnBruwer
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Install old gcc-3.2.3 on 64-bit SLC6.3


Hello
I have gcc version 4.4.6 on my system but I need to install version 3.2.3. I am able to run ./configure --prefix=/usr/local/gcc-3.2.3 successfully but when I run make I encounter the following error:

/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
./rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:61: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:662: error: lvalue required as increment operand
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/home/Install/gcc-3.2.3/gcc'
make: *** [all-gcc] Error 2

Is there anyone that might be able to help?
 
Old 07-10-2013, 06:37 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I don't think you can build gcc-3.2.3 with gcc-4.6 .

I think I used gcc-3.3.3 or 3.3.6, for building gcc-3.2.3 on SL5, 32bit:

Code:
$ gcc32 -v
Reading specs from /usr/gcc32/lib/gcc-lib/i486-linux-gnu/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/usr/gcc32 --program-suffix=32 --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-linux-gnu --host=i486-linux-gnu
Thread model: posix
gcc version 3.2.3
 
Old 07-10-2013, 01:47 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Scientific Linux SL6 : gcc-3.2.3 builds OK :

$ tar xvf gcc-3.2.3.tar.bz2
$ mkdir build-gcc323
$ cd build-gcc323/
$ export CC=gcc-3.3 CXX=g++-3.3
$ ../gcc-3.2.3/configure --prefix=/usr/gcc32 --program-suffix=32 --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld

* gcc "3.3.3" packages ...
cpp33-3.3.3-62.1.x86_64
gcc33-c++-3.3.3-62.1.x86_64
gcc33-3.3.3-62.1.x86_64
libstdc++33-3.3.3-62.1.x86_64 ( or similar )
libstdc++33-devel-3.3.3-62.1.x86_64
ftp://ftp5.gwdg.de/pub/opensuse/repo...10_SDK/x86_64/

The result: compat-gcc-32-3.2.3-1.SL6.x86_64.rpm, 14.9 MB, providing gcc32, g++32
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-

Last edited by knudfl; 07-10-2013 at 01:53 PM.
 
  


Reply

Tags
gcc323



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
Unable to mount ntfs filesystem on 64bit SLC6.3 johnBruwer Linux - Newbie 3 07-04-2013 07:29 AM
Problem with Broadcom BCM43225 Wireless Card under SLC6 SvenBo90 Linux - Laptop and Netbook 3 11-18-2012 05:23 PM
[SOLVED] Compiling a 32-bit, local gcc, 64-bit host. bluesword1969 Linux - Software 3 02-11-2011 08:53 PM
Compilation problem when downgrading from 64-bit gcc to 32-bit gcc huyhoang3673 Linux - Software 7 08-26-2009 11:31 AM
32/64 bit libs - FC6/gcc 4.1.1 -m32 picking up 64 bit library marier Fedora 0 04-24-2007 12:57 PM

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

All times are GMT -5. The time now is 03:10 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