comp.lang.ada
 help / color / mirror / Atom feed
From: alby.gamper@gmail.com
Subject: Re: gnat via msys2 pacman + xml/ada
Date: Wed, 19 Sep 2018 02:56:53 -0700 (PDT)
Date: 2018-09-19T02:56:53-07:00	[thread overview]
Message-ID: <7d702172-407e-4bc4-865e-214807540692@googlegroups.com> (raw)
In-Reply-To: <pnt2f3$b47$1@dont-email.me>

On Wednesday, September 19, 2018 at 6:47:33 PM UTC+10, björn lundin wrote:
> 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

Hi Björn

The most recent version of xmlada can be found at 
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

  reply	other threads:[~2018-09-19  9:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-19  8:47 gnat via msys2 pacman + xml/ada Björn Lundin
2018-09-19  9:56 ` alby.gamper [this message]
2018-09-19 13:06   ` Björn Lundin
2018-09-20  6:49     ` briot.emmanuel
2018-09-20  7:35       ` Björn Lundin
2018-09-19 10:39 ` Alejandro R. Mosteo
2018-09-19 13:08   ` Björn Lundin
2018-09-19 14:54 ` Simon Wright
2018-09-20  2:44   ` Jere
2018-09-20  7:51   ` Björn Lundin
2018-09-20  9:17     ` Simon Wright
2018-09-20  9:27       ` Björn Lundin
2018-09-20 10:06         ` Simon Wright
2018-09-20 10:51           ` Björn Lundin
2018-09-20 16:01             ` Simon Wright
2018-09-21 12:04               ` Björn Lundin
2018-09-24 10:46 ` Maxim Reznik
2018-09-24 10:51   ` Björn Lundin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox