Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938223 - [guru] sys-boot/limine-8.0.11 overwrites CFLAGS/CXXFLAGS or adds uncommon ones
Summary: [guru] sys-boot/limine-8.0.11 overwrites CFLAGS/CXXFLAGS or adds uncommon ones
Status: CONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Kacper Słomiński
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qa-guru
  Show dependency tree
 
Reported: 2024-08-20 07:28 UTC by Agostino Sarubbo
Modified: 2024-09-12 06:50 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,653.74 KB, text/plain)
2024-08-20 07:28 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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.