From owner-freebsd-ports@FreeBSD.ORG Sat Sep 28 18:04:14 2013 Return-Path: Delivered-To: freebsd-ports@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 ESMTP id 1BCEBDF7 for ; Sat, 28 Sep 2013 18:04:14 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:2:7]) by mx1.freebsd.org (Postfix) with ESMTP id A12B42A2B for ; Sat, 28 Sep 2013 18:04:13 +0000 (UTC) Received: from ppp103-111.static.internode.on.net (HELO lillith-iv.ovirt.dyndns.ws) ([150.101.103.111]) by ipmail07.adl2.internode.on.net with ESMTP; 29 Sep 2013 03:34:11 +0930 X-Envelope-From: ws@au.dyndns.ws X-Envelope-To: freebsd-ports@freebsd.org Received: from [172.17.17.136] (ws@[172.17.17.136]) by lillith-iv.ovirt.dyndns.ws (8.14.5/8.14.5) with ESMTP id r8SI3owj011908; Sun, 29 Sep 2013 03:33:53 +0930 (CST) (envelope-from ws@au.dyndns.ws) Subject: Building thunderbird with clang [was Re: building seamonkey with clang] From: Wayne Sierke To: Dan Lukes In-Reply-To: <5215E1B8.6040602@obluda.cz> References: <5214F6F4.4000409@obluda.cz> <20130821230447.GA13997@SDF.ORG> <5215E1B8.6040602@obluda.cz> Content-Type: text/plain; charset="ASCII" Date: Sun, 29 Sep 2013 03:33:50 +0930 Message-ID: <1380391430.88797.9.camel@predator-ii.buffyverse> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (lillith-iv.ovirt.dyndns.ws [172.17.17.142]); Sun, 29 Sep 2013 03:33:53 +0930 (CST) X-Scanned-By: MIMEDefang 2.73 on 172.17.17.142 X-Scanned-By: SpamAssassin 3.003002(2011-06-06) X-Scanned-By: ClamAV X-Spam-Score: -2.9 () ALL_TRUSTED,BAYES_00 Cc: Cary , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Sep 2013 18:04:14 -0000 On Thu, 2013-08-22 at 12:02 +0200, Dan Lukes wrote: > On 08/22/13 01:04, Cary: > > On Wed, Aug 21, 2013 at 07:20:52PM +0200, Dan Lukes wrote: > >>> 0. Program arguments: /usr/bin/clang++ -cc1 -triple i386-unknown-freebsd9.0 > >> ... > >>> sr/local/include -fmodule-cache-path /var/tmp/clang-module-cache -O3 -Wall -Wpoi > >> ... > >>> y/work/comm-release/mailnews/local/src/nsMsgMaildirStore.cpp > >> > >> You may be interested to know that source will compile with -O0 > >> (instead of -O3). > > > in what way could one change the port's configuration before running make? > > I don't know, I didn't do it. > > I just entered the failed command from command line (from appropriate > directory, with -O3 changed to -O0). You can restart make then. It will > continue with compilation of next source. > > Note, there is OPTIMIZED_CFLAGS option recognized. It has been used for > task you are asked for in the past. It is ignored by both Seamonkey's > and Firefox's Makefile now. I don't know it is intentional or it is > another bug. Dan, I have to thank you for this suggestion. Building the current (22.0) thunderbird was failing for me with the same failure that Cary reported. This is on a 9.1-RELEASE amd64 system. I also tried building with devel/clang but that was then failing elsewhere. Manually compiling the troublesome file using the reported command but with the (dual!) -O3 flags removed - leaving the remaining (two!) -O2 flags - succeeded and then the remainder of the build completed without further errors. Thanks again for providing that info. Wayne