comp.lang.ada
 help / color / mirror / Atom feed
From: "Alejandro R. Mosteo" <alejandro@mosteo.com>
Subject: Re: gnat via msys2 pacman + xml/ada
Date: Wed, 19 Sep 2018 12:39:44 +0200
Date: 2018-09-19T12:39:44+02:00	[thread overview]
Message-ID: <pnt91g$qdb$1@dont-email.me> (raw)
In-Reply-To: <pnt2f3$b47$1@dont-email.me>

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?
> 
> 


  parent reply	other threads:[~2018-09-19 10:39 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
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 [this message]
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