Skip to content
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

GCC9 build error #54

Closed
gumb0 opened this issue Nov 7, 2019 · 1 comment
Closed

GCC9 build error #54

gumb0 opened this issue Nov 7, 2019 · 1 comment

Comments

@gumb0
Copy link
Member

gumb0 commented Nov 7, 2019

Building with GCC 9 fails, see ethereum/aleth#5798 for some related fixes

[ 46%] Building CXX object libdevcore/CMakeFiles/devcore.dir/SHA3.cpp.o
In file included from /home/andrei/dev/retesteth/libdevcore/SHA3.cpp:22:
/home/andrei/dev/retesteth/libdevcore/SHA3.h: In function ‘dev::SecureFixedHash<32> dev::sha3Secure(dev::bytesConstRef)’:
/home/andrei/dev/retesteth/libdevcore/SHA3.h:41:131: error: implicitly-declared ‘constexpr dev::SecureFixedHash<32>::SecureFixedHash(const dev::SecureFixedHash<32>&)’ is deprecated [-Werror=deprecated-copy]
   41 | inline SecureFixedHash<32> sha3Secure(bytesConstRef _input) { SecureFixedHash<32> ret; sha3(_input, ret.writable().ref()); return ret; }
      |                                                                                                                                   ^~~
In file included from /home/andrei/dev/retesteth/libdevcore/SHA3.h:27,
                 from /home/andrei/dev/retesteth/libdevcore/SHA3.cpp:22:
/home/andrei/dev/retesteth/libdevcore/FixedHash.h:245:22: note: because ‘dev::SecureFixedHash<32>’ has user-provided ‘dev::SecureFixedHash<T>& dev::SecureFixedHash<T>::operator=(const dev::SecureFixedHash<T>&) [with unsigned int T = 32]’
  245 |  SecureFixedHash<T>& operator=(SecureFixedHash<T> const& _c)
      |                      ^~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libdevcore/CMakeFiles/devcore.dir/build.make:167: libdevcore/CMakeFiles/devcore.dir/SHA3.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:239: libdevcore/CMakeFiles/devcore.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
@winsvega
Copy link
Collaborator

fixed
6d528e4
65a80d0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants