Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

make fails #14

Open
JoaoBraveCoding opened this issue Feb 9, 2018 · 1 comment
Open

make fails #14

JoaoBraveCoding opened this issue Feb 9, 2018 · 1 comment

Comments

@JoaoBraveCoding
Copy link

I have been trying to install the shadow-plugin-bitcoin but I have not been successful due to multiple errors that pop up when I execute the 'make -j1' command.
I'm currently using the container available on the shadow github that has shadow v1.10.2 installed I have followed every step described in the shadow-plugin-bitcoin wiki but when I execute the command 'make -j1' I get the following error message.

shadow-plugin-bitcoind.hoisted.bc: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
src/CMakeFiles/shadow-plugin-bitcoind.dir/build.make:880: recipe for target 'src/libshadow-plugin-bitcoind.so' failed
make[2]: *** [src/libshadow-plugin-bitcoind.so] Error 1
CMakeFiles/Makefile2:260: recipe for target 'src/CMakeFiles/shadow-plugin-bitcoind.dir/all' failed
make[1]: *** [src/CMakeFiles/shadow-plugin-bitcoind.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

I have also uploaded a file with the full output of executing 'make -j1' output.txt as well as uploaded the container in the state where the make fails https://hub.docker.com/r/sigmajem/shadow/.

I also had to apply the fix from #3 until the C++ compiler stopped throwing errors

@robgjansen
Copy link
Member

shadow-plugin-bitcoind.hoisted.bc: file not recognized: File format not recognized

The .bc file is a bitcode file that is produced by LLVM. My guess is that there is some issue with your version of Clang/LLVM - maybe your version doesn't do the same thing as it did back when we created this plugin. I'm not sure what to offer as a solution: I no longer use the bitcoin plugin and unfortunately it isn't really being maintained anymore.

The best option might be to update the plugin so that it runs in the latest version of Shadow. Shadow has some significant improvements since version 1.10.2 that would drastically simplify the bitcoin plugin build process and make it more sustainable long term.

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

No branches or pull requests

2 participants