https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110336
Bug ID: 110336
Summary: Ada doesn't build with coverage enabled on Arm
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: tnfchris at gcc dot gnu.org
CC: dkm at gcc dot gnu.org
Target Milestone: ---
Host: arm-none-linux-gnueabihf
Target: arm-none-linux-gnueabihf
Build: arm-none-linux-gnueabihf
When building Ada with coverage enabled using
./configure --target=arm-none-linux-gnueabihf --build=arm-none-linux-gnueabihf
--host=arm-none-linux-gnueabihf --with-arch=armv7-a --with-fpu=neon
--with-float=hard --with-mode=thumb --disable-bootstrap --enable-coverage=opt
--enable-languages=all --enable-host-shared
the build fails with lots of link errors:
/usr/bin/ld: ../../libcommon-target.a(vec.o): in function `_sub_I_00100_0':
vec.cc:(.text.startup+0x44): undefined reference to `__gcov_init'
/usr/bin/ld: ../../libcommon-target.a(vec.o): in function `_sub_D_00100_1':
vec.cc:(.text.exit+0x0): undefined reference to `__gcov_exit'
/usr/bin/ld: ../../libcommon-target.a(vec.o):(.data.rel+0x10): undefined
reference to `__gcov_merge_add'
/usr/bin/ld: ../../libcommon-target.a(hooks.o): in function `_sub_I_00100_0':
hooks.cc:(.text.startup+0x4): undefined reference to `__gcov_init'
/usr/bin/ld: ../../libcommon-target.a(hooks.o): in function `_sub_D_00100_1':
hooks.cc:(.text.exit+0x0): undefined reference to `__gcov_exit'
seems like libgcov is missing somewhere?