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

compiling v6.28.02 fails under opensuse TW with gcc-13 #12659

Closed
svenmenke opened this issue Apr 14, 2023 · 6 comments · Fixed by #12714
Closed

compiling v6.28.02 fails under opensuse TW with gcc-13 #12659

svenmenke opened this issue Apr 14, 2023 · 6 comments · Fixed by #12714
Assignees
Milestone

Comments

@svenmenke
Copy link

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

@Axel-Naumann Axel-Naumann added this to the 6.28/04 milestone Apr 24, 2023
@Axel-Naumann
Copy link
Member

Axel-Naumann commented Apr 25, 2023

Thanks for the report! Can you confirm that this is fixed with this PR?

(FYI, I see a crash in rootcling with GCC13, investigating...)

@svenmenke
Copy link
Author

Hi @Axel-Naumann ,
thanks for the patch!
I get past rootcling and also past Core (the target that failed originally). But soon after it's still failing with
...
[ 76%] Generating G__XMLIO.cxx, ../../lib/XMLIO.pcm
In file included from input_line_10:3:
/home/menke/Downloads/root_build/include/ROOT/RVec.hxx:54:10: fatal error: 'vdt/vdtMath.h' file not found
#include <vdt/vdtMath.h>
^~~~~~~~~~~~~~~
...
Cheers,
--Sven

@Axel-Naumann
Copy link
Member

D'oh. Can you share your CMakeCache.txt?

@svenmenke
Copy link
Author

sorry - this was false alarm. I had the prior root build with gcc-12 still in the lib and execute paths ... trying again.
--Sven

@svenmenke
Copy link
Author

o.k. compile worked now with gcc-13 on TW and root seems to work as expected. Thanks again for the fix.
Cheers,
--Sven

@Axel-Naumann Axel-Naumann added this to Issues in Fixed in 6.28/04 via automation Apr 26, 2023
@Axel-Naumann Axel-Naumann linked a pull request Apr 26, 2023 that will close this issue
@Axel-Naumann
Copy link
Member

Thanks for the confirmation!

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

Successfully merging a pull request may close this issue.

2 participants