From owner-freebsd-current@FreeBSD.ORG Sat Sep 3 20:43:07 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 555461065672 for ; Sat, 3 Sep 2011 20:43:07 +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 19C258FC0A for ; Sat, 3 Sep 2011 20:43:07 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:b087:5572:d109:d251] (unknown [IPv6:2001:7b8:3a7:0:b087:5572:d109:d251]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 32C185C59; Sat, 3 Sep 2011 22:43:06 +0200 (CEST) Message-ID: <4E62915E.1010405@FreeBSD.org> Date: Sat, 03 Sep 2011 22:43:10 +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: In-Reply-To: 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: Sat, 03 Sep 2011 20:43:07 -0000 On 2011-09-03 22:22, Volodymyr Kostyrko wrote: > Hi all. > > ===> libexec/bootpd (all) ... > /usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC > -march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 > -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k > -Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args > -o bootpd bootpd.o dovend.o readfile.o hash.o dumptab.o lookup.o getif.o > hwaddr.o report.o tzone.o rtmsg.o > /usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start1': > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x94): undefined reference to > `atexit' > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x9d): undefined reference to > `_init_tls' > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xad): undefined reference to > `atexit' > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xd6): undefined reference to > `exit' > bootpd.o: In function `main': > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x31): undefined > reference to `strrchr' > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0xa2): undefined > reference to `malloc' > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0xe0): undefined > reference to `exit' > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x12a): undefined > reference to `__error' > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x150): undefined > reference to `getsockname' > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x1c7): undefined > reference to `gethostname' > bootpd.o: In function `.LBB0_31': > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x385): undefined > reference to `sscanf' > bootpd.o: In function `.LBB0_42': > /var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x44d): undefined > reference to `sscanf' > bootpd.o: In function `.LBB0_55': > > There may be some problems integrating clang into Makefiles, because if > I cd to /usr/src/libexec/bootpd and run make there everything works fine. Please post your make.conf/src.conf, and any other environmental settings which may influence the build. For starters, does it still fail if you remove ccache and the non-standard CFLAGS?