-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app-crypt/efitools-1.9.2 fails to link #377
Comments
Using desktop 17.1 profile, this is the only package that fails to build after an emerge -e world |
Figured it out. I had to include
in my local workarounds to get it to build. Apparently having the dependencies use any lto flags caused the build of efitools to fail. What's the solution here? |
No issues with this package here or its dependencies. Could you post a full |
maybe related but i have systemd with efi to make it build systemd boot and systemd compiled with lto compiles fine but after install systemd-boot to ESP efi part. it dont boot the screen got black and hang nothing good so systemd without lto makes systemd-boot install and boot fine , also i have sys-boot/gnu-efi-3.0.9::gentoo was built with the following: |
sys-libs/efivar compiled with lto fine dont know about app-crypt/efitools sys-boot/efibootmgr-16::gentoo builds with lto too |
I don't use systemd efivar and gnu-efi both compile fine, but they cause efitools to fail building. |
just confirmed that rebuilding both dependencies with lto enabled causes efitools to fail to build.
|
oh, also, my localrepo just has a custom ebuild of luarocks in it, to link packages against luajit. |
Ah, new info. Not building the dependencies with lto allows me to lto efitools |
I only had to disable lto on 'gnu-efi' to get efitools to build with lto. I still have to see if it boots though. |
I Recommend Dont Use Anything With Gnu-Efi and Anything Related To Efi Bootloaders no Cflags Nothing And This sys-boot/refind-0.11.4::gentoo was built with the following: Do what I Say If U Want Anything EFI Related To Boot In Your System I learned The Hard Way Stop Optimizing EFI bootloaders And Libs. LOOk in here >>>>> https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/refind-efi msg "Unset all compiler FLAGS" |
WhoCares If It Links Or Build , The Thing Is If IT BOOTs ....... |
My system, at least, boots fine on all posted configurations... I've been replacing both the kernel and bootloader each time, which includes re-signing all pieces. No issues as long as it builds here. I'll test out only disabling lto on gnu-efi today |
I can replicate @TheGreatMcPain 's findings. Building efivar and efitools with lto and gnu-efi without seems to work just fine! My system also boots fine after updating my boot chain with the new code. |
Well, my laptop also boots with gnu-efi built without lto, and efivar/efitools build with lto. |
I don't need this to boot but I do need it to extract my motherboard keys. If you use |
I'm pretty confused on this one, please bear with me as I'm also very inexperienced with gcc flag tweaking and the specific ways portage handles variables for ebuilds.
I've tried building with the gentoolto default flags(fat-lto-objects), with the default lto config, and with no lto enabled. It seems like the lto flags aren't getting to the linker in all cases
I've also tried rebuilding the dependencies without lto(shot in the dark) but no dice.
Where can I go from here? I'm also happy to make a PR to fix this once it's solved.
The text was updated successfully, but these errors were encountered: