Date: Tue, 6 Sep 2011 14:34:19 +0200 From: Olivier Smedts <olivier@gid0.org> To: Dimitry Andric <dim@freebsd.org> Cc: Volodymyr Kostyrko <c.kworr@gmail.com>, freebsd-current@freebsd.org Subject: Re: Compiling BETA2 with clang fails Message-ID: <CABzXLYPUPvubXa4a%2BRkAftCOCyr===v6SOw=o=qtZ%2BHDTiJywg@mail.gmail.com> In-Reply-To: <4E660BA3.8080103@FreeBSD.org> References: <j3u29f$bv8$1@dough.gmane.org> <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E660BA3.8080103@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYPUPvubXa4a%2BRkAftCOCyr===v6SOw=o=qtZ%2BHDTiJywg>