Re: Compiling BETA2 with clang fails
2011/9/6 Dimitry Andric <dim@freebsd.org>:
> 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.htm=
l
I think it's more like the following issue, which is not new :
http://lists.freebsd.org/pipermail/freebsd-current/2011-May/024509.html
I personally avoid -march=3Dnative with clang on recent CPUs, and use
-march=3Dcore2 instead on a Core2 and a Corei7.
--=20
Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 ASCII ribbon campaign ( )
e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X
www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \
=A0 "Il y a seulement 10 sortes de gens dans le monde :
=A0 ceux qui comprennent le binaire,
=A0 et ceux qui ne le comprennent pas."
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 14 之 26 篇):