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 install #52

Closed
delucca opened this issue Jun 8, 2021 · 3 comments
Closed

Can't install #52

delucca opened this issue Jun 8, 2021 · 3 comments

Comments

@delucca
Copy link
Collaborator

delucca commented Jun 8, 2021

Hi =)

I'm trying to install the plotter with the make-devel script, but getting this error:

[ 96%] Building C object _deps/relic-build/src/CMakeFiles/relic_s.dir/low/easy/relic_fb_trc_low.c.o
[ 97%] Linking C static library ../lib/librelic_s.a
[ 97%] Built target relic_s
[ 97%] Linking CXX executable test_phase_2
[ 97%] Built target test_phase_2
[ 98%] Linking CXX executable test_phase_3
/usr/bin/ld: CMakeFiles/test_phase_3.dir/test/test_phase_3.cpp.o: in function `__gnu_cxx::new_allocator<std::__detail::_Hash_node_base*>::allocate(unsigned long, void const*)':
/usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/test_phase_3.dir/build.make:100: test_phase_3] Error 1
make[1]: *** [CMakeFiles/Makefile2:280: CMakeFiles/test_phase_3.dir/all] Error 2
[ 98%] Linking CXX executable test_phase_1
/usr/bin/ld: CMakeFiles/test_phase_1.dir/test/test_phase_1.cpp.o: in function `__gnu_cxx::new_allocator<std::__detail::_Hash_node_base*>::allocate(unsigned long, void const*)':
/usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/include/c++/11.1.0/ext/new_allocator.h:110: undefined reference to `std::__throw_bad_array_new_length()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/test_phase_1.dir/build.make:100: test_phase_1] Error 1
make[1]: *** [CMakeFiles/Makefile2:197: CMakeFiles/test_phase_1.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I've already downgraded to gcc 10

I'm using Arch Linux

@delucca
Copy link
Collaborator Author

delucca commented Jun 8, 2021

I forgot to downgrade g++ to 10.2, but after downgrading it, now I'm getting this error:

[ 97%] Linking C static library ../lib/librelic_s.a
[ 97%] Built target relic_s
/usr/bin/ar: /usr/lib/libgmp.so: file format not recognized
make[2]: *** [lib/bls-signatures/src/CMakeFiles/combined_custom.dir/build.make:73: lib/bls-signatures/src/CMakeFiles/combined_custom] Error 1
make[1]: *** [CMakeFiles/Makefile2:447: lib/bls-signatures/src/CMakeFiles/combined_custom.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Linking CXX executable test_phase_2
[ 97%] Built target test_phase_2
[ 98%] Linking CXX executable test_phase_3
[ 98%] Built target test_phase_3
[ 98%] Linking CXX executable test_phase_1
[ 98%] Built target test_phase_1
make: *** [Makefile:136: all] Error 2

@SebMoore
Copy link
Contributor

SebMoore commented Jun 8, 2021

See down the bottom of this issue: #20 Seems to be currently unsolved I believe.

@delucca
Copy link
Collaborator Author

delucca commented Jun 8, 2021

I've just managed to solve that.

In arch you just need to install libgmp-static and libsodium-static.

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