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

Bug 938223

Summary: [guru] sys-boot/limine-8.0.11 overwrites CFLAGS/CXXFLAGS or adds uncommon ones
Product: GURU Reporter: Agostino Sarubbo <ago>
Component: Package issuesAssignee: Kacper Słomiński <kacper.slominski72>
Status: CONFIRMED ---    
Severity: normal CC: guru-bugs, kacper.slominski72
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 785607    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-08-20 07:28:29 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-boot/limine-8.0.5 overwrites CFLAGS/CXXFLAGS or adds uncommon ones.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#QA0069
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-20 07:28:31 UTC
Created attachment 900777 [details]
build.log

build log and emerge --info
Comment 2 Kacper Słomiński 2024-08-20 11:39:54 UTC
The special flags are only applied when building freestanding binaries (the EFI executables, etc).

I think the flags passed there are justified:
-Os - to keep the size of the BIOS binaries small (there is an upper size limit),
-g - for stacktraces,
-fPIE - forcing PIE as that's a requirement for EFI executables,
-march=* - forcing a base ISA to avoid extensions that need to be enabled before use.

The stuff that runs under Linux (the `limine` command) is compiled with the user-supplied CFLAGS as expected.
Comment 3 Agostino Sarubbo gentoo-dev 2024-08-30 14:32:30 UTC
guru_ci has reproduced this issue with version 8.0.6 - Updating summary.
Comment 4 Agostino Sarubbo gentoo-dev 2024-09-04 06:40:30 UTC
guru_ci has reproduced this issue with version 8.0.7 - Updating summary.
Comment 5 Agostino Sarubbo gentoo-dev 2024-09-07 12:24:10 UTC
guru_ci has reproduced this issue with version 8.0.9 - Updating summary.
Comment 6 Agostino Sarubbo gentoo-dev 2024-09-12 06:50:57 UTC
guru_ci has reproduced this issue with version 8.0.11 - Updating summary.