It seems that C Xrefactory won't compile using MYS2/MinGW-64 under Windows 10 x64.
Windows 10 x64 | MSYS2 > MinGW64
sh ./CreateXrefDistribution
P.K.Dick@RANXEROX MINGW64 /d/GitHub/Xref/c-xrefactory
$ sh ./CreateXrefDistribution
make -C ../byacc-1.9
make[1]: ingresso nella directory "/d/GitHub/Xref/c-xrefactory/byacc-1.9"
cc -O -DNDEBUG -std=c89 -c -o closure.o closure.c
In file included from defs.h:4,
from closure.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o error.o error.c
In file included from defs.h:4,
from error.c:3:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o lalr.o lalr.c
In file included from defs.h:4,
from lalr.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o lr0.o lr0.c
In file included from defs.h:4,
from lr0.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o main.o main.c
In file included from defs.h:4,
from main.c:3:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o mkpar.o mkpar.c
In file included from defs.h:4,
from mkpar.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o output.o output.c
In file included from defs.h:4,
from output.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o reader.o reader.c
In file included from defs.h:4,
from reader.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o skeleton.o skeleton.c
In file included from defs.h:4,
from skeleton.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o symtab.o symtab.c
In file included from defs.h:4,
from symtab.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o verbose.o verbose.c
In file included from defs.h:4,
from verbose.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
cc -O -DNDEBUG -std=c89 -c -o warshall.o warshall.c
In file included from defs.h:4,
from warshall.c:1:
defs.h:283:12: warning: '_errno' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
283 | extern int errno;
| ^~~~~
Loading yacc ... done
make[1]: uscita dalla directory "/d/GitHub/Xref/c-xrefactory/byacc-1.9"
BOOTSTRAPPING...
make ROOTDIR=.. -f Makefile.bs
make[1]: ingresso nella directory "/d/GitHub/Xref/c-xrefactory/src"
cc -DBOOTSTRAP -o .objects/cgram.o -MMD -c cgram.c
cgram.c:159: warning: "CONST" redefined
159 | #define CONST 295
|
In file included from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from stdinc.h:17,
from proto.h:23,
from cgram.x:12,
from cgram.y:36:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:122: note: this is the location of the previous definition
122 | #define CONST const
|
cgram.c:174: warning: "VOID" redefined
174 | #define VOID 310
|
In file included from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from stdinc.h:17,
from proto.h:23,
from cgram.x:12,
from cgram.y:36:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:284: note: this is the location of the previous definition
284 | #define VOID void
|
cgram.c:204: warning: "INTERFACE" redefined
204 | #define INTERFACE 340
|
In file included from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:108,
from stdinc.h:17,
from proto.h:23,
from cgram.x:12,
from cgram.y:36:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/commdlg.h:587: note: this is the location of the previous definition
587 | #define INTERFACE IPrintDialogServices
|
cgram.c:213: warning: "THIS" redefined
213 | #define THIS 349
|
In file included from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/objbase.h:14,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/ole2.h:17,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/wtypes.h:12,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/winscard.h:10,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:97,
from stdinc.h:17,
from proto.h:23,
from cgram.x:12,
from cgram.y:36:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/combaseapi.h:106: note: this is the location of the previous definition
106 | #define THIS INTERFACE *This
|
cgram.c:227: warning: "DELETE" redefined
227 | #define DELETE 363
|
In file included from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,
from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from stdinc.h:17,
from proto.h:23,
from cgram.x:12,
from cgram.y:36:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:2878: note: this is the location of the previous definition
2878 | #define DELETE (__MSABI_LONG(0x00010000))
|
cc -DBOOTSTRAP -o .objects/main.o -MMD -c main.c
In file included from unigram.h:24,
from main.c:20:
cgram.h:84: warning: "INTERFACE" redefined
84 | #define INTERFACE 340
|
In file included from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:108,
from stdinc.h:17,
from proto.h:23,
from main.h:4,
from main.c:1:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/commdlg.h:587: note: this is the location of the previous definition
587 | #define INTERFACE IPrintDialogServices
|
cc -DBOOTSTRAP -o .objects/globals.o -MMD -c globals.c
In file included from unigram.h:24,
from globals.c:6:
cgram.h:84: warning: "INTERFACE" redefined
84 | #define INTERFACE 340
|
In file included from C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:108,
from stdinc.h:17,
from proto.h:23,
from globals.h:5,
from globals.c:1:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/commdlg.h:587: note: this is the location of the previous definition
587 | #define INTERFACE IPrintDialogServices
|
cc -DBOOTSTRAP -o .objects/misc.o -MMD -c misc.c
misc.c: In function 'concatFNameInTmpMemory':
misc.c:1504:13: error: 's' undeclared (first use in this function)
1504 | for(s=tt+1; *s; s++) if (*s=='/') *s=SLASH;
| ^
misc.c:1504:13: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [Makefile.bs:15: .objects/misc.o] Error 1
make[1]: uscita dalla directory "/d/GitHub/Xref/c-xrefactory/src"
make: *** [Makefile.common:80: c-xref.bs] Error 2
cp: impossibile eseguire stat di 'src/c-xref': No such file or directory
cp: impossibile eseguire stat di 'emacs/c-xrefactory.el'$'\r': No such file or directory
cp: impossibile eseguire stat di 'emacs/c-xref.el'$'\r': No such file or directory
cp: impossibile eseguire stat di 'emacs/c-xrefprotocol.el'$'\r': No such file or directory
P.K.Dick@RANXEROX MINGW64 /d/GitHub/Xref/c-xrefactory
$ make
make -C src
BOOTSTRAPPING...
make ROOTDIR=.. -f Makefile.bs
make[2]: ".objects/main.o" è aggiornato.
/bin/sh: ./c-xref.bs: No such file or directory
make[1]: *** [Makefile.common:104: strFill.g.h] Error 127
make: *** [Makefile:6: all] Error 2
P.K.Dick@RANXEROX MINGW64 /d/GitHub/Xref/c-xrefactory/src
$ make
BOOTSTRAPPING...
make ROOTDIR=.. -f Makefile.bs
make[1]: ingresso nella directory "/d/GitHub/Xref/c-xrefactory/src"
make[1]: ".objects/main.o" è aggiornato.
make[1]: uscita dalla directory "/d/GitHub/Xref/c-xrefactory/src"
/bin/sh: ./c-xref.bs: No such file or directory
make: *** [Makefile.common:104: strFill.g.h] Error 127