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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: gnat via msys2 pacman + xml/ada Date: Wed, 19 Sep 2018 12:39:44 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 19 Sep 2018 10:39:45 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="a100511954e92c9a69f8634f8b22dd91"; logging-data="27051"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190JKKro2gtB/+lCCyFKkwu" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:1H3CQqyvBhGXflPFqD7iN/BmV7c= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:54366 Date: 2018-09-19T12:39:44+02:00 List-Id: On 19/09/18 10:47, Björn Lundin wrote: > Hi! > Is anyone using (recently) the win-64 bit compiler found in msys2 for > windows ? I very recently (like a month a go) tried it for the first time. It compiled a hello world without issue. I also got a bunch of unresolved symbols at first but it was my fault because I had profiling ("-p") enabled by mistake. I didn't try anything serious though. > > > 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? > >