From owner-freebsd-current@FreeBSD.ORG Sun Mar 4 20:41:41 2012 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 D0D161065675 for ; Sun, 4 Mar 2012 20:41:41 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 70CEC8FC16 for ; Sun, 4 Mar 2012 20:41:41 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for freebsd-current@freebsd.org with esmtp (envelope-from ) id <1S4IFQ-0003JN-Dm>; Sun, 04 Mar 2012 21:41:40 +0100 Received: from e178032031.adsl.alicedsl.de ([85.178.32.31] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) for freebsd-current@freebsd.org with esmtpsa (envelope-from ) id <1S4IFQ-0002JH-6J>; Sun, 04 Mar 2012 21:41:40 +0100 Message-ID: <4F53D383.2030104@zedat.fu-berlin.de> Date: Sun, 04 Mar 2012 21:41:39 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120223 Thunderbird/10.0.2 MIME-Version: 1.0 To: Current FreeBSD X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFB661811DE4A16285CB5657F" X-Originating-IP: 85.178.32.31 Subject: buildworld/buildkernel broken: undefined reference to `_ThreadRuneLocale' 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: Sun, 04 Mar 2012 20:41:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFB661811DE4A16285CB5657F Content-Type: multipart/mixed; boundary="------------090106080104020606000704" This is a multi-part message in MIME format. --------------090106080104020606000704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable While trying to build world or even build kernel, FreeBSD 10.0-CURRENT/amd64 built with CLANG and going to be build with CLANG starts failing. Attached you'll find my src.conf. /etc/make.conf contains the "traditional" CLANG stuff, nothing chaged in make.conf since the last successful build: ### ### CLANG ### =2Eif !defined(NO_CLANG) #.if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} || ${.CURDIR:M/sys*} =2Eif !defined(CC) || ${CC} =3D=3D "cc" CC=3D clang =2Eendif =2Eif !defined(CXX) || ${CXX} =3D=3D "c++" CXX=3D clang++ =2Eendif =2Eif !defined(CPP) || ${CPP} =3D=3D "cpp" CPP=3D clang-cpp =2Eendif ## Don't die on warnings NO_WERROR=3D WERROR=3D ### Don't forget this when using Jails! #NO_FSCHG=3D # CFLAGS+=3D -pipe -O3 -fno-strict-aliasing COPTFLAGS+=3D -pipe -O3 #.endif =2Eendif Starting "make buildkernel" in /usr/src ends upd with: -------------------------------------------------------------- >>> stage 2.3: build tools -------------------------------------------------------------- cd /usr/obj/usr/src/sys/THOR; PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/u= sr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bi= n MAKESRCPATH=3D/usr/src/sys/dev/aic7xxx/aicasm make SSP_CFLAGS=3D -DNO_CPU_CFLAGS -DNO_CTF -f /usr/src/sys/dev/aic7xxx/aicasm/Makefile Warning: Object directory not changed from original /usr/obj/usr/src/sys/THOR yacc -b aicasm_gram -d -o aicasm_gram.c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99 -Wsystem-headers -Wal= l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99 -Wsystem-headers -Wal= l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99 -Wsystem-headers -Wal= l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c aicasm_gram.c clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99 -Wsystem-headers -Wal= l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c aicasm_macro_gram.c lex -t /usr/src/sys/dev/aic7xxx/aicasm/aicasm_scan.l > aicasm_scan.c clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99 -Wsystem-headers -Wal= l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c aicasm_scan.c lex -t -Pmm /usr/src/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l > aicasm_macro_scan.c clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99 -Wsystem-headers -Wal= l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c aicasm_macro_scan.c clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99 -Wsystem-headers -Wal= l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -o aicasm aicasm.o aicasm_symbol.o aicasm_gram.o aicasm_macro_gram.o aicasm_scan.o aicasm_macro_scan.o -ll clang: warning: argument unused during compilation: '-nostdinc' clang: warning: argument unused during compilation: '-std=3Dgnu99' aicasm.o: In function `main': /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c:(.text+0x88f): undefined reference to `_ThreadRuneLocale' aicasm_symbol.o: In function `symtable_dump': /usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:(.text+0x7a4): undefined reference to `_ThreadRuneLocale' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [aicasm] Error code 1 Stop in /usr/obj/usr/src/sys/THOR. *** [buildkernel] Error code 1 Stop in /usr/src. *** [buildkernel] Error code 1 Stop in /usr/src. Starting "make buildworld" in /usr/src ends up with =3D=3D=3D> games/fortune/strfile (obj,depend,all,install) /usr/obj/usr/src/tmp/usr/src/games/fortune/strfile created for /usr/src/games/fortune/strfile rm -f .depend CC=3D'clang' mkdep -f .depend -a -I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dgnu99 /usr/src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a /usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -std=3Dgnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -std=3Dgnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include -static -L/usr/obj/usr/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy clang: warning: argument unused during compilation: '-std=3Dgnu99' strfile.o: In function `main': /usr/src/games/fortune/strfile/strfile.c:(.text+0x2e0): undefined reference to `_ThreadRuneLocale' /usr/src/games/fortune/strfile/strfile.c:(.text+0x382): undefined reference to `_ThreadRuneLocale' strfile.o: In function `cmp_str': /usr/src/games/fortune/strfile/strfile.c:(.text+0x860): undefined reference to `_ThreadRuneLocale' /usr/src/games/fortune/strfile/strfile.c:(.text+0x8bb): undefined reference to `_ThreadRuneLocale' /usr/src/games/fortune/strfile/strfile.c:(.text+0x9b4): undefined reference to `_ThreadRuneLocale' strfile.o:/usr/src/games/fortune/strfile/strfile.c:(.text+0xa0e): more undefined references to `_ThreadRuneLocale' follow clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [strfile] Error code 1 1 error *** [bootstrap-tools] Error code 2 1 error *** [_bootstrap-tools] Error code 2 1 error *** [buildworld] Error code 2 1 error --------------090106080104020606000704 Content-Type: text/plain; name="src.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="src.conf" #WITH_CLANG=3D YES #WITH_CLANG_EXTRAS=3D YES # #CC=3D clang #CXX=3D clang++ #CPP=3D clang-cpp # #CFLAGS.clang+=3D -O3 -pipe -fno-strict-aliasing #COPTFLAGS.clang+=3D -O3 -pipe #CFLAGS.cc+=3D -O2 -pipe -fno-strict-aliasing #COPTFLAGS.cc+=3D -O2 -pipe # WITH_BIND_LIBS=3D YES WITH_BIND_SIGCHASE=3D YES WITH_BIND_LARGE_FILE=3D YES # WITH_IDEA=3D YES WITH_HESIOD=3D YES # #WITH_ICONV=3D YES #WITH_BSD_GREP=3D YES # WITH_LIBCPLUSPLUS=3D YES # #WITH_OFED=3D YES --------------090106080104020606000704-- --------------enigFB661811DE4A16285CB5657F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBAgAGBQJPU9OEAAoJEOgBcD7A/5N8AsMH/0EZ//Vg81UCv1ayC3yrY/F8 iNNVuq3BpLSnuh9hXR7etiOVB1keEFI+eG+vZaxUtZz+JsSH94XKiFgPP+S+C8Wt iJyPJeIblhzzHTyDw8DrKP3IPCClVH5YEZaBeamqvVmCM2FWiDps5bJ37PKM0O1S utEn5fvfCT8WWlyGDQ41JDi2Rp0sDfZRxWJmyFL8Rr8Ow9QshjoyPAKv6LhjwZDk VskeBHh+gdk7JAMsS+WAEHMqt/AD5p0trfv/M7eThPOBBUIZ/N5vtMwUaHIyTasM Z1a134kNb+1zomW/8hv4bILMopG/jewfRYRP8iYeHBZLlIQh1Ddo8R9Tpaf44nQ= =W8Z4 -----END PGP SIGNATURE----- --------------enigFB661811DE4A16285CB5657F--