From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 17 23:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C88E2581 for ; Mon, 17 Mar 2014 23:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9EB09A12 for ; Mon, 17 Mar 2014 23:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2HNe0Tm046713 for ; Mon, 17 Mar 2014 23:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2HNe0MZ046712; Mon, 17 Mar 2014 23:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 17 Mar 2014 23:40:00 GMT Resent-Message-Id: <201403172340.s2HNe0MZ046712@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Don Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 864524DE for ; Mon, 17 Mar 2014 23:31:45 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 369489BC for ; Mon, 17 Mar 2014 23:31:45 +0000 (UTC) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s2HNVcch083080 for ; Mon, 17 Mar 2014 15:31:38 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (localhost.catspoiler.org [127.0.0.1]) by mousie.catspoiler.org (8.14.7/8.14.7) with ESMTP id s2HNVcUk040880 for ; Mon, 17 Mar 2014 16:31:38 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: (from dl@localhost) by mousie.catspoiler.org (8.14.7/8.14.7/Submit) id s2HNVc7q040879; Mon, 17 Mar 2014 16:31:38 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201403172331.s2HNVc7q040879@mousie.catspoiler.org> Date: Mon, 17 Mar 2014 16:31:38 -0700 (PDT) From: Don Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/187681: [patch] editors/openoffice-4 build broken on i386 after gcc46->gcc47 upgrade X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Don Lewis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2014 23:40:00 -0000 >Number: 187681 >Category: ports >Synopsis: [patch] editors/openoffice-4 build broken on i386 after gcc46->gcc47 upgrade >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 17 23:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Don Lewis >Release: FreeBSD 11.0-CURRENT i386 >Organization: FreeBSD Project >Environment: System: FreeBSD scratch.catspoiler.org 11.0-CURRENT FreeBSD 11.0-CURRENT #72 r262892M: Fri Mar 7 14:21:49 PST 2014 dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB i386 gcc47-4.7.4.20140222 apache-openoffice-4.0.1_2 Only on i386. >Description: editors/openoffice-4 was built successfully a few days ago with gcc46. After upgrading to gcc47, the port no longer builds. 1 module(s): moz need(s) to be rebuilt Reason(s): ERROR: error 65280 occurred while making /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/moz When you have fixed the errors in that module you can resume the build by running: build --from moz *** Error code 1 Stop. make[1]: stopped in /usr/ports/editors/openoffice-4 Earlier in the log: g++47 -o nsFastLoadService.o -c -I../../dist/include/system_wrappers -include ../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"FreeBSD11\" -DOSARCH=\"FreeBSD\" -DBUILD_ID=0000000000 -D_IMPL_NS_COM -I.. -I../../dist/include/string -I../../dist/include/xpcom -I../../dist/include -I../../dist/include/nspr -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pipe -DNDEBUG -DTRIMMED -O -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsFastLoadService.pp ../../../xpcom/io/nsFastLoadService.cpp rm -f ../../../../unxfbsdi.pro/misc/cssreflection.idls cat /tmp/mkfRYNPz >>../../../../unxfbsdi.pro/misc/cssreflection.idls In file included from ../../dist/include/string/nsStringIterator.h:43:0, from ../../dist/include/string/nsAString.h:47, from ../../dist/include/string/nsSubstring.h:43, from ../../dist/include/string/nsString.h:44, from ../../dist/include/string/nsXPIDLString.h:43, from ../../../xpcom/io/nsFastLoadFile.cpp:45: ../../dist/include/string/nsCharTraits.h: In static member function 'static nsCharTraits::char_type nsCharTraits::ASCIIToLower(nsCharTraits::char_type)': ../../dist/include/string/nsCharTraits.h:280:61: warning: conversion to 'nsCharTraits::char_type {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../dist/include/string/nsCharTraits.h: In static member function 'static nsCharTraits::char_type nsCharTraits::ASCIIToLower(nsCharTraits::char_type)': ../../dist/include/string/nsCharTraits.h:535:61: warning: conversion to 'nsCharTraits::char_type {aka char}' from 'int' may alter its value [-Wconversion] In file included from ../../dist/include/string/nsStringIterator.h:43:0, from ../../dist/include/string/nsAString.h:47, from ../../../xpcom/io/nsBinaryStream.h:43, from ../../../xpcom/io/nsFastLoadFile.h:49, from ../../../xpcom/io/nsFastLoadService.cpp:47: ../../dist/include/string/nsCharTraits.h: In static member function 'static nsCharTraits::char_type nsCharTraits::ASCIIToLower(nsCharTraits::char_type)': ../../dist/include/string/nsCharTraits.h:280:61: warning: conversion to 'nsCharTraits::char_type {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../dist/include/string/nsCharTraits.h: In static member function 'static nsCharTraits::char_type nsCharTraits::ASCIIToLower(nsCharTraits::char_type)': ../../dist/include/string/nsCharTraits.h:535:61: warning: conversion to 'nsCharTraits::char_type {aka char}' from 'int' may alter its value [-Wconversion] Entering /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/udkapi/com/sun/star/loader In file included from ../../../xpcom/io/nsFastLoadFile.cpp:57:0: ../../../xpcom/io/nsFastLoadFile.h: At global scope: ../../../xpcom/io/nsFastLoadFile.h:297:19: error: conflicting type attributes specified for 'virtual nsresult nsFastLoadFileReader::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' In file included from ../../../xpcom/io/nsFastLoadFile.cpp:56:0: ../../../xpcom/io/nsBinaryStream.h:113:5: error: overriding 'virtual nsresult nsBinaryInputStream::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' ../../../xpcom/io/nsFastLoadFile.cpp: In function 'PRUint32 NS_AccumulateFastLoadChecksum(PRUint32*, const PRUint8*, PRUint32, PRBool)': ../../../xpcom/io/nsFastLoadFile.cpp:121:46: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:129:46: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:146:23: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:154:26: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:157:21: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:159:26: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:175:21: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:177:26: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:178:21: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:191:46: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:193:46: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:198:46: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:205:46: warning: conversion to 'PRUint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp: In member function 'virtual nsresult nsFastLoadFileReader::Read(char*, PRUint32, PRUint32*)': ../../../xpcom/io/nsFastLoadFile.cpp:573:37: warning: conversion to 'unsigned int:31' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:581:34: warning: conversion to 'unsigned int:31' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:589:31: warning: conversion to 'unsigned int:31' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp: In member function 'virtual nsresult nsFastLoadFileReader::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)': ../../../xpcom/io/nsFastLoadFile.cpp:614:31: warning: conversion to 'unsigned int:31' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp: In member function 'virtual nsresult nsFastLoadFileReader::ReadObject(PRBool, nsISupports**)': ../../../xpcom/io/nsFastLoadFile.cpp:1075:37: warning: conversion to 'PRUint32 {aka unsigned int}' from 'PRInt64 {aka long long int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:1143:52: warning: conversion to 'PRUint32 {aka unsigned int}' from 'PRInt64 {aka long long int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp:1143:52: warning: conversion to 'unsigned int:31' from 'PRUint32 {aka unsigned int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp: In member function 'virtual nsresult nsFastLoadFileWriter::SelectMuxedDocument(nsISupports*, nsISupports**)': ../../../xpcom/io/nsFastLoadFile.cpp:1461:39: warning: conversion to 'PRUint32 {aka unsigned int}' from 'PRInt64 {aka long long int}' may alter its value [-Wconversion] ../../../xpcom/io/nsFastLoadFile.cpp: In member function 'nsresult nsFastLoadFileWriter::WriteObjectCommon(nsISupports*, PRBool, PRUint32)': ../../../xpcom/io/nsFastLoadFile.cpp:2137:62: warning: conversion to 'PRUint32 {aka unsigned int}' from 'PRInt64 {aka long long int}' may alter its value [-Wconversion] In file included from ../../../xpcom/io/nsFastLoadService.cpp:47:0: ../../../xpcom/io/nsFastLoadFile.h: At global scope: ../../../xpcom/io/nsFastLoadFile.h:297:19: error: conflicting type attributes specified for 'virtual nsresult nsFastLoadFileReader::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' In file included from ../../../xpcom/io/nsFastLoadFile.h:49:0, from ../../../xpcom/io/nsFastLoadService.cpp:47: ../../../xpcom/io/nsBinaryStream.h:113:5: error: overriding 'virtual nsresult nsBinaryInputStream::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' ../../../xpcom/io/nsFastLoadService.cpp: In member function 'virtual nsrefcnt nsFastLoadService::Release()': ../../../xpcom/io/nsFastLoadService.cpp:63:1: warning: deleting object of polymorphic class type 'nsFastLoadService' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] ../../../xpcom/io/nsFastLoadService.cpp: In static member function 'static nsresult nsFastLoadService::Create(nsISupports*, const nsIID&, void**)': ../../../xpcom/io/nsFastLoadService.cpp:102:16: warning: deleting object of polymorphic class type 'nsFastLoadService' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] ../../../xpcom/io/nsFastLoadService.cpp: In member function 'virtual nsresult nsFastLoadService::WriteFastLoadPtr(nsIObjectOutputStream*, nsISupports*)': ../../../xpcom/io/nsFastLoadService.cpp:569:43: warning: conversion to 'PRUint32 {aka unsigned int}' from 'PRInt64 {aka long long int}' may alter its value [-Wconversion] : && LD_LIBRARY_PATH=/mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/bin/idlc -verbose @/tmp/mkn0U4b1 rm -f ../../../../unxfbsdi.pro/ucr/cssloader.db : && LD_LIBRARY_PATH=/mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/bin/regmerge ../../../../unxfbsdi.pro/ucr/cssloader.db UCR @/tmp/mkJvdbNZ : && LD_LIBRARY_PATH=/mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/bin/idlc -verbose @/tmp/mkInCnHD rm -f ../../../../unxfbsdi.pro/ucrdoc/cssloader.db : && LD_LIBRARY_PATH=/mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/bin/regmerge ../../../../unxfbsdi.pro/ucrdoc/cssloader.db UCR @/tmp/mkb0uIWn gmake[5]: *** [nsFastLoadFile.o] Error 1 gmake[5]: *** Waiting for unfinished jobs.... gmake[5]: *** [nsFastLoadService.o] Error 1 gmake[5]: Leaving directory `/mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/moz/unxfbsdi.pro/misc/build/mozilla/I_objdir/xpcom/io' >How-To-Repeat: Attempt to build editors/openoffice-4 on an i386 machine with gcc47. >Fix: Google turned up this page: with several suggested fixes. The first suggestion by techlive on on 2012-07-08 11:12 turned up a large number of instances of inconsistent usage of NS_METHOD vs. NS_IMETHOD_IMP. I eventually gave up on that and went with his last suggestion. It tranlates to this patch for the editors/openoffice-4 port. --- moz/patches/gcc47.patch.orig 2013-08-13 04:49:32.000000000 -0700 +++ moz/patches/gcc47.patch 2014-03-15 13:16:27.000000000 -0700 @@ -105,3 +105,14 @@ if (ent) { +--- misc/mozilla/xpcom/base/nscore.h 2006-08-24 14:46:32.000000000 -0700 ++++ misc/build/mozilla/xpcom/base/nscore.h 2014-03-12 18:48:10.000000000 -0700 +@@ -183,7 +183,7 @@ + #define NS_EXPORT NS_EXTERNAL_VIS + #define NS_EXPORT_(type) NS_EXTERNAL_VIS_(type) +-#define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL ++#define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type + #define NS_IMETHODIMP_(type) type + #define NS_METHOD_(type) type + #define NS_CALLBACK_(_type, _name) _type (* _name) + #define NS_STDCALL >Release-Note: >Audit-Trail: >Unformatted: