Re: [Bug 266428] editors/libreoffice 17 errors attempting to build libreoffice-7.4.0.3_1

From: William Bulley <web_at_umich.edu>
Date: Sun, 18 Sep 2022 18:21:20 UTC
According to bugzilla-noreply@freebsd.org on Thu, 09/15/22 at 18:34:
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266428
> 
> Graham Perrin <grahamperrin@freebsd.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |grahamperrin@freebsd.org
> 
> --- Comment #2 from Graham Perrin <grahamperrin@freebsd.org> ---
> Which version of FreeBSD, exactly? 
> 
> uname -aKU

I stand corrected.  There _was_ a difference.  Here is the output you asked for:

FreeBSD unix 13.1-STABLE FreeBSD 13.1-STABLE #1 stable/13-n252248-adbcdbee602: Mon Sep  5 12:46:56 EDT 2022  root@unix:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1301506 1301506

Today a friend pointed out there is a newer version (7.4.1.2) of libreoffice in
the ports tree.  About an hour ago a lengthy build attempt failed.  I had to
use the MAKE_JOBS_UNSAFE environment variable since my first attempt to build
it using portmaster failed.  The error comment said to try again using that
environment variable before reporting the error to the port maintainer.

I did that and below please find the same (?) seventeen errors from the failed
(second) build attempt today for the 7.4.1.2 version of libreoffice:

[CXX] bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
S=/usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/bridges/source/cpp_uno/gcc3_linux_x86-64/ $W/Dep/CxxObject/bridges/source/cpp_uno/gcc3_linux_x86-64/ && cd /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2 && CCACHE_CPP2=1           c++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DFREEBSD -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -isystem /usr/local/include -DHAVE_POSIX_FALLOCATE   -fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros -Wembedded-directive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong  -Wdeprecated-copy-dtor -Wimplicit-fallthrough -Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC -Woverloaded-virtual -Wno-unused-parameter -Wno-unused-local-typedefs -std=c++17 -pthread  -O2 -pipe -O2 -fno-strict-aliasing -pipe -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include  -isystem /usr/local/include   -DEXCEPTIONS_ON -fexceptions -fno-omit-frame-pointer -fno-strict-aliasing -fno-lto -mno-avx    -DLIBO_INTERNAL_ONLY  -c $S/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx -o $W/CxxObject/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.o  -I$S/bridges/inc -I$S/include -I/usr/local/openjdk11/include -I/usr/local/openjdk11/include/freebsd -I/usr/local/openjdk11/include/bsd -I/usr/local/openjdk11/include/linux -I$S/config_host  -I$W/UnoApiHeadersTarget/udkapi/comprehensive    
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:33:3: error: redefinition of enumerator '_URC_NO_REASON'
  _URC_NO_REASON = 0,
  ^
/usr/include/c++/v1/unwind-itanium.h:42:5: note: previous definition is here
    _URC_NO_REASON = 0,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:34:3: error: redefinition of enumerator '_URC_OK'
  _URC_OK = 0,
  ^
/usr/include/c++/v1/unwind-itanium.h:43:5: note: previous definition is here
    _URC_OK = 0,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:35:3: error: redefinition of enumerator '_URC_FOREIGN_EXCEPTION_CAUGHT'
  _URC_FOREIGN_EXCEPTION_CAUGHT = 1,
  ^
/usr/include/c++/v1/unwind-itanium.h:44:5: note: previous definition is here
    _URC_FOREIGN_EXCEPTION_CAUGHT = 1,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:36:3: error: redefinition of enumerator '_URC_FATAL_PHASE2_ERROR'
  _URC_FATAL_PHASE2_ERROR = 2,
  ^
/usr/include/c++/v1/unwind-itanium.h:45:5: note: previous definition is here
    _URC_FATAL_PHASE2_ERROR = 2,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:37:3: error: redefinition of enumerator '_URC_FATAL_PHASE1_ERROR'
  _URC_FATAL_PHASE1_ERROR = 3,
  ^
/usr/include/c++/v1/unwind-itanium.h:46:5: note: previous definition is here
    _URC_FATAL_PHASE1_ERROR = 3,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:38:3: error: redefinition of enumerator '_URC_NORMAL_STOP'
  _URC_NORMAL_STOP = 4,
  ^
/usr/include/c++/v1/unwind-itanium.h:47:5: note: previous definition is here
    _URC_NORMAL_STOP = 4,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:39:3: error: redefinition of enumerator '_URC_END_OF_STACK'
  _URC_END_OF_STACK = 5,
  ^
/usr/include/c++/v1/unwind-itanium.h:48:5: note: previous definition is here
    _URC_END_OF_STACK = 5,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:40:3: error: redefinition of enumerator '_URC_HANDLER_FOUND'
  _URC_HANDLER_FOUND = 6,
  ^
/usr/include/c++/v1/unwind-itanium.h:49:5: note: previous definition is here
    _URC_HANDLER_FOUND = 6,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:41:3: error: redefinition of enumerator '_URC_INSTALL_CONTEXT'
  _URC_INSTALL_CONTEXT = 7,
  ^
/usr/include/c++/v1/unwind-itanium.h:50:5: note: previous definition is here
    _URC_INSTALL_CONTEXT = 7,
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:42:3: error: redefinition of enumerator '_URC_CONTINUE_UNWIND'
  _URC_CONTINUE_UNWIND = 8,
  ^
/usr/include/c++/v1/unwind-itanium.h:51:5: note: previous definition is here
    _URC_CONTINUE_UNWIND = 8
    ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:46:3: error: typedef redefinition with different types ('enum _Unwind_Reason_Code' vs 'enum _Unwind_Reason_Code')
} _Unwind_Reason_Code;
  ^
/usr/include/c++/v1/unwind-itanium.h:53:1: note: previous definition is here
_Unwind_Reason_Code;
^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:49:3: error: expected identifier
  _UA_SEARCH_PHASE = 1,
  ^
/usr/include/c++/v1/unwind-itanium.h:57:26: note: expanded from macro '_UA_SEARCH_PHASE'
#define _UA_SEARCH_PHASE        1
                                ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:50:3: error: expected identifier
  _UA_CLEANUP_PHASE = 2,
  ^
/usr/include/c++/v1/unwind-itanium.h:58:27: note: expanded from macro '_UA_CLEANUP_PHASE'
#define _UA_CLEANUP_PHASE       2
                                ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:51:3: error: expected identifier
  _UA_HANDLER_FRAME = 4,
  ^
/usr/include/c++/v1/unwind-itanium.h:59:27: note: expanded from macro '_UA_HANDLER_FRAME'
#define _UA_HANDLER_FRAME       4
                                ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:52:3: error: expected identifier
  _UA_FORCE_UNWIND = 8,
  ^
/usr/include/c++/v1/unwind-itanium.h:60:26: note: expanded from macro '_UA_FORCE_UNWIND'
#define _UA_FORCE_UNWIND        8
                                ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
/usr/include/unwind.h:54:3: error: typedef redefinition with different types ('enum _Unwind_Action' vs 'int')
} _Unwind_Action;
  ^
/usr/include/c++/v1/unwind-itanium.h:55:13: note: previous definition is here
typedef int _Unwind_Action;
            ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30:
In file included from /usr/local/include/unwind.h:5:
In file included from /usr/include/unwind.h:61:
/usr/include/unwind_itanium.h:21:8: error: redefinition of '_Unwind_Exception'
struct _Unwind_Exception {
       ^
/usr/include/c++/v1/unwind-itanium.h:78:8: note: previous definition is here
struct _Unwind_Exception
       ^
17 errors generated.
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/solenv/gbuild/LinkTarget.mk:337: /usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2/workdir/CxxObject/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.o] Error 1
gmake[3]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2'
gmake[2]: *** [Makefile:289: build] Error 2
gmake[2]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-7.4.1.2'
*** Error code 1

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

Stop.
make: stopped in /usr/ports/editors/libreoffice

===>>> make build failed for editors/libreoffice
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> editors/libreoffice 

This command has been saved to ~/portmasterfail.txt


-- 
William Bulley
E-MAIL: web@umich.edu
<web@umich.edu>