parcrypt icon indicating copy to clipboard operation
parcrypt copied to clipboard

build error on Ubuntu 18.04

Open unclevito2017 opened this issue 2 years ago • 3 comments

jojo@gorilla:~/Downloads/parcrypt-main$ make
make -j8 all
make[1]: Entering directory '/home/jojo/Downloads/parcrypt-main'
make --directory address
make --directory parcrypt_lib
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/address'
for file in base58.cpp address_hash.cpp ripemd160.cpp checksum.cpp sha256.cpp ; do\
	g++ -c $file  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -O2 -std=c++2a;\
done
make --directory gpu
make --directory logger
make --directory modules
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/parcrypt_lib'
for file in server_common.cpp brute_force_work_unit.cpp http_client.cpp work_unit_factories.cpp settings_cache.cpp work_unit_manager.cpp ; do\
	g++ -c $file  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -O2 -std=c++2a;\
done
make --directory platform
make --directory secp256k1
make --directory util
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/logger'
for file in logger.cpp ; do\
	g++ -c $file  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -O2 -std=c++2a;\
done
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/platform'
for file in console_handler.cpp platform.cpp ; do\
	g++ -c $file  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -O2 -std=c++2a;\
done
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/secp256k1'
for file in secp256k1.cpp ; do\
	g++ -c $file  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -O2 -std=c++2a;\
done
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/modules'
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/gpu'
python3 ../tools/concat.py btc_pub_key_hash/secp256k1.cl btc_pub_key_hash/public_key_hash.cl > btc_pub_key_hash/btc_pub_key_hash.cl
for file in gpu.cpp tuner.cpp opencl/opencl_device.cpp opencl/opencl_internal.cpp opencl/opencl_device_memory.cpp opencl/opencl_kernel.cpp opencl/opencl_lib.cpp opencl/opencl.cpp opencl/opencl_module.cpp ; do\
	g++ -c $file  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers -O2 -std=c++2a;\
done
make[2]: Entering directory '/home/jojo/Downloads/parcrypt-main/util'
for file in timer.cpp util.cpp ; do\
	g++ -c $file  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -O2 -std=c++2a;\
done
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:6: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/logger'
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:74: recipe for target 'dir_logger' failed
make[1]: *** [dir_logger] Error 2
make[1]: *** Waiting for unfinished jobs....
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:6: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/secp256k1'
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:80: recipe for target 'dir_secp256k1' failed
make[1]: *** [dir_secp256k1] Error 2
Makefile:6: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/platform'
Makefile:77: recipe for target 'dir_platform' failed
make[1]: *** [dir_platform] Error 2
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:6: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/util'
Makefile:68: recipe for target 'dir_util' failed
make[1]: *** [dir_util] Error 2
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:6: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/address'
Makefile:71: recipe for target 'dir_address' failed
make[1]: *** [dir_address] Error 2
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:6: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/parcrypt_lib'
Makefile:83: recipe for target 'dir_parcrypt_lib' failed
make[1]: *** [dir_parcrypt_lib] Error 2
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:10: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/gpu'
Makefile:86: recipe for target 'dir_gpulib' failed
make[1]: *** [dir_gpulib] Error 2
python3 ../tools/embed_string.py --input btc_pub_key_hash/btc_pub_key_hash.cl --symbol _btc_pub_key_hash_cl_source --output btc_pub_key_hash/btc_pub_key_hash_cl.cpp
for file in btc_pub_key_hash/btc_pub_key_hash.cpp btc_pub_key_hash/btc_pub_key_hash_cl.cpp btc_pub_key_hash/btc_pub_key_hash_gpu.cpp ; do\
	g++ -c $file -I./ -Ibtc_pub_key_hash  -I/home/jojo/Downloads/parcrypt-main/include  -I/home/jojo/Downloads/parcrypt-main/./  -I/home/jojo/Downloads/parcrypt-main/third_party/OpenCL-Headers  -I/home/jojo/Downloads/parcrypt-main/third_party/fmt/include  -I/home/jojo/Downloads/parcrypt-main/third_party/json11  -I/home/jojo/Downloads/parcrypt-main/address  -I/home/jojo/Downloads/parcrypt-main/parcrypt_lib  -I/home/jojo/Downloads/parcrypt-main/gpu  -I/home/jojo/Downloads/parcrypt-main/logger  -I/home/jojo/Downloads/parcrypt-main/platform  -I/home/jojo/Downloads/parcrypt-main/secp256k1  -I/home/jojo/Downloads/parcrypt-main/util -O2 -std=c++2a;\
done
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
g++: error: unrecognized command line option ‘-std=c++2a’; did you mean ‘-std=c++03’?
Makefile:6: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/jojo/Downloads/parcrypt-main/modules'
Makefile:89: recipe for target 'dir_modules' failed
make[1]: *** [dir_modules] Error 2
make[1]: Leaving directory '/home/jojo/Downloads/parcrypt-main'
Makefile:57: recipe for target 'main' failed
make: *** [main] Error 2
jojo@gorilla:~/Downloads/parcrypt-main$ 

unclevito2017 avatar Mar 07 '22 22:03 unclevito2017

Hi,

Check your g++ version.

g++ --version

You'll need at least g++ 8.0. On Ubuntu you can install it with:

sudo apt-get install g++-8

You might have to change CXX=g++ to CXX=g++-8 in the Makefile.

brichard19 avatar Mar 17 '22 02:03 brichard19

I have gcc 9, I had gcc 8 and was getting more errors than 9. Anyway that computer has Windows 11 now so it is a moot issue for me. Tried in WSL but cannot compile in Ubuntu 20.04 WSL either or the other 3 computers with WSL. No problem compiling with Visual Studio 19 in windows though.

On Mar 16, 2022 10:10 PM, "brichard19" @.***> wrote:

Hi,

Check your g++ version.

g++ --version

You'll need at least g++ 8.0. On Ubuntu you can install it with:

sudo apt-get install g++-8

You might have to change CXX=g++ to CXX=g++-8 in the Makefile.

— Reply to this email directly, view it on GitHub https://github.com/brichard19/parcrypt/issues/4#issuecomment-1069854643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3P53LSFLSJRNQCJNNGBK3VAKH77ANCNFSM5QESLPRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

unclevito2017 avatar Mar 17 '22 02:03 unclevito2017