Re: Compiling BETA2 with clang fails

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 06 Sep 2011 14:01:39 +0200
On 2011-09-05 06:01, Volodymyr Kostyrko wrote:
...
>> You should not unconditionally add -fPIC. Remove it, and try again.
>> (The -Qunused-arguments is fine, btw.)
>
> 0k, here you go. Just as you say - no -fPIC, no ccache, no anything.
...
> /usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start1':
> /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x7d): undefined reference to
> `atexit'
> /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x84): undefined reference to
> `_init_tls'
> /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x90): undefined reference to
> `atexit'
> /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xad): undefined reference to
> `exit'

Hm, sorry that I did not notice it before, but maybe you are having the
issue described here:

http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026594.html

What is your current kernel revision?
Received on Tue Sep 06 2011 - 10:01:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:17 UTC