From nobody@FreeBSD.org  Thu Sep 26 14:12:57 2013
Return-Path: <nobody@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 50651485
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2013 14:12:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 3E2EA2CB2
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2013 14:12:57 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8QECvJb004744
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2013 14:12:57 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8QECvoJ004741;
	Thu, 26 Sep 2013 14:12:57 GMT
	(envelope-from nobody)
Message-Id: <201309261412.r8QECvoJ004741@oldred.freebsd.org>
Date: Thu, 26 Sep 2013 14:12:57 GMT
From: Sascha Holzleiter <sascha@root-login.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mail/thunderbird: Does not build with poudriere on 9.1
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182411
>Category:       ports
>Synopsis:       mail/thunderbird: Does not build with poudriere on 9.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gecko
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 26 14:20:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon Sep 30 14:50:00 UTC 2013
>Originator:     Sascha Holzleiter
>Release:        9.1-RELEASE-p7
>Organization:
>Environment:
9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep  9 21:34:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Building mail/thunderbird with poudriere ends with a clang error:

1.      <eof> parser at end of file
2.      Per-module optimization passes  
3.      Running pass 'CallGraph Pass Manager' on module '/wrkdirs/usr/ports/mail/thunderbird/work/comm-esr24/mailnews/local/src/nsMsgMaildirStore.cpp'.  
4.      Running pass 'Value Propagation' on function '@_ZN17nsMsgMaildirStore10CopyFolderEP12nsIMsgFolderS1_bP12nsIMsgWindowP25nsIMsgCopyServiceListener'
clang++: error: unable to execute command: Abort trap: 6 (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)  
clang++: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang++: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/nsMsgMaildirStore-vNG5Vx.ii
clang++: note: diagnostic msg: /tmp/nsMsgMaildirStore-vNG5Vx.sh
gmake[6]: *** [nsMsgMaildirStore.o] Error 254

The full poudriere log can be found here:

  http://snippets.blumenschaender.de/thunderbird_build.log.bz2



>How-To-Repeat:
Build mail/thunderbird with poudriere on 9.1-RELEASE
>Fix:
Adding USE_GCC=4.6 to the Makefile fixes it for me so maybe this is some
problem with the 9.1 system clang version. Maybe USE_GCC=yes is already enough...

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gecko 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Sep 26 14:20:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182411 

From: Gary Palmer <gnats-freebsd@in-addr.com>
To: bug-followup@FreeBSD.org, sascha@root-login.org
Cc:  
Subject: Re: ports/182411: mail/thunderbird: Does not build with poudriere
 on 9.1
Date: Sat, 28 Sep 2013 01:09:09 +0100

 I have the same problem, without poudriere on 9.1-RELEASE, compiling 
 nsMsgMaildirStore.cpp
 
 Stack dump:
 0.      Program arguments: /usr/bin/clang++ -cc1 -triple 
 x86_64-unknown-freebsd9.0 -emit-obj -disable-free -main-file-name 
 nsMsgMaildirStore.cpp -pic-level 2 -relaxed-aliasing -masm-verbose 
 -mconstructor-aliases -munwind-tables -target-cpu x86-64 
 -momit-leaf-frame-pointer -ffunction-sections -fdata-sections 
 -coverage-file nsMsgMaildirStore.o -resource-dir 
 /usr/bin/../lib/clang/3.1 -dependency-file .deps/nsMsgMaildirStore.o.pp 
 -MT nsMsgMaildirStore.o -sys-header-deps -MP -include 
 /usr/ports/mail/thunderbird/work/comm-esr24/mozilla/config/gcc_hidden.h 
 -isystem /usr/local/include -isystem /usr/local/include -include 
 ../../../mozilla/mozilla-config.h -D MOZ_GLUE_IN_PROGRAM -D 
 MOZILLA_INTERNAL_API -D _IMPL_NS_COM -D EXPORT_XPT_API -D 
 EXPORT_XPTC_API -D _IMPL_NS_GFX -D _IMPL_NS_WIDGET -D IMPL_XREAPI -D 
 IMPL_NS_NET -D IMPL_THEBES -D MOZ_THUNDERBIRD=1 -D OSTYPE="FreeBSD9" -D 
 OSARCH=FreeBSD -D NO_NSPR_10_SUPPORT -D NDEBUG -D TRIMMED -D 
 MOZILLA_CLIENT -I ../../../mozilla/dist/stl_wrappers -I 
 ../../../mozilla/dist/system_wrappers -I 
 /usr/ports/mail/thunderbird/work/comm-esr24/mailnews/local/src -I . -I 
 ../../../mozilla/dist/include -I ../../../mozilla/dist/include/nsprpub 
 -I /usr/local/include/nspr -I /usr/local/include/nss -I 
 /usr/local/include/nss/nss -I /usr/local/include -I /usr/local/include 
 -I /usr/local/include -I /usr/local/include -fmodule-cache-path 
 /tmp/clang-module-cache -O3 -Wall -Wpointer-arith -Woverloaded-virtual 
 -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare 
 -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof 
 -Wno-unknown-warning-option -Wno-return-type-c-linkage 
 -Wno-mismatched-tags -std=gnu++0x -fdeprecated-macro 
 -fdebug-compilation-dir 
 /usr/ports/mail/thunderbird/work/comm-esr24/obj-x86_64-unknown-freebsd9.1 -ferror-limit 
 19 -fmessage-length 0 -mstackrealign -fno-rtti -fgnu-runtime 
 -fobjc-runtime-has-arc -fobjc-runtime-has-weak 
 -fobjc-dispatch-method=non-legacy -fdiagnostics-show-option -o 
 nsMsgMaildirStore.o -x c++ 
 /usr/ports/mail/thunderbird/work/comm-esr24/mailnews/local/src/nsMsgMaildirStore.cpp 
 
 1.      <eof> parser at end of file
 2.      Per-module optimization passes
 3.      Running pass 'CallGraph Pass Manager' on module 
 '/usr/ports/mail/thunderbird/work/comm-esr24/mailnews/local/src/nsMsgMaildirStore.cpp'.
 4.      Running pass 'Value Propagation' on function 
 '@_ZN17nsMsgMaildirStore10CopyFolderEP12nsIMsgFolderS1_bP12nsIMsgWindowP25nsIMsgCopyServiceListener'
 clang++: error: unable to execute command: Abort trap: 6 (core dumped)
 clang++: error: clang frontend command failed due to signal (use -v to 
 see invocation)
 clang++: note: diagnostic msg: Please submit a bug report to 
 http://llvm.org/bugs/ and include command line arguments and all 
 diagnostic information.
 clang++: note: diagnostic msg: Preprocessed source(s) and associated run 
 script(s) are located at:
 clang++: note: diagnostic msg: /tmp/nsMsgMaildirStore-onIO3H.ii
 clang++: note: diagnostic msg: /tmp/nsMsgMaildirStore-onIO3H.sh
 
 

From: The BSD Dreamer <beastie@tardisi.com>
To: bug-followup@FreeBSD.org, sascha@root-login.org
Cc:  
Subject: Re: ports/182411: mail/thunderbird: Does not build with poudriere
 on 9.1
Date: Sat, 28 Sep 2013 10:57:59 -0500

 I'm also on 9.1-RELEASE-p7, without poudriere.
 
 I got thunderbird to build by either disabling all optimization (undef
 the CFLAGS, I set in my make.conf and unselect config option
 OPTIMIZED_CFLAGS) or using clang 3.2 from ports.
 
 The only thing outstanding though is enigmail extension is
 broken.....never mind, the missing files it complains about are supposed
 to be missing since those are for thunderbird versions < 19.
 
 For some reason it had forgotten that it had found gpg on its own
 before.  Setting and unsetting, the override made it find it on its own
 again.
 
 In case its important, I have
 
 CFLAGS=	-O2 -fno-strict-aliasing -pipe
 
 near the top of my /etc/make.conf
 
 And, this is what I put in to use ports clang (3.2) instead of base (3.1).
 
 .if ${.CURDIR:M*/mail/thunderbird}
 CXX=/usr/local/bin/clang++
 CC=/usr/local/bin/clang
 .endif
 
 Finally, I had to figure out why I couldn't send from Thunderbird.
 Which I eventually tracked down to an old extension "SendWithoutSubject".
 
 -- 
   Name: Lawrence "The Dreamer" Chen      Email: beastie@tardisi.com
  Snail: 1530 College Ave, A5              Blog: http://lawrencechen.net
         Manhattan, KS 66502-2768         Phone: 785-789-4132

From: Gary Palmer <gnats-freebsd@in-addr.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/182411: mail/thunderbird: Does not build with poudriere
 on 9.1
Date: Mon, 30 Sep 2013 15:41:00 +0100

 Turning off "Optimized CFLAGS" in the port options let the build 
 complete for me also and thunderbird now runs.
 
>Unformatted:
