From owner-freebsd-current@FreeBSD.ORG Tue Sep 6 12:34:21 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A51C106568B; Tue, 6 Sep 2011 12:34:21 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by mx1.freebsd.org (Postfix) with ESMTP id EE10C8FC1A; Tue, 6 Sep 2011 12:34:20 +0000 (UTC) Received: by qwg2 with SMTP id 2so4309419qwg.17 for ; Tue, 06 Sep 2011 05:34:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.191.66 with SMTP id dl2mr3831382qab.255.1315312459774; Tue, 06 Sep 2011 05:34:19 -0700 (PDT) Received: by 10.229.98.137 with HTTP; Tue, 6 Sep 2011 05:34:19 -0700 (PDT) In-Reply-To: <4E660BA3.8080103@FreeBSD.org> References: <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E660BA3.8080103@FreeBSD.org> Date: Tue, 6 Sep 2011 14:34:19 +0200 Message-ID: From: Olivier Smedts To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Volodymyr Kostyrko , freebsd-current@freebsd.org Subject: Re: Compiling BETA2 with clang fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 12:34:21 -0000 2011/9/6 Dimitry Andric : > 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."