Russian Qt Forum
Ноябрь 22, 2024, 13:15 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?

Войти
 
  Начало   Форум  WIKI (Вики)FAQ Помощь Поиск Войти Регистрация  

Страниц: [1]   Вниз
  Печать  
Автор Тема: Сборка x86_65-w64-mingw32: ошибки компиляции libstdc++v3  (Прочитано 4577 раз)
ЙадоФитый ПлюсЧ
Новичок

Offline Offline

Сообщений: 40


Просмотр профиля
« : Декабрь 07, 2016, 11:41 »

Добрый день!

Пытаюсь собрать 64-хбитный mingw.
Для этого использую msys64 и x86_64-6.2.0-release-win32-seh-rt_v5-rev1
Исходники:
binutils-2.27
cloog-parma-0.16.1
cloog-ppl-0.15.11
gcc-master
gmp-6.1.1
libiconv-1.14
mingw-w64-v5.0.0
mpc-1.0.3
mpfr-3.1.5
ppl-1.2
zlib-1.2.8
iconv-1.14


Собрал все, что необходимо для сборки GCC
Код
Bash
ZLib
cd $ZLib_Source_with_Patchs:  zlib/01-zlib-1.2.7-1-buildsys.mingw.patch, zlib/02-no-undefined.mingw.patch, zlib/03-dont-put-sodir-into-L.mingw.patch, zlib/04-wrong-w8-check.mingw.patch, zlib/05-fix-a-typo.mingw.patch, zlib/013-fix-largefile-support.patch
./configure --prefix=/d/mbuild/prerequaries/shared &>congfig.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
LibIconv
cd $ZLib_Source_with_Patchs: libiconv/0001-compile-relocatable-in-gnulib.mingw.patch, libiconv/0002-fix-cr-for-awk-in-configure.all.patch
mkdie build && cd build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/prerequaries/shared --enable-shared --disable-static CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include" CPPFLAGS="-s -O2" LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib" &>config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
GMP
cd $GMP_Source
mkdie build && cd build
../configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/requaries/shared --enable-shared --disable-static --enable-cxx CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include" CPPFLAGS='-s -O2 -fexceptions' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
PPL
cd $PPL_Source
mkdie build && cd build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/requaries/shared --enable-shared --disable-static --enable-nls  --enable-threads --disable-debugging --with-gmp=/d/mbuild/requaries/shared --with-cflags='-s -O2' --with-cxxflags='-s -O2' CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
CLOOG-PPL
cd $CLOOG-PPL_Source
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/requaries/shared --enable-shared --disable-static --with-ppl=/d/mbuild/requaries/shared --with-gmp=/d/mbuild/requaries/shared CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
MPFR
cd $MPFR_Source
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/requaries/shared --enable-shared --disable-static --with-gmp=/d/mbuild/requaries/shared CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
MPC
cd $MPC_Source
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/requaries/shared --enable-shared --disable-static --with-gmp=/d/mbuild/requaries/shared --with-mpfr=/d/mbuild/requaries/shared CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
ISL
cd $ISL_Source_with_Patches: isl/isl-0.14.1-no-undefined.patch
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/requaries/shared --enable-shared --disable-static --with-gmp=/d/mbuild/requaries/shared CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
MinGW-W64_headers
cd Path_to/mingw-w64-mingw-w64-v5/mingw-w64-headers
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/runtime/w32api/shared --enable-sdk=all --enable-secure-api CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
MinGW-W64_CRT
cd Path_to/mingw-w64-mingw-w64-v5/mingw-w64-crt
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/runtime/runtime/shared --disable-lib32 --enable-lib64 --enable-wildcard CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
WinPThreads-v5
cd Path_to/mingw-w64-mingw-w64-v5/mingw-w64-libraries/winpthreads
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/runtime/winpthreads/shared --enable-shared --disable-static CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
BinUtils NoMUltilibs
cd BinUtils_Source with patchs: patches/0001-enable-gold-on.mingw32.patch, patches/0002-check-for-unusual-file-harder.patch, patches/0008-fix-libiberty-makefile.mingw.patch, patches/0009-fix-libiberty-configure.mingw.patch, patches/0110-binutils-mingw-gnu-print.patch, patches/9ac47a4.diff, patches/27aaeda.diff, patches/a93d5cb.diff, patches/fixes-a-problem-recognizing-libraries-created-by-VS.patch
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/bin/binutils/shared --with-sysroot=/d/mbuild/runtime/shared --disable-multilib --enable-lto --enable-plugins --enable-gold --enable-install-libiberty --with-libiconv-prefix=/d/mbuild/requaries/shared --enable-shared --disable-static --disable-rpath --enable-nls CFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include -I/d/mbuild/runtime/shared/include" CXXFLAGS="-s -O2 -pipe -I/mingw64/opt/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include -I/d/mbuild/runtime/shared/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/mingw64/opt/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib -L/d/mbuild/runtime/shared/lib" &> config.my.log
mingw32-make.exe -j4 &>make.my.log
mingw32-make.exe install &>install.my.log
 
GCC NoMUltilibs
cd BinUtils_Source with patchs: patches/gcc-4.7-stdthreads.patch, patches/gcc-5.1-iconv.patch, patches/gcc-4.8-libstdc++export.patch, patches/gcc-4.8.2-build-more-gnattools.mingw.patch, patches/gcc-4.8.2-fix-for-windows-not-minding-non-existant-parent-dirs.patch, patches/gcc-4.8.2-windows-lrealpath-no-force-lowercase-nor-backslash.patch, patches/gcc-4.9.1-enable-shared-gnat-implib.mingw.patch, patches/gcc-5.1.0-make-xmmintrin-header-cplusplus-compatible.patch, patches/gcc-5.2-fix-mingw-pch.patch, patches/gcc-5-dwarf-regression.patch, patches/gcc-5.1.0-fix-libatomic-building-for-threads=win32.patch, patches/gcc-6-ktietz-libgomp.patch, patches/gcc-6.1-disable-weak-refs.patch
mkdie build && build
../configure  --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/d/mbuild/release/shared --with-sysroot=/mingw64 --disable-multilib --enable-languages=c,c++,objc,obj-c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=win32 --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts=yes --disable-isl-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/d/mbuild/requaries/shared --with-mpc=/d/mbuild/requaries/shared --with-mpfr=/d/mbuild/requaries/shared --with-ppl=/d/mbuild/requaries/shared --disable-ppl-version-check --with-cloog=/d/mbuild/requaries/shared --disable-cloog-version-check --with-isl=/d/mbuild/requaries/shared --with-pkgversion="x86_64-win32-yamah-rev1, Built by MinGW-W64 project" --with-bugurl=http://sourceforge.net/projects/mingw-w64 --enable-shared --disable-static  --with-dwarf2 --enable-nls CFLAGS="-s -O2 -pipe -I/d/mbuild/runtime/shared/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include -I/mingw64/opt/include" CXXFLAGS="-s -O2 -pipe -I/d/mbuild/runtime/shared/include -I/d/mbuild/prerequaries/shared/include -I/d/mbuild/requaries/shared/include -I/mingw64/opt/include" CPPFLAGS='-s -O2' LDFLAGS="-pipe -L/d/mbuild/runtime/shared/lib -L/d/mbuild/prerequaries/shared/lib -L/d/mbuild/requaries/shared/lib -L/mingw64/opt/lib" &> config.my.log
mingw32-make.exe -j4 BOOT_CFLAGS='-s -O2' BOOT_CPPFLAGS='-s -O2' all-gcc &>make-gcc.my.log
mingw32-make.exe install-gcc &>install-gcc.my.log


Сложил все собранные программы в /d/mbuild/release/shared. Хеадеры W32API и winRT сложил в /d/mbuild/release/shared/x86_64-w64-mingw32/
Однако, сборка всего gcc вылетает с ошибками.
Код
DOS
../../../../../libstdc++-v3/src/filesystem/dir.cc: In function 'std::experimental::filesystem::v1::__cxx11::_Dir {anonymous}::open_dir(const std::experimental::filesystem::v1::__cxx11::path&, std::experimental::filesystem::v1::directory_options, std::error_code*)':
../../../../../libstdc++-v3/src/filesystem/dir.cc:91:40: error: cannot convert '_WDIR*' to 'DIR*' in initialization
    if (DIR* dirp = ::opendir(p.c_str()))
                                       ^
../../../../../libstdc++-v3/src/filesystem/dir.cc: In constructor 'std::experimental::filesystem::v1::__cxx11::recursive_directory_iterator::recursive_directory_iterator(const std::experimental::filesystem::v1::__cxx11::path&, std::experimental::filesystem::v1::directory_options, std::error_code*)':
../../../../../libstdc++-v3/src/filesystem/dir.cc:249:38: error: cannot convert '_WDIR*' to 'DIR*' in initialization
  if (DIR* dirp = ::opendir(p.c_str()))
                                     ^
../../../../../libstdc++-v3/src/filesystem/path.cc: In member function 'std::pair<const std::__cxx11::basic_string<wchar_t>*, long long unsigned int> std::experimental::filesystem::v1::__cxx11::path::_M_find_extension() const':
../../../../../libstdc++-v3/src/filesystem/path.cc:302:10: error: cannot convert 'const string_type* {aka const std::__cxx11::basic_string<wchar_t>*}' to 'const string* {aka const std::__cxx11::basic_string<char>*}' in assignment
    s = &_M_pathname;
         ^~~~~~~~~~~
 
и подобные.
Полный лог сборки GCC в make-all.my.log во вложении.

Как побороть ошибку?

Интуитивно понимаю, что причина в том, что где-то что-то не продефайнено, или не проинклюжено, или конфигуре криво выполнился. Но что делать - не знаю.
                                    
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  


Страница сгенерирована за 0.094 секунд. Запросов: 22.