Skip to content

Error when compiling in linux #595

Description

@Spam-and-Add-Killer

Compilation result message:

___________/crypto/BitCrack# BUILD_OPENCL=1

make --directory util
make[1]: Entering directory '/crypto/BitCrack/util'
for file in util.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110;
done
util.cpp: In function ‘std::string util::formatThousands(uint64_t)’:
util.cpp:60:34: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_ ’ {aka ‘long unsigned int’} [-Wformat=]
60 | sprintf(buf, "%lld", x);
| ~~~^ ~
| | |
| | uint64_t {aka long unsigned int}
| long long int
| %ld
util.cpp: In function ‘uint64_t util::parseUInt64(std::string)’:
util.cpp:109:50: warning: format ‘%llx’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat=]
109 | if(sscanf(s.c_str(), "%llx", &val) != 1) {
| ~~~^ ~~~~
| | |
| | uint64_t* {aka long unsigned int*}
| long long unsigned int*
| %lx
util.cpp:113:50: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat=]
113 | if(sscanf(s.c_str(), "%lld", &val) != 1) {
| ~~~^ ~~~~
| | |
| | uint64_t* {aka long unsigned int*}
| long long int*
| %ld
util.cpp: In function ‘std::string util::format(uint64_t)’:
util.cpp:242:34: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
242 | sprintf(buf, "%lld", (uint64_t)value);
| ~~~^ ~~~~~~~~~~~~~~~
| | |
| | uint64_t {aka long unsigned int}
| long long int
| %ld
mkdir -p /crypto/BitCrack/lib
ar rvs /crypto/BitCrack/lib/libutil.a util.o
ar: creating /crypto/BitCrack/lib/libutil.a
a - util.o
make[1]: Leaving directory '/crypto/BitCrack/util'
make --directory CryptoUtil
make[1]: Entering directory '/crypto/BitCrack/CryptoUtil'
for file in Rng.cpp checksum.cpp hash.cpp ripemd160.cpp sha256.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110;
done
mkdir -p /crypto/BitCrack/lib
ar rvs /crypto/BitCrack/lib/libcryptoutil.a *.o
ar: creating /crypto/BitCrack/lib/libcryptoutil.a
a - Rng.o
a - checksum.o
a - hash.o
a - ripemd160.o
a - sha256.o
make[1]: Leaving directory '/crypto/BitCrack/CryptoUtil'
make --directory secp256k1lib
make[1]: Entering directory '/crypto/BitCrack/secp256k1lib'
for file in secp256k1.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110 -L/crypto/BitCrack/lib -lcryptoutil;
done
mkdir -p /crypto/BitCrack/lib
ar rvs /crypto/BitCrack/lib/libsecp256k1.a secp256k1.o
ar: creating /crypto/BitCrack/lib/libsecp256k1.a
a - secp256k1.o
make[1]: Leaving directory '/crypto/BitCrack/secp256k1lib'
make --directory AddressUtil
make[1]: Entering directory '/crypto/BitCrack/AddressUtil'
for file in Base58.cpp hash.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110;
done
mkdir -p /crypto/BitCrack/lib
ar rvs /crypto/BitCrack/lib/libaddressutil.a *.o
ar: creating /crypto/BitCrack/lib/libaddressutil.a
a - Base58.o
a - hash.o
make[1]: Leaving directory '/crypto/BitCrack/AddressUtil'
make --directory CmdParse
make[1]: Entering directory '/crypto/BitCrack/CmdParse'
for file in CmdParse.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110;
done
mkdir -p /crypto/BitCrack/lib
ar rvs /crypto/BitCrack/lib/libcmdparse.a CmdParse.o
ar: creating /crypto/BitCrack/lib/libcmdparse.a
a - CmdParse.o
make[1]: Leaving directory '/crypto/BitCrack/CmdParse'
make --directory Logger
make[1]: Entering directory '/crypto/BitCrack/Logger'
for file in Logger.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110;
done
mkdir -p /crypto/BitCrack/lib
ar rvs /crypto/BitCrack/lib/liblogger.a Logger.o
ar: creating /crypto/BitCrack/lib/liblogger.a
a - Logger.o
make[1]: Leaving directory '/crypto/BitCrack/Logger'
make --directory KeyFinderLib
make[1]: Entering directory '/crypto/BitCrack/KeyFinderLib'
for file in KeyFinder.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -I/usr/local/cuda/include -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110;
done
ar rvs /crypto/BitCrack/lib/libkeyfinder.a *.o
ar: creating /crypto/BitCrack/lib/libkeyfinder.a
a - KeyFinder.o
make[1]: Leaving directory '/crypto/BitCrack/KeyFinderLib'
make --directory embedcl
make[1]: Entering directory '/crypto/BitCrack/embedcl'
g++ -o embedcl main.cpp -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110
mkdir -p /crypto/BitCrack/bin
cp embedcl /crypto/BitCrack/bin/embedcl
make[1]: Leaving directory '/crypto/BitCrack/embedcl'
make --directory clUtil
make[1]: Entering directory '/crypto/BitCrack/clUtil'
for file in clContext.cpp clUtil.cpp clerrors.cpp ; do
g++ -c $file -I/crypto/BitCrack/util -I/crypto/BitCrack/AddressUtil -I/crypto/BitCrack/CmdParse -I/crypto/BitCrack/CryptoUtil -I/crypto/BitCrack/KeyFinderLib -I/crypto/BitCrack/CLKeySearchDevice -I/crypto/BitCrack/CudaKeySearchDevice -I/crypto/BitCrack/cudaMath -I/crypto/BitCrack/clUtil -I/crypto/BitCrack/cudaUtil -I/crypto/BitCrack/secp256k1lib -I/crypto/BitCrack/Logger -I/crypto/BitCrack/embedcl -I/usr/local/cuda/include -O2 -std=c++11 -DCL_TARGET_OPENCL_VERSION=110;
done
In file included from clContext.h:5,
from clContext.cpp:7:
clutil.h:8:10: fatal error: CL/cl.h: No such file or directory
8 | #include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
In file included from clUtil.cpp:1:
clutil.h:8:10: fatal error: CL/cl.h: No such file or directory
8 | #include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
In file included from clerrors.cpp:1:
clutil.h:8:10: fatal error: CL/cl.h: No such file or directory
8 | #include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:6: all] Error 1
make[1]: Leaving directory '/crypto/BitCrack/clUtil'
make: *** [Makefile:96: dir_clutil] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions