shadow / shadow-plugin-bitcoin

A Shadow plug-in that runs the Bitcoin Satoshi reference software

Home Page:https://shadow.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on Shadow-plugin-bitcoin section

jhodge94 opened this issue · comments

When I am trying to use cmake with "CC=which clang CXX=which clang++ cmake ../.."
I keep getting this error...

CC=which clang CXX=which clang++ cmake ../..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/which
-- Check for working C compiler: /usr/bin/which -- broken
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/which" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: /home/james/shadow/shadow-plugin-bitcoin/build/shadow-plugin-bitcoin/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_32da8/fast"

/usr/bin/make -f CMakeFiles/cmTC_32da8.dir/build.make
CMakeFiles/cmTC_32da8.dir/build

make[1]: Entering directory
'/home/james/shadow/shadow-plugin-bitcoin/build/shadow-plugin-bitcoin/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_32da8.dir/testCCompiler.c.o

/usr/bin/which clang -o CMakeFiles/cmTC_32da8.dir/testCCompiler.c.o -c
/home/james/shadow/shadow-plugin-bitcoin/build/shadow-plugin-bitcoin/CMakeFiles/CMakeTmp/testCCompiler.c

/usr/bin/clang

CMakeFiles/cmTC_32da8.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_32da8.dir/testCCompiler.c.o' failed

make[1]: *** [CMakeFiles/cmTC_32da8.dir/testCCompiler.c.o] Error 1

make[1]: Leaving directory
'/home/james/shadow/shadow-plugin-bitcoin/build/shadow-plugin-bitcoin/CMakeFiles/CMakeTmp'

Makefile:126: recipe for target 'cmTC_32da8/fast' failed

make: *** [cmTC_32da8/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!
See also "/home/james/shadow/shadow-plugin-bitcoin/build/shadow-plugin-bitcoin/CMakeFiles/CMakeOutput.log".
See also "/home/james/shadow/shadow-plugin-bitcoin/build/shadow-plugin-bitcoin/CMakeFiles/CMakeError.log".

Any insight to what I have done wrong? i've followed the wiki guide step by step, Thanks!

@cmsc417 @robgjansen @amiller

When I am trying to use cmake with "CC=which clang CXX=which clang++ cmake ../.."
I keep getting this error...

Your command is incorrect. You should have ticks around which clang and which clang++, like this:

CC=`which clang` CXX=`which clang++` cmake ../..

(Make sure you are using Shadow version 1.10.2, other versions of Shadow won't work with the bitcoin plug-in. Also, be warned that the bitcoin plug-in is not well tested.)

Thanks Rob, I will try this.
The reason why I am interested in this plug-in is that I am doing my dissertation on measuring the popularity of bitcoin using a simulator, do you have any links or suggestions to ones that are well tested? @robgjansen

Not that I am aware of. Since this is for your dissertation, it may be worth it for you to work out any issues you find and help contribute to Shadow in the process. ;)

@jhodge94 your dissertation topic sounds interesting. is it finished? available online somewhere?