From owner-freebsd-current@FreeBSD.ORG Tue Feb 22 15:02:02 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 0D75D1065670; Tue, 22 Feb 2011 15:02:02 +0000 (UTC) (envelope-from datastream.freecity@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id A17A18FC1B; Tue, 22 Feb 2011 15:02:01 +0000 (UTC) Received: by gyh4 with SMTP id 4so1569845gyh.13 for ; Tue, 22 Feb 2011 07:02:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=rsM3zmdTNHfqcIndQNIDntAi4jhVrOnJs7EgzOURiSM=; b=Weva+i0RhJ+9sOcTXqwdf9Yzbxy/gDYHI0RSu76jKUv69E1Q3QSWjnPp158aJAbWZg bIELHlRtJbBtjpPtuc11PTk/ik29fbbm5qmU90USrLl7J3OJGDpvkf8Wag/273W5Tyv/ ZucB/UDJ6brAom4ChzNnfV+TnDHoBo7jiUyfY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=UdhXOqJbqeCKrOdZSIyhUjFXHwlAiCKAWEF8Ct+5Ef7PtR3jhA3cJWHoKFDA2oTdPt KpoxhYqIRgaQzX4GxC8dTQnaGHWTXMRZx/n4fYgOtojslIAmOa9D+Ysc8kHtBaX8rxAk An1LewWLt8n/6AhIRAyJZrMPVsA8xWV8lsSig= MIME-Version: 1.0 Received: by 10.151.40.5 with SMTP id s5mr3454224ybj.63.1298385477681; Tue, 22 Feb 2011 06:37:57 -0800 (PST) Received: by 10.151.47.7 with HTTP; Tue, 22 Feb 2011 06:37:57 -0800 (PST) In-Reply-To: <4D627FBE.1070700@FreeBSD.org> References: <4D627FBE.1070700@FreeBSD.org> Date: Tue, 22 Feb 2011 22:37:57 +0800 Message-ID: From: "datastream datastream.freecity" To: Dimitry Andric Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Olivier Smedts , freebsd-current@freebsd.org 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: Tue, 22 Feb 2011 15:02:02 -0000 I add '-no-integrated-as' in /etc/make.conf,but I still failed. #clang -v FreeBSD clang version 2.8 (tags/RELEASE_28 115870) 20101007 Target: x86_64-undermydesk-freebsd9.0 Thread model: posix #make buildworld ...... ===> cddl/usr.bin/zinject (all) clang -O2 -pipe -fno-omit-frame-pointer -no-integrated-as -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/compat/opensolaris -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/include -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/lib/libumem -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzfs/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzpool/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libnvpair -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/head -I/usr/src/cddl/usr.bin/zinject/../../lib/libumem -DNEED_SOLARIS_BOOLEAN -std=gnu89 -fstack-protector -Wno-pointer-sign -Wno-unknown-pragmas -c /usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/zinject.c clang -O2 -pipe -fno-omit-frame-pointer -no-integrated-as -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/compat/opensolaris -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/include -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/lib/libumem -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzfs/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzpool/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libnvpair -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/head -I/usr/src/cddl/usr.bin/zinject/../../lib/libumem -DNEED_SOLARIS_BOOLEAN -std=gnu89 -fstack-protector -Wno-pointer-sign -Wno-unknown-pragmas -c /usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/translate.c /usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/translate.c:209:10: warning: 10 enumeration values not handled in switch: 'TYPE_MOS', 'TYPE_MOSDIR', 'TYPE_METASLAB'... [-Wswitch-enum] switch (type) { ^ /usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/translate.c:323:11: warning: 5 enumeration values not handled in switch: 'TYPE_DATA', 'TYPE_DNODE', 'TYPE_LABEL_UBERBLOCK'... [-Wswitch-enum] switch (type) { ^ /usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/translate.c:449:10: warning: 10 enumeration values not handled in switch: 'TYPE_DATA', 'TYPE_DNODE', 'TYPE_MOS'... [-Wswitch-enum] switch (label_type) { ^ 3 warnings generated. clang -O2 -pipe -fno-omit-frame-pointer -no-integrated-as -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/compat/opensolaris -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/include -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/lib/libumem -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzfs/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzpool/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libnvpair -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/head -I/usr/src/cddl/usr.bin/zinject/../../lib/libumem -DNEED_SOLARIS_BOOLEAN -std=gnu89 -fstack-protector -Wno-pointer-sign -Wno-unknown-pragmas -o zinject zinject.o translate.o -lavl -lgeom -lm -lnvpair -lumem -luutil -lzfs -lzpool clang: warning: argument unused during compilation: '-std=gnu89' /usr/obj/usr/src/tmp/lib/libthr.so.3: undefined reference to `_rtld_get_stack_prot' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop in /usr/src/cddl/usr.bin/zinject. *** Error code 1 Stop in /usr/src/cddl/usr.bin. *** Error code 1 Stop in /usr/src/cddl. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. On Mon, Feb 21, 2011 at 11:07 PM, Dimitry Andric wrote: > On 2011-02-21 11:33, Olivier Smedts wrote: > >> I can't buildworld with Clang since the last update. >> > ... > > %cat /etc/src.conf >> .if !defined(CC) || ${CC} == "cc" >> CC=clang >> .endif >> .if !defined(CXX) || ${CXX} == "c++" >> CXX=clang++ >> .endif >> # Don't die on warnings >> NO_WERROR= >> WERROR= >> > > Try putting these lines in /etc/make.conf instead. Unfortunately, due > to the way src.conf is read, it isn't usable for the few cases we need > to disable clang's integrated assembler, using the '-no-integrated-as' > option. > > > > /tmp/cc-VUyvc6.s:6:1: warning: ignoring directive for now >> .intel_syntax noprefix >> ^ >> > > In this case, you hit the one and only instance of the '.intel_syntax' > directive in the tree; this directive is not yet supported by clang's > integrated assembler. > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >