HI yet again

> -----Original Message-----
> From: Kacvinsky, Tom <tom.kacvin...@vector.com>
> Sent: Wednesday, November 27, 2019 8:59 AM
> To: mingw-w64-public@lists.sourceforge.net
> Subject: Re: [Mingw-w64-public] gnatdll not building
> 
> Hi again,
> 
> > -----Original Message-----
> > From: Kacvinsky, Tom <tom.kacvin...@vector.com>
> > Sent: Wednesday, November 27, 2019 8:56 AM
> > To: mingw-w64-public@lists.sourceforge.net
> > Subject: [Mingw-w64-public] gnatdll not building
> >
> > I am trying to build the custom tool chain that I built in the past
> > such that the Ada tool chain uses UCRT.  I was able to accomplish this
> > with x86_64, but now I am trying my hand at i686.
> >
> > The build script I am using builds the GCC dependencies (gmp, mpfr,
> > mpc) first, builds binutils, builds mingw-w64-headers, then builds the
> compilers.
> > After that, mingw-w64-crt is built with UCRT support, then the GCC
> > runtimes are built with the new UCRT enable MinGW-w64 runtime.
> >
> > Everything builds as it should except for gnatdll.  The odd thing is I
> > do not see a build failure for gnatdll.  IN fact, I don't see anything that 
> > even
> builds gnatdll.
> >
> > Any ideas?  I can pass along the script I am using, which was
> > originally written by Martin for me.
> 
> 
> I thought better of it and decided to preemptively send the script to the 
> list.
> 

I looked through my notes and the last time I built the tool chain (that time,
for x86_64), I had to manually run "make gnattools" in addition to the "make
gnattools-cross".  But this time around "make gnattools" fails with a link 
error.
See attached log file.

I am using the system tool chain when building gnattools, so I don't understand
why the libraries and object files cannot be found.

$ pwd
/c/code/gcc-9.2.0/build/gnattools

vapkay@vapkay5117nbj MINGW32 /c/code/gcc-9.2.0/build/gnattools
$ which gcc
/mingw32/bin/gcc

vapkay@vapkay5117nbj MINGW32 /c/code/gcc-9.2.0/build/gnattools
$ gcc --version
gcc.exe (Rev2, Built by MSYS2 project) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


vapkay@vapkay5117nbj MINGW32 /c/code/gcc-9.2.0/build/gnattools
$ make gnattools
# gnattools1
make -C ../gcc/ada/tools -f ../Makefile \
  "CC=../../xgcc -B../../" "CXX=../../xg++ -B../../ 
-B../../../i686-w64-mingw32/libstdc++-v3/src/.libs 
-B../../../i686-w64-mingw32/libstdc++-v3/libsupc++/.libs 
-L../../../i686-w64-mingw32/libstdc++-v3/src/.libs 
-L../../../i686-w64-mingw32/libstdc++-v3/libsupc++/.libs" "CFLAGS=-g -W -Wall" 
"LDFLAGS=" "ADAFLAGS=-gnatpg -gnata" "ADA_CFLAGS=" "INCLUDES=-iquote . -iquote 
.. -iquote ../.. -iquote /c/code/gcc-9.2.0/gcc/ada -iquote 
/c/code/gcc-9.2.0/gcc/config -iquote /c/code/gcc-9.2.0/gcc 
-I/c/code/gcc-9.2.0/include" "ADA_INCLUDES=-I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada" "exeext=.exe" "fsrcdir=/c/code/gcc-9.2.0/gcc" 
"srcdir=/c/code/gcc-9.2.0/gcc" "GNATMAKE=../../gnatmake" 
"GNATLINK=../../gnatlink" "GNATBIND=../../gnatbind" "TOOLSCASE=native" \
  ../../gnatmake.exe ../../gnatlink.exe
make[1]: Entering directory '/c/code/gcc-9.2.0/build/gcc/ada/tools'
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -g \
  -fno-inline -fno-toplevel-reorder -O1 -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada \
  ../rts/a-except.adb -o a-except.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/s-casuti.adb -o s-casuti.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/interfac.ads -o interfac.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/i-c.adb -o i-c.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/i-cstrin.adb -o i-cstrin.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/s-exctab.adb -o s-exctab.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/s-secsta.adb -o s-secsta.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/s-stalib.adb -o s-stalib.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/s-stoele.adb -o s-stoele.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/s-purexc.ads -o s-purexc.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/s-htable.adb -o s-htable.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada /c/code/gcc-9.2.0/gcc/ada/scil_ll.adb -o scil_ll.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada ../rts/system.ads -o system.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada /c/code/gcc-9.2.0/gcc/ada/validsw.adb -o validsw.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada /c/code/gcc-9.2.0/gcc/ada/mdll.adb -o mdll.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada /c/code/gcc-9.2.0/gcc/ada/mdll-utl.adb -o mdll-utl.o
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada /c/code/gcc-9.2.0/gcc/ada/mdll-fil.adb -o mdll-fil.o
../../gnatbind -I- -I../rts -I. -I/c/code/gcc-9.2.0/gcc/ada -o b_gnatm.adb 
gnatmake.ali
../../xgcc -B../../ -c -g -W -Wall  -gnatpg -gnata -I- -I../rts -I. 
-I/c/code/gcc-9.2.0/gcc/ada -gnatws -gnatyN \
    b_gnatm.adb -o b_gnatm.o
../../xg++ -B../../ -B../../../i686-w64-mingw32/libstdc++-v3/src/.libs 
-B../../../i686-w64-mingw32/libstdc++-v3/libsupc++/.libs 
-L../../../i686-w64-mingw32/libstdc++-v3/src/.libs 
-L../../../i686-w64-mingw32/libstdc++-v3/libsupc++/.libs -static-libstdc++ 
-static-libgcc  -DIN_GCC  -g -W -Wall -o ../../gnatmake.exe b_gnatm.o 
a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o atree.o binderr.o 
butil.o casing.o csets.o debug.o elists.o einfo.o errout.o erroutc.o errutil.o 
err_vars.o fmap.o fname.o fname-uf.o fname-sf.o gnatmake.o gnatvsn.o hostparm.o 
interfac.o i-c.o i-cstrin.o krunch.o lib.o make.o makeusg.o make_util.o namet.o 
nlists.o opt.o osint.o osint-m.o output.o restrict.o rident.o s-exctab.o 
s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o 
s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o snames.o 
stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o 
table.o targparm.o tempdir.o tree_io.o types.o uintp.o uname.o urealp.o usage.o 
widechar.o mdll.o mdll-utl.o mdll-fil.o ../link.o ../targext.o ../../ggc-none.o 
../../libcommon-target.a ../../libcommon.a ../../../libcpp/libcpp.a 
../rts/libgnat.a -lintl -liconv ../../../libbacktrace/.libs/libbacktrace.a 
../../../libiberty/libiberty.a   -no-pie
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
crt2.o: No such file or directory
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lintl
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-liconv
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmingw32
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmoldname
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmingwex
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmsvcrt
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-ladvapi32
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lshell32
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-luser32
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lkernel32
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmingw32
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmoldname
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmingwex
C:\code\mingw-w64-gcc-9.2.0-i686-ucrt\i686-w64-mingw32\bin\ld.exe: cannot find 
-lmsvcrt
collect2.exe: error: ld returned 1 exit status
make[1]: *** [../gcc-interface/Makefile:491: ../../gnatmake.exe] Error 1
make[1]: Leaving directory '/c/code/gcc-9.2.0/build/gcc/ada/tools'
make: *** [Makefile:195: gnattools-native] Error 2
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to