https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119364
Bug ID: 119364 Summary: building a cobol crocc compiler on i686-linux-gnu targeting x86_64-linux-gnu fails Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- In file included from ../../src/gcc/cobol/cdf.y:34: ../../src/gcc/../libgcobol/common-defs.h:170:23: error: enumerator value '4294967296' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 170 | depends_on_e = 0x0100000000, // A group hierachy contains a DEPENDING_ON | ^~~~~~~~~~~~ ../../src/gcc/../libgcobol/common-defs.h:171:23: error: enumerator value '8589934592' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 171 | initialized_e = 0x0200000000, // Don't call parser_initialize from parser_symbol_add | ^~~~~~~~~~~~ ../../src/gcc/../libgcobol/common-defs.h:172:23: error: enumerator value '17179869184' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 172 | has_value_e = 0x0400000000, // Flag to hierarchical descendents to ignore .initial | ^~~~~~~~~~~~ ../../src/gcc/../libgcobol/common-defs.h:173:23: error: enumerator value '34359738368' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 173 | ieeedec_e = 0x0800000000, // Indicates a FldFloat is IEEE 754 decimal, rather than binary | ^~~~~~~~~~~~ ../../src/gcc/../libgcobol/common-defs.h:174:23: error: enumerator value '68719476736' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 174 | big_endian_e = 0x1000000000, // Indicates a value is big-endian | ^~~~~~~~~~~~ ../../src/gcc/../libgcobol/common-defs.h:175:23: error: enumerator value '137438953472' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 175 | same_as_e = 0x2000000000, // Field produced by SAME AS (cannot take new members) | ^~~~~~~~~~~~ ../../src/gcc/../libgcobol/common-defs.h:176:23: error: enumerator value '274877906944' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 176 | record_key_e = 0x4000000000, | ^~~~~~~~~~~~ ../../src/gcc/../libgcobol/common-defs.h:177:23: error: enumerator value '549755813888' is outside the range of underlying type 'size_t' {aka 'unsigned int'} 177 | typedef_e = 0x8000000000, // IS TYPEDEF | ^~~~~~~~~~~~ In file included from ../../src/gcc/cobol/cdf.y:101, from cobol/cdf.cc:252: ../../src/gcc/cobol/cdfval.h:82:3: error: 'cdfval_t::cdfval_t(int64_t)' cannot be overloaded with 'cdfval_t::cdfval_t(long long int)' 82 | cdfval_t( int64_t value ) | ^~~~~~~~ ../../src/gcc/cobol/cdfval.h:75:3: note: previous declaration 'cdfval_t::cdfval_t(long long int)' 75 | cdfval_t( long long value ) | ^~~~~~~~ ../../src/gcc/cobol/cdf.y: In function 'void yy_symbol_value_print(FILE*, yysymbol_kind_t, const YDFSTYPE*, const YDFLTYPE*)': ../../src/gcc/cobol/cdf.y:245:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] 245 | %printer { fprintf(yyo, "%ld '%s'", | ^~~~~~~~~~ 246 | $$.number, $$.string? $$.string : "" ); } <cdfval> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long int ../../src/gcc/cobol/cdf.y:245:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] 245 | %printer { fprintf(yyo, "%ld '%s'", | ^~~~~~~~~~ 246 | $$.number, $$.string? $$.string : "" ); } <cdfval> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long int ../../src/gcc/cobol/cdf.y:245:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] 245 | %printer { fprintf(yyo, "%ld '%s'", | ^~~~~~~~~~ 246 | $$.number, $$.string? $$.string : "" ); } <cdfval> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long int ../../src/gcc/cobol/cdf.y:245:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] 245 | %printer { fprintf(yyo, "%ld '%s'", | ^~~~~~~~~~ 246 | $$.number, $$.string? $$.string : "" ); } <cdfval> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long int ../../src/gcc/cobol/cdf.y:245:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] 245 | %printer { fprintf(yyo, "%ld '%s'", | ^~~~~~~~~~ 246 | $$.number, $$.string? $$.string : "" ); } <cdfval> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long int ../../src/gcc/cobol/cdf.y:245:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] 245 | %printer { fprintf(yyo, "%ld '%s'", | ^~~~~~~~~~ 246 | $$.number, $$.string? $$.string : "" ); } <cdfval> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long int make[5]: *** [Makefile:1215: cobol/cdf.o] Error 1