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

Hera fails to build with latest evmc #260

Closed
jwasinger opened this issue Jul 16, 2018 · 1 comment
Closed

Hera fails to build with latest evmc #260

jwasinger opened this issue Jul 16, 2018 · 1 comment
Assignees

Comments

@jwasinger
Copy link
Contributor

jwasinger commented Jul 16, 2018

> cmake -DHERA_DEBUGGING=ON -DBUILD_SHARED_LIBS=ON .
> make -j8
...
...
[100%] Linking CXX shared library libhera.so
/usr/bin/ld: ../evmc/lib/instructions/libevmc-instructions.a(instruction_names.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
../evmc/lib/instructions/libevmc-instructions.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/CMakeFiles/hera.dir/build.make:130: recipe for target 'src/libhera.so' failed
make[2]: *** [src/libhera.so] Error 1
CMakeFiles/Makefile2:498: recipe for target 'src/CMakeFiles/hera.dir/all' failed
make[1]: *** [src/CMakeFiles/hera.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
@chfast
Copy link
Collaborator

chfast commented Jul 16, 2018

Weirdly I cannot reproduce it.

The workaround is to add additional cmake arg: -DCMAKE_POSITION_INDEPENDENT_CODE=ON.

I'm working on a bit more pleasant solution.

@chfast chfast self-assigned this Jul 16, 2018
@axic axic closed this as completed in #261 Jul 17, 2018
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