pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: misc/libreoffice build errors: __ubsan_handle_pointer_overflow

On Sun, 11 Dec 2022 at 18:39:46 +0100, Rhialto wrote:
In the run-up to thew new stable branch, I'm recompiling all my packages
in a fresh chroot from pkg_comp1. I'm using gcc10 for the first time,
since in the last stable branch, Firefox already wanted that version, so
it's better to use it for everything.

Building in NetBSD 9.2/amd64.

Libreoffice fails to build for me. The build ends like this:

[ 74%] Building C object CMakeFiles/tests_ro32.dir/tests/tests_str.c.o
/usr/bin/ld: CMakeFiles/tests_no64.dir/tests/tests.c.o: in function `main': tests.c:(.text.startup+0x453): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: tests.c:(.text.startup+0x467): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: tests.c:(.text.startup+0x47b): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: tests.c:(.text.startup+0x48f): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: CMakeFiles/tests_no64.dir/tests/tests_basic.c.o: in function `test_abs_short': tests_basic.c:(.text+0x2e2): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: tests_basic.c:(.text+0x326): undefined reference to `__ubsan_handle_type_mismatch_v1' /usr/bin/ld: tests_basic.c:(.text+0x397): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: tests_basic.c:(.text+0x3ba): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: tests_basic.c:(.text+0x3ce): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: tests_basic.c:(.text+0x3f1): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: CMakeFiles/tests_no64.dir/tests/tests_basic.c.o: in function `test_abs': tests_basic.c:(.text+0x539): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: CMakeFiles/tests_no64.dir/tests/tests_basic.c.o:tests_basic.c:(.text+0x54d): more undefined references to `__ubsan_handle_pointer_overflow' follow /usr/bin/ld: CMakeFiles/tests_no64.dir/tests/tests_basic.c.o: in function `test_add_short':
... and lots more similar complaints about
__ubsan_handle_pointer_overflow being undefined.

It successfully built (and runs) for me today on 9.3_STABLE/amd64.
pkgsrc is as of roughly two days ago, when I kicked off the pbulk build
in question. I have not forced GCC to 10 in my pkgsrc settings, so it's
going with the defaults across the board.

I also checked the MNX builk builds for 9.99.106; there it's failed for
an entirely different reason that seems to be a local packaging thing.



Home | Main Index | Thread Index | Old Index