Eos: build error

Created on 10 Feb 2018  ยท  5Comments  ยท  Source: EOSIO/eos

make[2]: *** No rule to make target `../contracts/musl/libc.cpp', needed by `contracts/musl/libc.cpp.bc'.  Stop.
make[1]: *** [contracts/musl/CMakeFiles/libc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target `../contracts/libc++/upstream/src/vector.cpp', needed by `contracts/libc++/vector.cpp.bc'.  Stop.
make[1]: *** [contracts/libc++/CMakeFiles/libc++.dir/all] Error 2
[  0%] Building LLVM bitcode eosiolib.cpp.bc
[  0%] Built target make_doc_dir
In file included from /EOSIO/eos/contracts/eosiolib/eosiolib.cpp:1:
In file included from /EOSIO/eos/contracts/eosiolib/memory.hpp:7:
/EOSIO/eos/contracts/eosiolib/memory.h:7:10: error: 'string.h' file not found with <angled> include; use "quotes" instead
#include <string.h>
         ^~~~~~~~~~
         "string.h"
In file included from /EOSIO/eos/contracts/eosiolib/eosiolib.cpp:1:
In file included from /EOSIO/eos/contracts/eosiolib/memory.hpp:7:
In file included from /EOSIO/eos/contracts/eosiolib/memory.h:7:
In file included from /EOSIO/eos/contracts/eosiolib/string.h:6:
/EOSIO/eos/contracts/eosiolib/types.h:8:10: fatal error: 'wchar.h' file not found
#include <wchar.h>
         ^~~~~~~~~
2 errors generated.
make[2]: *** [contracts/eosiolib/eosiolib.cpp.bc] Error 1
make[1]: *** [contracts/eosiolib/CMakeFiles/eosiolib.dir/all] Error 2
make: *** [all] Error 2

Most helpful comment

delete all and git clone.

All 5 comments

delete all and git clone.

You made me smile @zshchou, it's the equivalent to "reboot your computer" when things go wrong. Let's hope for the best.

libc++ & musl need. git clone the project

cd contract/libc++/upstream
git clone https://github.com/EOSIO/libcxx.git .
cd contract/musl/upstream
git clone https://github.com/EOSIO/musl.git .
then build.

@zshchou Thank you, Now Everything Is OK.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bezalel picture bezalel  ยท  3Comments

christola picture christola  ยท  3Comments

sim31 picture sim31  ยท  3Comments

williamleecn picture williamleecn  ยท  3Comments

hsejin314 picture hsejin314  ยท  3Comments