Skip to content
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-admin/keepassxc-2.2.2 requires -fPIC to compile #58

Closed
soredake opened this issue Oct 25, 2017 · 4 comments
Closed

app-admin/keepassxc-2.2.2 requires -fPIC to compile #58

soredake opened this issue Oct 25, 2017 · 4 comments

Comments

@soredake
Copy link
Contributor

soredake commented Oct 25, 2017

/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: /var/tmp/portage/app-admin/keepassxc-2.2.2/temp/ccERKDVM.ltrans0.ltrans.o: requires dynamic R_X86_64_PC32 reloc against '_ZN16AutoTypeExecutor9execDelayEP13AutoTypeDelay' which may overflow at runtime; recompile with -fPIC

app-admin/keepassxc *FLAGS+=-fPIC fixes build. I do not know if this is due to gentooLTO, can someone test?
UPD: seems gentooLTO is not related https://bugs.gentoo.org/buglist.cgi?quicksearch=fPIC&list_id=3710774

@soredake soredake changed the title app-admin/keepassxc requires -fPIC to compile app-admin/keepassxc-2.2.2 requires -fPIC to compile Oct 25, 2017
@InBetweenNames
Copy link
Owner

Hi @soredake , thanks for the heads up on this. As much as I'd like to include a workaround for this in this repo, unfortunately I have to keep things focused around the LTO goal, and this definitely non-LTO related. I'm going to have to close the issue for now, but if you find later that LTO does indeed affect this, I will for sure reopen it. Thanks!

@ghost
Copy link

ghost commented Jun 2, 2018

if you find later that LTO does indeed affect this, I will for sure reopen it.

i ran into the same problem and found that if you enable the autotype use flag for keepassxc, you need to use either *FLAGS+=-fPIC or *FLAGS-=-flto* or the build will fail (log)

i don't use any other use flags so i don't know what cflags they work with (but compiling without autotype works with the default lto flags)

is it lto-related enough? i could build the same version (2.2.4) fine with safe cflags before i started using gentooLTO

UPD: seems gentooLTO is not related https://bugs.gentoo.org/buglist.cgi?quicksearch=fPIC&list_id=3710774

the only keepassxc-related bug i see is the submitter's with -flto enabled

@InBetweenNames
Copy link
Owner

Ahh sorry, just saw this.

@InBetweenNames
Copy link
Owner

Fixed in master. Conditional LTO based on autotype for this package has been added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants