[valgrind] [Bug 434775] drd/tests/swapcontext.c doesn't build with musl
https://bugs.kde.org/show_bug.cgi?id=434775 Randy MacLeod changed: What|Removed |Added CC||rwmacl...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[valgrind] [Bug 434775] drd/tests/swapcontext.c doesn't build with musl
https://bugs.kde.org/show_bug.cgi?id=434775 Yi Fan Yu changed: What|Removed |Added Resolution|--- |FIXED Status|REPORTED|RESOLVED --- Comment #5 from Yi Fan Yu --- build with musl is successful. -- You are receiving this mail because: You are watching all bug changes.
[valgrind] [Bug 434775] drd/tests/swapcontext.c doesn't build with musl
https://bugs.kde.org/show_bug.cgi?id=434775 --- Comment #4 from Bart Van Assche --- Please retest with commit 7cd4d78163fa ("memcheck/tests/linux/stack_changes: Only run this test if setcontext() is available"). -- You are receiving this mail because: You are watching all bug changes.
[valgrind] [Bug 434775] drd/tests/swapcontext.c doesn't build with musl
https://bugs.kde.org/show_bug.cgi?id=434775 --- Comment #3 from Yi Fan Yu --- I tried applying that patch to oe-core build and it still fails with this: So musl does provide as a header, but you cannot link to any of the *context calls. The error is a linker failure. ``` /ala-lpggp31/yyu1/oe-core/build/tmp-musl/work/core2-64-oe-linux-musl/valgrind/3.17.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux-musl/../../libexec/x86_64-oe-linux-musl/gcc/x8: | /usr/src/debug/valgrind/3.17.0-r0/valgrind-3.17.0/memcheck/tests/linux/stack_changes.c:23: undefined reference to `setcontext' | /ala-lpggp31/yyu1/oe-core/build/tmp-musl/work/core2-64-oe-linux-musl/valgrind/3.17.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux-musl/../../libexec/x86_64-oe-linux-musl/gcc/x8: | /usr/src/debug/valgrind/3.17.0-r0/valgrind-3.17.0/memcheck/tests/linux/stack_changes.c:31: undefined reference to `getcontext' | /ala-lpggp31/yyu1/oe-core/build/tmp-musl/work/core2-64-oe-linux-musl/valgrind/3.17.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux-musl/../../libexec/x86_64-oe-linux-musl/gcc/x8: | /usr/src/debug/valgrind/3.17.0-r0/valgrind-3.17.0/memcheck/tests/linux/stack_changes.c:60: undefined reference to `makecontext' | /ala-lpggp31/yyu1/oe-core/build/tmp-musl/work/core2-64-oe-linux-musl/valgrind/3.17.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux-musl/../../libexec/x86_64-oe-linux-musl/gcc/x8' | /ala-lpggp31/yyu1/oe-core/build/tmp-musl/work/core2-64-oe-linux-musl/valgrind/3.17.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux-musl/../../libexec/x86_64-oe-linux-musl/gcc/x8' | collect2: error: ld returned 1 exit status ``` -- You are receiving this mail because: You are watching all bug changes.
[valgrind] [Bug 434775] drd/tests/swapcontext.c doesn't build with musl
https://bugs.kde.org/show_bug.cgi?id=434775 --- Comment #2 from Bart Van Assche --- I took a look at the attached patch and noticed multiple new #ifdefs. I'm concerned that adding so many #ifdefs would make the test harder to maintain. So I added a configure test for swapcontext(). Can you take a look at commit c9e88f3459e2 ("configure, drd: Only build the swapcontext test if swapcontext() is available") and verify whether that is sufficient to make Valgrind build again against musl? -- You are receiving this mail because: You are watching all bug changes.
[valgrind] [Bug 434775] drd/tests/swapcontext.c doesn't build with musl
https://bugs.kde.org/show_bug.cgi?id=434775 --- Comment #1 from Yi Fan Yu --- Created attachment 136947 --> https://bugs.kde.org/attachment.cgi?id=136947=edit proposed patch (yocto/oe-core fix) -- You are receiving this mail because: You are watching all bug changes.