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

Compilation issue with ROOT - Ubuntu 20.04 #10

Open
stgogil opened this issue Sep 10, 2021 · 0 comments
Open

Compilation issue with ROOT - Ubuntu 20.04 #10

stgogil opened this issue Sep 10, 2021 · 0 comments

Comments

@stgogil
Copy link

stgogil commented Sep 10, 2021

Similar to #8, the command

python scripts/annz_singleReg_quick.py --make

Gives me the following error:

(23:07 INFO) - Found defined ROOTSYS = "/home/santiago/root". Setting glob.rootHome to match
(23:07 INFO) - Will use ROOTSYS = "/home/santiago/root"
(23:07 INFO) - Adding to LD_LIBRARY_PATH "/home/santiago/root/lib/"
(23:07 INFO) - Resetting directory(/home/santiago/annz/lib,False)
(23:07 INFO) - Moving to /home/santiago/annz/lib and compiling ANNZ...
c++ -O2 -Wall -fPIC -pthread -std=c++14 -m64 -I/home/santiago/root/include -g -I../ -I./ -I../src/ -I../include/ -std=c++0x -include commonInclude.hpp -c -o myANNZ.o ../src/myANNZ.cpp
In file included from /home/santiago/root/include/TString.h:29,
from /home/santiago/root/include/TNamed.h:26,
from /home/santiago/root/include/TDirectory.h:24,
from /home/santiago/root/include/TROOT.h:28,
from ../include/commonInclude.hpp:44,
from :
/home/santiago/root/include/ROOT/RStringView.hxx:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type
32 | using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
| ^~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:35:12: error: ‘basic_string_view’ does not name a type
35 | typedef basic_string_view string_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:36:12: error: ‘basic_string_view’ does not name a type
36 | typedef basic_string_view<char16_t> u16string_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:37:12: error: ‘basic_string_view’ does not name a type
37 | typedef basic_string_view<char32_t> u32string_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:38:12: error: ‘basic_string_view’ does not name a type
38 | typedef basic_string_view<wchar_t> wstring_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:48:4: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:48:28: error: ‘string_view’ is not a member of ‘std’
48 | inline double stod(std::string_view str, size_t pos)
| ^~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:48:28: note: ‘std::string_view’ is only available from C++17 onwards
/home/santiago/root/include/ROOT/RStringView.hxx:48:52: error: expected primary-expression before ‘
’ token
48 | inline double stod(std::string_view str, size_t *pos)
| ^
/home/santiago/root/include/ROOT/RStringView.hxx:48:53: error: ‘pos’ was not declared in this scope; did you mean ‘ios’?
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~
| ios
/home/santiago/root/include/ROOT/RStringView.hxx:48:56: error: expression list treated as compound expression in initializer [-fpermissive]
48 | inline double stod(std::string_view str, size_t *pos)
| ^
/home/santiago/root/include/ROOT/RStringView.hxx:65:56: error: ‘std::string_view’ has not been declared
65 | inline std::string &operator+=(std::string &left, std::string_view right)
...
make: *** [/home/santiago/annz/Makefile:159: myANNZ.o] Error 1
(23:07 CRITICAL) compilation failed
(23:07 CRITICAL) Will terminate !!!!

I think it's a problem with different gcc versions for root and the application. Please help me fix this issue.

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

1 participant