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

Build with -fPIC? #60

Open
h-vetinari opened this issue Dec 22, 2022 · 1 comment
Open

Build with -fPIC? #60

h-vetinari opened this issue Dec 22, 2022 · 1 comment

Comments

@h-vetinari
Copy link
Member

It seems like the libraries here are built without an explicit setting for position-independent code. I'm surprised this hasn't come up before, so it's possible that I'm holding it wrong, but in any case, the following happened in conda-forge/gammaray-feedstock#2 (added linebreaks for legibility)

[...]/x86_64-conda-linux-gnu/bin/ld:
[...]/_build_env/lib/libbfd.a(elf64-x86-64.o):
relocation R_X86_64_PC32 against symbol `_bfd_elf_large_com_section' can not be used when making a shared object;
recompile with -fPIC

and I verified that libbfd.a is from this feedstock.

@lianghongzhuo
Copy link

This error means conda version of libbfd is not compiled with PIC option. This should be fixed by recompiling the package properly. see: https://packages.debian.org/unstable/binutils-dev

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