From owner-freebsd-current@FreeBSD.ORG Tue Sep 6 12:01:40 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 177DF106567F for ; Tue, 6 Sep 2011 12:01:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id CE0EE8FC18 for ; Tue, 6 Sep 2011 12:01:39 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:c11e:d642:52a9:aa6e] (unknown [IPv6:2001:7b8:3a7:0:c11e:d642:52a9:aa6e]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DDEDC5C59; Tue, 6 Sep 2011 14:01:38 +0200 (CEST) Message-ID: <4E660BA3.8080103@FreeBSD.org> Date: Tue, 06 Sep 2011 14:01:39 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: Volodymyr Kostyrko References: <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> In-Reply-To: <4E644993.4090703@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: 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:01:40 -0000 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?