Compiling BETA2 with clang fails

Dimitry Andric dim at FreeBSD.org
Tue Sep 6 12:01:40 UTC 2011


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?


More information about the freebsd-current mailing list