Unpatched valgrind-3.11.0 fails to compile with musl libc, attached patch enables muls libc compile (for buildroot details see [1]). [1] https://patchwork.ozlabs.org/patch/538683/ Reproducible: Always
Created attachment 97120 [details] [PATCH v1] Fixes for musl libc. [PATCH v1] Fixes for musl libc. - add musl libc detection (prevents configure error) - adjust preload and symbol names (based on the OpenWrt patch, see [1]) [1] https://dev.openwrt.org/browser/trunk/package/devel/valgrind/patches/200-musl_fix.patch?rev=46302
Created attachment 97156 [details] [PATCH v2] Fixes for musl libc. - add musl libc detection (prevents configure error) - adjust preload and symbol names (based on the OpenWrt patch, see [1]) [1] https://dev.openwrt.org/browser/trunk/package/devel/valgrind/patches/200-musl_fix.patch?rev=46302 Changes v1 -> v2: change ifdef logic, fix uClibc spelling
Created attachment 102572 [details] Updated patch for 3.10.1 I've taken the patch that was posted here and updated it to apply cleanly to 3.10.1. I've only tested memcheck, but it works great.
(In reply to Peter Seiderer from comment #2) > Created attachment 97156 [details] > [PATCH v2] Fixes for musl libc. > > - add musl libc detection (prevents configure error) > - adjust preload and symbol names (based on the OpenWrt > patch, see [1]) > > [1] > https://dev.openwrt.org/browser/trunk/package/devel/valgrind/patches/200- > musl_fix.patch?rev=46302 > > Changes v1 -> v2: > change ifdef logic, fix uClibc spelling The patch makes sense. Anyone has objections that we put this into the tree?
No objections here.
Committed as r16296. Thanks.
This issue can be closed now.