Код: Выделить всё
../path/to/binutils-configure --prefix= --with-sysroot= --enable-year2038 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --enable-stage1-checking=all
make && make install
Код: Выделить всё
../path/to/mingw-headers-configure --prefix=/x86_64-w64-mingw32 --with-default-msvcrt=msvcrt --enable-sdk=none --host=x86_64-w64-mingw32
make && make install
Код: Выделить всё
../path/to/gcc-configure --prefix= --with-sysroot= --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --enable-64bit --enable-year2038 --enable-version-specific-runtime-libs --enable-static --disable-shared --with-dwarf --enable-libgomp --enable-libssp --disable-multilib --enable-__cxa_atexit --enable-threads=posix --enable-mingw-wildcard --disable-win32-registry --enable-fast-install=no --enable-ld=yes --enable-plugin --enable-stage1-checking=all
make all-gcc && make install-gcc
Код: Выделить всё
../path/to/mingw-crt-configure --prefix= --enable-lib64 --disable-lib32 --host=x86_64-w64-mingw32 --with-default-msvcrt=msvcrt
make && make install
cd to-gcc-build-folder
make
Код: Выделить всё
cc1plus.exe: warning: "-Werror=" argument "-nostdinc++" is not valid for C++
cc1plus.exe: warning: "-Werror=" argument "-std=gnu++98" is not valid for C++
cc1plus.exe: warning: "-Werror=" argument "-fno-implicit-templates" is not valid for C++
// and also some warnings from preprocessor:
warning: option '-Wc++11-extensions' is valid for but not for C++ [-Wpragmas]
40 | #pragma GCC diagnostic ignored "-Wc++11-extensions"
// ..and a lot more of these...
Я пытался выполнить поиск в Интернете, но, видимо, никто еще не сталкивался с такой проблемой. В чем может быть причина этого и как это исправить?
Я пытаюсь собрать MinGW с GCC в Windows 10 с процессором x86_64.
Подробнее здесь: https://stackoverflow.com/questions/798 ... uild-error
Мобильная версия