https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119364
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #61012|0 |1 is obsolete| | --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 61016 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61016&action=edit gcc15-pr119364.patch This is becoming a complete nightmare. The assumptions that host size_t is unsigned long are everywhere, ditto that %zd etc. works in *printf. With this 64-bit cobol1 still builds and passes make check-cobol and 32-bit cobol1 builds without warnings except for /usr/bin/ld: cobol/scan.o: in function `enter_leave_t::notify()': /usr/src/gcc/obj5/gcc/../../gcc/cobol/scan_ante.h:377: undefined reference to `cobol_filename(char const*, unsigned long)' collect2: error: ld returned 1 exit status make: *** [../../gcc/cobol/Make-lang.in:264: cobol1] Error 1 link error. This is due to some glibc headers included before config.h by scan.cc created by flex from scan.l. Unsure how to arrange for #include "config.h" to be added before the flex added includes.