-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make error 2 #336
Comments
Seconded. I've tried looking at the few remaining Cryptonote implementations and they seem to have added so much more into the implementation that finding a replacement line just to fix the problem becomes a non-trivial change due to the lack of maintenance on this project :( Really is a shame too because this was one of my favorite projects to quickly get up and running on your own blockchain to test/develop against. |
I have this same issue as well, I remember reading somewhere that there is an issue with modern computers. I think an older version of ubuntu is required, but im not too sure. |
What is the preferred OS when this issue is discovered? I was able to resolve by building on Ubuntu 16.04 but it has reached EOL so I want to continue learning on a supported OS. |
I was able to use Ubuntu in a VM to build it and generate the genesis. I've published it here Although I wasnt able to setup the seed nodes even with the same version of ubuntu. I've also forked monero https://github.com/71Zombie/TroutBucks Although I wasnt able to generate the genesis |
Only Ubuntu 14. |
How to Compile a CryptoNote Coin on Windows 10/11There has been an active issue for over 5 years now when trying to build the source on modern compilers. Here is how I was able to compile my CryptoNote Coin using Windows 10. I made this guide on Windows 10 in October, 2023. If you need help compiling on Linux, then you can check my Ubuntu 14/16 guide. WINDOWS DEPENDENCIES FOR CRYPTONOTEWe are going to build for 64-bit Windows. Download the Build Tools for Visual Studio 2019 Installer COMPILING CRYPTONOTE ON WINDOWS WITH VS2019From the start menu, open Developer Command Prompt for VS 2019. |
In file included from /root/minecraftcoin/src/CryptoNoteCore/CryptoNoteSerializa tion.h:8,
from /root/minecraftcoin/src/CryptoNoteProtocol/CryptoNoteProto colDefinitions.h:13,
from /root/minecraftcoin/include/INode.h:14,
from /root/minecraftcoin/src/PaymentGate/NodeFactory.h:7,
from /root/minecraftcoin/src/PaymentGate/NodeFactory.cpp:5:
/root/minecraftcoin/src/crypto/chacha8.h: In function 'void Crypto::generate_cha cha8_key(Crypto::cn_context&, const string&, Crypto::chacha8_key&)':
/root/minecraftcoin/src/crypto/chacha8.h:48:40: error: 'void* memcpy(void*, cons t void*, size_t)' writing to an object of non-trivially copyable type 'struct Cr ypto::chacha8_key'; use copy-assignment or copy-initialization instead [-Werror= class-memaccess]
48 | memcpy(&key, &pwd_hash, sizeof(key));
| ^
/root/minecraftcoin/src/crypto/chacha8.h:23:10: note: 'struct Crypto::chacha8_ke y' declared here
23 | struct chacha8_key {
| ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/PaymentGate.dir/build.make:63: src/CMakeFiles/Payme ntGate.dir/PaymentGate/NodeFactory.cpp.o] Error 1
make[3]: Leaving directory '/root/minecraftcoin/build/release'
make[2]: *** [CMakeFiles/Makefile2:423: src/CMakeFiles/PaymentGate.dir/all] Erro r 2
make[2]: Leaving directory '/root/minecraftcoin/build/release'
make[1]: *** [Makefile:95: all] Error 2
make[1]: Leaving directory '/root/minecraftcoin/build/release'
make: *** [Makefile:20: build-release] Error 2
The text was updated successfully, but these errors were encountered: