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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: gnat via msys2 pacman + xml/ada Date: Wed, 19 Sep 2018 10:47:30 +0200 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 19 Sep 2018 08:47:31 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="ed743b6ee3f0b8ea2a4612f16ec0e91e"; logging-data="11399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19P+RxoMpnLsxSjWtTNxCkQ" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cancel-Lock: sha1:TZ3phb1+MoUH9BwJoOlzdEWnXno= Content-Language: en-US X-Mozilla-News-Host: news://news.eternal-september.org:119 Xref: reader02.eternal-september.org comp.lang.ada:54364 Date: 2018-09-19T10:47:30+02:00 List-Id: Hi! Is anyone using (recently) the win-64 bit compiler found in msys2 for windows ? I found a post here some time ago with instructions, but: pacman -S mingw-w64-x86_64-gcc-ada runs fine - installs the compiler pacman -S mingw-w64-x86_64-gprbuild-gpl pacman -S mingw-w64-x86_64-aws pacman -S mingw-w64-x86_64-asis does not. They do not exist anymore. 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. so downloading from web I get 4.6.1 Compiling it goes well, but linking - not so much $ mingw32-make all install gprbuild -j0 -m -p -XLIBRARY_TYPE=static -XBUILD=Production -XPROCESSORS=0 xmlada.gpr gprbuild -j0 -m -p -XLIBRARY_TYPE=relocatable -XBUILD=Production -XPROCESSORS=0 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' ca 200 more lines of unresolved symbols 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 I even tried to add for Switches ("Ada") use ("-L" & "mingw64/bin", "-lgnat"); in share.gpr - but same result - lots of unresolved symbols. It looks like it cannot find the gnat runtime libs. Anyone seen this before? And have an idea of how to proceed? -- -- Björn