Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831179 - media-sound/moc-2.6_alpha3-r6 fails to compile: configure: error: I dont know how to compile pthreads code on this system
Summary: media-sound/moc-2.6_alpha3-r6 fails to compile: configure: error: I dont know...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-14 09:11 UTC by Agostino Sarubbo
Modified: 2024-04-28 03:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,50.44 KB, text/plain)
2022-01-14 09:11 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,148.62 KB, text/plain)
2022-01-14 09:11 UTC, Agostino Sarubbo
Details
Patch fixes configure error due to LLVM warning which causes error (moc.patch,718 bytes, patch)
2024-04-28 03:13 UTC, Chase
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-14 09:11:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/moc-2.6_alpha3-r5 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-14 09:11:37 UTC
Created attachment 762121 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-14 09:11:38 UTC
Created attachment 762122 [details]
1-config.log

1-config.log
Comment 3 Agostino Sarubbo gentoo-dev 2023-02-26 07:44:20 UTC
tinderbox_musl has reproduced this issue with version 2.6_alpha3-r6 - Updating summary.
Comment 4 Chase 2024-03-07 02:49:38 UTC
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.
Comment 5 Chase 2024-03-07 02:51:18 UTC
*oops, that is -Wnoerror=unused-but-set-parameter
Comment 6 Chase 2024-03-07 05:21:34 UTC
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.
Comment 7 Chase 2024-04-28 03:13:40 UTC
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