This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: Failed to compile tst-mqueue8x.c
- From: Daniel Jacobowitz <drow at false dot org>
- To: Carlos O'Donell <carlos at systemhalted dot org>
- Cc: libc-ports at sourceware dot org
- Date: Wed, 23 May 2007 13:48:19 -0400
- Subject: Re: Failed to compile tst-mqueue8x.c
- References: <119aab440705022119r487a6c29k53c46a7512b99642@mail.gmail.com>
On Thu, May 03, 2007 at 12:19:38AM -0400, Carlos O'Donell wrote:
> When running the glibc testsuite, tst-mqueue8x.c fails to compile
> (missing personality routine).
>
> tst-mqueue8x.o: In function `__pthread_cleanup_routine':
> tst-mqueue8x.o:(.rodata+0x10): undefined reference to `__gcc_personality_v0'
>
> The heavy handed fix is shown below. Unfortunately I don't think this
> is the correct solution. My gut feeling is that this means something
> else is broken.
>
> Any clues as to what is originally broken?
Did you ever fix this? It builds fine on MIPS64. I have the same
reference to __gcc_personality_v0; the link command already includes
the same thing you added.
mips64-linux-gnu-gcc -mabi=64 -nostdlib -nostartfiles -o
/space/fsf/mips-glibc/rt/tst-mqueue8x
-Wl,-dynamic-linker=/space/fsf/mips-glibc-install/lib/ld.so.1
-Wl,-z,relro /space/fsf/mips-glibc/csu/crt1.o
/space/fsf/mips-glibc/csu/crti.o `mips64-linux-gnu-gcc -mabi=64
--print-file-name=crtbegin.o` /space/fsf/mips-glibc/rt/tst-mqueue8x.o
/space/fsf/mips-glibc/rt/librt.so
/space/fsf/mips-glibc/nptl/libpthread_nonshared.a
/space/fsf/mips-glibc/nptl/libpthread.so
-Wl,-rpath-link=/space/fsf/mips-glibc:/space/fsf/mips-glibc/math:/space/fsf/mips-glibc/elf:/space/fsf/mips-glibc/dlfcn:/space/fsf/mips-glibc/nss:/space/fsf/mips-glibc/nis:/space/fsf/mips-glibc/rt:/space/fsf/mips-glibc/resolv:/space/fsf/mips-glibc/crypt:/space/fsf/mips-glibc/nptl
/space/fsf/mips-glibc/libc.so.6 /space/fsf/mips-glibc/libc_nonshared.a
-lgcc -Wl,--as-needed -lgcc_s -Wl,--no-as-needed
`mips64-linux-gnu-gcc -mabi=64 --print-file-name=crtend.o`
/space/fsf/mips-glibc/csu/crtn.o
--
Daniel Jacobowitz
CodeSourcery