Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 2014 00:02:22 -0800 (PST)
From:      Don Lewis <truckman@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/187218: [patch] editors/openoffice-4 build fails in bridges module on i386
Message-ID:  <201403030802.s2382Mbd004057@mousie.catspoiler.org>
Resent-Message-ID: <201403030810.s238A0Tk050743@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187218
>Category:       ports
>Synopsis:       [patch] editors/openoffice-4 build fails in bridges module on i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 03 08:10: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 #71 r262666M: Sat Mar  1 16:42:54 PST 2014     dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB

Ports tree revision 346717.

All ports rebuilt at ports tree revision r345674, and openoffice
failed the same way.

>Description:

Bulding editors/openoffice-4 fails with this at the end of the log:

1 module(s):
        bridges
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/bridges/source/cpp_uno/gcc3_freebsd_intel

When you have fixed the errors in that module you can resume the build by running:

        build --from bridges

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/editors/openoffice-4
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/openoffice-4



Digging back through the log file, the problem appears to be here:


g++46 -o nsTextEditRulesBidi.o -c -I../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"FreeBSD11\" -DOSARCH=\"FreeBSD\" -DBUILD_ID=0000000000  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/dom -I../../../dist/include/locale -I../../../dist/include/layout -I../../../dist/include/content -I../../../dist/include/txmgr -I../../../dist/include/txtsvc -I../../../dist/include/htmlparser -I../../../dist/include/necko -I../../../dist/include/pref -I../../../dist/include/lwbrk -I../../../dist/include/gfx -I../../../dist/include/widget -I../../../dist/include/unicharutil -I../../../dist/include/editor -I../../../dist/include -I../../../dist/include/nspr    -I../../../dist/sdk/include -I../../../../editor/libeditor/base    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-l!
 ong -pedantic -fshort-wchar -pipe  -DNDEBUG -DTRIMMED -O   -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsTextEditRulesBidi.pp ../../../../editor/libeditor/text/nsTextEditRulesBidi.cpp
In file included from /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_alloc.h:68:0,
                 from /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_vector.h:40,
                 from /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_hashtable.h:34,
                 from /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_hash_map.h:34,
                 from /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/hash_map:27,
                 from /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx:30:
/mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_construct.h: In function 'void _STL::_Construct(_T1*, const _T2&) [with _T1 = _STL::pair<const rtl::OUString, std::type_info*>, _T2 = _STL::pair<const rtl::OUString, std::type_info*>]':
/mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_hashtable.h:566:7:   instantiated from '_STL::hashtable<_Val, _Key, _HF, _ExK, _EqK, _All>::_Node* _STL::hashtable<_Val, _Key, _HF, _ExK, _EqK, _All>::_M_new_node(const value_type&) [with _Val = _STL::pair<const rtl::OUString, std::type_info*>, _Key = rtl::OUString, _HF = rtl::OUStringHash, _ExK = _STL::_Select1st<_STL::pair<const rtl::OUString, std::type_info*> >, _EqK = _STL::equal_to<rtl::OUString>, _All = _STL::allocator<_STL::pair<const rtl::OUString, std::type_info*> >, _STL::hashtable<_Val, _Key, _HF, _ExK, _EqK, _All>::_Node = _STL::_Hashtable_node<_STL::pair<const rtl::OUString, std::type_info*> >, _STL::hashtable<_Val, _Key, _HF, _ExK, _EqK, _All
>How-To-Repeat:

Attempt to build for i386.

>Fix:

The following patch file tweaks the includes in the i386 version of
except.cxx so they match the amd64 version and allows the build
to succeed.

--- bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx.orig	2013-08-13 04:42:39.000000000 -0700
+++ bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx	2014-03-02 11:46:11.000000000 -0800
@@ -24,7 +24,12 @@
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_bridges.hxx"
 
+#if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6))
+#include <exception>
+#endif
+
 #include <stdio.h>
+#include <string.h>
 #include <dlfcn.h>
 #include <cxxabi.h>
 #include <hash_map>




>Release-Note:
>Audit-Trail:
>Unformatted:
 >::value_type = _STL::pair<const rtl::OUString, std::type_info*>]'
 /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_hashtable.c:130:35:   instantiated from '_STL::pair<_STL::_Ht_iterator<_Val, _STL::_Nonconst_traits<_Val>, _Key, _HF, _ExK, _EqK, _All>, bool> _STL::hashtab le<_Val, _Key, _HF, _ExK, _EqK, _All>::insert_unique_noresize(const value_type&) [with _Val = _STL::pair<const rtl::OUString, std::type_info*>, _Key = rtl::OUString, _HF = rtl::OUStringHash, _ExK = _STL::_Select1st<_STL::pair<const rtl::OUString, std::ty pe_info*> >, _EqK = _STL::equal_to<rtl::OUString>, _All = _STL::allocator<_STL::pair<const rtl::OUString, std::type_info*> >, _STL::hashtable<_Val, _Key, _HF, _ExK, _EqK, _All>::value_type = _STL::pair<const rtl::OUString, std::type_info*>]'
 /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_hashtable.h:366:40:   instantiated from '_STL::pair<_STL::_Ht_iterator<_Val, _STL::_Nonconst_traits<_Val>, _Key, _HF, _ExK, _EqK, _All>, bool> _STL::hashtab le<_Val, _Key, _HF, _ExK, _EqK, _All>::insert_unique(const value_type&) [with _Val = _STL::pair<const rtl::OUString, std::type_info*>, _Key = rtl::OUString, _HF = rtl::OUStringHash, _ExK = _STL::_Select1st<_STL::pair<const rtl::OUString, std::type_info*>  >, _EqK = _STL::equal_to<rtl::OUString>, _All = _STL::allocator<_STL::pair<const rtl::OUString, std::type_info*> >, _STL::hashtable<_Val, _Key, _HF, _ExK, _EqK, _All>::value_type = _STL::pair<const rtl::OUString, std::type_info*>]'
 /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_hash_map.h:166:39:   instantiated from '_STL::pair<typename _STL::hashtable<_STL::pair<const _Key, _Tp>, _Key, _HashFcn, _STL::_Select1st<_STL::pair<const _ Key, _Tp> >, _EqualKey, _Alloc>::iterator, bool> _STL::hash_map<_Key, _Tp, _HashFcn, _EqualKey, _Alloc>::insert(const value_type&) [with _Key = rtl::OUString, _Tp = std::type_info*, _HashFcn = rtl::OUStringHash, _EqualKey = _STL::equal_to<rtl::OUString>,  _Alloc = _STL::allocator<_STL::pair<const rtl::OUString, std::type_info*> >, typename _STL::hashtable<_STL::pair<const _Key, _Tp>, _Key, _HashFcn, _STL::_Select1st<_STL::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::iterator = _STL::_Ht_iterator<_STL::pa ir<const rtl::OUString, std::type_info*>, _STL::_Nonconst_traits<_STL::pair<const rtl::OUString, std::type_info*> >, rtl::OUString, rtl::OUStringHash, _STL::_Select1st<_STL::pair<const rtl::OUString, std::type_info*> >, _STL::e!
  qual_to<rtl::OUString>, _STL::allocator<_STL::pair<const rtl::OUString, std::type_info*> > >, _STL::hash_map<_Key, _Tp, _HashFcn, _EqualKey, _Alloc>::value_type = _STL::pair<const rtl::OUString, std::type_info*>]'
 /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx:165:73:   instantiated from here
 /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_construct.h:85:5: error: no matching function for call to 'operator new(unsigned int, _STL::pair<const rtl::OUString, std::type_info*>*&)'
 /mnt2/tmp/usr/ports/editors/openoffice-4/work/aoo-4.0.1/main/solver/401/unxfbsdi.pro/inc/stl/stl/_construct.h:85:5: note: candidate is:
 <built-in>:0:0: note: void* operator new(unsigned int)
 <built-in>:0:0: note:   candidate expects 1 argument, 2 provided
 dmake:  Error code 1, while making '../../../unxfbsdi.pro/slo/except.obj'
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403030802.s2382Mbd004057>