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

recompile with -fPIC #32

Open
Dragonbt opened this issue Sep 22, 2019 · 1 comment
Open

recompile with -fPIC #32

Dragonbt opened this issue Sep 22, 2019 · 1 comment

Comments

@Dragonbt
Copy link

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?

@Dragonbt
Copy link
Author

rebuild Yaml with cmake :cmake -DYAML_BUILD_SHARED_LIBS=ON ..

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

1 participant