Summary: | media-sound/moc-2.6_alpha3-r6 fails to compile: configure: error: I dont know how to compile pthreads code on this system | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | chaseleif |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
1-config.log Patch fixes configure error due to LLVM warning which causes error |
Description
Agostino Sarubbo
2022-01-14 09:11:36 UTC
Created attachment 762121 [details]
build.log
build log and emerge --info
Created attachment 762122 [details]
1-config.log
1-config.log
tinderbox_musl has reproduced this issue with version 2.6_alpha3-r6 - Updating summary. I had this same issue, amd64, followed steps for system-wide Clang and bootstrapped Clang toolchain. I downloaded the MOC 2.6-alpha3 from daper. Setting CC/CFLAGS/etc, I get: "I don't know how to compiler pthreads ..." during configure Here is the config.log where -pthread is used with clang: conftest.c:89:51 error: parameter 'a' set but not used [-Werror,-Wunused-but-set-parameter] 89 | static void routine(void *a) { a = 0; } In my make.conf, I temporarily appended to my WARNING_FLAGS (which goes into my COMMON_FLAGS then CFLAGS/etc): WARNING_FLAGS="-Wnoerror=unused-bit-set-parameter" I was then able to emerge media-sound/moc without any other issues. *oops, that is -Wnoerror=unused-but-set-parameter I tried to make a patch for the configure file, but the changes weren't sticking. I've used patches for other packages. It fixed it (in my downloaded source dir) to change the line in configure: static void routine(void *a) { a = 0; } to: static void routing(void *a) { if (a) return; } The configure script sets Werror, and, I don't know if it's new, clang warns about the unused parameter. This results in the pthread tests all failing which makes configure fail. Created attachment 891891 [details, diff]
Patch fixes configure error due to LLVM warning which causes error
More can be seen from my earlier comments, I decided to take another stab at a patch so updates can be normal. I found the correct file to fix to update the configure.
sed -i 's/static void routine(void \*a) { a = 0; }/static void routine(void \*a) { if (a) return; }/' m4/ax_pthread.m4
|