Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Error when building #94

Closed
apporc opened this issue Jul 23, 2017 · 6 comments
Closed

Error when building #94

apporc opened this issue Jul 23, 2017 · 6 comments

Comments

@apporc
Copy link

apporc commented Jul 23, 2017

eos/libraries/wasm-jit/Source/WASM/WASMSerialization.cpp:543:17: error: uninitialized variable ‘returnType’ in ‘constexpr’ function
ResultType returnType;

This is master version.

@alexpmorris
Copy link

alexpmorris commented Jul 24, 2017

I got through that part @apporc so maybe that issue's been corrected in the latest pull, though I initiated the build from the included Docker config:

Scanning dependencies of target WASM
[ 66%] Building CXX object libraries/wasm-jit/Source/WASM/CMakeFiles/WASM.dir/WASMSerialization.cpp.o
[ 66%] Linking CXX static library libWASM.a
[ 66%] Built target WASM
Scanning dependencies of target WAST

However, I later got this error at 82%. I'm using the latest pull (again, attempting to build from docker):

In file included from /tmp/eos/libraries/native_contract/staked_balance_contract.cpp:3:
/tmp/eos/libraries/native_contract/include/eos/native_contract/producer_objects.hpp:49:64: error: no viable conversion from returned value of type 'tuple<const long &, const chainbase::oid<native::staked::ProducerVotesObject> &>' to function return type 'pair<types::ShareType, id_type>' (aka 'pair<long, oid<native::staked::ProducerVotesObject> >')
   pair<types::ShareType,id_type> getVoteOrder()const { return std::tie( race.speed, id ); }
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~

On another note, I've gotta say I've had a hell of a time getting either bitshares-core or eos working in a way that is easy to debug. It started with me trying to track a nasty bitshares-core issue that's come up. Couldn't get it to compile in Visual Studio 2013, and VS 2015 always gives me a bunch of these errors (tried following the various Windows10/VS/bitshares-core howto wikis for both versions):

Error	C2027	use of undefined type 'std::_Get_function_impl<_Fty>'	graphene_app	C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\functional	472	

I did get bitshares-core to compile in ubuntu and CodeBlocks using CMake with CodeBlocks target, but not in a way that I could step through the code and debug. Was going to try CodeLight or NetBeans next, though perhaps I'm just missing something silly. Biggest problem is how long each build is taking if a single thing appears off, so it's been really tough experimenting.

I figure if I can get bitshares-core easy to debug in an IDE (which should be an easier codebase to deal with than eos), then it should be relatively straight-forward to get eos setup in a similar fashion.

@jcalfee
Copy link
Contributor

jcalfee commented Jul 24, 2017

work-around: a97251d#commitcomment-23269248

image

@jcalfee
Copy link
Contributor

jcalfee commented Jul 24, 2017

Speaking of build errors .. Anyone seen this in the eos build?

clang: error: linker command failed with exit code 1 (use -v to see invocation)

I found this variable and re-created my "out of source" build using cmake -DCMAKE_SHARED_LINKER_FLAGS=-v ... .. Still can't build target eosd. I'm still clueless.

@jcalfee
Copy link
Contributor

jcalfee commented Jul 24, 2017

@apporc for reference you might want to try the Docker build. It can help narrow down the issue. However at the moment even the docker will fail on references to std::tie .. It can still provide a clue if you can get further using Docker.

@alexpmorris
Copy link

not sure about that other error James (perhaps a double reference somewhere?), also a clean build may help (though I imagine you've tried that already).

The Docker build appears to be working again too, built it without issue this time after a fresh git pull! Just a few quick notes:

  • Be aware of all the other exited dead containers that may have been left behind in past failed build attempts (docker ps -a).

  • You can shell into the eos container using: docker exec -it <containerIdOrName> bash - eos container is likely called docker_eos_1, first created after calling docker-compose .

  • Regarding bitshares, not sure what I was doing wrong with CodeBlocks, but I did mange to get bitshares-core running and debugging pretty much my first attempt in CodeLite!

@heifner
Copy link
Contributor

heifner commented Sep 12, 2017

This is an old build issue that has been fixed. Also the Docker build has been enhanced greatly since this issue was created. Closing.

@heifner heifner closed this as completed Sep 12, 2017
ljrprocc pushed a commit to bithacks-tech/myeosio that referenced this issue Jul 4, 2018
qianxiaofeng added a commit to eosiosg/eos that referenced this issue May 13, 2019
* bugfix: fork_db migration incorrect pos align

* bug fix: return default block id when trying to fetch block num 0; update pbft status during ctrl init.

* add migration log

* improve: change algorithm in LIB upgrade fork database migration, huge performance boost when fork db size is large

* use schedule in ucb when there is no stable checkpoint.

* update snapshot migration logic to reflect struct change in block header state

* add forkdb block states into snapshot after pbft is enabled; fix replay bug.

* change block producing log
taokayan pushed a commit to taokayan/eos that referenced this issue May 15, 2019
refactored tools, removed boost libs dependence in tools
NorseGaud pushed a commit that referenced this issue Jul 30, 2019
# This is the 1st commit message:

various improvements

# This is the commit message #2:

new hash

# This is the commit message #3:

fix for script path

# This is the commit message #4:

fixes

# This is the commit message #5:

fixes

# This is the commit message #6:

fixes

# This is the commit message #7:

fixes

# This is the commit message #8:

fixes

# This is the commit message #9:

fixes

# This is the commit message #10:

fixes

# This is the commit message #11:

fixes

# This is the commit message #12:

fixes

# This is the commit message #13:

fixes

# This is the commit message #14:

fixes

# This is the commit message #15:

fixes

# This is the commit message #16:

fixes

# This is the commit message #17:

fixes

# This is the commit message #18:

fixes

# This is the commit message #19:

fixes

# This is the commit message #20:

fixes

# This is the commit message #21:

fixes

# This is the commit message #22:

fixes

# This is the commit message #23:

fixes

# This is the commit message #24:

fixes

# This is the commit message #25:

fixes

# This is the commit message #26:

testing

# This is the commit message #27:

testing

# This is the commit message #28:

testing

# This is the commit message #29:

testing

# This is the commit message #30:

testing

# This is the commit message #31:

testing

# This is the commit message #32:

testing

# This is the commit message #33:

testing

# This is the commit message #34:

testing

# This is the commit message #35:

testing

# This is the commit message #36:

testing

# This is the commit message #37:

testing

# This is the commit message #38:

testing

# This is the commit message #39:

testing

# This is the commit message #40:

testing

# This is the commit message #41:

testing

# This is the commit message #42:

testing

# This is the commit message #43:

testing

# This is the commit message #44:

fixes

# This is the commit message #45:

fixes

# This is the commit message #46:

fixes

# This is the commit message #47:

fixes

# This is the commit message #48:

fixes

# This is the commit message #49:

fixes

# This is the commit message #50:

fixes

# This is the commit message #51:

fixes

# This is the commit message #52:

fixes

# This is the commit message #53:

fixes

# This is the commit message #54:

fixes

# This is the commit message #55:

fixes

# This is the commit message #56:

fixes

# This is the commit message #57:

fixes

# This is the commit message #58:

fixes

# This is the commit message #59:

fixes

# This is the commit message #60:

fixes

# This is the commit message #61:

fixes

# This is the commit message #62:

fixes

# This is the commit message #63:

fixes

# This is the commit message #64:

fixes

# This is the commit message #65:

fixes

# This is the commit message #66:

fixes

# This is the commit message #67:

fixes

# This is the commit message #68:

fixes

# This is the commit message #69:

fixes

# This is the commit message #70:

fixes

# This is the commit message #71:

fixes

# This is the commit message #72:

fixes

# This is the commit message #73:

fixes

# This is the commit message #74:

fixes

# This is the commit message #75:

fixes

# This is the commit message #76:

fixes

# This is the commit message #77:

fixes

# This is the commit message #78:

fixes

# This is the commit message #79:

more testing

# This is the commit message #80:

testing

# This is the commit message #81:

fixes

# This is the commit message #82:

fixes

# This is the commit message #83:

fixes

# This is the commit message #84:

fixes

# This is the commit message #85:

fixes

# This is the commit message #86:

fixes

# This is the commit message #87:

fixes

# This is the commit message #88:

fixes

# This is the commit message #89:

fixes

# This is the commit message #90:

fixes

# This is the commit message #91:

fixes

# This is the commit message #92:

fixes

# This is the commit message #93:

propagate-environment for buildkite-agent

# This is the commit message #94:

propagate-environment for buildkite-agent

# This is the commit message #95:

propagate-environment for buildkite-agent

# This is the commit message #96:

propagate-environment for buildkite-agent

# This is the commit message #97:

fixes

# This is the commit message #98:

fixes

# This is the commit message #99:

fixes

# This is the commit message #100:

fixes

# This is the commit message #101:

fixes

# This is the commit message #102:

fixes

# This is the commit message #103:

fixes

# This is the commit message #104:

fixes

# This is the commit message #105:

fixes

# This is the commit message #106:

fixes

# This is the commit message #107:

fixes

# This is the commit message #108:

fixes

# This is the commit message #109:

fixes

# This is the commit message #110:

fixes

# This is the commit message #111:

fixes

# This is the commit message #112:

fixes

# This is the commit message #113:

fixes

# This is the commit message #114:

fixes

# This is the commit message #115:

fixes

# This is the commit message #116:

fixes

# This is the commit message #117:

fixes

# This is the commit message #118:

fixes

# This is the commit message #119:

fixes

# This is the commit message #120:

fixes

# This is the commit message #121:

fixes

# This is the commit message #122:

fixes

# This is the commit message #123:

fixes

# This is the commit message #124:

fixes

# This is the commit message #125:

fixes

# This is the commit message #126:

fixes

# This is the commit message #127:

fixes

# This is the commit message #128:

fixes

# This is the commit message #129:

fixes

# This is the commit message #130:

fixes

# This is the commit message #131:

fixes

# This is the commit message #132:

fixes

# This is the commit message #133:

fixes

# This is the commit message #134:

fixes

# This is the commit message #135:

fixes

# This is the commit message #136:

fixes

# This is the commit message #137:

fixes

# This is the commit message #138:

fixes

# This is the commit message #139:

fixes

# This is the commit message #140:

fixes

# This is the commit message #141:

fixes

# This is the commit message #142:

fixes

# This is the commit message #143:

fixes

# This is the commit message #144:

fixes

# This is the commit message #145:

fixes

# This is the commit message #146:

fixes

# This is the commit message #147:

fixes

# This is the commit message #148:

fixes

# This is the commit message #149:

fixes

# This is the commit message #150:

fixes

# This is the commit message #151:

fixes

# This is the commit message #152:

fixes

# This is the commit message #153:

testing

# This is the commit message #154:

fixes

# This is the commit message #155:

fixes

# This is the commit message #156:

fixes

# This is the commit message #157:

fixes

# This is the commit message #158:

fixes

# This is the commit message #159:

fixes

# This is the commit message #160:

fixes

# This is the commit message #161:

fixes

# This is the commit message #162:

fixes

# This is the commit message #163:

fixes

# This is the commit message #164:

fixes

# This is the commit message #165:

fixes

# This is the commit message #166:

fixes

# This is the commit message #167:

fixes

# This is the commit message #168:

fixes

# This is the commit message #169:

fixes

# This is the commit message #170:

fixes

# This is the commit message #171:

fixes

# This is the commit message #172:

fixes

# This is the commit message #173:

fixes

# This is the commit message #174:

fixes

# This is the commit message #175:

fixes

# This is the commit message #176:

fixes

# This is the commit message #177:

fixes

# This is the commit message #178:

fixes

# This is the commit message #179:

fixes

# This is the commit message #180:

fixes

# This is the commit message #181:

fixes

# This is the commit message #182:

fixes

# This is the commit message #183:

fixes

# This is the commit message #184:

fixes

# This is the commit message #185:

fixes

# This is the commit message #186:

fixes
oldcold pushed a commit to eosiosg/eos that referenced this issue Aug 28, 2019
feature/dpos-pbft-bos-upgrade bugfix and snapshot support (EOSIO#94)
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

4 participants