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

Error compiling the code #2

Open
nicola-attico opened this issue May 25, 2018 · 0 comments
Open

Error compiling the code #2

nicola-attico opened this issue May 25, 2018 · 0 comments

Comments

@nicola-attico
Copy link

root@7718373b1ec0:/tmp/build/contracts/todo_contract# eosiocpp -o todo_contract.wast todo_contract.cpp
In file included from todo_contract.cpp:1:
In file included from /tmp/build/include/eosiolib/eosio.hpp:7:
In file included from /tmp/build/include/eosiolib/action.hpp:7:
In file included from /tmp/build/include/eosiolib/datastream.hpp:9:
In file included from /usr/local/include/boost/container/flat_set.hpp:27:
In file included from /usr/local/include/boost/container/new_allocator.hpp:24:
/usr/local/include/boost/container/throw_exception.hpp:56:21: warning: address of array 'msg' will always evaluate to 'true' [-Wpointer-bool-conversion]
BOOST_ASSERT(!msg);
~^~~
/usr/local/include/boost/assert.hpp:60:36: note: expanded from macro 'BOOST_ASSERT'

define BOOST_ASSERT(expr) assert(expr)

                               ^~~~

/tmp/build/include/musl/upstream/include/assert.h:8:28: note: expanded from macro 'assert'
#define assert(x) ((void)((x) || (__assert_fail(#x, FILE, LINE, func),0)))
^
In file included from todo_contract.cpp:1:
In file included from /tmp/build/include/eosiolib/eosio.hpp:7:
In file included from /tmp/build/include/eosiolib/action.hpp:7:
In file included from /tmp/build/include/eosiolib/datastream.hpp:9:
In file included from /usr/local/include/boost/container/flat_set.hpp:27:
In file included from /usr/local/include/boost/container/new_allocator.hpp:24:
/usr/local/include/boost/container/throw_exception.hpp:64:25: warning: address of array 'msg' will always evaluate to 'true' [-Wpointer-bool-conversion]
BOOST_ASSERT_MSG(!msg, str);
~^~~
/usr/local/include/boost/assert.hpp:61:46: note: expanded from macro 'BOOST_ASSERT_MSG'

define BOOST_ASSERT_MSG(expr, msg) assert((expr)&&(msg))

                                         ^~~~

/tmp/build/include/musl/upstream/include/assert.h:8:28: note: expanded from macro 'assert'
#define assert(x) ((void)((x) || (__assert_fail(#x, FILE, LINE, func),0)))
^
In file included from todo_contract.cpp:1:
In file included from /tmp/build/include/eosiolib/eosio.hpp:7:
In file included from /tmp/build/include/eosiolib/action.hpp:7:
In file included from /tmp/build/include/eosiolib/datastream.hpp:9:
In file included from /usr/local/include/boost/container/flat_set.hpp:27:
In file included from /usr/local/include/boost/container/new_allocator.hpp:24:
/usr/local/include/boost/container/throw_exception.hpp:72:25: warning: address of array 'msg' will always evaluate to 'true' [-Wpointer-bool-conversion]
BOOST_ASSERT_MSG(!msg, str);
~^~~
/usr/local/include/boost/assert.hpp:61:46: note: expanded from macro 'BOOST_ASSERT_MSG'

define BOOST_ASSERT_MSG(expr, msg) assert((expr)&&(msg))

                                         ^~~~

/tmp/build/include/musl/upstream/include/assert.h:8:28: note: expanded from macro 'assert'
#define assert(x) ((void)((x) || (__assert_fail(#x, FILE, LINE, func),0)))
^
In file included from todo_contract.cpp:1:
In file included from /tmp/build/include/eosiolib/eosio.hpp:7:
In file included from /tmp/build/include/eosiolib/action.hpp:7:
In file included from /tmp/build/include/eosiolib/datastream.hpp:9:
In file included from /usr/local/include/boost/container/flat_set.hpp:27:
In file included from /usr/local/include/boost/container/new_allocator.hpp:24:
/usr/local/include/boost/container/throw_exception.hpp:80:25: warning: address of array 'msg' will always evaluate to 'true' [-Wpointer-bool-conversion]
BOOST_ASSERT_MSG(!msg, str);
~^~~
/usr/local/include/boost/assert.hpp:61:46: note: expanded from macro 'BOOST_ASSERT_MSG'

define BOOST_ASSERT_MSG(expr, msg) assert((expr)&&(msg))

                                         ^~~~

/tmp/build/include/musl/upstream/include/assert.h:8:28: note: expanded from macro 'assert'
#define assert(x) ((void)((x) || (__assert_fail(#x, FILE, LINE, func),0)))
^
In file included from todo_contract.cpp:1:
In file included from /tmp/build/include/eosiolib/eosio.hpp:7:
In file included from /tmp/build/include/eosiolib/action.hpp:7:
In file included from /tmp/build/include/eosiolib/datastream.hpp:9:
In file included from /usr/local/include/boost/container/flat_set.hpp:27:
In file included from /usr/local/include/boost/container/new_allocator.hpp:24:
/usr/local/include/boost/container/throw_exception.hpp:88:25: warning: address of array 'msg' will always evaluate to 'true' [-Wpointer-bool-conversion]
BOOST_ASSERT_MSG(!msg, str);
~^~~
/usr/local/include/boost/assert.hpp:61:46: note: expanded from macro 'BOOST_ASSERT_MSG'

define BOOST_ASSERT_MSG(expr, msg) assert((expr)&&(msg))

                                         ^~~~

/tmp/build/include/musl/upstream/include/assert.h:8:28: note: expanded from macro 'assert'
#define assert(x) ((void)((x) || (__assert_fail(#x, FILE, LINE, func),0)))
^
5 warnings generated.
root@7718373b1ec0:/tmp/build/contracts/todo_contract# eosiocpp -g todo_contract.abi todo_contract.cpp
2539681ms thread-0 abi_generator.hpp:68 ricardian_contracts ] Warning, no ricardian clauses found for todo_contract

2539681ms thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for create

2539681ms thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for complete

2539681ms thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for destroy

Generated todo_contract.abi ...
root@7718373b1ec0:/tmp/build/contracts/todo_contract# cleos --wallet-url http://wallet:5555 -u http://server:7777 set contract mynewaccount /eos/contracts/todo_contract -p mynewaccount
Reading WAST/WASM from /eos/contracts/todo_contract/todo_contract.wast...
2547101ms thread-0 main.cpp:2350 main ] Failed with error: Assert Exception (10)
!wast.empty(): no wast file found /eos/contracts/todo_contract/todo_contract.wast

root@7718373b1ec0:/tmp/build/contracts/todo_contract# ls
todo_contract.abi todo_contract.cpp todo_contract.wasm todo_contract.wast
root@7718373b1ec0:/tmp/build/contracts/todo_contract#

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

1 participant