[regression] gjs master can't build today
gjs master can't build today. Linking is failing with lots of multiple definitions related to sysprof:
[112/129] Linking target libgjs.so.0.0.0
FAILED: libgjs.so.0.0.0
c++ -o libgjs.so.0.0.0 libgjs.so.0.0.0.p/meson-generated_.._js-resources.c.o libgjs.so.0.0.0.p/libgjs-private_gjs-gdbus-wrapper.c.o libgjs.so.0.0.0.p/libgjs-private_gjs-util.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libgjs.so.0 -Wl,--whole-archive libgjs-internal.a subprojects/sysprof/src/libsysprof-capture/libsysprof-capture-4.a -Wl,--no-whole-archive -Bsymbolic-functions libgjs-jsapi.a -Wl,--version-script,/home/dan/git/gjs/libgjs.map /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libgthread-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgirepository-1.0.so -lffi /usr/lib/x86_64-linux-gnu/libmozjs-78.so -lreadline /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXext.so -lrt -lffi -lreadline -lffi -lreadline -Wl,--end-group
/usr/bin/ld: subprojects/sysprof/src/libsysprof-capture/libsysprof-capture-4.a(mapped-ring-buffer.c.o): in function `mapped_ring_buffer_new_reader':
/home/dan/git/gjs/build.here/../subprojects/sysprof/src/libsysprof-capture/mapped-ring-buffer.c:163: multiple definition of `mapped_ring_buffer_new_reader'; libgjs-internal.a(mapped-ring-buffer.c.o):/home/dan/git/gjs/build.here/../subprojects/sysprof/src/libsysprof-capture/mapped-ring-buffer.c:163: first defined here
/usr/bin/ld: subprojects/sysprof/src/libsysprof-capture/libsysprof-capture-4.a(mapped-ring-buffer.c.o): in function `mapped_ring_buffer_new_readwrite':
/home/dan/git/gjs/build.here/../subprojects/sysprof/src/libsysprof-capture/mapped-ring-buffer.c:221: multiple definition of `mapped_ring_buffer_new_readwrite'; libgjs-internal.a(mapped-ring-buffer.c.o):/home/dan/git/gjs/build.here/../subprojects/sysprof/src/libsysprof-capture/mapped-ring-buffer.c:221: first defined here
/usr/bin/ld: subprojects/sysprof/src/libsysprof-capture/libsysprof-capture-4.a(mapped-ring-buffer.c.o): in function `mapped_ring_buffer_new_writer':
.....
Bisected:
ed6370b90613d4743d5c2a8e568fba0e2f731a8e is the first bad commit
commit ed6370b90613d4743d5c2a8e568fba0e2f731a8e
Author: Marco Trevisan (Treviño) <mail@3v1n0.net>
Date: Sun May 16 16:50:18 2021 +0200
tests: Move internal API tests into a different test binary
installed-tests/js/libgjstesttools/meson.build | 3 ++
meson.build | 43 +++++++++++++++++---------
test/gjs-tests-internal.cpp | 25 +++++++++++++++
test/gjs-tests.cpp | 3 --
test/meson.build | 36 ++++++++++++++++-----
5 files changed, 85 insertions(+), 25 deletions(-)
create mode 100644 test/gjs-tests-internal.cpp
Edited by Daniel van Vugt