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

Bug 938485

Summary: dev-dotnet/dotnet-sdk: Build fails due to CHECK_LIBRARY_EXISTS arguments and mkstemp(s) absence
Product: Gentoo Linux Reporter: securable.alias
Component: Current packagesAssignee: dotnet project <dotnet>
Status: UNCONFIRMED ---    
Severity: normal CC: admnd, dharding, dlacksdud2, securable.alias, whiteman808, xgqt
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=946162
https://bugs.gentoo.org/show_bug.cgi?id=945986
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: Output of emerge --info '=dev-dotnet/dotnet-sdk-8.0.107::gentoo'
Output of emerge -pqv '=dev-dotnet/dotnet-sdk-8.0.107::gentoo'
Complete build log
The ebuild environment file
Supplemental build log

Description securable.alias 2024-08-25 08:14:36 UTC
Created attachment 901188 [details]
Output of emerge --info '=dev-dotnet/dotnet-sdk-8.0.107::gentoo'

Build fails due to the above stated reasons. All dependencies appear to be satisfied. Cmake fails to find various utilities, but seems to only judge a couple of them to be critical.
Comment 1 securable.alias 2024-08-25 08:15:41 UTC
Created attachment 901189 [details]
Output of emerge -pqv '=dev-dotnet/dotnet-sdk-8.0.107::gentoo'
Comment 2 securable.alias 2024-08-25 08:20:01 UTC
Created attachment 901190 [details]
Complete build log
Comment 3 securable.alias 2024-08-25 08:24:00 UTC
Created attachment 901191 [details]
The ebuild environment file
Comment 4 Maciej Barć gentoo-dev 2024-08-26 21:15:10 UTC
Any success with using "-march=native -O2 -pipe" as CFLAGS and CXXFLAGS?
Comment 5 Maciej Barć gentoo-dev 2024-08-26 21:21:37 UTC
Or maybe cmake issue, Im on 3.28.5, might try with more recent cmake.
Comment 6 securable.alias 2024-08-27 04:59:55 UTC
My apologies to the bug wrangler for creating work, I was trying to sightread the contextual meaning of the severity, and thought "unusable to a user" made it critical.

Regarding adjusted CFLAGS, build still fails but with a different error. Please see attachment "Supplemental build log".
Comment 7 securable.alias 2024-08-27 05:02:47 UTC
Created attachment 901292 [details]
Supplemental build log
Comment 8 Maciej Barć gentoo-dev 2024-08-27 21:29:26 UTC
> Regarding adjusted CFLAGS, build still fails but with a different error. Please see attachment "Supplemental build log".

I would look into other variables then, namely LDFLAGS.
Comment 9 securable.alias 2024-08-28 06:28:28 UTC
LDFLAGS have been left default, to the best of my limited knowledge. At least, I haven't set new ones in make.conf. I also didn't see a set of commonly suggested values, nor did I see any when searching the project itself up; are there suggested values for this variable on this package?
Comment 10 Maciej Barć gentoo-dev 2024-12-16 20:26:16 UTC
the 1st part of this bug is essentially LTO chaos -> https://bugs.gentoo.org/946373#c10

the 2nd looks similarly to this -> https://bugs.gentoo.org/945986
Comment 11 Larry the Git Cow gentoo-dev 2024-12-16 23:26:01 UTC
The bug has been referenced in the following commit(s):

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

commit cbe90d697edd533fe1e6c40dcab6c4c62595e719
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2024-12-16 23:01:42 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2024-12-16 23:25:55 +0000

    dev-dotnet/dotnet-sdk: filter lto-type-mismatch
    
    Closes: https://bugs.gentoo.org/946334
    Closes: https://bugs.gentoo.org/946373
    Bug: https://bugs.gentoo.org/938485
    Bug: https://github.com/dotnet/runtime/issues/110664
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.107-r2.ebuild | 2 ++
 dev-dotnet/dotnet-sdk/dotnet-sdk-9.0.101.ebuild    | 2 ++
 2 files changed, 4 insertions(+)