Oh yeah, another thing I was going to say is that `--prefix=/usr/local` looks very suspect to me. That directory is where all of the msys2 software lives. I assume you're trying to build a MinGW compiler, which itself is a MinGW (native Windows) program.
--David On Tue, Apr 16, 2019 at 9:51 AM David Grayson <[email protected]> wrote: > > That script specifies pkgver=8.3.0, so it builds GCC 8.3.0. > > The script is meant to be run in MSYS2, not Cygwin. You could try > following these instructions to build the GCC package with > makepkg-mingw and see if it works: > > https://github.com/msys2/msys2/wiki/Creating-Packages > > --David > > On Tue, Apr 16, 2019 at 5:43 AM Kacvinsky, Tom <[email protected]> > wrote: > > > > I am looking at this script > > > > https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-gcc/PKGBUILD > > > > It doesn't say which version of gcc this is for as far as I can tell, so > > perhaps it is generic. > > > > What I have found is that some of the patches don't seem to apply to GCC > > 8.3.0, at > > least when I apply them manually. > > > > Also, is this a Cygwin based script, or an msys2 based script? > > > > A reason why I ask is that I can't even get GCC 8.3.0 to build (whether > > with the new CRT, > > or not). IT fails to configure at stage2-bubble with not finding stdarg.h > > and limits.h, etc... > > I looked over the config log and the -I options don't seem correct for > > finding the headers. > > > > How I am configuring > > > > ../gcc-patched/configure --prefix=/usr/local --enable-languages=c,c++,ada > > --disable-multilib --disable-lto --host=x86_64-w64-mingw32 > > --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include > > > > The error in stage2-bubble (for gcc) is this > > > > configure:5153: /home/vapkay/gcc-build/./prev-gcc/xg++ > > -B/home/vapkay/gcc-buil\ > > d/./prev-gcc/ -B/usr/local/x86_64-w64-mingw32/bin/ -nostdinc++ > > -B/home/vapkay/g\ > > cc-build/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs > > -B/home/vapkay/gcc-buil\ > > d/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs > > -I/home/vapkay/gcc-buil\ > > d/prev-x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 > > -I/home/vapk\ > > ay/gcc-build/prev-x86_64-w64-mingw32/libstdc++-v3/include > > -I/home/vapkay/gcc-p\ > > atched/libstdc++-v3/libsupc++ > > -L/home/vapkay/gcc-build/prev-x86_64-w64-mingw32/\ > > libstdc++-v3/src/.libs > > -L/home/vapkay/gcc-build/prev-x86_64-w64-mingw32/libstdc\ > > ++-v3/libsupc++/.libs -E conftest.cpp > > In file included from > > C:/msys64-redux/home/vapkay/gcc-build/prev-gcc/include-fi\ > > xed/syslimits.h:7, > > from > > C:/msys64-redux/home/vapkay/gcc-build/prev-gcc/include-fi\ > > xed/limits.h:34, > > from conftest.cpp:10: > > C:/msys64-redux/home/vapkay/gcc-build/prev-gcc/include-fixed/limits.h:194:61: > > e\ > > rror: no include path in which to search for limits.h > > > > There is no -I for finding these headers. Those headers exist, but not In > > the location > > the -I options specify. > > > > Any ideas? > > > > Thanks, > > > > Tom > > > > > > _______________________________________________ > > Mingw-w64-public mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
