From nobody@FreeBSD.org  Tue Jun 12 13:34:29 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 465AD1065674
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Jun 2012 13:34:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 27EE78FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Jun 2012 13:34:29 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5CDYSs5099441
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Jun 2012 13:34:28 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q5CDYSwe099440;
	Tue, 12 Jun 2012 13:34:28 GMT
	(envelope-from nobody)
Message-Id: <201206121334.q5CDYSwe099440@red.freebsd.org>
Date: Tue, 12 Jun 2012 13:34:28 GMT
From: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mail/thunderbird: /base/nsStackWalk.cpp:1196:29: error: use of undeclared identifier '_Unwind_Backtrace'     _Unwind_Reason_Code t = _Unwind_Backtrace(unwind_callback, &info);
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168978
>Category:       ports
>Synopsis:       mail/thunderbird: /base/nsStackWalk.cpp:1196:29: error: use of undeclared identifier '_Unwind_Backtrace'     _Unwind_Reason_Code t = _Unwind_Backtrace(unwind_callback, &info);
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gecko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 12 13:40:03 UTC 2012
>Closed-Date:    Fri Jul 27 13:27:17 UTC 2012
>Last-Modified:  Fri Jul 27 13:27:17 UTC 2012
>Originator:     Oliver Hartmann
>Release:        FreeBSD 9.0-STABLE/amd64, FreeBSD 10.0-CURRENT/amd64 (CLANG built)
>Organization:
FU Berlin
>Environment:
FreeBSD 10.0/9.0 and blender 2.63 installed (with devel/libunwind)
>Description:
The update/compiling/installing of port mail/thunderbird fails using CLANG and GCC with the following error.
Amongst other compilation errors of the new thunderbird 13 on both FreeBSD 10 and 9-STABLE (both most recent compiled worlds), with port graphics/blender installed, which depends on port devel/libunwind, the compilation of thunderbird-13.0 gets confused and breaks.

The same is with www/firefox (12 and 13 tried and confirmed).

[...]
clang++ -o FunctionTimer.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DMOZ_THUNDERBIRD=1 -DOSTYPE=\"FreeBSD10\" -DOSARCH=FreeBSD -DEXCLUDE_SKIA_DEPENDENCIES  -DOS_LINUX=1 -DOS_POSIX=1  -D_IMPL_NS_COM -I../../ipc/chromium/src -I../../ipc/glue -I../../ipc/ipdl/_ipdlheaders  -I./../build -I../../xpcom/ds  -I. -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/local/include/nspr -I/usr/ports/mail/thunderbird/work/comm-release/mozilla/dist/include/nss      -fPIC -Qunused-arguments -I/usr/local/include -fno-rtti -Qunused-arguments -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wn
 o-unknown-warning-option -Wno-return-type-c-linkage -O3 -pipe -fno-strict-aliasing -DLDAP_DEPRECATED -march=native -DLDAP_DEPRECATED -fno-exceptions -fno-strict-aliasing -std=gnu++0x -ffunction-sections -fdata-sections -pipe -DNDEBUG -DTRIMMED -fno-omit-frame-pointer  -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libpng15 -I/usr/local/include/libdrm -I/usr/local/include/gtk-unix-print-2.0    -Qunused-arguments     -I/usr/local/include -DMOZILLA_CLIENT -include ../../mozilla-config.h /usr/ports/mail/thunderbird/work/comm-release/mozilla/xpcom/base/FunctionTimer.cpp
/usr/ports/mail/thunderbird/work/comm-release/mozilla/xpcom/base/nsStackWalk.cpp:1196:29: error: use of undeclared identifier '_Unwind_Backtrace'
    _Unwind_Reason_Code t = _Unwind_Backtrace(unwind_callback, &info);
[...]

>How-To-Repeat:
Install graphics/blender (which reels in devel/libunwind)
>Fix:
One can get rid of this specific problem by temporary deinstall devel/libunwind. 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gecko 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jun 12 22:29:29 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de
Cc:  
Subject: ports/168978: mail/thunderbird: /base/nsStackWalk.cpp:1196:29: error:
 use of undeclared identifier '_Unwind_Backtrace' _Unwind_Reason_Code t =
 _Unwind_Backtrace(unwind_callback, &info);
Date: Thu, 14 Jun 2012 08:07:02 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig8A624B3E9455C7C192A1D505
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Deleting port devel/libunwind by force and subsequently trying to
 recompile/update port www/firefox ends up in the following error
 message. In /etc/src.conf, I use
 
 WITH_LIBCPLUSPLUS=3D      YES
 
 [...]
 clang++ -o nsDirPrefs.o -c -I../../../mozilla/dist/stl_wrappers
 -I../../../mozilla/dist/system_wrappers -include
 =2E./../../mozilla/config/gcc_hidden.h -DMOZ_LDAP_XPCOM
 -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM
 -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET
 -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DMOZ_THUNDERBIRD=3D1
 -DOSTYPE=3D\"FreeBSD10\" -DOSARCH=3DFreeBSD  -I. -I.
 -I../../../mozilla/dist/include -I../../../mozilla/dist/include/nsprpub
  -I/usr/local/include/nspr
 -I/usr/ports/mail/thunderbird/work/comm-release/mozilla/dist/include/nss
      -fPIC -I/usr/local/include -fno-rtti -fno-exceptions -Wall
 -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
 -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
 -Wno-variadic-macros -Werror=3Dreturn-type -pipe -O3 -fno-strict-aliasing=
 
 -march=3Dnative -fno-strict-aliasing -std=3Dgnu++0x -pipe  -DNDEBUG
 -DTRIMMED -fno-omit-frame-pointer   -I/usr/local/include
 -DMOZILLA_CLIENT -include ../../../comm-config.h nsDirPrefs.cpp
 nsDirPrefs.cpp:119:1: warning: delete called on 'DirPrefObserver' that
 has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dt=
 or]
 NS_IMPL_ISUPPORTS2(DirPrefObserver, nsISupportsWeakReference, nsIObserver=
 )
 ^
 =2E./../../mozilla/dist/include/nsISupportsImpl.h:1182:3: note: expanded
 from macro 'NS_IMPL_ISUPPORTS2'
   NS_IMPL_RELEASE(_class)
       \
   ^
 =2E./../../mozilla/dist/include/nsISupportsImpl.h:471:40: note: expanded
 from macro 'NS_IMPL_RELEASE'
   NS_IMPL_RELEASE_WITH_DESTROY(_class, delete (this))
                                        ^
 =2E./../../mozilla/dist/include/nsISupportsImpl.h:451:5: note: expanded
 from macro 'NS_IMPL_RELEASE_WITH_DESTROY'
     _destroy;
       \
     ^
 nsDirPrefs.cpp:404:9: error: case value evaluates to 2147483649, which
 cannot be narrowed to type 'PRInt32' (aka 'int') [-Wc++11-narrowing]
    case DIR_POS_DELETE:
         ^
 nsDirPrefs.cpp:96:44: note: expanded from macro 'DIR_POS_DELETE'
 #define DIR_POS_DELETE                     0x80000001
                                            ^
 nsDirPrefs.cpp:378:9: error: case value evaluates to 2147483648, which
 cannot be narrowed to type 'PRInt32' (aka 'int') [-Wc++11-narrowing]
    case DIR_POS_APPEND:
         ^
 nsDirPrefs.cpp:95:44: note: expanded from macro 'DIR_POS_APPEND'
 #define DIR_POS_APPEND                     0x80000000
                                            ^
 1 warning and 2 errors generated.
 gmake[6]: *** [nsDirPrefs.o] Error 1
 gmake[6]: Leaving directory
 `/usr/ports/mail/thunderbird/work/comm-release/mailnews/addrbook/src'
 gmake[5]: *** [src_libs] Error 2
 gmake[5]: Leaving directory
 `/usr/ports/mail/thunderbird/work/comm-release/mailnews/addrbook'
 gmake[4]: *** [addrbook_libs] Error 2
 gmake[4]: *** Waiting for unfinished jobs....
 nsMsgSearchNews.cpp
 clang++ -o nsMsgSearchNews.o -c -I../../../../mozilla/dist/stl_wrappers
 -I../../../../mozilla/dist/system_wrappers -include
 =2E./../../../mozilla/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM
 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API
 -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET
 -DIMPL_THEBES  -DMOZ_THUNDERBIRD=3D1 -DOSTYPE=3D\"FreeBSD10\"
 -DOSARCH=3DFreeBSD  -I. -I. -I../../../../mozilla/dist/include
 -I../../../../mozilla/dist/include/nsprpub  -I/usr/local/include/nspr
 -I/usr/ports/mail/thunderbird/work/comm-release/mozilla/dist/include/nss
      -fPIC -I/usr/local/include -fno-rtti -fno-exceptions -Wall
 -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
 -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
 -Wno-variadic-macros -Werror=3Dreturn-type -pipe -O3 -fno-strict-aliasing=
 
 -march=3Dnative -fno-strict-aliasing -std=3Dgnu++0x -pipe  -DNDEBUG
 -DTRIMMED -fno-omit-frame-pointer   -I/usr/local/include
 -DMOZILLA_CLIENT -include ../../../../comm-config.h nsMsgSearchNews.cpp
 rm -f libmsgsearch_s.a
 /usr/local/bin/python2.7 ../../../../mozilla/config/pythonpath.py
 -I../../../../mozilla/config
 =2E./../../../mozilla/config/expandlibs_gen.py nsMsgFilterService.o
 nsMsgFilterList.o nsMsgFilter.o nsMsgSearchTerm.o nsMsgBodyHandler.o
 nsMsgLocalSearch.o nsMsgSearchValue.o nsMsgSearchAdapter.o
 nsMsgSearchSession.o nsMsgImapSearch.o nsMsgSearchNews.o   >
 libmsgsearch_s.a.desc
 /usr/ports/mail/thunderbird/work/comm-release/mozilla/config/nsinstall
 -R -m 644 nsMsgTraitService.js nsMsgTraitService.manifest
 =2E./../../../mozilla/dist/bin/components
 /usr/local/bin/python2.7 ../../../../mozilla/config/buildlist.py
 =2E./../../../mozilla/dist/bin/chrome.manifest "manifest
 components/nsMsgTraitService.manifest"
 /usr/ports/mail/thunderbird/work/comm-release/mozilla/config/nsinstall
 -R Bogofilter.sfd DSPAM.sfd POPFile.sfd SpamAssassin.sfd SpamPal.sfd
 =2E./../../../mozilla/dist/bin/isp
 gmake[5]: Leaving directory
 `/usr/ports/mail/thunderbird/work/comm-release/mailnews/base/search/src'
 gmake[4]: Leaving directory
 `/usr/ports/mail/thunderbird/work/comm-release/mailnews'
 gmake[3]: *** [libs_tier_platform] Error 2
 gmake[3]: Leaving directory
 `/usr/ports/mail/thunderbird/work/comm-release/mozilla'
 gmake[2]: *** [tier_platform] Error 2
 gmake[2]: Leaving directory
 `/usr/ports/mail/thunderbird/work/comm-release/mozilla'
 gmake[1]: *** [default] Error 2
 gmake[1]: Leaving directory
 `/usr/ports/mail/thunderbird/work/comm-release/mozilla'
 gmake: *** [default] Error 2
 *** [do-build] Error code 1
 
 Stop in /usr/ports/mail/thunderbird.
 *** [build] Error code 1
 
 Stop in /usr/ports/mail/thunderbird.
 
 =3D=3D=3D>>> make failed for mail/thunderbird
 =3D=3D=3D>>> Aborting update
 
 =3D=3D=3D>>> Update for mail/thunderbird failed
 =3D=3D=3D>>> Aborting update
 
 Terminated
 [...]
 
 
 --------------enig8A624B3E9455C7C192A1D505
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (FreeBSD)
 
 iQEcBAEBAgAGBQJP2X+MAAoJEOgBcD7A/5N8oZwH/jFe1Of8j9V9++tjV/sqc8uT
 JIj1EUPjHr1pPdZARPj1G6pnV7v5x3tbhMkEXQSw4NcjVkTs3uzVIYtBKIcpvdvt
 k1fnWpAgWVoJ5nZRxBzNXP6nwPwp6HD0dBgHZ5XnAjCka5f1lriVPAkJObLMY8h1
 Di6nmRPZs1njeOKb2JOvRii98k/g2JgEMrRQKTZDg1vBif0NlVUkeWyCwgmJI5AY
 skhTHUQhdxGlyQoL6JVAjpn0H8Q87iG2KhPb6vWMq139AkrNu03s9wfzTNAg9jYX
 XSjFkDNnNmIfPTXUx94yZEfFQYSa/AoOvYwSYOwz8uZbCcth3did2rGHmozU2h8=
 =c/D9
 -----END PGP SIGNATURE-----
 
 --------------enig8A624B3E9455C7C192A1D505--

From: Jan Beich <jbeich@tormail.org>
To: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/168978: mail/thunderbird: /base/nsStackWalk.cpp:1196:29: error: use of undeclared identifier '_Unwind_Backtrace' _Unwind_Reason_Code t = _Unwind_Backtrace(unwind_callback, &info);
Date: Thu, 14 Jun 2012 20:11:18 +0800

 "O. Hartmann" <ohartman@zedat.fu-berlin.de> writes:
 
 > Deleting port devel/libunwind by force and subsequently trying to
 > recompile/update port www/firefox ends up in the following error
 > message. In /etc/src.conf, I use
 >
 > WITH_LIBCPLUSPLUS=      YES
 
 It's unused unless you build with -stdlib=libc++.
 http://wiki.freebsd.org/NewC++Stack
 
 >
 > [...]
 > clang++ -o nsDirPrefs.o -c -I../../../mozilla/dist/stl_wrappers
 [...]
 > nsDirPrefs.cpp:404:9: error: case value evaluates to 2147483649, which
 > cannot be narrowed to type 'PRInt32' (aka 'int') [-Wc++11-narrowing]
 >    case DIR_POS_DELETE:
 >         ^
 > nsDirPrefs.cpp:96:44: note: expanded from macro 'DIR_POS_DELETE'
 > #define DIR_POS_DELETE                     0x80000001
 >                                            ^
 > nsDirPrefs.cpp:378:9: error: case value evaluates to 2147483648, which
 > cannot be narrowed to type 'PRInt32' (aka 'int') [-Wc++11-narrowing]
 >    case DIR_POS_APPEND:
 >         ^
 > nsDirPrefs.cpp:95:44: note: expanded from macro 'DIR_POS_APPEND'
 > #define DIR_POS_APPEND                     0x80000000
 >                                            ^
 
 thunderbird is known to be currently broken with clang.
 http://lists.freebsd.org/pipermail/freebsd-gecko/2012-June/002273.html
State-Changed-From-To: open->closed 
State-Changed-By: flo 
State-Changed-When: Fri Jul 27 13:27:16 UTC 2012 
State-Changed-Why:  
Should be fixed in the latest version 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168978 
>Unformatted:
