From owner-freebsd-ports@FreeBSD.ORG Thu Nov 22 12:02:18 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99391EFB for ; Thu, 22 Nov 2012 12:02:18 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm9-vm0.bullet.mail.ird.yahoo.com (nm9-vm0.bullet.mail.ird.yahoo.com [77.238.189.197]) by mx1.freebsd.org (Postfix) with ESMTP id C5D668FC15 for ; Thu, 22 Nov 2012 12:02:17 +0000 (UTC) Received: from [212.82.105.247] by nm9.bullet.mail.ird.yahoo.com with NNFMP; 22 Nov 2012 12:02:16 -0000 Received: from [217.146.188.224] by tm19.bullet.mail.ird.yahoo.com with NNFMP; 22 Nov 2012 12:02:16 -0000 Received: from [127.0.0.1] by smtp104.mail.ird.yahoo.com with NNFMP; 22 Nov 2012 12:02:16 -0000 X-Yahoo-Newman-Id: 216221.58521.bm@smtp104.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: GnPm.e0VM1mlftM6tAUQQ3PXRhWIw1jO2tnkj9kK19F3hyu aQ93fXjPpx5flIkqYO8.LxKrMHIFSI45ThROO8vCFFPRlx31ThdoEPrnEpvG mpbLP0OwAoD_cYzQSgBGgA68bpoaZGsyFxKPS01yT1D7BxIOlqCntzsSFA0p QqMa9piEYYW1hvLBi7u6bAwA.Wrj3GNcCca7nBrFINCjwhjWZuLId4mBudvL p.Y3n49kO2Pu2NJa4RfuF1ROtDI.ABy_vvBadhkqOfP5fTmmg.ZLjEuEqbR0 zrcE_ddFoLOLGibA2PxYRk1q4GUbwo3IkcQTNGi2mSCX7ut2CfFMOP2R6vjY UtWLRLXSkqdZvYmwh_wNGrt5U0cFPWhl7SN2GRv31_9.30w4OJnmEowh5dqA t4h1p4I9YUCSz1_jKzq2s5PQG6ehl4SpakoZuNoi5uw-- X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.18] (se@87.158.1.71 with plain) by smtp104.mail.ird.yahoo.com with SMTP; 22 Nov 2012 04:02:16 -0800 PST Message-ID: <50AE1445.2090900@freebsd.org> Date: Thu, 22 Nov 2012 13:02:13 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: flo@freebsd.org Subject: Firefox build failure on -CURRENT (with CLANG and with GCC) X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 12:02:18 -0000 Hi Florian, seems that Firefox cannot be built with CLANG. The build fails due to a visibility default set in mozilla-release/config/gcc_hidden.h, which is in conflict with Qt declarations: In file included from work/mozilla-release/intl/locale/src/nsLocaleService.cpp:7: In file included from /usr/local/include/qt4/QtCore/QString:1: In file included from /usr/local/include/qt4/QtCore/qstring.h:46: /usr/local/include/qt4/QtCore/qbytearray.h:143:7: error: visibility does not match previous declaration class Q_CORE_EXPORT QByteArray ^ /usr/local/include/qt4/QtCore/qglobal.h:1412:27: note: expanded from macro 'Q_CORE_EXPORT' # define Q_CORE_EXPORT Q_DECL_EXPORT ^ /usr/local/include/qt4/QtCore/qglobal.h:1269:42: note: expanded from macro 'Q_DECL_EXPORT' # define Q_DECL_EXPORT __attribute__((visibility("default"))) ^ ../../../config/gcc_hidden.h:6:13: note: previous attribute is here #pragma GCC visibility push(hidden) Seems that this GCC pragma has different semantics in GLANG ... If the contents of gcc_hidden.h is commented out, CLANG completes the build, but the installation fails in the phase where hyphenation tables are built: adding: hyphenation/hyph_af.dic (deflated 55%) adding: hyphenation/hyph_sv.dic (deflated 51%) adding: hyphenation/hyph_it.dic (deflated 55%) adding: hyphenation/hyph_cy.dic (deflated 53%) adding: hyphenation/hyph_gl.dic (deflated 69%) adding: hyphenation/hyph_is.dic (deflated 50%) adding: hyphenation/hyph_ia.dic (deflated 51%) adding: hyphenation/hyph_en_US.dic (deflated 59%) adding: hyphenation/hyph_pt.dic (deflated 55%) Segmentation fault (core dumped) gmake[1]: *** [install] Error 139 gmake[1]: Leaving directory `/usr/work/usr/svn/ports/head/www/firefox/work/mozilla-release/browser/installer' gmake: *** [install] Error 2 *** [gecko-pre-install] Error code 2 Adding USE_GCC=any to the port lets the build complete, but installation fails at a later point: adding: hyphenation/hyph_tr.dic (deflated 64%) QEventLoop: Cannot be used without QApplication resource:///components/txEXSLTRegExFunctions.js resource:///components/nsLoginManagerPrompter.js [...] resource:///modules/services-sync/addonutils.js Failed to import resource:///modules/services-sync/addonutils.js:[Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame :: resource://gre/modules/Services.jsm :: :: line 22" data: no] resource:///modules/services-sync/engines/clients.js Failed to import resource:///modules/services-sync/engines/clients.js:TypeError: Services.appinfo is undefined resource:///modules/services-common/utils.js resource:///modules/services-notifications/service.js resource:///modules/services-sync/engines/addons.js Failed to import resource:///modules/services-sync/engines/addons.js:TypeError: Services.appinfo is undefined resource:///modules/services-common/storageservice.js resource:///modules/services-sync/engines/apps.js Failed to import resource:///modules/services-sync/engines/apps.js:TypeError: Services.appinfo is undefined resource:///modules/ClusterLib.js resource:///modules/services-sync/rest.js Failed to import resource:///modules/services-sync/rest.js:TypeError: Services.appinfo is undefined resource:///modules/SpellCheckDictionaryBootstrap.js resource:///modules/services-sync/engines/forms.js Failed to import resource:///modules/services-sync/engines/forms.js:TypeError: Services.appinfo is undefined resource:///modules/services-common/log4moz.js resource:///modules/services-common/stringbundle.js resource:///modules/MessagePortWorker.js Failed to import resource:///modules/MessagePortWorker.js:ReferenceError: AbstractPort is not defined resource:///modules/services-sync/main.js resource:///modules/services-common/rest.js resource:///modules/distribution.js resource:///modules/services-sync/engines/history.js Failed to import resource:///modules/services-sync/engines/history.js:TypeError: Services.appinfo is undefined resource:///modules/services-sync/addonsreconciler.js Failed to import resource:///modules/services-sync/addonsreconciler.js:TypeError: Services.appinfo is undefined resource:///modules/services-sync/engines/tabs.js Failed to import resource:///modules/services-sync/engines/tabs.js:TypeError: Services.appinfo is undefined resource:///modules/services-sync/engines/bookmarks.js Failed to import resource:///modules/services-sync/engines/bookmarks.js:TypeError: Services.appinfo is undefined resource:///modules/services-common/preferences.js resource:///modules/services-sync/keys.js Failed to import resource:///modules/services-sync/keys.js:TypeError: Services.appinfo is undefined resource:///modules/services-sync/policies.js Failed to import resource:///modules/services-sync/policies.js:TypeError: Services.appinfo is undefined resource:///modules/services-sync/notifications.js Failed to import resource:///modules/services-sync/notifications.js:TypeError: Services.appinfo is undefined resource:///modules/services-aitc/storage.js Any ideas how to get Firefox compiled and installed on -CURRENT? Regards, STefan