Compiling gcc 2.7.2.1 with gcc 3.2 on redhat 8.0

Compiling gcc 2.7.2.1 with gcc 3.2 on redhat 8.0

Post by Christopher Pee » Sat, 23 Nov 2002 12:52:46



I need to use an older version of gcc to compile a C++ program that I
can't seem to compile with the latest gcc.

I'm trying to compile gcc 2.7.2.1 and in the beginning of stage 2 of
the installation process I get the following error message:

stage1/xgcc -Bstage1/  -DIN_GCC   -g -O2   -o genattr \
 genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` `

in ?*) echo  ;; esac `
./genattr ./config/i386/i386.md > tmp-attr.h
/bin/sh: ./genattr: /lib/ld-linux.so.1: bad ELF interpreter: No such
file or directory
make: *** [stamp-attr] Error 126

My steps are:

./configure --build=i586-redhat-linux (I've tried a least a dozen
different settings here)
make LANGUAGES=c
make stage1
make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O2"

Anyone have any idea? I've scoured the newsgroups and tried everything
that there with no luck.

Thanks in advanced...

 
 
 

Compiling gcc 2.7.2.1 with gcc 3.2 on redhat 8.0

Post by David Konerdin » Sun, 24 Nov 2002 08:36:40





>>I need to use an older version of gcc to compile a C++ program that I
>>can't seem to compile with the latest gcc.

> Why don't you give use the error in the old C++ program?

Um, there is some old C++ code which isn't going to be easily
ported to 2.7.2.1.  This may be a case where they already
did the analysis and determined it was a better idea to just use the older
compiler.

Dave

 
 
 

Compiling gcc 2.7.2.1 with gcc 3.2 on redhat 8.0

Post by Paul Kimot » Sun, 24 Nov 2002 18:11:55


[This is probably off-topic because it does not concern the kernel.]



> I need to use an older version of gcc to compile a C++ program that I
> can't seem to compile with the latest gcc.

> I'm trying to compile gcc 2.7.2.1 and in the beginning of stage 2 of
> the installation process I get the following error message:

> stage1/xgcc -Bstage1/  -DIN_GCC   -g -O2   -o genattr \
>  genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` `

> in ?*) echo  ;; esac `
> ./genattr ./config/i386/i386.md > tmp-attr.h
> /bin/sh: ./genattr: /lib/ld-linux.so.1: bad ELF interpreter: No such
> file or directory

/lib/ld-linux.so.1 is the dynamic linker for (now-obsolete) libc5 systems.
A glance at the 2.7.2.1-2.7.2.2 diff suggests that 2.7.2.2 may have been
the first (official) libc6-aware version.  (Moreover, it looks like both
gcc-2.7.2.2 and the earliest glibc-2.* were released around February 1997.)

It might be better to start with gcc-2.7.2.3, the standard GCC version for
something like 2 years.

--
Paul Kimoto
This message was originally posted on Usenet in plain text.  Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.

 
 
 

1. Upgrade gcc 2.96-98 to gcc 3.2-7 on Redhat 7.2

Hello All,

I have a problem that I am hoping someone out there has already
solved.  I need to upgrade gcc from 2.96-98 to 3.2-7 on Redhat 7.2.
My project has a requirement that we run on Redhat 7.2.  The problem
is, rpm reports that the upgrade also requires an upgrade to rpm.  The
rpm upgrade printout follows:

rpm -Uvh ./gcc-3.2-7.i386.rpm \
./glibc-2.3.2-4.80.6.i386.rpm \
./glibc-common-2.3.2-4.80.6.i386.rpm \
./glibc-debug-2.3.2-4.80.6.i386.rpm \
./glibc-devel-2.3.2-4.80.6.i386.rpm \
./libgcc-3.2-7.i386.rpm

error: failed dependencies:
        cpp = 3.2-7 is needed by gcc-3.2-7
        rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by gcc-3.2-7
        gdb < 5.1-2 conflicts with gcc-3.2-7
        rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by
glibc-common-2.3.2-4.80.6
        gcc = 2.96-98 is needed by gcc-g77-2.96-98
        gcc = 2.96-98 is needed by gcc-objc-2.96-98
        gcc = 2.96-98 is needed by gcc-c++-2.96-98

I think I know how to upgrade everything but the rpmlib (get all
packages and do an rpm -U followed by all the package names).

But, I can't find out how to upgrade rpmlib.  I assume that most
people just upgrade the OS when they want a new compiler, that is why
I can't find much information on this problem.

Any information you can give me would be greatly appreciated.  Thanks
in advance.

Scott

2. Why is a response to a NATted SYN not being un-NATted properly by iptables?

3. gcc 3.2.x redhat 8.0 c++ getenv() crash

4. netstat eats CPU

5. ISDN and X.25

6. gcc 2.96 vs. gcc 3.2: namespace, template incompatability

7. DPLI - Ethernet

8. Using Objective-C with gcc 3.2 on RH 8.0

9. 2.5.45: gcc 3.2 aligns everything to 16 bytes when I compile for 486

10. compiling modules with gcc 3.2

11. gcc 3.2 bootstrap compile problems on solaris 2.8

12. Compile Emacs on Solaris 9 using GCC 3.2