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
compiling v6.28.02 fails under opensuse TW with gcc-13 #12659
Comments
Thanks for the report! Can you confirm that this is fixed with this PR? (FYI, I see a crash in rootcling with GCC13, investigating...) |
Hi @Axel-Naumann , |
D'oh. Can you share your CMakeCache.txt? |
sorry - this was false alarm. I had the prior root build with gcc-12 still in the lib and execute paths ... trying again. |
o.k. compile worked now with gcc-13 on TW and root seems to work as expected. Thanks again for the fix. |
Thanks for the confirmation! |
Dear all,
after
git clone https://github.com/root-project/root.git
cd root
git checkout -b v6-28-02 v6-28-02
mkdir root_build
cd root_build
cmake ../root
cmake --build -j4
I get:
...
[ 75%] Built target rootcling_stage1
[ 75%] Generating G__Core.cxx, ../lib/Core.pcm
While building module 'Core':
While building module 'std' imported from input_line_1:1:
In file included from :4:
In file included from /usr/include/c++/13/bitset:52:
In file included from /usr/include/c++/13/string:47:
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:81:5: error: redefinition of '__distance'
__distance(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:81:5: note: previous definition is here
__distance(_InputIterator __first, _InputIterator __last,
^
...
This is under opensuse Tumbleweed with latest updates. The default compiler is gcc-13.
It looks similar to an previous issue with gcc-12: #10478
The last time I built root (v6.26.10 in December 2022) I had no problems but I don't know what the gcc version was back then.
Could you please have a look?
Thanks & Cheers,
--Sven
The text was updated successfully, but these errors were encountered: