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 build validator-keys #18

Closed
ne1000 opened this issue Sep 26, 2020 · 5 comments
Closed

can't build validator-keys #18

ne1000 opened this issue Sep 26, 2020 · 5 comments

Comments

@ne1000
Copy link

ne1000 commented Sep 26, 2020

Compile error report on ubuntu16.04

 In file included from /tmp/validator-keys-tool/src/ValidatorKeys.cpp:21:
/tmp/validator-keys-tool/src/ValidatorKeys.h:21:10: fatal error: ripple/crypto/KeyType.h: No such file or directory
 #include <ripple/crypto/KeyType.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/validator-keys.dir/build.make:62: recipe for target 'CMakeFiles/validator-keys.dir/src/ValidatorKeys.cpp.o' failed
make[2]: *** [CMakeFiles/validator-keys.dir/src/ValidatorKeys.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/validator-keys.dir/all' failed
make[1]: *** [CMakeFiles/validator-keys.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
@ximinez
Copy link
Contributor

ximinez commented Sep 28, 2020

We're working on getting that issue fixed as we speak. The next version, 0.3.2 (#19), should fix all these errors once it's merged. You can build the candidate branch now if you'd like.

In the meantime, there is a workaround described at #15 (comment), which can be used with the current 0.3.0 version in master and release.

@ximinez
Copy link
Contributor

ximinez commented Sep 29, 2020

We just pushed 0.3.2, which should resolve the current build issues. I'm going to close this issue. If you have further questions or problems, please feel free to reopen this issue or open a new one. Thanks for your feedback!

@ximinez ximinez closed this as completed Sep 29, 2020
@ne1000
Copy link
Author

ne1000 commented Oct 2, 2020

@ximinez hi, I still unable to build it.

[100%] Building CXX object CMakeFiles/validator-keys.dir/src/test/ValidatorKeysTool_test.cpp.o
[100%] Linking CXX executable validator-keys
/root/boost_1_71_0/boost/regex/v4/cpp_regex_traits.hpp:966: error: undefined reference to 'boost::re_detail_107100::cpp_regex_traits_implementation<char>::transform_primary[abi:cxx11](char const*, char const*) const'
/root/boost_1_71_0/boost/regex/v4/cpp_regex_traits.hpp:962: error: undefined reference to 'boost::re_detail_107100::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
collect2: error: ld returned 1 exit status
CMakeFiles/validator-keys.dir/build.make:144: recipe for target 'validator-keys' failed
make[2]: *** [validator-keys] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/validator-keys.dir/all' failed
make[1]: *** [CMakeFiles/validator-keys.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@ximinez
Copy link
Contributor

ximinez commented Oct 2, 2020

From the path in that blurb, it looks like you're building with Boost version 1.71.0. I can confirm that the build fails with 1.71 on my end, too.

Can you try installing Boost 1.70 and building with that? If so, we'll know what to target in the next version.

@ximinez
Copy link
Contributor

ximinez commented Oct 2, 2020

Woops! I missed something!

Before you try Boost 1.70, try deleting your .nih_c directory and rebuilding from scratch. I neglected that step the first time when I switched Boost versions. After I did that, the build worked perfectly.

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