Trying to build on 13.1-STABLE/amd64. Looks very similar to Bug 262008, but that one's declared fixed... ... In file included from /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx:38: In file included from /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30: In file included from /opt/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 /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx:38: In file included from /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30: In file included from /opt/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 /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx:38: In file included from /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30: In file included from /opt/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 /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx:38: In file included from /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30: In file included from /opt/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 /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx:38: In file included from /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30: In file included from /opt/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 /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx:38: In file included from /spare/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:30: In file included from /opt/include/unwind.h:5: /usr/include/unwind.h:50:3: error: expected identifier _UA_CLEANUP_PHASE = 2, ... The options-file is: # Options for libreoffice-7.3.3.2_3 _OPTIONS_READ=libreoffice-7.3.3.2_3 _FILE_COMPLETE_OPTIONS_LIST=COINMP CUPS DOCS GNOME GTK3 GTK4 JAVA KF5 LTO MARIADB MMEDIA PDFIUM PGSQL QT5 SDK TEST WEBDAV OPTIONS_FILE_UNSET+=COINMP OPTIONS_FILE_SET+=CUPS OPTIONS_FILE_UNSET+=DOCS OPTIONS_FILE_SET+=GNOME OPTIONS_FILE_SET+=GTK3 OPTIONS_FILE_UNSET+=GTK4 OPTIONS_FILE_UNSET+=JAVA OPTIONS_FILE_UNSET+=KF5 OPTIONS_FILE_SET+=LTO OPTIONS_FILE_UNSET+=MARIADB OPTIONS_FILE_SET+=MMEDIA OPTIONS_FILE_SET+=PDFIUM OPTIONS_FILE_UNSET+=PGSQL OPTIONS_FILE_UNSET+=QT5 OPTIONS_FILE_UNSET+=SDK OPTIONS_FILE_UNSET+=TEST OPTIONS_FILE_SET+=WEBDAV
(In reply to Mikhail T. from comment #0) I assume /opt is your /usr/local? It's strange that the compiler includes /opt/include/unwind.h while it has already included /usr/include/c++/v1/unwind.h. Where is the latter coming from? In any case, you should not have both /usr/include/c++/v1/unwind.h and /usr/include/unwind.h so I think you need to run "cd /usr/src && make delete-old".
(In reply to Tijl Coosemans from comment #1) I had similar problem with building libreoffice after upgrading from 13.0 to 13.1 >so I think you need to run "cd /usr/src && make delete-old". This one actually solved my issue. Thanks.
Mikhail, were you able to resolve your problem? Can we close this PR?
> Mikhail, were you able to resolve your problem? Can we close this PR? I've upgraded the computer a few times since then and I no longer have the /opt/include/unwind.h Looking through today's ports-tree, I don't see include/unwind.h anywhere -- various compilers install their own, but much deeper underneath. I'll close the PR...