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

Can't compile on Arch #135

Closed
egyptianbman opened this issue Apr 12, 2021 · 4 comments
Closed

Can't compile on Arch #135

egyptianbman opened this issue Apr 12, 2021 · 4 comments

Comments

@egyptianbman
Copy link

Compiling on Archlinux fails with the following error message:

In file included from crypto/equihash.cpp:21:                                                          
./crypto/equihash.h: In function ‘bool EhBasicSolve(unsigned int, unsigned int, const eh_HashState&, std::function<bool(std::vector<unsigned char>)>, std::function<bool(EhSolverCancelCheck)>)’:
./crypto/equihash.h:239:20: error: ‘invalid_argument’ is not a member of ‘std’  
  239 |         throw std::invalid_argument("Unsupported Equihash parameters");                 
      |                    ^~~~~~~~~~~~~~~~                                                            
./crypto/equihash.h: In function ‘bool EhOptimisedSolve(unsigned int, unsigned int, const eh_HashState&, std::function<bool(std::vector<unsigned char>)>, std::function<bool(EhSolverCancelCheck)>)’:
./crypto/equihash.h:267:20: error: ‘invalid_argument’ is not a member of ‘std’        
  267 |         throw std::invalid_argument("Unsupported Equihash parameters");     
      |                    ^~~~~~~~~~~~~~~~
make[2]: *** [Makefile:3032: crypto/libbitcoin_crypto_a-equihash.o] Error 1     
@XK4MiLX
Copy link
Member

XK4MiLX commented Apr 12, 2021

what gcc version you used? ( gcc 4.7.x is not supported; you'll need to upgrade to gcc 4.9.x or later. )

@egyptianbman
Copy link
Author

Hey @XK4MiLX Arch generally uses the latest version of everything:

➜ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@TheTrunk
Copy link
Member

Hi,
Just a side node: For official release of arm, we are compiling it using cross compile on ubuntu 16. You can check out our travis file of how it is done.
https://github.com/zelcash/zelcash/blob/master/.travis.yml

@blondfrogs
Copy link
Member

Closing as this issue is resolved by @TheTrunk message above

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

4 participants