https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115706

--- Comment #2 from Dev Dude <devdude2 at hotmail dot com> ---
Just to clarify the initial comment if it is unclear:

It's unclear how to compile C++ standard headers. If I use the script below to
try to build all the standard c++ headers, I see the "random" header errors and
the "execution" header crashes compiler (see output in original post). But if I
re-run the script, random and execution compile successfully.

The crash in "execution" is a compiler bug or an incorrect assertion. But that
the process fails then works on re-run, seems to be a bug to in that the header
build is order dependent or sometning when it probably shouldn't be

To see this, save the script in the original comment as make_gcc_headers.sh
then do . make_gcc_headers.sh then . make_gcc_headers execution random

I hope this clarifies things and how to reproduce this problem if it was
unclear before. Thanks

Oh one other thing, I think I accidentally cut the related errors from using
the collective headers after they successfully compile on second pass. I don't
think this adds much, as it may go away once you fix the other problems, but in
case it helps here those errors are too:

[build] In module imported at
/home/gm/projects/chess/src/libutil/util.cpp:49:1:
[build] /home/gm/projects/chess/src/libutil/util.cpp: In substitution of
‘template<class> constexpr std::__cxx11::basic_string<char>::basic_string(const
char*, const std::allocator<char>&) [with <template-parameter-1-1> =
std::allocator<char>]’:
[build] /home/gm/projects/chess/src/libutil/util.cpp:88:18:   required from
here
[build]    88 |         mypath = pathbuf;
[build]       |                  ^~~~~~~
[build] /home/gm/local/install-mygcc/include/c++/15.0.0/filesystem: error:
failed to read compiled module cluster 1499: Bad file data
[build] /home/gm/local/install-mygcc/include/c++/15.0.0/filesystem: note:
compiled module file is
‘gcm.cache/./home/gm/local/install-mygcc/include/c++/15.0.0/filesystem.gcm’
[build] /home/gm/projects/chess/src/libutil/util.cpp:88:18: fatal error: failed
to load pendings for ‘std::__cxx11::basic_string’
[build]    88 |         mypath = pathbuf;
[build]       |                  ^~~~~~~

But the stack dump showing and compiler crash related to
__concurrence_lock_error in the original post is the main thing in this post
relating to gcc. But to see it, you'll have to run the script that I gave.

Reply via email to