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

ROOT fails to compile on ubuntu 22.04 gcc-9 (and 10 ?) due to libstdc++ bug #785

Open
KrisThielemans opened this issue Dec 12, 2022 · 0 comments

Comments

@KrisThielemans
Copy link
Member

error is

While building module 'Core':
While building module 'std' imported from input_line_1:1:
In file included from <module-includes>:76:
/usr/include/c++/9/valarray:1214:5: error: exception specification in declaration does not match previous declaration
    begin(valarray<_Tp>& __va) noexcept
    ^
/usr/include/c++/9/bits/range_access.h:104:31: note: previous declaration is here
  template<typename _Tp> _Tp* begin(valarray<_Tp>&);

https://root-forum.cern.ch/t/build-root-6-26-04-module-core-and-std-problem-ubuntu-22-04/50742/18
says this is a libstdc++ bug fixed in fixed in https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2b2d97fc545635a0f6aa9c9ee3b017394bc494bf.

Possibly it needs gcc >= 10.4.0-3

@KrisThielemans KrisThielemans changed the title ROOT fails to compile on ubuntu 22.04 gcc-9due to libstdc++ bug ROOT fails to compile on ubuntu 22.04 gcc-9 (and 10 ?) due to libstdc++ bug Dec 12, 2022
KrisThielemans added a commit to KrisThielemans/SIRF-SuperBuild that referenced this issue Dec 12, 2022
This works around a libstdc++ bug for gcc-9, see
SyneRBI#785
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant