Date: Sun, 29 Sep 2013 03:33:50 +0930 From: Wayne Sierke <ws@au.dyndns.ws> To: Dan Lukes <dan@obluda.cz> Cc: Cary <cary@sdf.org>, freebsd-ports@freebsd.org Subject: Building thunderbird with clang [was Re: building seamonkey with clang] Message-ID: <1380391430.88797.9.camel@predator-ii.buffyverse> In-Reply-To: <5215E1B8.6040602@obluda.cz> References: <5214F6F4.4000409@obluda.cz> <20130821230447.GA13997@SDF.ORG> <5215E1B8.6040602@obluda.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1380391430.88797.9.camel>