From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:e14a:: with SMTP id n71-v6mr18020594ith.55.1537351013976; Wed, 19 Sep 2018 02:56:53 -0700 (PDT) X-Received: by 2002:a9d:5c02:: with SMTP id o2-v6mr276155otk.7.1537351013691; Wed, 19 Sep 2018 02:56:53 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder3.usenet.farm!feed.usenet.farm!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!x188-v6no79200ite.0!news-out.google.com!c63-v6ni104ith.0!nntp.google.com!x81-v6no80061ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 19 Sep 2018 02:56:53 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=101.164.108.182; posting-account=wavAeAoAAAAZF_sXSZepBukuPCBO0Zqt NNTP-Posting-Host: 101.164.108.182 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7d702172-407e-4bc4-865e-214807540692@googlegroups.com> Subject: Re: gnat via msys2 pacman + xml/ada From: alby.gamper@gmail.com Injection-Date: Wed, 19 Sep 2018 09:56:53 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54365 Date: 2018-09-19T02:56:53-07:00 List-Id: On Wednesday, September 19, 2018 at 6:47:33 PM UTC+10, bj=C3=B6rn lundin wr= ote: > Hi! > Is anyone using (recently) the win-64 bit compiler found in msys2 for > windows ? >=20 >=20 > I found a post here some time ago with instructions, but: >=20 > pacman -S mingw-w64-x86_64-gcc-ada > runs fine - installs the compiler >=20 > pacman -S mingw-w64-x86_64-gprbuild-gpl > pacman -S mingw-w64-x86_64-aws > pacman -S mingw-w64-x86_64-asis >=20 > does not. They do not exist anymore. >=20 > I did find another gprbuild > mingw-w64-x86_64-gprbuild-bootstrap-git > which works ok to install. > Looking for xml/ada - I came up short. >=20 > so downloading from web I get 4.6.1 > Compiling it goes well, but linking - not so much >=20 > $ mingw32-make all install > gprbuild -j0 -m -p -XLIBRARY_TYPE=3Dstatic -XBUILD=3DProduction > -XPROCESSORS=3D0 xmlada.gpr > gprbuild -j0 -m -p -XLIBRARY_TYPE=3Drelocatable -XBUILD=3DProduction > -XPROCESSORS=3D0 xmlada.gpr > Build Libraries > [gprlib] xmlada_unicode.lexch > [link library] libxmlada_unicode.dll > d:/apps/tools/mingw2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../.= ./../../x86_64-w64-mingw32/bin/ld.exe: > D:\apps\tools\MinGW2\xmlada_tmp\tags\xmlada-4.6.1\unicode\obj\relocatable= \unicode-ccs-iso_8859_1.o:unicode-ccs-iso_8859_1.adb:(.text+0x54): > undefined reference to `system__img_uns__set_image_unsigned' > d:/apps/tools/mingw2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../.= ./../../x86_64-w64-mingw32/bin/ld.exe: > D:\apps\tools\MinGW2\xmlada_tmp\tags\xmlada-4.6.1\unicode\obj\relocatable= \unicode-ccs-iso_8859_1.o:unicode-ccs-iso_8859_1.adb:(.text+0xd8): > undefined reference to `__gnat_raise_exception' >=20 > ca 200 more lines of unresolved symbols >=20 > d:/apps/tools/mingw2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../.= ./../../x86_64-w64-mingw32/bin/ld.exe: > D:\apps\tools\MinGW2\xmlada_tmp\tags\xmlada-4.6.1\unicode\obj\relocatable= \unicode.o:unicode.adb:(.text+0x1c5): > undefined reference to `__gnat_rcheck_CE_Range_Check' > collect2.exe: error: ld returned 1 exit status > gprlib: d:\apps\tools\mingw2\mingw64\bin\gcc execution error > gprbuild: could not build library for project xmlada_unicode > mingw32-make: *** [Makefile:55: relocatable] Error 4 >=20 >=20 >=20 > I even tried to add > for Switches ("Ada") use ("-L" & "mingw64/bin", "-lgnat"); > in share.gpr - but same result - lots of unresolved symbols. >=20 >=20 > It looks like it cannot find the gnat runtime libs. > Anyone seen this before? And have an idea of how to proceed? >=20 >=20 > --=20 > -- > Bj=C3=B6rn Hi Bj=C3=B6rn The most recent version of xmlada can be found at=20 https://github.com/AdaCore/xmlada (same for gprbuild) I've found these to build/work on msys2, and as you have already mentioned/noticed, you need to bootstrap gprbuild first, and have the xmlada sources available The build instructions are self explanatory, and from memory you need to specify the xmlada source directory when building/installing gprbuild (bootstrap) After which you need to go back and build xmlada with gprbuild Alex