Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945958 - sys-apps/which-2.21: fails to compile with musl /gcc15
Summary: sys-apps/which-2.21: fails to compile with musl /gcc15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 947143 (view as bug list)
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-12-06 11:34 UTC by meartzheast877
Modified: 2025-02-09 05:36 UTC (History)
3 users (show)

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


Attachments
The build log (build.log,8.31 KB, text/plain)
2024-12-06 11:34 UTC, meartzheast877
Details
emerge --info (info.log,5.85 KB, text/plain)
2024-12-06 11:36 UTC, meartzheast877
Details

Note You need to log in before you can comment on or make changes to this bug.
Description meartzheast877 2024-12-06 11:34:48 UTC
Created attachment 913424 [details]
The build log

First I tried with GCC 15 and then with GCC 14 but both fail.

Steps to reproduce:
1. Have a musl system.
2. Try to compile Groff.

Actual results:
Build failure.

Expected results:
Compiled and installed successfully
Comment 1 meartzheast877 2024-12-06 11:36:26 UTC
Created attachment 913425 [details]
emerge --info
Comment 2 meartzheast877 2024-12-06 11:40:54 UTC
I meant that you have to try to compile which in order to reproduce the bug
Comment 3 Ionen Wolkens gentoo-dev 2024-12-06 11:50:26 UTC
Haven't tried but can likely get past the getopt bit with CPPFLAGS=-D__GNU_LIBRARY__ (it'll make it use musl's implementation which is fine), but pretty sure it has more problems with C23 and may still need -std=gnu17
Comment 4 meartzheast877 2024-12-06 11:52:24 UTC
(In reply to Ionen Wolkens from comment #3)
> Haven't tried but can likely get past the getopt bit with
> CPPFLAGS=-D__GNU_LIBRARY__ (it'll make it use musl's implementation which is
> fine), but pretty sure it has more problems with C23 and may still need
> -std=gnu17

I wonder if there would be any use in finally getting it to work completely in C23
Comment 5 Ionen Wolkens gentoo-dev 2024-12-06 12:01:06 UTC
(In reply to meartzheast877 from comment #4) 
> I wonder if there would be any use in finally getting it to work completely
> in C23
It's been nearly a decade since the last release and we'd just carry patches forever, I think it may as well just be a append-cflags.

And ultimately it's a package we're slowly trying to get rid of.
Comment 6 Ionen Wolkens gentoo-dev 2024-12-29 06:04:01 UTC
*** Bug 947143 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2025-02-09 05:36:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3067c3c51dccd3111f9d010c28663abb9577b749

commit 3067c3c51dccd3111f9d010c28663abb9577b749
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-02-09 05:30:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-09 05:30:40 +0000

    sys-apps/which: add 2.23
    
    Closes: https://bugs.gentoo.org/945958
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/which/Manifest          |  1 +
 sys-apps/which/which-2.23.ebuild | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)