From owner-freebsd-current@FreeBSD.ORG Mon Feb 28 14:35:38 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 E409E1065677 for ; Mon, 28 Feb 2011 14:35:38 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B88538FC14 for ; Mon, 28 Feb 2011 14:35:36 +0000 (UTC) Received: by iwn33 with SMTP id 33so3534240iwn.13 for ; Mon, 28 Feb 2011 06:35:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.31.131 with SMTP id y3mr5379800ibc.179.1298903735677; Mon, 28 Feb 2011 06:35:35 -0800 (PST) Received: by 10.231.149.79 with HTTP; Mon, 28 Feb 2011 06:35:35 -0800 (PST) In-Reply-To: References: Date: Mon, 28 Feb 2011 15:35:35 +0100 Message-ID: From: Olivier Smedts To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Can't buildworld since Clang update 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: Mon, 28 Feb 2011 14:35:39 -0000 2011/2/21 Olivier Smedts : > Hello, > > I can't buildworld with Clang since the last update. > > %uname -a > FreeBSD zozo.afpicl.lan 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r218908M: > Mon Feb 21 09:56:35 CET 2011 > root@zozo.afpicl.lan:/usr/obj/usr/src/sys/CORE =A0amd64 > %clang -v > FreeBSD clang version 2.9 (trunk 126079) 20110220 > Target: x86_64-undermydesk-freebsd9.0 > Thread model: posix > %cat /etc/src.conf > .if !defined(CC) || ${CC} =3D=3D "cc" > CC=3Dclang > .endif > .if !defined(CXX) || ${CXX} =3D=3D "c++" > CXX=3Dclang++ > .endif > # Don't die on warnings > NO_WERROR=3D > WERROR=3D > %head /etc/make.conf > CPUTYPE?=3Dcore2 > KERNCONF=3DCORE > CFLAGS=3D-O2 -pipe -march=3Dnative > NO_CPU_CFLAGS=3Dyes > COPTFLAGS=3D-O2 -pipe -march=3Dnative > NO_CPU_COPTFLAGS=3Dyes > BOOTWAIT=3D0 > WITHOUT_PROFILE=3Dyes > > # make buildworld > [...] > =3D=3D=3D> lib/libz (obj,depend,all,install) > [...] > clang -O2 -pipe -march=3Dnative -DHAS_snprintf -DHAS_vsnprintf > -I/usr/src/lib/libz -DASMV -DNO_UNDERLINE -DSYMBOL_VERSIONING > -std=3Dgnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign > -Wa,--noexecstack -c /usr/src/lib/libz/contrib/gcc_gvmat64/gvmat64.S > /tmp/cc-VUyvc6.s:6:1: warning: ignoring directive for now > .intel_syntax noprefix > ^ > /tmp/cc-VUyvc6.s:12:9: error: unknown use of instruction mnemonic > without a size suffix > =A0 =A0 =A0 =A0mov [(rsp + 40 - 96)],rbx > =A0 =A0 =A0 =A0^ I now have problems building gnu/lib/libobjc. When using Clang, gcc is still used to build gnu/lib/libobjc (see "XXX: clang cannot compile libobjc yet"), but gcc core dumps at this stage on two different computers, using the same CFLAGS "-O2 -pipe -march=3Dnative" : pid 38850 (gcc), uid 0: exited on signal 11 (core dumped) %clang -v FreeBSD clang version 2.9 (trunk 126547) 20110226 Target: x86_64-undermydesk-freebsd9.0 Thread model: posix --=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."