Summary: | [editors/openoffice-4 and editors/openoffice-devel]: fix build on powerpc64 (Current) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Curtis Hamilton <hamiltcl> | ||||||
Component: | Individual Port(s) | Assignee: | Don Lewis <truckman> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Some People | CC: | grahamperrin, powerpc, truckman | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(office) |
||||||
Version: | Latest | ||||||||
Hardware: | powerpc | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Curtis Hamilton
2020-11-27 00:11:24 UTC
The error appears to be here: ... /usr/ports/editors/openoffice-devel/work/aoo-4.2.0/main/instsetoo_native/unxfbsdppc64.pro/Apache_OpenOffice/archive/install/en-US_inprogress/Apache_OpenOffice_4.2.0_FreeBSD_install-arc_en-US/openoffice4/program/unopkg sync --verbose -env:UNO_JAVA_JFW_ENV_JREHOME=true 2>&1 | ... ************************************************** ERROR: ERROR: /usr/ports/editors/openoffice-devel/work/aoo-4.2.0/main/instsetoo_native/unxfbsdppc64.pro/Apache_OpenOffice/archive/install/en-US_inprogress/Apache_OpenOffice_4.2.0_FreeBSD_install-arc_en-US/openoffice4/program/unopkg sync --verbose -env:UNO_JAVA_JFW_ENV_JREHOME=true 2>&1 | failed! in function: register_extensions ************************************************** I will investigate further. Any non-default build options or anything interesting in /etc/make.conf? (In reply to Don Lewis from comment #2) There's nothing unusual in my make.conf. After a bit of digging, it seems that this issue is related to the bridges. unopkg.bin sigfaults upon execution. Below is what I get from gdb. GNU gdb (GDB) 8.3.1 [GDB v8.3.1 for FreeBSD] Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-portbld-freebsd13.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./unopkg.bin... (No debugging symbols found in ./unopkg.bin) (gdb) run Starting program: /usr/ports/editors/openoffice-4/work/aoo-4.1.7/main/instsetoo_native/unxfbsdp.pro/Apache_OpenOffice/archive/install/en-US_witherror/Apache_OpenOffice_4.1.7_FreeBSD_install-arc_en-US/openoffice4/program/unopkg.bin Program received signal SIGSEGV, Segmentation fault. 0x0000000811bc6a18 in vtable for __cxxabiv1::__si_class_type_info () from /lib/libcxxrt.so.1 (gdb) It seems the bridges for powerpc64 needs to be adjusted to work inconjunction with clang, even when building with gcc. FYI, the MacOS port (I don't know the arch) works. I think the FreeBSD port has a separate copy of the bridges code. (In reply to Don Lewis from comment #4) Yes, but I don't believe clang is supported on MacOS PowerPC. My point is there seems to be a gcc/clang conflict in the code of the bridges on FreeBSD PowerPC64. This is indicated by gdb, when compiling with gcc, it should not reference the clang runtime library. The bridges work perfectly on freebsd 12.x. It's only on Current (13) that things break, as that's when the default C/C++ switches to clang. I suspect that the configure logic needs to be adjusted for this combo. How are you trying to get the build to use gcc on 13-CURRENT? (In reply to Don Lewis from comment #6) I’ve tried setting gcc in ‘etc/make.conf’ and in the Makefile with “USE_GCC = YES”. Getting the same results. Something to be wary of is if any LIB_DEPENDS use clang for C++ compilation while the port uses gcc (or vice-versa), bad things tend to happen. I don't know if that is the problem here. <https://cgit.freebsd.org/ports/commit/?id=c41bce980e44454f64e9b8e313941f9b56e5ce14> > editors/openoffice-4: mark BROKEN > BROKEN= does not build: invalid use of @return Created attachment 253812 [details]
Patch to fix OpenOffice-4 build
Created attachment 253813 [details]
Patch to fix OpenOffice-devel build
Patches to fix issues with build on powerpc64. Please see this upstream pull request: https://github.com/apache/openoffice/pull/225 A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d74f1e0a8d38d54eae26f2494ef077eb05c653fb commit d74f1e0a8d38d54eae26f2494ef077eb05c653fb Author: Curtis Hamilton <hamiltcl@verizon.net> AuthorDate: 2024-11-04 11:50:28 +0000 Commit: Don Lewis <truckman@FreeBSD.org> CommitDate: 2024-11-04 11:59:06 +0000 editors/openoffice-*: Fix build on powerpc64 The upstream bridges code does not yet work on powerpc64. PR: 251417 .../files/patch-bridges_prj_build.lst (new) | 12 + ..._cpp__uno_gcc3__freebsd__powerpc64_call.s (new) | 482 +++++++++++++++++++++ ..._uno_gcc3__freebsd__powerpc64_cpp2uno.cxx (new) | 257 +++++++++++ ..._uno_gcc3__freebsd__powerpc64_makefile.mk (new) | 21 + ...rce_cpp__uno_gcc3__freebsd__powerpc64_share.hxx | 78 +++- ...e_cpp__uno_gcc3__freebsd__powerpc64_uno2cpp.cxx | 381 +++++++++++++++- .../openoffice-4/files/patch-set_soenv.in (new) | 67 +++ .../files/patch-solenv_inc_unxfbsdp.mk (new) | 34 ++ ...esttools__source__bridgetest__makefile.mk (new) | 12 + .../files/patch-bridges_Library__cpp__uno.mk (new) | 14 + ..._cpp__uno_gcc3__freebsd__powerpc64_call.s (new) | 482 +++++++++++++++++++++ ..._uno_gcc3__freebsd__powerpc64_cpp2uno.cxx (new) | 257 +++++++++++ ..._uno_gcc3__freebsd__powerpc64_makefile.mk (new) | 21 + ...rce_cpp__uno_gcc3__freebsd__powerpc64_share.hxx | 78 +++- ...e_cpp__uno_gcc3__freebsd__powerpc64_uno2cpp.cxx | 381 +++++++++++++++- .../files/patch-solenv_inc_unxfbsdp.mk (new) | 34 ++ ...esttools__source__bridgetest__makefile.mk (new) | 12 + 17 files changed, 2601 insertions(+), 22 deletions(-) A commit in branch 2024Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1fa626a715ffccf17bd70209baff44ae795e1ba7 commit 1fa626a715ffccf17bd70209baff44ae795e1ba7 Author: Curtis Hamilton <hamiltcl@verizon.net> AuthorDate: 2024-11-04 11:50:28 +0000 Commit: Don Lewis <truckman@FreeBSD.org> CommitDate: 2024-11-05 00:07:13 +0000 editors/openoffice-*: Fix build on powerpc64 The upstream bridges code does not yet work on powerpc64. PR: 251417 (cherry picked from commit d74f1e0a8d38d54eae26f2494ef077eb05c653fb) .../files/patch-bridges_prj_build.lst (new) | 12 + ..._cpp__uno_gcc3__freebsd__powerpc64_call.s (new) | 482 +++++++++++++++++++++ ..._uno_gcc3__freebsd__powerpc64_cpp2uno.cxx (new) | 257 +++++++++++ ..._uno_gcc3__freebsd__powerpc64_makefile.mk (new) | 21 + ...rce_cpp__uno_gcc3__freebsd__powerpc64_share.hxx | 78 +++- ...e_cpp__uno_gcc3__freebsd__powerpc64_uno2cpp.cxx | 381 +++++++++++++++- .../openoffice-4/files/patch-set_soenv.in (new) | 67 +++ .../files/patch-solenv_inc_unxfbsdp.mk (new) | 34 ++ ...esttools__source__bridgetest__makefile.mk (new) | 12 + .../files/patch-bridges_Library__cpp__uno.mk (new) | 14 + ..._cpp__uno_gcc3__freebsd__powerpc64_call.s (new) | 482 +++++++++++++++++++++ ..._uno_gcc3__freebsd__powerpc64_cpp2uno.cxx (new) | 257 +++++++++++ ..._uno_gcc3__freebsd__powerpc64_makefile.mk (new) | 21 + ...rce_cpp__uno_gcc3__freebsd__powerpc64_share.hxx | 78 +++- ...e_cpp__uno_gcc3__freebsd__powerpc64_uno2cpp.cxx | 381 +++++++++++++++- .../files/patch-solenv_inc_unxfbsdp.mk (new) | 34 ++ ...esttools__source__bridgetest__makefile.mk (new) | 12 + 17 files changed, 2601 insertions(+), 22 deletions(-) |