ports/187681: [patch] editors/openoffice-4 build broken on i386 after gcc46->gcc47 upgrade
Don Lewis
truckman at FreeBSD.org
Mon Mar 17 23:40:00 UTC 2014
>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 at 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<short unsigned int>::char_type nsCharTraits<short unsigned int>::ASCIIToLower(nsCharTraits<short unsigned int>::char_type)':
../../dist/include/string/nsCharTraits.h:280:61: warning: conversion to 'nsCharTraits<short unsigned int>::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>::char_type nsCharTraits<char>::ASCIIToLower(nsCharTraits<char>::char_type)':
../../dist/include/string/nsCharTraits.h:535:61: warning: conversion to 'nsCharTraits<char>::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<short unsigned int>::char_type nsCharTraits<short unsigned int>::ASCIIToLower(nsCharTraits<short unsigned int>::char_type)':
../../dist/include/string/nsCharTraits.h:280:61: warning: conversion to 'nsCharTraits<short unsigned int>::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>::char_type nsCharTraits<char>::ASCIIToLower(nsCharTraits<char>::char_type)':
../../dist/include/string/nsCharTraits.h:535:61: warning: conversion to 'nsCharTraits<char>::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:
<https://aur.archlinux.org/packages/xulrunner192/?comments=all>
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:
More information about the freebsd-ports-bugs
mailing list