Date: Tue, 22 Feb 2011 22:37:57 +0800 From: "datastream datastream.freecity" <datastream.freecity@gmail.com> To: Dimitry Andric <dim@freebsd.org> Cc: Olivier Smedts <olivier@gid0.org>, freebsd-current@freebsd.org Subject: Re: Can't buildworld since Clang update Message-ID: <AANLkTin3KAOzY3PFcVzMdRaawvf2JD1ogh2-j_dJrR6m@mail.gmail.com> In-Reply-To: <4D627FBE.1070700@FreeBSD.org> References: <AANLkTimw-btyXh2kbz3r_T9gQVSNuTXVY=JyYsMtG8_z@mail.gmail.com> <4D627FBE.1070700@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dim@freebsd.org> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin3KAOzY3PFcVzMdRaawvf2JD1ogh2-j_dJrR6m>