Building thunderbird with clang [was Re: building seamonkey with clang]
Wayne Sierke
ws at au.dyndns.ws
Sat Sep 28 18:04:14 UTC 2013
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
More information about the freebsd-ports
mailing list