Dear developers,

(This issue is originally reported at <https://github.com/Alexpux/MINGW-packages/pull/3877#issuecomment-393931161>.)

On mingw-w64, bootstrapping GCC 8 with Ada enabled results in the following error after stage 3:

```
GNATLINK 8.1.1 20180602
Copyright (C) 1995-2018, Free Software Foundation, Inc.
xgcc -c -gnatA -gnatWb -gnatiw -B../../ -I- -I../rts -I. -I/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/gcc/gcc/ada -gnatws E:\GitHub\MINGW-packages\mingw-w64
-gcc-git\src\build-x86_64-w64-mingw32\gcc\ada\tools\b~gnatdll.adb
checking for fptrap.h... E:/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/gcc/xg++.exe b~gnatdll.o ../link.o ../targext.o ../../ggc-none. o ../rts\ada.o ../rts\a-charac.o ../rts\a-chlat1.o ../rts\gnat.o ../rts\interfac.o ../rts\system.o ../rts\s-addope.o ../rts\s-atocou.o ../rts\s-casuti.o ../rts\ s-imgboo.o ../rts\s-imgint.o ../rts\s-io.o ../rts\s-parame.o ../rts\s-crtl.o ../rts\i-cstrea.o ../rts\s-stoele.o ../rts\s-stache.o ../rts\s-strhas.o ../rts\s-ht able.o ../rts\g-htable.o ../rts\s-string.o ../rts\g-string.o ../rts\s-traent.o ../rts\s-unstyp.o ../rts\s-imguns.o ../rts\s-wchcon.o ../rts\s-wchjis.o ../rts\s- wchcnv.o ../rts\s-carun8.o ../rts\s-conca2.o ../rts\s-traceb.o ../rts\a-exctra.o ../rts\s-exctab.o ../rts\a-ioexce.o ../rts\a-string.o ../rts\a-contai.o ../rts\ s-except.o ../rts\s-soliin.o ../rts\s-soflin.o ../rts\s-secsta.o ../rts\s-excdeb.o ../rts\s-exctra.o ../rts\s-memory.o ../rts\s-wchstw.o ../rts\s-valuti.o ../rt s\s-valllu.o ../rts\s-vallli.o ../rts\s-win32.o ../rts\s-mmosin.o ../rts\s-mmap.o ../rts\s-os_lib.o ../rts\s-bitops.o ../rts\a-stmaco.o ../rts\a-chahan.o ../rts \s-excmac.o ../rts\a-elchha.o ../rts\s-addima.o ../rts\s-boustr.o ../rts\s-stalib.o ../rts\s-dwalin.o ../rts\i-c.o ../rts\a-strmap.o ../rts\s-trasym.o ../rts\a- except.o ../rts\s-objrea.o ../rts\a-comlin.o ../rts\a-strsea.o ../rts\a-strfix.o ../rts\a-tags.o ../rts\a-stream.o ../rts\g-os_lib.o ../rts\s-ficobl.o ../rts\s- finroo.o ../rts\a-finali.o ../rts\s-fileio.o ../rts\s-stopoo.o ../rts\s-finmas.o ../rts\s-stposu.o ../rts\s-spsufi.o ../rts\s-stratt.o ../rts\a-strunb.o ../rts\ s-valuns.o ../rts\s-valint.o ../rts\a-textio.o ../rts\g-dirope.o ../rts\s-assert.o ../rts\s-pooglo.o ../rts\s-regexp.o ../rts\g-regexp.o ../rts\g-comlin.o .\deb ug.o .\types.o .\alloc.o .\gnatvsn.o .\hostparm.o .\output.o .\rident.o .\tree_io.o .\opt.o .\csets.o .\table.o .\widechar.o .\namet.o .\fmap.o .\targparm.o .\o sint.o .\sdefault.o .\mdll-fil.o .\mdll-utl.o .\mdll.o .\switch.o .\gnatdll.o ../../libcommon-target.a ../../libcommon.a ../../../libcpp/libcpp.a ../rts/libgnat .a C:/MinGW/MSYS2/mingw64/lib/libiconv.a ../../../libbacktrace/.libs/libbacktrace.a ../../../libiberty/libiberty.a -no-pie -o ../../gnatdll.exe -L../rts\ -L.\ - LE:/GitHub/MINGW-packages/mingw-w64-gcc-git/src/gcc/gcc/ada\ -L/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.1/adalib/ E:\GitHub\MINGW-packages\mingw-w64-gcc-git\src\ build-x86_64-w64-mingw32\gcc\ada\rts\libgnat.a -Wl,--stack=0x2000000 -B/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/./gcc/ -nostdinc+ + -nostdinc++ -I/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 -I/e/GitHub/M INGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/include -I/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/gcc/libstd c++-v3/libsupc++ -I/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/gcc/libstdc++-v3/include/backward -I/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/gcc/libstdc ++-v3/testsuite/util -L/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/src -L/e/GitHub/MINGW-packages/mi ngw-w64-gcc-git/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32 /x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -B/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/src/. libs -B/e/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -is ystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include -static-libstdc++ -static-libgcc -static-libstdc++ -static-libgcc xg++.exe: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found
compilation terminated.
gnatlink: error when calling E:/GitHub/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/gcc/xg++.exe
make[3]: *** [../gcc-interface/Makefile:2238: ../../gnatdll.exe] Error 4
make[3]: *** Waiting for unfinished jobs....
```

It was configured with:
```
$ ../gcc/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion=Rev1, Built by MSYS2 project --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
```

Any ideas about how to resolve this?



--
Best regards,
LH_Mouse

Reply via email to