status-im / nimbus-eth2

Nim implementation of the Ethereum Beacon Chain
https://nimbus.guide
Other
536 stars 231 forks source link

Error: can raise an unlisted exception: ref ValueError #1012

Closed q9f closed 4 years ago

q9f commented 4 years ago

latest devel @ 010a00963f6d5831d524420b6008d0fea7039128 does not compile on arch linux:

~/.opt/status-im/nim-beacon-chain devel
❯ make schlesi
[NimScript] rmDir: /home/user/.opt/status-im/nim-beacon-chain/build/eth2-testnets
[NimScript] exec: git clone --quiet --depth=1 https://github.com/eth2-clients/eth2-testnets
^B^[[A[NimScript] exec: nim c -d:chronicles_log_level=TRACE  --verbosity:0 --hints:off -d:usePcreHeader --passL:"-lpcre" -d:release -d:"const_preset=/home/user/.opt/status-im/nim-beacon-chain/build/eth2-testnets/shared/schlesi/config.yaml" -o:"/home/user/.opt/status-im/nim-beacon-chain/build/beacon_node_shared_schlesi" beacon_chain/beacon_node.nim
/home/user/.opt/status-im/nim-beacon-chain/beacon_chain/spec/datatypes.nim(62, 20) template/generic instantiation of `loadCustomPreset` from here
/home/user/.opt/status-im/nim-beacon-chain/beacon_chain/spec/presets/custom.nim(190, 13) Warning: Missing constants in preset: {BASE_REWARDS_PER_EPOCH, DEPOSIT_CONTRACT_TREE_DEPTH, GENESIS_SLOT, JUSTIFICATION_BITS_LENGTH} [User]
/home/user/.opt/status-im/nim-beacon-chain/beacon_chain/spec/state_transition_block.nim(394, 41) template/generic instantiation of `nbench` from here
/home/user/.opt/status-im/nim-beacon-chain/beacon_chain/spec/state_transition_block.nim(392, 1) template/generic instantiation from here
/home/user/.opt/status-im/nim-beacon-chain/vendor/nim-metrics/metrics.nim(483, 25) Error: can raise an unlisted exception: ref ValueError
stack trace: (most recent call last)
/home/user/.opt/status-im/nim-beacon-chain/vendor/nim-confutils/confutils.nim(981, 12)
/home/user/.opt/status-im/nim-beacon-chain/scripts/connect_to_testnet.nims(116, 8) CLI
/home/user/.opt/status-im/nim-beacon-chain/vendor/nimbus-build-system/vendor/Nim/lib/system/nimscript.nim(260, 7) exec
/home/user/.opt/status-im/nim-beacon-chain/vendor/nimbus-build-system/vendor/Nim/lib/system/nimscript.nim(260, 7) Error: unhandled exception: FAILED: nim c -d:chronicles_log_level=TRACE  --verbosity:0 --hints:off -d:usePcreHeader --passL:"-lpcre" -d:release -d:"const_preset=/home/user/.opt/status-im/nim-beacon-chain/build/eth2-testnets/shared/schlesi/config.yaml" -o:"/home/user/.opt/status-im/nim-beacon-chain/build/beacon_node_shared_schlesi" beacon_chain/beacon_node.nim [OSError]
make: *** [Makefile:136: schlesi] Error 1
~/.opt/status-im/nim-beacon-chain devel
❯ make
Building: build/beacon_node
/home/user/.opt/status-im/nim-beacon-chain/beacon_chain/spec/state_transition_block.nim(394, 41) template/generic instantiation of `nbench` from here
/home/user/.opt/status-im/nim-beacon-chain/beacon_chain/spec/state_transition_block.nim(392, 1) template/generic instantiation from here
/home/user/.opt/status-im/nim-beacon-chain/vendor/nim-metrics/metrics.nim(483, 25) Error: can raise an unlisted exception: ref ValueError
make: *** [Makefile:113: beacon_node] Error 1
arnetheduck commented 4 years ago

Right, this usually happens when pulling main repo but not pulling submodules - make update will pull submodules as well - try make update; make schlesi which will reset the submodules to the right place.

q9f commented 4 years ago

All right, thanks!