From owner-freebsd-stable@FreeBSD.ORG Tue May 22 11:27:35 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54F38106564A for ; Tue, 22 May 2012 11:27:35 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id CCEF38FC0C for ; Tue, 22 May 2012 11:27:34 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SWnFP-0002Kl-A2 for freebsd-stable@freebsd.org; Tue, 22 May 2012 13:27:27 +0200 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1SWnFP-0002x0-MD for freebsd-stable@freebsd.org; Tue, 22 May 2012 13:27:27 +0200 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-stable@freebsd.org References: <619131337684699@web24h.yandex.ru> Date: Tue, 22 May 2012 13:27:25 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <619131337684699@web24h.yandex.ru> User-Agent: Opera Mail/11.64 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.1 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_05 autolearn=disabled version=3.2.5 X-Scan-Signature: 3ced5df4177ef3a93a84b902ce7c160e Subject: Re: BuildingFreeBSDWithClang (was: Re: (no subject)) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 11:27:35 -0000 On Tue, 22 May 2012 13:04:59 +0200, S.N.Grigoriev wrote: > Hi list, > > I tried to build world and kernel with CLang on my 9-stable amd64 system. > The following errors occured: > > mv -f term.h.new term.h > cat > /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/curses.tail > >> curses.h.new > mv -f curses.h.new curses.h > cc -o make_keys -O2 -pipe -I. > -I/usr/obj/lib32/usr/src/lib/ncurses/ncurses/../ncurses > -I/usr/src/lib/ncurses/ncurses/../ncurses > -I/usr/src/lib/ncurses/ncurses/../ncurses > -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include > -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall > -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 > -Qunused-arguments -Wsystem-headers -Werror -Wall -Wno-format-y2k -W > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body > -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value > -Wno-parentheses-equality -Wno-unused-function -Wno-conversion > /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_keys.c > cc -o make_hash -O2 -pipe -I. > -I/usr/obj/lib32/usr/src/lib/ncurses/ncurses/../ncurses > -I/usr/src/lib/ncurses/ncurses/../ncurses > -I/usr/src/lib/ncurses/ncurses/../ncurses > -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include > -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall > -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 > -Qunused-arguments -Wsystem-headers -Werror -Wall -Wno-format-y2k -W > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body > -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value > -Wno-parentheses-equality -Wno-unused-function -Wno-conversion > -DMAIN_PROGRAM > /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/comp_hash.c > cc: unrecognized option '-Qunused-arguments' > cc: unrecognized option '-Qunused-arguments' > cc1: error: unrecognized command line option "-Wno-empty-body" > cc1: error: unrecognized command line option "-Wno-empty-body" > cc1: error: unrecognized command line option "-Wno-string-plus-int" > cc1: error: unrecognized command line option "-Wno-tautological-compare" > cc1: error: unrecognized command line option "-Wno-parentheses-equality" > cc1: error: unrecognized command line option "-Wno-string-plus-int" > cc1: error: unrecognized command line option "-Wno-tautological-compare" > cc1: error: unrecognized command line option "-Wno-parentheses-equality" > *** Error code 1 > *** Error code 1 > 2 errors > *** Error code 2 > 1 error > *** Error code 2 > 1 error > > The only statement in my /etc/src.conf is `WITH_CLANG_IS_CC=yes'. > Should I use additional configuration options to successfully > build the system with CLang? > > Thanks, > Serguey. http://wiki.freebsd.org/BuildingFreeBSDWithClang