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

            Bug ID: 123193
           Summary: g++.dg/modules/compile-std1.C fails on arm since
                    r16-5581-g3ad2e2d707c
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
                CC: jason at gcc dot gnu.org
  Target Milestone: ---
            Target: arm

Linaro CI has detected a failure in g++.dg/modules/compile-std1.C on some arm
configurations:
--target arm-eabi --disable-multilib --with-mode=thumb --with-cpu=cortex-m7
--with-float=hard

and
--target arm-eabi --disable-multilib --with-mode=arm --with-arch=armv7-a
--with-fpu=vfpv3-d16 --with-float=softfp


The logs say:

In file included from
/arm-eabi/libstdc++-v3/include/arm-eabi/bits/stdc++.h:227:
/arm-eabi/libstdc++-v3/include/print: In member function 'virtual void
std::__format::_File_sink::_M_overflow()':
/arm-eabi/libstdc++-v3/include/print:197:20: error: '::fwrite_unlocked' has not
been declared; did you mean '_fwrite_unlocked_r'?
/arm-eabi/libstdc++-v3/include/print: In constructor
'std::__format::_File_sink::_File_sink(FILE*, bool)':
/arm-eabi/libstdc++-v3/include/print:212:9: error: '::flockfile' has not been
declared; did you mean '_flockfile'?
/arm-eabi/libstdc++-v3/include/print: In destructor
'std::__format::_File_sink::~_File_sink()':
/arm-eabi/libstdc++-v3/include/print:218:11: error: '::putc_unlocked' has not
been declared; did you mean '_putc_unlocked_r'?
/arm-eabi/libstdc++-v3/include/print:219:9: error: '::funlockfile' has not been
declared; did you mean '_funlockfile'?
In file included from
/arm-eabi/libstdc++-v3/include/arm-eabi/bits/stdc++.h:227,
                 from /arm-eabi/libstdc++-v3/include/bits/std.cc:26:
/arm-eabi/libstdc++-v3/include/print: In member function 'virtual void
std::__format::_File_sink::_M_overflow()':
/arm-eabi/libstdc++-v3/include/print:197:20: error: '::fwrite_unlocked' has not
been declared; did you mean '_fwrite_unlocked_r'?
/arm-eabi/libstdc++-v3/include/print: In constructor
'std::__format::_File_sink::_File_sink(FILE*, bool)':
/arm-eabi/libstdc++-v3/include/print:212:9: error: '::flockfile' has not been
declared; did you mean '_flockfile'?
/arm-eabi/libstdc++-v3/include/print: In destructor
'std::__format::_File_sink::~_File_sink()':
/arm-eabi/libstdc++-v3/include/print:218:11: error: '::putc_unlocked' has not
been declared; did you mean '_putc_unlocked_r'?
/arm-eabi/libstdc++-v3/include/print:219:9: error: '::funlockfile' has not been
declared; did you mean '_funlockfile'?
/arm-eabi/libstdc++-v3/include/bits/std.cc: At global scope:
/arm-eabi/libstdc++-v3/include/bits/std.cc:576:14: error:
'atomic_flag_notify_all' has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:577:14: error:
'atomic_flag_notify_one' has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:582:14: error: 'atomic_flag_wait'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:583:14: error:
'atomic_flag_wait_explicit' has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:605:14: error: 'atomic_notify_all'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:606:14: error: 'atomic_notify_one'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:641:14: error: 'atomic_wait' has not
been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:642:14: error:
'atomic_wait_explicit' has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:1002:14: error: 'condition_variable'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:1003:14: error:
'condition_variable_any' has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:1004:14: error: 'cv_status' has not
been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:1005:14: error:
'notify_all_at_thread_exit' has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:1767:14: error: 'latch' has not been
declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2036:19: error:
'synchronized_pool_resource' has not been declared in 'std::pmr'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2050:14: error: 'mutex' has not been
declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2052:14: error: 'recursive_mutex'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2053:14: error:
'recursive_timed_mutex' has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2056:14: error: 'timed_mutex' has
not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2646:14: error: 'binary_semaphore'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2647:14: error: 'counting_semaphore'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2670:14: error: 'shared_mutex' has
not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2671:14: error: 'shared_timed_mutex'
has not been declared in 'std'
/arm-eabi/libstdc++-v3/include/bits/std.cc:2956:14: error: 'jthread' has not
been declared in 'std'
In module imported at /arm-eabi/libstdc++-v3/include/bits/std.compat.cc:30:8:
std: error: failed to read compiled module: No such file or directory
std: note: compiled module file is 'gcm.cache/std.gcm'
std: note: imports must be built before being imported
std: fatal error: returning to the gate for a mechanical issue
compilation terminated.
In module imported at /testsuite/g++.dg/modules/compile-std1.C:4:1:
/arm-eabi/libstdc++-v3/include/arm-eabi/bits/stdc++.h: error: failed to read
compiled module: No such file or directory
/arm-eabi/libstdc++-v3/include/arm-eabi/bits/stdc++.h: note: compiled module
file is 'gcm.cache/./arm-eabi/libstdc++-v3/include/arm-eabi/bits/stdc++.h.gcm'
/arm-eabi/libstdc++-v3/include/arm-eabi/bits/stdc++.h: note: imports must be
built before being imported
/arm-eabi/libstdc++-v3/include/arm-eabi/bits/stdc++.h: fatal error: returning
to the gate for a mechanical issue
compilation terminated.

Reply via email to