Bug 182411 - mail/thunderbird: Does not build with poudriere on 9.1
Summary: mail/thunderbird: Does not build with poudriere on 9.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-26 15:20 UTC by Sascha Holzleiter
Modified: 2014-06-18 16:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Holzleiter 2013-09-26 15:20:01 UTC
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

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...
How-To-Repeat: Build mail/thunderbird with poudriere on 9.1-RELEASE
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-26 15:20:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gecko

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Gary Palmer 2013-09-28 01:09:09 UTC
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
Comment 3 Lawrence Chen 2013-09-28 16:57:59 UTC
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
Comment 4 Gary Palmer 2013-09-30 15:41:00 UTC
Turning off "Optimized CFLAGS" in the port options let the build 
complete for me also and thunderbird now runs.
Comment 5 Jan Beich freebsd_committer freebsd_triage 2014-06-07 02:48:36 UTC
gecko@ ports since r348650 have USES=compiler:c++11-lib which limits base clang to 3.3 and 3.4 while everything else uses lang/gcc. There're simply too many clang bugs spread over different versions (both in base and ports) to keep workarounds for.
Comment 6 Jan Beich freebsd_committer freebsd_triage 2014-06-18 16:01:04 UTC
Closing per r348650. Hopefully, pkg-fallout-builder@ spams gecko@ list the next time OPTIMIZED_CFLAGS (default) is broken.