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

1.16rc1 doesn't build without adding -fPIC to CXXFLAGS #1652

Closed
yurivict opened this issue Nov 2, 2020 · 1 comment
Closed

1.16rc1 doesn't build without adding -fPIC to CXXFLAGS #1652

yurivict opened this issue Nov 2, 2020 · 1 comment
Labels

Comments

@yurivict
Copy link

yurivict commented Nov 2, 2020

ld: error: relocation R_X86_64_PC32 cannot be used against symbol __stack_chk_guard; recompile with -fPIC
>>> defined in /lib/libc.so.7
>>> referenced by thread_pool_extension.cpp
>>>               thread_pool_extension.cpp.o:(dlib::thread_pool_implementation::thread_pool_implementation(unsigned long)) in archive /usr/local/lib/libdlib.a

ld: error: can't create dynamic relocation R_X86_64_32 against symbol: vtable for dlib::memory_manager_stateless_kernel_1<dlib::thread_pool_implementation::task_state_type> in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/local/lib/libdlib.a(thread_pool_extension.cpp.o)
>>> referenced by thread_pool_extension.cpp
>>>               thread_pool_extension.cpp.o:(dlib::thread_pool_implementation::thread_pool_implementation(unsigned long)) in archive /usr/local/lib/libdlib.a

ld: error: can't create dynamic relocation R_X86_64_32 against symbol: vtable for dlib::array<dlib::thread_pool_implementation::task_state_type, dlib::memory_manager_stateless_kernel_1<char> > in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/local/lib/libdlib.a(thread_pool_extension.cpp.o)
>>> referenced by thread_pool_extension.cpp
>>>               thread_pool_extension.cpp.o:(dlib::thread_pool_implementation::thread_pool_implementation(unsigned long)) in archive /usr/local/lib/libdlib.a

FreeBSD 12.2

@jschueller
Copy link
Member

seems its rather dlib which has been statically built without fpic

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

No branches or pull requests

2 participants