On 2017/4/7 0:58, Edward Diener wrote: > When trying to compile a project in MSYS2 using mingw-64/gcc I get this > error: >(... abridgement ...) > __pch.h:1:70: fatal error: > /e/Programming/VersionControl/mcfgthread/src/env/_crtdef.h: No such file > or directory > #include "/e/Programming/VersionControl/mcfgthread/src/env/_crtdef.h"^ > > compilation terminated. > make: *** [Makefile:1143: __pch.h.gch] Error 1" Yes it was my oversight. My `build_*_*.sh` scripts run `make` inside subdirectories, hence `${srcdir}` yields relative paths such as `../src/env/_crtdef.h`. In the case of absolute paths, `make` from MSYS2 recognizes and generates POSIX paths that `gcc` doesn't accept.
There are two solutions: Use `cygpath` to translate the path as David Grayson mentioned in an earlier mail, or disable PCH completely by deleting `BUILT_SOURCES` from `Makefile.am`. Either is viable. I may fix this problem in one or two hours. Thanks for reporting. -- Best regards, LH_Mouse ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users