Can't build blockscipy
siccegge opened this issue · 1 comments
siccegge commented
Hi
Building the python module
Reproduction Steps
$ dpkg -l gcc-7 g++-7 cmake
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=======================================
ii cmake 3.13.4-1 amd64 cross-platform, open-source make system
ii g++-7 7.4.0-6 amd64 GNU C++ compiler
ii gcc-7 7.4.0-6 amd64 GNU C compiler
$ CC=gcc-7 CXX=g++-7 pip3 install -e blockscipy
Obtaining file:///home/egger/BlockSci/blockscipy
Requirement already satisfied: dateparser>=0.6.0 in /usr/local/lib/python3.7/dist-packages (from blocksci==0.7.0) (0.7.4)
Requirement already satisfied: multiprocess>=0.70.5 in /usr/local/lib/python3.7/dist-packages (from blocksci==0.7.0) (0.70.9)
Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.7/dist-packages (from blocksci==0.7.0) (1.0.1)
Requirement already satisfied: psutil>=5.4.2 in /usr/local/lib/python3.7/dist-packages (from blocksci==0.7.0) (5.7.0)
Requirement already satisfied: pycrypto>=2.6.1 in /usr/lib/python3/dist-packages (from blocksci==0.7.0) (2.6.1)
Requirement already satisfied: requests>=2.19.1 in /usr/lib/python3/dist-packages (from blocksci==0.7.0) (2.21.0)
Requirement already satisfied: regex!=2019.02.19 in /usr/local/lib/python3.7/dist-packages (from dateparser>=0.6.0->blocksci==0.7.0) (2020.2.20)
Requirement already satisfied: tzlocal in /usr/local/lib/python3.7/dist-packages (from dateparser>=0.6.0->blocksci==0.7.0) (2.0.0)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.7/dist-packages (from dateparser>=0.6.0->blocksci==0.7.0) (2.8.1)
Requirement already satisfied: pytz in /usr/local/lib/python3.7/dist-packages (from dateparser>=0.6.0->blocksci==0.7.0) (2019.3)
Requirement already satisfied: dill>=0.3.1 in /usr/local/lib/python3.7/dist-packages (from multiprocess>=0.70.5->blocksci==0.7.0) (0.3.1.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/lib/python3/dist-packages (from pandas>=0.22.0->blocksci==0.7.0) (1.16.2)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->dateparser>=0.6.0->blocksci==0.7.0) (1.12.0)
Installing collected packages: blocksci
Running setup.py develop for blocksci
Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/home/egger/BlockSci/blockscipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps --user --prefix=:
running develop
running egg_info
writing blocksci.egg-info/PKG-INFO
writing dependency_links to blocksci.egg-info/dependency_links.txt
writing requirements to blocksci.egg-info/requires.txt
writing top-level names to blocksci.egg-info/top_level.txt
reading manifest file 'blocksci.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'blocksci/templateMakefile'
warning: no files found matching 'blocksci/filterTxesExtension.cpp'
writing manifest file 'blocksci.egg-info/SOURCES.txt'
running build_ext
-- pybind11 v2.5.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/egger/BlockSci/blockscipy/build/temp.linux-x86_64-3.7
[ 1%] Building CXX object CMakeFiles/_blocksci.dir/src/proxy/proxy_flow_functions_core.cpp.o
In file included from /home/egger/BlockSci/blockscipy/src/proxy.hpp:13,
from /home/egger/BlockSci/blockscipy/src/proxy/proxy_flow_functions_impl.hpp:11,
from /home/egger/BlockSci/blockscipy/src/proxy/proxy_flow_functions_core.cpp:9:
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:44:20: error: ‘WitnessUnknown’ is not a member of ‘blocksci::script’
blocksci::script::WitnessUnknown,
^~~~~~~~~~~~~~
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:54:1: error: template argument 19 is invalid
>;
^
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:57:2: error: ‘BlocksciTypeVariant’ does not name a type; did you mean ‘BlocksciType’?
BlocksciTypeVariant var;
^~~~~~~~~~~~~~~~~~~
BlocksciType
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:59:64: error: ‘BlocksciTypeVariant’ was not declared in this scope
template <typename U, std::enable_if_t<std::is_convertible<U, BlocksciTypeVariant>::value> * = nullptr>
^~~~~~~~~~~~~~~~~~~
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:59:64: note: suggested alternative: ‘BlocksciType’
template <typename U, std::enable_if_t<std::is_convertible<U, BlocksciTypeVariant>::value> * = nullptr>
^~~~~~~~~~~~~~~~~~~
BlocksciType
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:59:83: error: template argument 2 is invalid
template <typename U, std::enable_if_t<std::is_convertible<U, BlocksciTypeVariant>::value> * = nullptr>
^
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:59:91: error: template argument 1 is invalid
template <typename U, std::enable_if_t<std::is_convertible<U, BlocksciTypeVariant>::value> * = nullptr>
^
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp: In constructor ‘BlocksciType::BlocksciType(U&&)’:
/home/egger/BlockSci/blockscipy/src/blocksci_type.hpp:60:34: error: class ‘BlocksciType’ does not have any field named ‘var’
explicit BlocksciType(U && t) : var(std::forward<U>(t)) {}
^~~
In file included from /home/egger/BlockSci/blockscipy/src/proxy.hpp:14,
from /home/egger/BlockSci/blockscipy/src/proxy/proxy_flow_functions_impl.hpp:11,
from /home/egger/BlockSci/blockscipy/src/proxy/proxy_flow_functions_core.cpp:9:
/home/egger/BlockSci/blockscipy/src/blocksci_iterator_type.hpp: At global scope:
/home/egger/BlockSci/blockscipy/src/blocksci_iterator_type.hpp:44:32: error: ‘WitnessUnknown’ is not a member of ‘blocksci::script’
RawIterator<blocksci::script::WitnessUnknown>,
^~~~~~~~~~~~~~
/home/egger/BlockSci/blockscipy/src/blocksci_iterator_type.hpp:44:46: error: template argument 1 is invalid
RawIterator<blocksci::script::WitnessUnknown>,
^
/home/egger/BlockSci/blockscipy/src/blocksci_iterator_type.hpp:54:1: error: template argument 19 is invalid
>;
^
/home/egger/BlockSci/blockscipy/src/blocksci_iterator_type.hpp:59:2: error: ‘BlocksciIteratorTypeVariant’ does not name a type; did you mean ‘BlocksciIteratorType’?
BlocksciIteratorTypeVariant var;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
BlocksciIteratorType
/home/egger/BlockSci/blockscipy/src/blocksci_iterator_type.hpp:61:64: error: ‘BlocksciIteratorTypeVariant’ was not declared in this scope
template <typename U, std::enable_if_t<std::is_convertible<U, BlocksciIteratorTypeVariant>::value> * = nullptr>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/egger/BlockSci/blockscipy/src/blocksci_iterator_type.hpp:61:64: note: suggested alternative: ‘BlocksciIteratorType’
template <typename U, std::enable_if_t<std::is_convertible<U, BlocksciIteratorTypeVariant>::value> * = nullptr>
System Information
Using AMI: no
BlockSci version: 6d50682
siccegge commented
Sorry, that one's me being stupid