This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
crtbegin.o oddities on redhat 7.2/7.3 with gcc 3.2
- From: "Marty Leisner" <leisner at rochester dot rr dot com>
- To: gcc-help at gnu dot org
- Date: Thu, 12 Sep 2002 22:38:15 -0400
- Subject: crtbegin.o oddities on redhat 7.2/7.3 with gcc 3.2
I built gcc 3.2 for redhat 7.2 and 7.3 -- they run fine on
each platform.
(this seems to be true with all 3.x gcc's -- but I'm not looking to find out).
I have binary portability (compiling random programs) from 7.2 to 7.3.
But when I try to run 7.3 compiled binaries on 7.2 I get:
./bash: /lib/i686/libc.so.6: version `GCC_3.0' not found (required by ./bash)
This happens with the program
main() {}
(far from bash)
What I did to get it to work is I used crtbegin.o from gcc 2.96 on
7.3 (I hacked up the specs file) -- so I'm doing everything normal with
gcc 3.2 except swapping in another crtbegin.o
But it seems crtbegin.o is the same on 7.2 and 7.3...
I haven't studied what is going on -- had this difficulty for a few weeks --
this solution SEEMS to work (any body want to propose something BETTER?)
Marty Leisner
leisner@rochester.rr.com