Trouble building GCC on MinGW/MSYS2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I would like to contribute to improving symlink support on
libstdc++ on Windows, but I am having trouble building GCC in the
MSYS2 environment. I configured using the following command which is
mostly the same as the output from gcc -v:

../gcc/configure
--prefix=/home/wooda/Programming/filesystem/gcc/gcc-pristine/gcc-pristine-install
--with-local-prefix=/ucrt64/local
--with-native-system-header-dir=/ucrt64/include
--libexecdir=/ucrt64/lib --enable-checking=release --enable-bootstrap
--with-tune=generic --enable-mingw-wildcard
--enable-languages=c,lto,c++ --enable-shared --enable-static
--enable-libatomic --enable-threads=posix --enable-graphite
--enable-libstdcxx-backtrace=yes --enable-libstdcxx-filesystem-ts
--enable-libstdcxx-time --disable-libstdcxx-pch --enable-lto
--enable-libgomp --disable-libssp --disable-multilib --disable-rpath
--disable-win32-registry --disable-nls --disable-symvers
--with-libiconv --with-system-zlib --with-gmp=/ucrt64
--with-mpfr=/ucrt64 --with-mpc=/ucrt64 --with-isl=/ucrt64
--with-gnu-as --with-gnu-ld --enable-libstdcxx-debug
--with-boot-ldflags=-static-libstdc++
--with-stage1-ldflags=-static-libstdc++

The make fails with this message:

C:/msys64/home/wooda/Programming/filesystem/gcc-pristine/gcc-pristine-build/gcc/include/stddef.h:1:15:
fatal error: stddef.h: No such file or directory
    1 | #include_next <stddef.h>
      |               ^~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:512: _cmpdi2.o] Error 1
make[3]: Leaving directory
'/home/wooda/Programming/filesystem/gcc-pristine/gcc-pristine-build/x86_64-w64-mingw32/libgcc'
make[2]: *** [Makefile:18845: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory
'/home/wooda/Programming/filesystem/gcc-pristine/gcc-pristine-build'
make[1]: *** [Makefile:23378: stage1-bubble] Error 2
make[1]: Leaving directory
'/home/wooda/Programming/filesystem/gcc-pristine/gcc-pristine-build'
make: *** [Makefile:1116: all] Error 2

The stddef.h header definitely exists in /ucrt64/include, so I am not
sure what the issue is. Would someone please help me?

Thanks,
Adam Wood



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux