public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile
@ 2021-12-05 3:30 brocolis at eml dot cc
2021-12-06 2:12 ` [Bug libfortran/103560] " brocolis at eml dot cc
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: brocolis at eml dot cc @ 2021-12-05 3:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
Bug ID: 103560
Summary: Error: GFC_INTEGER_4 should be available for the
library to compile
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
Assignee: unassigned at gcc dot gnu.org
Reporter: brocolis at eml dot cc
Target Milestone: ---
gcc-git master commit 8d4ef2299cbf9517877dab60d48f34835758a6ee
and snapshot https://gcc.gnu.org/pub/gcc/snapshots/12-20211128/ fail to build
on Windows/mingw.
This version https://gcc.gnu.org/pub/gcc/snapshots/12-20210905/ builds using
the same build command.
Build command:
../gcc-git/configure --enable-languages=c,c++,fortran
--build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32 --enable-shared --disable-multilib
--disable-bootstrap --prefix=/build/mingw/dest-x86_64
--with-sysroot=/build/mingw/dest-x86_64 --disable-libstdcxx-pch
--disable-libstdcxx-verbose --disable-nls --disable-win32-registry
--enable-threads=posix --enable-libgomp --with-gmp=/build/mingw/gmp-x86_64
--with-mpfr=/build/mingw/mpfr-x86_64 --with-mpc=/build/mingw/mpc-x86_64
--with-isl=/build/mingw/isl-x86_64
make
Messages:
make[3]: Entering directory
'/build/mingw/build-gcc/x86_64-w64-mingw32/libgfortran'
/bin/sh ./libtool --tag=CC --mode=compile /build/mingw/build-gcc/./gcc/xgcc
-B/build/mingw/build-gcc/./gcc/
-L/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib
-L/build/mingw/dest-x86_64/mingw/lib -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
/build/mingw/dest-x86_64/mingw/include
-B/build/mingw/dest-x86_64/x86_64-w64-mingw32/bin/
-B/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib/ -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-git/libgfortran -iquote../../../gcc-git/libgfortran/io
-I../../../gcc-git/libgfortran/../gcc
-I../../../gcc-git/libgfortran/../gcc/config
-I../../../gcc-git/libgfortran/../libquadmath -I../.././gcc
-I../../../gcc-git/libgfortran/../libgcc -I../libgcc
-I../../../gcc-git/libgfortran/../libbacktrace -I../libbacktrace
-I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -g -O2 -MT bounds.lo -MD -MP -MF
.deps/bounds.Tpo -c -o bounds.lo `test -f 'runtime/bounds.c' || echo
'../../../gcc-git/libgfortran/'`runtime/bounds.c
libtool: compile: /build/mingw/build-gcc/./gcc/xgcc
-B/build/mingw/build-gcc/./gcc/
-L/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib
-L/build/mingw/dest-x86_64/mingw/lib -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
/build/mingw/dest-x86_64/mingw/include
-B/build/mingw/dest-x86_64/x86_64-w64-mingw32/bin/
-B/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib/ -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-git/libgfortran -iquote../../../gcc-git/libgfortran/io
-I../../../gcc-git/libgfortran/../gcc
-I../../../gcc-git/libgfortran/../gcc/config
-I../../../gcc-git/libgfortran/../libquadmath -I../.././gcc
-I../../../gcc-git/libgfortran/../libgcc -I../libgcc
-I../../../gcc-git/libgfortran/../libbacktrace -I../libbacktrace
-I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -g -O2 -MT bounds.lo -MD -MP -MF
.deps/bounds.Tpo -c ../../../gcc-git/libgfortran/runtime/bounds.c -DDLL_EXPORT
-DPIC -o .libs/bounds.o
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:252:2: error: #error "GFC_INTEGER_4
should be available for the library to compile".
252 | #error "GFC_INTEGER_4 should be available for the library to compile".
| ^~~~~
../../../gcc-git/libgfortran/libgfortran.h:267:9: error: unknown type name
'GFC_UINTEGER_4'
267 | typedef GFC_UINTEGER_4 gfc_char4_t;
| ^~~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:358:31: error: unknown type name
'GFC_INTEGER_1'
358 | typedef GFC_ARRAY_DESCRIPTOR (GFC_INTEGER_1) gfc_array_i1;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:359:31: error: unknown type name
'GFC_INTEGER_2'
359 | typedef GFC_ARRAY_DESCRIPTOR (GFC_INTEGER_2) gfc_array_i2;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:360:31: error: unknown type name
'GFC_INTEGER_4'
360 | typedef GFC_ARRAY_DESCRIPTOR (GFC_INTEGER_4) gfc_array_i4;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:361:31: error: unknown type name
'GFC_INTEGER_8'
361 | typedef GFC_ARRAY_DESCRIPTOR (GFC_INTEGER_8) gfc_array_i8;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:366:31: error: unknown type name
'GFC_REAL_4'
366 | typedef GFC_ARRAY_DESCRIPTOR (GFC_REAL_4) gfc_array_r4;
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:367:31: error: unknown type name
'GFC_REAL_8'
367 | typedef GFC_ARRAY_DESCRIPTOR (GFC_REAL_8) gfc_array_r8;
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:374:31: error: unknown type name
'GFC_COMPLEX_4'
374 | typedef GFC_ARRAY_DESCRIPTOR (GFC_COMPLEX_4) gfc_array_c4;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:375:31: error: unknown type name
'GFC_COMPLEX_8'
375 | typedef GFC_ARRAY_DESCRIPTOR (GFC_COMPLEX_8) gfc_array_c8;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:382:31: error: unknown type name
'GFC_LOGICAL_1'
382 | typedef GFC_ARRAY_DESCRIPTOR (GFC_LOGICAL_1) gfc_array_l1;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:383:31: error: unknown type name
'GFC_LOGICAL_2'
383 | typedef GFC_ARRAY_DESCRIPTOR (GFC_LOGICAL_2) gfc_array_l2;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:384:31: error: unknown type name
'GFC_LOGICAL_4'
384 | typedef GFC_ARRAY_DESCRIPTOR (GFC_LOGICAL_4) gfc_array_l4;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:385:31: error: unknown type name
'GFC_LOGICAL_8'
385 | typedef GFC_ARRAY_DESCRIPTOR (GFC_LOGICAL_8) gfc_array_l8;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:390:31: error: unknown type name
'GFC_UINTEGER_1'
390 | typedef GFC_ARRAY_DESCRIPTOR (GFC_UINTEGER_1) gfc_array_s1;
| ^~~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:391:31: error: unknown type name
'GFC_UINTEGER_4'
391 | typedef GFC_ARRAY_DESCRIPTOR (GFC_UINTEGER_4) gfc_array_s4;
| ^~~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:348:3: note: in definition of macro
'GFC_ARRAY_DESCRIPTOR'
348 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:405:56: error: unknown type name
'GFC_INTEGER_4'
405 | typedef GFC_FULL_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_INTEGER_4)
gfc_full_array_i4;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:398:3: note: in definition of macro
'GFC_FULL_ARRAY_DESCRIPTOR'
398 | type *base_addr;\
| ^~~~
../../../gcc-git/libgfortran/libgfortran.h:615:3: error: unknown type name
'GFC_INTEGER_4'
615 | GFC_INTEGER_4 flags;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:616:3: error: unknown type name
'GFC_INTEGER_4'
616 | GFC_INTEGER_4 unit;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:618:3: error: unknown type name
'GFC_INTEGER_4'
618 | GFC_INTEGER_4 line;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:620:3: error: unknown type name
'GFC_INTEGER_4'
620 | GFC_INTEGER_4 *iostat;
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:726:51: error: expected ')' before
'char'
726 | extern const char *gfc_xtoa (GFC_UINTEGER_LARGEST, char *, size_t);
| ^~~~~
| )
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:727:16: error: 'gfc_xtoa' undeclared
here (not in a function)
727 | internal_proto(gfc_xtoa);
| ^~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:154:52: note: in definition of macro
'sym_rename2'
154 | #define sym_rename2(old, ulp, new) extern __typeof(old) old
__asm__(#ulp #new)
| ^~~
../../../gcc-git/libgfortran/libgfortran.h:152:30: note: in expansion of macro
'sym_rename1'
152 | #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__,
new)
| ^~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:195:33: note: in expansion of macro
'sym_rename'
195 | # define internal_proto(x) sym_rename(x, IPREFIX(x))
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:727:1: note: in expansion of macro
'internal_proto'
727 | internal_proto(gfc_xtoa);
| ^~~~~~~~~~~~~~
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:884:49: error: expected ')' before
'char'
884 | extern const char *gfc_itoa(GFC_INTEGER_LARGEST, char *, size_t);
| ^~~~~
| )
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:885:16: error: 'gfc_itoa' undeclared
here (not in a function); did you mean 'gfc_xtoa'?
885 | internal_proto(gfc_itoa);
| ^~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:154:52: note: in definition of macro
'sym_rename2'
154 | #define sym_rename2(old, ulp, new) extern __typeof(old) old
__asm__(#ulp #new)
| ^~~
../../../gcc-git/libgfortran/libgfortran.h:152:30: note: in expansion of macro
'sym_rename1'
152 | #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__,
new)
| ^~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:195:33: note: in expansion of macro
'sym_rename'
195 | # define internal_proto(x) sym_rename(x, IPREFIX(x))
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:885:1: note: in expansion of macro
'internal_proto'
885 | internal_proto(gfc_itoa);
| ^~~~~~~~~~~~~~
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:920:1: error: unknown type name
'GFC_INTEGER_1'; did you mean 'GFC_INTEGER_1_HUGE'?
920 | GFC_INTEGER_1 *internal_pack_1 (gfc_array_i1 *);
| ^~~~~~~~~~~~~
| GFC_INTEGER_1_HUGE
../../../gcc-git/libgfortran/libgfortran.h:923:1: error: unknown type name
'GFC_INTEGER_2'; did you mean 'GFC_INTEGER_2_HUGE'?
923 | GFC_INTEGER_2 *internal_pack_2 (gfc_array_i2 *);
| ^~~~~~~~~~~~~
| GFC_INTEGER_2_HUGE
../../../gcc-git/libgfortran/libgfortran.h:926:1: error: unknown type name
'GFC_INTEGER_4'; did you mean 'GFC_INTEGER_4_HUGE'?
926 | GFC_INTEGER_4 *internal_pack_4 (gfc_array_i4 *);
| ^~~~~~~~~~~~~
| GFC_INTEGER_4_HUGE
../../../gcc-git/libgfortran/libgfortran.h:929:1: error: unknown type name
'GFC_INTEGER_8'; did you mean 'GFC_INTEGER_8_HUGE'?
929 | GFC_INTEGER_8 *internal_pack_8 (gfc_array_i8 *);
| ^~~~~~~~~~~~~
| GFC_INTEGER_8_HUGE
../../../gcc-git/libgfortran/libgfortran.h:937:1: error: unknown type name
'GFC_REAL_4'
937 | GFC_REAL_4 *internal_pack_r4 (gfc_array_r4 *);
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:940:1: error: unknown type name
'GFC_REAL_8'
940 | GFC_REAL_8 *internal_pack_r8 (gfc_array_r8 *);
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:953:1: error: unknown type name
'GFC_COMPLEX_4'
953 | GFC_COMPLEX_4 *internal_pack_c4 (gfc_array_c4 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:956:1: error: unknown type name
'GFC_COMPLEX_8'
956 | GFC_COMPLEX_8 *internal_pack_c8 (gfc_array_c8 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:969:54: error: unknown type name
'GFC_INTEGER_1'
969 | extern void internal_unpack_1 (gfc_array_i1 *, const GFC_INTEGER_1 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:972:54: error: unknown type name
'GFC_INTEGER_2'
972 | extern void internal_unpack_2 (gfc_array_i2 *, const GFC_INTEGER_2 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:975:54: error: unknown type name
'GFC_INTEGER_4'
975 | extern void internal_unpack_4 (gfc_array_i4 *, const GFC_INTEGER_4 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:978:54: error: unknown type name
'GFC_INTEGER_8'
978 | extern void internal_unpack_8 (gfc_array_i8 *, const GFC_INTEGER_8 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:986:55: error: unknown type name
'GFC_REAL_4'
986 | extern void internal_unpack_r4 (gfc_array_r4 *, const GFC_REAL_4 *);
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:989:55: error: unknown type name
'GFC_REAL_8'
989 | extern void internal_unpack_r8 (gfc_array_r8 *, const GFC_REAL_8 *);
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1002:55: error: unknown type name
'GFC_COMPLEX_4'
1002 | extern void internal_unpack_c4 (gfc_array_c4 *, const GFC_COMPLEX_4 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1005:55: error: unknown type name
'GFC_COMPLEX_8'
1005 | extern void internal_unpack_c8 (gfc_array_c8 *, const GFC_COMPLEX_8 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1085:53: error: unknown type name
'GFC_INTEGER_1'
1085 | const gfc_array_l1 *, const GFC_INTEGER_1 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1089:53: error: unknown type name
'GFC_INTEGER_2'
1089 | const gfc_array_l1 *, const GFC_INTEGER_2 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1093:53: error: unknown type name
'GFC_INTEGER_4'
1093 | const gfc_array_l1 *, const GFC_INTEGER_4 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1097:53: error: unknown type name
'GFC_INTEGER_8'
1097 | const gfc_array_l1 *, const GFC_INTEGER_8 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1109:53: error: unknown type name
'GFC_REAL_4'
1109 | const gfc_array_l1 *, const GFC_REAL_4 *);
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1113:53: error: unknown type name
'GFC_REAL_8'
1113 | const gfc_array_l1 *, const GFC_REAL_8 *);
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1133:53: error: unknown type name
'GFC_COMPLEX_4'
1133 | const gfc_array_l1 *, const GFC_COMPLEX_4 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1137:53: error: unknown type name
'GFC_COMPLEX_8'
1137 | const gfc_array_l1 *, const GFC_COMPLEX_8 *);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1287:53: error: unknown type name
'GFC_INTEGER_1'
1287 | extern void spread_scalar_i1 (gfc_array_i1 *, const GFC_INTEGER_1 *,
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1291:53: error: unknown type name
'GFC_INTEGER_2'
1291 | extern void spread_scalar_i2 (gfc_array_i2 *, const GFC_INTEGER_2 *,
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1295:53: error: unknown type name
'GFC_INTEGER_4'
1295 | extern void spread_scalar_i4 (gfc_array_i4 *, const GFC_INTEGER_4 *,
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1299:53: error: unknown type name
'GFC_INTEGER_8'
1299 | extern void spread_scalar_i8 (gfc_array_i8 *, const GFC_INTEGER_8 *,
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1310:53: error: unknown type name
'GFC_REAL_4'
1310 | extern void spread_scalar_r4 (gfc_array_r4 *, const GFC_REAL_4 *,
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1314:53: error: unknown type name
'GFC_REAL_8'
1314 | extern void spread_scalar_r8 (gfc_array_r8 *, const GFC_REAL_8 *,
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1332:53: error: unknown type name
'GFC_COMPLEX_4'
1332 | extern void spread_scalar_c4 (gfc_array_c4 *, const GFC_COMPLEX_4 *,
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1336:53: error: unknown type name
'GFC_COMPLEX_8'
1336 | extern void spread_scalar_c8 (gfc_array_c8 *, const GFC_COMPLEX_8 *,
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1370:29: error: unknown type name
'GFC_INTEGER_4'; did you mean 'GFC_INTEGER_4_HUGE'?
1370 | extern void random_seed_i4 (GFC_INTEGER_4 * size, gfc_array_i4 * put,
| ^~~~~~~~~~~~~
| GFC_INTEGER_4_HUGE
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:1372:15: error: 'random_seed_i4'
undeclared here (not in a function)
1372 | iexport_proto(random_seed_i4);
| ^~~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:154:52: note: in definition of macro
'sym_rename2'
154 | #define sym_rename2(old, ulp, new) extern __typeof(old) old
__asm__(#ulp #new)
| ^~~
../../../gcc-git/libgfortran/libgfortran.h:152:30: note: in expansion of macro
'sym_rename1'
152 | #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__,
new)
| ^~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:207:33: note: in expansion of macro
'sym_rename'
207 | # define export_proto(x) sym_rename(x, PREFIX(x))
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:209:33: note: in expansion of macro
'export_proto'
209 | # define iexport_proto(x) export_proto(x)
| ^~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1372:1: note: in expansion of macro
'iexport_proto'
1372 | iexport_proto(random_seed_i4);
| ^~~~~~~~~~~~~
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:1373:29: error: unknown type name
'GFC_INTEGER_8'; did you mean 'GFC_INTEGER_8_HUGE'?
1373 | extern void random_seed_i8 (GFC_INTEGER_8 * size, gfc_array_i8 * put,
| ^~~~~~~~~~~~~
| GFC_INTEGER_8_HUGE
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:1375:15: error: 'random_seed_i8'
undeclared here (not in a function); did you mean 'random_seed_i4'?
1375 | iexport_proto(random_seed_i8);
| ^~~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:154:52: note: in definition of macro
'sym_rename2'
154 | #define sym_rename2(old, ulp, new) extern __typeof(old) old
__asm__(#ulp #new)
| ^~~
../../../gcc-git/libgfortran/libgfortran.h:152:30: note: in expansion of macro
'sym_rename1'
152 | #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__,
new)
| ^~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:207:33: note: in expansion of macro
'sym_rename'
207 | # define export_proto(x) sym_rename(x, PREFIX(x))
| ^~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:209:33: note: in expansion of macro
'export_proto'
209 | # define iexport_proto(x) export_proto(x)
| ^~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:1375:1: note: in expansion of macro
'iexport_proto'
1375 | iexport_proto(random_seed_i8);
| ^~~~~~~~~~~~~
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:1386:8: error: unknown type name
'GFC_LOGICAL_4'
1386 | extern GFC_LOGICAL_4 is_contiguous0 (const array_t * const restrict
array);
| ^~~~~~~~~~~~~
../../../gcc-git/libgfortran/runtime/bounds.c: In function 'count_0':
../../../gcc-git/libgfortran/runtime/bounds.c:204:9: error: unknown type name
'GFC_LOGICAL_1'
204 | const GFC_LOGICAL_1 * restrict base;
| ^~~~~~~~~~~~~
In file included from ../../../gcc-git/libgfortran/runtime/bounds.c:25:
../../../gcc-git/libgfortran/libgfortran.h:274:68: error: 'GFC_LOGICAL_1'
undeclared (first use in this function); did you mean 'BT_LOGICAL'?
274 | ((__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ? 1: 0) * (kind - 1) +
(GFC_LOGICAL_1 *)(p))
|
^~~~~~~~~~~~~
../../../gcc-git/libgfortran/runtime/bounds.c:226:16: note: in expansion of
macro 'GFOR_POINTER_TO_L1'
226 | base = GFOR_POINTER_TO_L1 (base, kind);
| ^~~~~~~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:274:68: note: each undeclared
identifier is reported only once for each function it appears in
274 | ((__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ? 1: 0) * (kind - 1) +
(GFC_LOGICAL_1 *)(p))
|
^~~~~~~~~~~~~
../../../gcc-git/libgfortran/runtime/bounds.c:226:16: note: in expansion of
macro 'GFOR_POINTER_TO_L1'
226 | base = GFOR_POINTER_TO_L1 (base, kind);
| ^~~~~~~~~~~~~~~~~~
../../../gcc-git/libgfortran/libgfortran.h:274:83: error: expected expression
before ')' token
274 | ((__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ? 1: 0) * (kind - 1) +
(GFC_LOGICAL_1 *)(p))
|
^
../../../gcc-git/libgfortran/runtime/bounds.c:226:16: note: in expansion of
macro 'GFOR_POINTER_TO_L1'
226 | base = GFOR_POINTER_TO_L1 (base, kind);
| ^~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:2744: bounds.lo] Error 1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/103560] Error: GFC_INTEGER_4 should be available for the library to compile
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
@ 2021-12-06 2:12 ` brocolis at eml dot cc
2021-12-07 9:58 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: brocolis at eml dot cc @ 2021-12-06 2:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
--- Comment #1 from brocolis at eml dot cc ---
Actually the first error message is
make[2]: Entering directory
'/build/mingw/build-gcc-git/x86_64-w64-mingw32/libgfortran'
/bin/sh ../../../gcc-git/libgfortran/mk-kinds-h.sh '1 2 4 8 16' '4 8 10 16'
'/build/mingw/build-gcc-git/./gcc/gfortran -B/build/mingw/build-gcc-git/./gcc/
-L/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib
-L/build/mingw/dest-x86_64/mingw/lib -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
/build/mingw/dest-x86_64/mingw/include
-B/build/mingw/dest-x86_64/x86_64-w64-mingw32/bin/
-B/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib/ -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
/build/mingw/dest-x86_64/x86_64-w64-mingw32/sys-include -I . -Wall -Werror
-fimplicit-none -fno-repack-arrays -fno-underscoring -g -O2' > kinds.h || rm
kinds.h
f951.exe: Error: Nonexistent include directory './'
[-Werror=missing-include-dirs]
f951.exe: all warnings being treated as errors
Tested git-master commit b880d1514c1e3dd75a6ea311a5cc956742bd713c on
Windows/mingw/msys2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/103560] Error: GFC_INTEGER_4 should be available for the library to compile
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
2021-12-06 2:12 ` [Bug libfortran/103560] " brocolis at eml dot cc
@ 2021-12-07 9:58 ` pinskia at gcc dot gnu.org
2021-12-07 9:59 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-07 9:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Last reconfirmed| |2021-12-07
Target| |x86_64-w64-mingw32
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you provide the config.log that is in the
/build/mingw/build-gcc/x86_64-w64-mingw32/libgfortran directory?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/103560] Error: GFC_INTEGER_4 should be available for the library to compile
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
2021-12-06 2:12 ` [Bug libfortran/103560] " brocolis at eml dot cc
2021-12-07 9:58 ` pinskia at gcc dot gnu.org
@ 2021-12-07 9:59 ` pinskia at gcc dot gnu.org
2021-12-07 10:01 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-07 9:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to brocolis from comment #1)
> make[2]: Entering directory
> '/build/mingw/build-gcc-git/x86_64-w64-mingw32/libgfortran'
> /bin/sh ../../../gcc-git/libgfortran/mk-kinds-h.sh '1 2 4 8 16' '4 8 10 16'
> '/build/mingw/build-gcc-git/./gcc/gfortran
> -B/build/mingw/build-gcc-git/./gcc/
> -L/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib
> -L/build/mingw/dest-x86_64/mingw/lib -isystem
> /build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
> /build/mingw/dest-x86_64/mingw/include
> -B/build/mingw/dest-x86_64/x86_64-w64-mingw32/bin/
> -B/build/mingw/dest-x86_64/x86_64-w64-mingw32/lib/ -isystem
> /build/mingw/dest-x86_64/x86_64-w64-mingw32/include -isystem
> /build/mingw/dest-x86_64/x86_64-w64-mingw32/sys-include -I . -Wall
> -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring -g -O2' >
> kinds.h || rm kinds.h
> f951.exe: Error: Nonexistent include directory './'
> [-Werror=missing-include-dirs]
> f951.exe: all warnings being treated as errors
Oh wait that is the issue.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/103560] Error: GFC_INTEGER_4 should be available for the library to compile
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
` (2 preceding siblings ...)
2021-12-07 9:59 ` pinskia at gcc dot gnu.org
@ 2021-12-07 10:01 ` pinskia at gcc dot gnu.org
2021-12-07 10:06 ` [Bug fortran/103560] [12 Regression] " pinskia at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-07 10:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> f951.exe: Error: Nonexistent include directory './'
Hmm, that seems wrong. the directory ./ definitely exists as it is the current
working directory.
Are you building on a mounted drive or a local disk?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/103560] [12 Regression] Error: GFC_INTEGER_4 should be available for the library to compile
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
` (3 preceding siblings ...)
2021-12-07 10:01 ` pinskia at gcc dot gnu.org
@ 2021-12-07 10:06 ` pinskia at gcc dot gnu.org
2021-12-09 2:52 ` brocolis at eml dot cc
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-07 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libfortran |fortran
Target Milestone|--- |12.0
Status|WAITING |NEW
Summary|Error: GFC_INTEGER_4 should |[12 Regression] Error:
|be available for the |GFC_INTEGER_4 should be
|library to compile |available for the library
| |to compile
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh it looks like mingw's stat might not work on "./" named directories.
This was introduced via r12-3825-g83aac698835e most likely.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/103560] [12 Regression] Error: GFC_INTEGER_4 should be available for the library to compile
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
` (4 preceding siblings ...)
2021-12-07 10:06 ` [Bug fortran/103560] [12 Regression] " pinskia at gcc dot gnu.org
@ 2021-12-09 2:52 ` brocolis at eml dot cc
2022-03-23 9:10 ` [Bug fortran/103560] [12 Regression] Error: Nonexistent include directory './', stat on mingw does not work with "./" rguenth at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: brocolis at eml dot cc @ 2021-12-09 2:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
--- Comment #6 from brocolis at eml dot cc ---
(In reply to Andrew Pinski from comment #4)
> > f951.exe: Error: Nonexistent include directory './'
>
> Hmm, that seems wrong. the directory ./ definitely exists as it is the
> current working directory.
>
> Are you building on a mounted drive or a local disk?
I'm building on a local disk.
This patch works for me on Windows/mingw - applied on top of git-master commit
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=641ff2196fe3909bba852a5ac1d55e7cdab6d361
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index 7b98ba539d6..a4a21082366 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -1095,8 +1095,9 @@ gzopen_included_file_1 (const char *name,
gfc_directorylist *list,
if (module && !p->use_for_modules)
continue;
- fullname = (char *) alloca(strlen (p->path) + strlen (name) + 1);
+ fullname = (char *) alloca(strlen (p->path) + strlen (name) + 2);
strcpy (fullname, p->path);
+ strcat (fullname, "/");
strcat (fullname, name);
f = gzopen (fullname, "r");
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index 4d72ff78543..f1a6cd9ad21 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -409,9 +409,8 @@ add_path_to_list (gfc_directorylist **list, const char
*path,
*list = dir;
dir->use_for_modules = use_for_modules;
dir->warn = warn;
- dir->path = XCNEWVEC (char, strlen (p) + 2);
+ dir->path = XCNEWVEC (char, strlen (p) + 1);
strcpy (dir->path, p);
- strcat (dir->path, "/"); /* make '/' last character */
}
/* defer_warn is set to true while parsing the commandline. */
@@ -476,8 +475,9 @@ open_included_file (const char *name, gfc_directorylist
*list,
if (module && !p->use_for_modules)
continue;
- fullname = (char *) alloca(strlen (p->path) + strlen (name) + 1);
+ fullname = (char *) alloca(strlen (p->path) + strlen (name) + 2);
strcpy (fullname, p->path);
+ strcat (fullname, "/");
strcat (fullname, name);
f = gfc_open_file (fullname);
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/103560] [12 Regression] Error: Nonexistent include directory './', stat on mingw does not work with "./"
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
` (5 preceding siblings ...)
2021-12-09 2:52 ` brocolis at eml dot cc
@ 2022-03-23 9:10 ` rguenth at gcc dot gnu.org
2022-03-23 15:56 ` cvs-commit at gcc dot gnu.org
2022-03-23 15:57 ` burnus at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-23 9:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Tobias, can you please have a look and maybe pick up the patch? Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/103560] [12 Regression] Error: Nonexistent include directory './', stat on mingw does not work with "./"
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
` (6 preceding siblings ...)
2022-03-23 9:10 ` [Bug fortran/103560] [12 Regression] Error: Nonexistent include directory './', stat on mingw does not work with "./" rguenth at gcc dot gnu.org
@ 2022-03-23 15:56 ` cvs-commit at gcc dot gnu.org
2022-03-23 15:57 ` burnus at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-23 15:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:
https://gcc.gnu.org/g:5e33fea21957c97d63e3738be6056ae2a94e3284
commit r12-7787-g5e33fea21957c97d63e3738be6056ae2a94e3284
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Wed Mar 23 16:54:12 2022 +0100
Fortran: Fix directory stat check for '.' [PR103560]
MinGW does not like a call to 'stat' for './' via gfc_do_check_include_dir.
Solution: Only append '/' when concatenating the path with the filename.
gcc/fortran/ChangeLog:
PR fortran/103560
* scanner.cc (add_path_to_list): Don't append '/' to the
save include path.
(open_included_file): Use '/' in concatenating path + file name.
* module.cc (gzopen_included_file_1): Likewise.
gcc/testsuite/ChangeLog:
PR fortran/103560
* gfortran.dg/include_14.f90: Update dg-warning.
* gfortran.dg/include_17.f90: Likewise.
* gfortran.dg/include_18.f90: Likewise.
* gfortran.dg/include_6.f90: Update dg-*.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/103560] [12 Regression] Error: Nonexistent include directory './', stat on mingw does not work with "./"
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
` (7 preceding siblings ...)
2022-03-23 15:56 ` cvs-commit at gcc dot gnu.org
@ 2022-03-23 15:57 ` burnus at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-03-23 15:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103560
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED on mainline (GCC 12).
Thanks for the report and draft patch - and sorry for the belated fix.
Thanks Richi for pinging.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-03-23 15:57 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-05 3:30 [Bug libfortran/103560] New: Error: GFC_INTEGER_4 should be available for the library to compile brocolis at eml dot cc
2021-12-06 2:12 ` [Bug libfortran/103560] " brocolis at eml dot cc
2021-12-07 9:58 ` pinskia at gcc dot gnu.org
2021-12-07 9:59 ` pinskia at gcc dot gnu.org
2021-12-07 10:01 ` pinskia at gcc dot gnu.org
2021-12-07 10:06 ` [Bug fortran/103560] [12 Regression] " pinskia at gcc dot gnu.org
2021-12-09 2:52 ` brocolis at eml dot cc
2022-03-23 9:10 ` [Bug fortran/103560] [12 Regression] Error: Nonexistent include directory './', stat on mingw does not work with "./" rguenth at gcc dot gnu.org
2022-03-23 15:56 ` cvs-commit at gcc dot gnu.org
2022-03-23 15:57 ` burnus at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).