Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 945968

Summary: dev-build/make-4.4.1-r100: fails to compile with musl /gcc15
Product: Gentoo Linux Reporter: meartzheast877
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: meartzheast877
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/39945
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: The build log
emerge --info

Description meartzheast877 2024-12-06 13:41:57 UTC
dev-build/make does not compile because of a getenv() error, and it seems that several programs suffer from this, so far I have only seen 5, but there may be more.

Reproducible: Always

Steps to Reproduce:
1. Have a musl system
2. Try to compile make
Actual Results:  
It does not compile

Expected Results:  
It should compile and install successfully.
Comment 1 meartzheast877 2024-12-06 13:42:17 UTC
Created attachment 913435 [details]
The build log
Comment 2 meartzheast877 2024-12-06 13:42:31 UTC
Created attachment 913436 [details]
emerge --info
Comment 3 Mike Gilbert gentoo-dev 2024-12-07 01:51:25 UTC
(In reply to meartzheast877 from comment #0)
> dev-build/make does not compile because of a getenv() error, and it seems
> that several programs suffer from this, so far I have only seen 5, but there
> may be more.

The faulty code comes from gnulib, which is bundled with many packages.
Comment 4 meartzheast877 2025-01-02 12:05:41 UTC
(In reply to Mike Gilbert from comment #3)
> (In reply to meartzheast877 from comment #0)
> > dev-build/make does not compile because of a getenv() error, and it seems
> > that several programs suffer from this, so far I have only seen 5, but there
> > may be more.
> 
> The faulty code comes from gnulib, which is bundled with many packages.

Sorry to reopen this, but then the error could be solved by changing the arguments of getenv and getopt respectively right?