From owner-freebsd-stable@FreeBSD.ORG Tue Apr 22 09:40:09 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5AC973FE for ; Tue, 22 Apr 2014 09:40:09 +0000 (UTC) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 18DE81C15 for ; Tue, 22 Apr 2014 09:40:08 +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.72) (envelope-from ) id 1WcXBO-0007Ai-QO for freebsd-stable@freebsd.org; Tue, 22 Apr 2014 11:40:07 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-stable@freebsd.org Subject: Re: [9.2-STABLE/CLANG 3.3|3.4] x11/kdelibs4 References: <20140418081014.2ac2536e@munin.walstatt.dyndns.org> <641C6CAA-C472-4359-9293-E65F16E84DC6@FreeBSD.org> <20140419103237.41962eff.ohartman@zedat.fu-berlin.de> <20140419193019.0ee792e6.ohartman@zedat.fu-berlin.de> <20140419210243.76f3c9cd.ohartman@zedat.fu-berlin.de> Date: Tue, 22 Apr 2014 11:40:05 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20140419210243.76f3c9cd.ohartman@zedat.fu-berlin.de> User-Agent: Opera Mail/12.16 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.8 X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED, BAYES_00, URI_HEX autolearn=disabled version=3.3.2 X-Scan-Signature: 246115766b56dba7f675551df821dbd2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 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 Apr 2014 09:40:09 -0000 On Sat, 19 Apr 2014 21:02:43 +0200, O. Hartmann wrote: > On Sat, 19 Apr 2014 20:25:51 +0200 > Dimitry Andric wrote: > >> On 19 Apr 2014, at 19:30, O. Hartmann >> wrote: >> > On Sat, 19 Apr 2014 18:44:51 +0200 >> > Dimitry Andric wrote: >> ... >> >>> Stop in /usr/ports/x11/kdelibs4/work/.build. >> >>> *** [khtml/CMakeFiles/khtml.dir/all] Error code 1 >> >>> >> >> >> >> I cannot reproduce the problem on my copy of stable/9 r264647. >> Using /usr/bin/time >> >> -l on it results in: >> >> >> >> 3.36 real 1.01 user 0.59 sys >> >> 71684 maximum resident set size >> >> 30951 average shared memory size >> >> 3349 average unshared data size >> >> 126 average unshared stack size >> >> 13539 page reclaims >> >> 354 page faults >> >> 0 swaps >> >> 2 block input operations >> >> 3 block output operations >> >> 66 messages sent >> >> 0 messages received >> >> 0 signals received >> >> 370 voluntary context switches >> >> 10 involuntary context switches >> >> >> >> So it compiles in 3 seconds, and uses approximately 70MB of memory. >> > what compiler does your copy use as default? I use CLANG 3.3/3.4 >> >> Just the version of clang that comes with stable/9 r264647, e.g.: >> >> FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 >> >> Are you using a port version of clang to build kdelibs4, by any chance? >> >> -Dimitry >> > > In have installed devel/llvm33 and lang/clang33. On this specific > 9.2-STABLE system, I > use this setting in /etc/make.conf for clang over gcc 4.2 selection: > > [...] > ## > ## CLANG > ## > .if !defined(NO_CLANG) > .if !defined(CC) || ${CC} == "cc" > CC= clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX= clang++ > .endif > .if !defined(CPP) || ${CPP} == "cpp" > CPP= clang-cpp > .endif > ## Don't die on warnings > NO_WERROR= > WERROR= > ## Don't forget this when using Jails! > #NO_FSCHG= > CFLAGS+= -O3 -pipe -fno-strict-aliasing > COPTFLAGS+= -O3 -pipe > .endif > > [...] > > As of this moment, I replace llvm33 with llvm34 and clang33 with clang34 > (ports). How can > I asure that system's base compiler is used? > > > Oliver Try to remove the CFLAGS/COPTFLAGS from make.conf and run with the defaults. Or try with an empty or removed make.conf anyway. (That is what most people use AFAIK.) Regards, Ronald.