This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Using libc5 on Redhat 5.0 and profiling
- To: egcs at egcs dot cygnus dot com
- Subject: Using libc5 on Redhat 5.0 and profiling
- From: Derrick Bass <derrick at tapir dot caltech dot edu>
- Date: Wed, 23 Jun 1999 00:11:48 -0700
Hi. I need to use libc5 on a Redhat 5 machine (b/c I'm linking with
an annoying proprietary library compiled against libc5).
I made egcs do this by configuring it as a cross compiler (see below)
However, now when I try to use the -pg option, the link fails (the
compile works fine):
~/gnu/egcs-1.1.2/bin/gcc -v -b i686-pc-linux-gnulibc1 -pg -o uudecode2 uudecode2.o
Reading specs from /ufs/murphy/derrick/gnu/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
/ufs/murphy/derrick/gnu/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -o uudecode2 /ufs/murphy/derrick/gnu/egcs-1.1.2/i686-pc-linux-gnulibc1/lib/gcrt1.o /ufs/murphy/derrick/gnu/egcs-1.1.2/i686-pc-linux-gnulibc1/lib/crti.o /ufs/murphy/derrick/gnu/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/crtbegin.o -L/ufs/murphy/derrick/gnu/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66 -L/ufs/murphy/derrick/gnu/egcs-1.1.2/i686-pc-linux-gnulibc1/lib uudecode2.o -lgcc -lgmon -lc -lgcc /ufs/murphy/derrick/gnu/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/crtend.o /ufs/murphy/derrick/gnu/egcs-1.1.2/i686-pc-linux-gnulibc1/lib/crtn.o
/home/derrick/lennybin/i686-pc-linux-gnulibc1-ld: cannot open -lgmon: No such file or directory
collect2: ld returned 1 exit status
Is there a way to get libgmon? It seems that a native compiler does
not even need this library. Is there a way to make egcs understand that
my cross compiler really is a native compiler? Or perhaps my approach
to making a libc5 compiler is wrong?
Any help would be appreciated. Thanks!
Derrick Bass
-----------------------------------
PS:
Here's how I configured egcs:
../egcs-1.1.2/configure --prefix=$HOME/gnu/egcs-1.1.2 --target=i686-pc-linux-gnulibc1 --with-headers=/usr/i486-linux-libc5/include --with-libs=/usr/i486-linux-libc5/lib
PPS:
The same thing happens with egcs-1999-06-08 (the latest version I've
compiled)