recompile with -fPIC
- Dominant language
- C++
- Stars
- 762
- Forks
- 235
- PR merge metrics
- No merged PRs in 30d
Description
when i run ./build.sh,there is an error
/usr/bin/ld: /usr/local/lib/libyaml-cpp.a(convert.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libyaml-cpp.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Frontend/CMakeFiles/OF.dir/build.make:378: recipe for target 'Frontend/libOF.so' failed
make[2]: *** [Frontend/libOF.so] Error 1
CMakeFiles/Makefile2:99: recipe for target 'Frontend/CMakeFiles/OF.dir/all' failed
make[1]: *** [Frontend/CMakeFiles/OF.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
what is going on?
what can i do?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running build.sh and inspecting the failing target in Frontend/CMakeFiles/OF.dir/build.make, focusing on the link involving /usr/local/lib/libyaml-cpp.a. Determine how the shared Frontend/libOF.so target obtains this library; done means the build completes without the relocation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100