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

Error on Shadow-plugin-bitcoin section #9

Open
jhodge94 opened this issue Feb 23, 2017 · 5 comments
Open

Error on Shadow-plugin-bitcoin section #9

jhodge94 opened this issue Feb 23, 2017 · 5 comments
Labels

Comments

@jhodge94
Copy link

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

@robgjansen
Copy link
Member

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 ../..

@robgjansen
Copy link
Member

(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.)

@jhodge94
Copy link
Author

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

@robgjansen
Copy link
Member

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. ;)

ygnkim added a commit to kaistshadow/shadow-plugin-bitcoin that referenced this issue Jul 17, 2018
First, disable wallet by reverting commit.
Revert "enable wallet for shadow-bitcoin. Add patch for disabling secure_allocator"
This reverts commit 4304067.

Second, to resolve secure_allocator issue, make all library of bitcoin-plugin as shared library.

Third, modify the patch for handling generate packet (of bitcoin plugin).

Fourth, modify the example shadow config file to disable wallet, and add new shadow config which also initiates the injector-plugin.

refs shadow#9, shadow#1
@dufferzafar
Copy link

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

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

No branches or pull requests

3 participants