Skip to content

make error 2 #336

@hugocrazydog

Description

@hugocrazydog

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

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