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

Error during make on 5.5.0 #1469

Closed
nabeards opened this issue Dec 29, 2019 · 7 comments
Closed

Error during make on 5.5.0 #1469

nabeards opened this issue Dec 29, 2019 · 7 comments
Labels
Milestone

Comments

@nabeards
Copy link

nabeards commented Dec 29, 2019

Trying to build with the tag 5.5.0 checked out, and I get the following errors:

CMakeFiles/xmrig.dir/src/base/kernel/Env.cpp.o: In function `xmrig::Env::expand(char const*)':
Env.cpp:(.text+0x813): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_iterator(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, std::basic_regex<char, std::regex_traits<char> > const&, std::bitset<11ul>)'
Env.cpp:(.text+0x829): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_iterator()'
Env.cpp:(.text+0x83b): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator!=(std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
Env.cpp:(.text+0x861): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator*()'
Env.cpp:(.text+0xa54): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator++()'
collect2: error: ld returned 1 exit status
make[2]: *** [xmrig] Error 1
make[1]: *** [CMakeFiles/xmrig.dir/all] Error 2
make: *** [all] Error 2

This is on CentOS 7.7. 5.4.0 builds without issue.

@xmrig xmrig added the bug label Dec 29, 2019
@xmrig xmrig added this to the v5 milestone Dec 29, 2019
@nabeards
Copy link
Author

It looks like std:regex_iterator isn't available before gcc 4.9, max available on CentOS 7 is gcc 4.8.5.

@xmrig
Copy link
Owner

xmrig commented Dec 29, 2019

I will add ability to build without env variables support (new feature added in v5.5).
Thank you.

@nabeards
Copy link
Author

Awesome, thank you for the quick reply!

@frankfpb
Copy link

the same problem:
[100%] Linking CXX executable xmrig
CMakeFiles/xmrig.dir/src/base/kernel/Env.cpp.o: In function xmrig::Env::expand(char const*)': Env.cpp:(.text+0x803): undefined reference to std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits >::regex_iterator(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, std::basic_regex<char, std::regex_traits > const&, std::bitset<11ul>)'
Env.cpp:(.text+0x819): undefined reference to std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_iterator()' Env.cpp:(.text+0x82b): undefined reference to std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits >::operator!=(std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits > const&)'
Env.cpp:(.text+0x851): undefined reference to std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator*()' Env.cpp:(.text+0xa44): undefined reference to std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits >::operator++()'
collect2: error: ld returned 1 exit status
CMakeFiles/xmrig.dir/build.make:4889: ошибка выполнения рецепта для цели «xmrig»
make[2]: *** [xmrig] Ошибка 1
CMakeFiles/Makefile2:73: ошибка выполнения рецепта для цели «CMakeFiles/xmrig.dir/all»
make[1]: *** [CMakeFiles/xmrig.dir/all] Ошибка 2
Makefile:83: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2

xmrig added a commit that referenced this issue Dec 30, 2019
@xmrig
Copy link
Owner

xmrig commented Dec 30, 2019

Fixed in master (accidentally commit to it) and dev branches.
Thank you.

@frankfpb
Copy link

frankfpb commented Jan 1, 2020

Thanks all right now. gcc version 4.8.4 (Debian 4.8.4-1)

@nabeards
Copy link
Author

Works correctly now.

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

No branches or pull requests

3 participants