bitcoinjs / fast-dat-parser

Superfast blockchain parser for stats
MIT License
74 stars 26 forks source link

Ubuntu 18.04.1 LTS - Make failed #16

Closed scriptzteam closed 5 years ago

scriptzteam commented 5 years ago
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic
g++ --version
g++ (Ubuntu 7.3.0-21ubuntu1~16.04) 7.3.0
make
g++ -pedantic -std=c++1z -W -Wall -Wcast-qual -Wconversion -Werror -Wextra -Wwrite-strings -Wno-unused-function -O3 -Iinclude -MMD -MP -c src/bestchain.cpp -o src/bestchain.o
In file included from src/bestchain.cpp:6:0:
include/hash.hpp:7:10: fatal error: hexxer.hpp: Directory or file does not exist
 #include "hexxer.hpp"
          ^~~~~~~~~~~~
compilation terminated.
Makefile:28: recipe for target 'src/bestchain.o' failed
make: *** [src/bestchain.o] Error 1
dcousens commented 5 years ago

Fixed in f956214

scriptzteam commented 5 years ago

Dunno...

make
curl 'https://raw.githubusercontent.com/dcousens/hexxer/d76f9e526676535fd4c2584a8f84582994c35996/hexxer.h' > include/hexxer.hpp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2019  100  2019    0     0   4924      0 --:--:-- --:--:-- --:--:--  4924
curl 'https://raw.githubusercontent.com/dcousens/ranger/568e116e931aefa437019d846fa1d36f79098679/ranger.hpp' > include/ranger.hpp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4691  100  4691    0     0  13402      0 --:--:-- --:--:-- --:--:-- 13364
curl 'https://raw.githubusercontent.com/dcousens/ranger/568e116e931aefa437019d846fa1d36f79098679/serial.hpp' > include/serial.hpp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2178  100  2178    0     0   6169      0 --:--:-- --:--:-- --:--:--  6169
curl 'https://raw.githubusercontent.com/dcousens/threadpool/b6f29f27b4b658f4b0df976c9151a0f76aa86335/threadpool.hpp' > include/threadpool.hpp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1708  100  1708    0     0   5083      0 --:--:-- --:--:-- --:--:--  5068
g++ -pedantic -std=c++1z -W -Wall -Wcast-qual -Wconversion -Werror -Wextra -Wwrite-strings -Wno-unused-function -O3 -Iinclude -MMD -MP -c src/bestchain.cpp -o src/bestchain.o
g++ src/bestchain.o -lcrypto -O3 -o bestchain
g++ -pedantic -std=c++1z -W -Wall -Wcast-qual -Wconversion -Werror -Wextra -Wwrite-strings -Wno-unused-function -O3 -Iinclude -MMD -MP -c src/parser.cpp -o src/parser.o
src/parser.cpp: In function ‘int main(int, char**)’:
src/parser.cpp:34:43: error: format ‘%lu’ expects argument of type ‘long unsigned int*’, but argument 3 has type ‘size_t* {aka unsigned int*}’ [-Werror=format=]
   if (sscanf(arg, "-t%lu", &transformIndex) == 1) {
                            ~~~~~~~~~~~~~~~^
src/parser.cpp:52:37: error: format ‘%lu’ expects argument of type ‘long unsigned int*’, but argument 3 has type ‘size_t* {aka unsigned int*}’ [-Werror=format=]
   if (sscanf(arg, "-j%lu", &nThreads) == 1) continue;
                            ~~~~~~~~~^
src/parser.cpp:53:40: error: format ‘%lu’ expects argument of type ‘long unsigned int*’, but argument 3 has type ‘size_t* {aka unsigned int*}’ [-Werror=format=]
   if (sscanf(arg, "-m%lu", &memoryAlloc) == 1) continue;
                            ~~~~~~~~~~~~^
In file included from src/parser.cpp:9:0:
include/bitcoin.hpp: In instantiation of ‘auto BlockBase<S>::transactions() const [with S = __ranger::Range<unsigned char*>]’:
src/statistics.hpp:104:8:   required from ‘void dumpASM<Block>::operator()(const Block&) [with Block = BlockBase<__ranger::Range<unsigned char*> >]’
src/parser.cpp:145:1:   required from here
include/bitcoin.hpp:216:10: error: conversion to ‘size_t {aka unsigned int}’ from ‘long long unsigned int’ may alter its value [-Werror=conversion]
   return TransactionRange<S>(copy, count);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/bitcoin.hpp: In instantiation of ‘auto {anonymous}::readTransaction(R&) [with R = __ranger::Range<unsigned char*>]’:
include/bitcoin.hpp:169:25:   required from ‘auto TransactionRange<R>::front() [with R = __ranger::Range<unsigned char*>]’
src/statistics.hpp:106:16:   required from ‘void dumpASM<Block>::operator()(const Block&) [with Block = BlockBase<__ranger::Range<unsigned char*> >]’
src/parser.cpp:145:1:   required from here
include/bitcoin.hpp:114:33: error: conversion to ‘size_t {aka unsigned int}’ from ‘long long unsigned int’ may alter its value [-Werror=conversion]
    const auto script = readRange(data, scriptLen);
                        ~~~~~~~~~^~~~~~~~~~~~~~~~~
include/bitcoin.hpp:128:33: error: conversion to ‘size_t {aka unsigned int}’ from ‘long long unsigned int’ may alter its value [-Werror=conversion]
    const auto script = readRange(data, scriptLen);
                        ~~~~~~~~~^~~~~~~~~~~~~~~~~
include/bitcoin.hpp: In instantiation of ‘auto {anonymous}::readStack(R&) [with R = __ranger::Range<unsigned char*>]’:
include/bitcoin.hpp:138:33:   required from ‘auto {anonymous}::readTransaction(R&) [with R = __ranger::Range<unsigned char*>]’
include/bitcoin.hpp:169:25:   required from ‘auto TransactionRange<R>::front() [with R = __ranger::Range<unsigned char*>]’
src/statistics.hpp:106:16:   required from ‘void dumpASM<Block>::operator()(const Block&) [with Block = BlockBase<__ranger::Range<unsigned char*> >]’
src/parser.cpp:145:1:   required from here
include/bitcoin.hpp:86:42: error: conversion to ‘size_t {aka unsigned int}’ from ‘long long unsigned int’ may alter its value [-Werror=conversion]
    stack.emplace_back(readRange(r, readVI(r)));
                                    ~~~~~~^~~
cc1plus: all warnings being treated as errors
Makefile:29: recipe for target 'src/parser.o' failed
make: *** [src/parser.o] Error 1
dcousens commented 5 years ago

Aye, 32 bit... Haven't tested that. Could you open a new issue?