https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122466
Bug ID: 122466
Summary: [16 regression] Cobol-enabled bootstrap fails for
Darwin after addition of the posix support to
libgcobol
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: cobol
Assignee: unassigned at gcc dot gnu.org
Reporter: iains at gcc dot gnu.org
Target Milestone: ---
Target: *-*darwin*
bootstrap now fails in the target library build with:
/src-local/gcc-master/libgcobol/posix/stat.cc: In function ‘int
posix_stat(const char*, posix_stat_t*, size_t)’:
/src-local/gcc-master/libgcobol/posix/stat.cc:38:27: error: ‘struct stat’ has
no member named ‘st_atim’
38 | statbuf->st_atim = sb.st_atim.tv_sec;
| ^~~~~~~
/src-local/gcc-master/libgcobol/posix/stat.cc:39:27: error: ‘struct stat’ has
no member named ‘st_mtim’
39 | statbuf->st_mtim = sb.st_mtim.tv_sec;
| ^~~~~~~
/src-local/gcc-master/libgcobol/posix/stat.cc:40:27: error: ‘struct stat’ has
no member named ‘st_ctim’
40 | statbuf->st_ctim = sb.st_ctim.tv_sec;
| ^~~~~~~
/src-local/gcc-master/libgcobol/posix/stat.cc:76:63: error: ‘struct stat’ has
no member named ‘st_atim’
76 | (unsigned long)statbuf->st_atim, (unsigned
long)sb.st_atim.tv_sec);
| ^~~~~~~
/src-local/gcc-master/libgcobol/posix/stat.cc:79:63: error: ‘struct stat’ has
no member named ‘st_mtim’
79 | (unsigned long)statbuf->st_mtim, (unsigned
long)sb.st_mtim.tv_sec);
| ^~~~~~~
/src-local/gcc-master/libgcobol/posix/stat.cc:82:63: error: ‘struct stat’ has
no member named ‘st_ctim’
82 | (unsigned long)statbuf->st_ctim, (unsigned
long)sb.st_ctim.tv_sec);
| ^~~~~~~
ISTR that the field names can be different depending on POSIX version, but
maybe memory is faulty,