Bug 481676 - Build failure on Raspberry Pi 5 Ubuntu 23.10 with clang
Summary: Build failure on Raspberry Pi 5 Ubuntu 23.10 with clang
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.22 GIT
Platform: Other FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-22 14:27 UTC by Paul Floyd
Modified: 2024-04-15 05:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Floyd 2024-02-22 14:27:19 UTC
For all the tools I got

undefined reference to symbol __getauxval

errors for all tools.

I needed to add coregrind/libgcc-sup-arm64-linux.a to get them to link
Comment 1 Paul Floyd 2024-02-22 16:50:31 UTC
The exact failure message

../coregrind/link_tool_exe_linux 0x58000000 clang     -o memcheck-arm64-linux  -m64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare  -O2 -static -nodefaultlibs -nostartfiles -u _start  -m64 memcheck_arm64_linux-mc_leakcheck.o memcheck_arm64_linux-mc_malloc_wrappers.o memcheck_arm64_linux-mc_main.o memcheck_arm64_linux-mc_main_asm.o memcheck_arm64_linux-mc_translate.o memcheck_arm64_linux-mc_machine.o memcheck_arm64_linux-mc_errors.o ../coregrind/libcoregrind-arm64-linux.a ../VEX/libvex-arm64-linux.a -lgcc  
/usr/bin/ld: /usr/bin/../lib/gcc/aarch64-linux-gnu/13/libgcc.a(lse-init.o): in function `init_have_lse_atomics':
(.text.startup+0xc): undefined reference to `__getauxval'
(.text.startup+0xc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__getauxval'
Comment 2 Paul Floyd 2024-04-15 05:05:13 UTC
commit 33091a1c4410c4641a8ffd219a1c0b1f42120780 (HEAD -> master, origin/master, origin/HEAD)
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Mon Apr 15 07:03:23 2024 +0200

    Add Bug 481676 to NEWS
    
    Forgot I'd opened a bugzi for the problem.