comp.lang.ada
 help / color / mirror / Atom feed
* gnat via msys2 pacman + xml/ada
@ 2018-09-19  8:47 Björn Lundin
  2018-09-19  9:56 ` alby.gamper
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Björn Lundin @ 2018-09-19  8:47 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  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-19 10:39 ` Alejandro R. Mosteo
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 18+ messages in thread
From: alby.gamper @ 2018-09-19  9:56 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-19  8:47 gnat via msys2 pacman + xml/ada Björn Lundin
  2018-09-19  9:56 ` alby.gamper
@ 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-24 10:46 ` Maxim Reznik
  3 siblings, 1 reply; 18+ messages in thread
From: Alejandro R. Mosteo @ 2018-09-19 10:39 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-19  9:56 ` alby.gamper
@ 2018-09-19 13:06   ` Björn Lundin
  2018-09-20  6:49     ` briot.emmanuel
  0 siblings, 1 reply; 18+ messages in thread
From: Björn Lundin @ 2018-09-19 13:06 UTC (permalink / raw)


On 2018-09-19 11:56, alby.gamper@gmail.com wrote:
> Hi Björn
> 
> The most recent version of xmlada can be found at 
> https://github.com/AdaCore/xmlada (same for gprbuild)

Yes, I got the whole tree.
I get the same result for 4.6.1 as for 18.2 - lots of unresolved symbols.


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

Hmm, yes - do you have anything more detailed ?
I don't quite follow this boostrap thing.
Does gprbuild depend on xmlada?

looking in the branches/gprbuild-1.6 directory it is still xmlada
$ ./configure --help
`configure' configures XML/Ada 4.2w to adapt to many kinds of systems.


> The build instructions are self explanatory, 
hmm, I have to disagree...


> and from
> memory you need to specify the xmlada source directory
> when building/installing gprbuild (bootstrap)

are you talking about the gprbuild in https://github.com/AdaCore/xmlada ?

> After which you need to go back and build xmlada with gprbuild

It seems that I'm on the wrong rack. No matter what I do I get
unresolved symbols.

The gprbuild from pacman is 18.0w.
The one from github is within the 18.2 tree
but the gprbuild --version shows 18.1

Neither works now to build xmlada 18.2


sattmate@caleb MINGW64 /xmlada_tmp/branches/18.2
$ ./configure --prefix=/ada/xml/18.2
configure: loading site script /mingw64/etc/config.site
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking target system type... x86_64-w64-mingw32
checking whether gnat can build shared libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... no, using cp -pR
configure: creating ./config.status
config.status: creating shared.gpr
config.status: creating Makefile
config.status: creating tests/dom/default.gpr

ok good

sattmate@caleb MINGW64 /xmlada_tmp/branches/18.2
$ mingw32-make all install
gprbuild -j0 -m  -p -XLIBRARY_TYPE=static -XBUILD=Production
-XPROCESSORS=0 xmlada.gpr
No valid configuration found
Generation of configuration files failed
GNAT-TEMP-000001.TMP:1:01: "project" expected
gprbuild: processing of configuration project
"C:\tmp\GNAT-TEMP-000001.TMP" failed
mingw32-make: *** [Makefile:61: static] Error 4


sattmate@caleb MINGW64 /xmlada_tmp/branches/18.2
$ gprbuild --version
GPRBUILD Pro 18.1 (19940713) (x86_64-w64-mingw32)




-- 
--
Björn

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-19 10:39 ` Alejandro R. Mosteo
@ 2018-09-19 13:08   ` Björn Lundin
  0 siblings, 0 replies; 18+ messages in thread
From: Björn Lundin @ 2018-09-19 13:08 UTC (permalink / raw)


On 2018-09-19 12:39, Alejandro R. Mosteo wrote:
> 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.


Did you try compiling xmlada or AWS?

-- 
--
Björn


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-19  8:47 gnat via msys2 pacman + xml/ada Björn Lundin
  2018-09-19  9:56 ` alby.gamper
  2018-09-19 10:39 ` Alejandro R. Mosteo
@ 2018-09-19 14:54 ` Simon Wright
  2018-09-20  2:44   ` Jere
  2018-09-20  7:51   ` Björn Lundin
  2018-09-24 10:46 ` Maxim Reznik
  3 siblings, 2 replies; 18+ messages in thread
From: Simon Wright @ 2018-09-19 14:54 UTC (permalink / raw)


Björn Lundin <b.f.lundin@gmail.com> writes:

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

etc - I've no idea how to go about fixing this Windows/mingw problem,
other than to try to sidestep it by not trying to build the shared
(relocatable) library (try configuring with --disable-shared).

You shouldn't need to rebuild gprbuild, not sure why anyone's suggesting
it.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-19 14:54 ` Simon Wright
@ 2018-09-20  2:44   ` Jere
  2018-09-20  7:51   ` Björn Lundin
  1 sibling, 0 replies; 18+ messages in thread
From: Jere @ 2018-09-20  2:44 UTC (permalink / raw)


On Wednesday, September 19, 2018 at 10:54:41 AM UTC-4, Simon Wright wrote:
> 
> You shouldn't need to rebuild gprbuild, not sure why anyone's suggesting
> it.

In my past experience, there were no versions of gprbuild 
already built for 64bit msys2.  So I too tried to build it myself
with no luck.  I ended up installing a 32bit version which 
did not work at all until I called gprconfig using the --target=xxxxx
option and had it create an auto.cgpr file for me.  I then renamed it
to default.cgpr and put it in the default share location for 
gprbuild (got it from the adacore manual) and then gprbuild would work.

Nowadays I suppose you could install gnat community to get the 64bit
version of gprbuild, install the FSF gnat as well, then make sure
both are in your path but the FSF path is earlier.  This picks up
your FSF gnat (since its path is before gnat community's) but 
also gprbuild.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-19 13:06   ` Björn Lundin
@ 2018-09-20  6:49     ` briot.emmanuel
  2018-09-20  7:35       ` Björn Lundin
  0 siblings, 1 reply; 18+ messages in thread
From: briot.emmanuel @ 2018-09-20  6:49 UTC (permalink / raw)


> GNAT-TEMP-000001.TMP:1:01: "project" expected
> gprbuild: processing of configuration project
> "C:\tmp\GNAT-TEMP-000001.TMP" failed
> mingw32-make: *** [Makefile:61: static] Error 4


Does C:\tmp exist on your system ? I think on Windows you need to setup some environment variable to point to a proper tmp directory.
I haven't used Windows in years so I can't be more helpful, sorry...


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-20  6:49     ` briot.emmanuel
@ 2018-09-20  7:35       ` Björn Lundin
  0 siblings, 0 replies; 18+ messages in thread
From: Björn Lundin @ 2018-09-20  7:35 UTC (permalink / raw)


On 2018-09-20 08:49, briot.emmanuel@gmail.com wrote:
>> GNAT-TEMP-000001.TMP:1:01: "project" expected
>> gprbuild: processing of configuration project
>> "C:\tmp\GNAT-TEMP-000001.TMP" failed
>> mingw32-make: *** [Makefile:61: static] Error 4
> 
> 

Hi Emmanuel

> Does C:\tmp exist on your system ? I think on Windows you need to setup some environment variable to point to a proper tmp directory.
> I haven't used Windows in years so I can't be more helpful, sorry...
> 

Yes it does

> dir c:\tmp
 Volume in drive C has no label.
 Volume Serial Number is 1602-8731

 Directory of c:\tmp

2018-09-19  15:01    <DIR>          .
2018-09-19  15:01    <DIR>          ..

env vars:
sattmate@caleb MINGW64 /xmlada_tmp/branches/18.2
$ env | grep TMP
TMP=/tmp
TMPDIR=c:/tmp
ORIGINAL_TMP=/c/Users/sattmate/AppData/Local/Temp/2


also /tmp exists


Hmm - I'll try Simon's suggestion now

-- 
--
Björn


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  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
  1 sibling, 1 reply; 18+ messages in thread
From: Björn Lundin @ 2018-09-20  7:51 UTC (permalink / raw)


On 2018-09-19 16:54, Simon Wright wrote:
> Björn Lundin <b.f.lundin@gmail.com> writes:
> 
>> 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'
> 
> etc - I've no idea how to go about fixing this Windows/mingw problem,
> other than to try to sidestep it by not trying to build the shared
> (relocatable) library (try configuring with --disable-shared).
> 

Ok - I got a little bit further - I disabled shared as you suggested.
However that got me the same result.
But - I did the ./configure from a bash/mingw prompt.
It failed when make was executed in bash/mingw.
But when I started an ordinary cmd.exe prompt I get


d:\apps\tools\MinGW2\xmlada_tmp\branches\18.2
>  mingw32-make all install
gprbuild -j0 -m  -p -XLIBRARY_TYPE=static -XBUILD=Production
-XPROCESSORS=0 xmlada.gpr
gprinstall --uninstall -XBUILD=Production -XPROCESSORS=0
--prefix=/ada/xml/18.2 \
        --project-subdir=lib/gnat xmlada
Uninstall project xmlada
gprinstall -f -p -XLIBRARY_TYPE=static -XBUILD=Production -XPROCESSORS=0 \
        --prefix=/ada/xml/18.2 --project-subdir=lib/gnat \
        --build-var=XMLADA_BUILD --build-name=static \
        --install-name=xmlada xmlada.gpr
Install project XmlAda_Schema - static
Install project XmlAda_Dom - static
Install project XmlAda_Sax - static
Install project XmlAda_Unicode - static
Install project XmlAda_Input - static
warning: path does not exist
'd:\apps\tools\mingw2\xmlada_tmp\branches\18.2\input_sources\../docs/_build/html/'
warning: path does not exist
'd:\apps\tools\mingw2\xmlada_tmp\branches\18.2\input_sources\../docs/_build/latex/'

d:\apps\tools\MinGW2\xmlada_tmp\branches\18.2


> You shouldn't need to rebuild gprbuild, not sure why anyone's suggesting
> it.

This is with gprbuild from pacman - the 18.0 one
setting path to the 18.2 one makes it worse.


So - it looks better - but still no libraries insatlled.
I'll keep digging for a while.



-- 
--
Björn


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-20  7:51   ` Björn Lundin
@ 2018-09-20  9:17     ` Simon Wright
  2018-09-20  9:27       ` Björn Lundin
  0 siblings, 1 reply; 18+ messages in thread
From: Simon Wright @ 2018-09-20  9:17 UTC (permalink / raw)


Björn Lundin <b.f.lundin@gmail.com> writes:

> gprinstall -f -p -XLIBRARY_TYPE=static -XBUILD=Production -XPROCESSORS=0 \
>         --prefix=/ada/xml/18.2 --project-subdir=lib/gnat \
>         --build-var=XMLADA_BUILD --build-name=static \
>         --install-name=xmlada xmlada.gpr
> Install project XmlAda_Schema - static
> Install project XmlAda_Dom - static
> Install project XmlAda_Sax - static
> Install project XmlAda_Unicode - static
> Install project XmlAda_Input - static
> warning: path does not exist
> 'd:\apps\tools\mingw2\xmlada_tmp\branches\18.2\input_sources\../docs/_build/html/'
> warning: path does not exist
> 'd:\apps\tools\mingw2\xmlada_tmp\branches\18.2\input_sources\../docs/_build/latex/'

I get that too: it "just" means that the documentation isn't installed,
probably because I don't have the necessary tool chain for building html
from $documentation_source_files.

You should have the static libraries and the project GPR installed
properly.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-20  9:17     ` Simon Wright
@ 2018-09-20  9:27       ` Björn Lundin
  2018-09-20 10:06         ` Simon Wright
  0 siblings, 1 reply; 18+ messages in thread
From: Björn Lundin @ 2018-09-20  9:27 UTC (permalink / raw)


On 2018-09-20 11:17, Simon Wright wrote:
> Björn Lundin <b.f.lundin@gmail.com> writes:
> 
>> gprinstall -f -p -XLIBRARY_TYPE=static -XBUILD=Production -XPROCESSORS=0 \
>>         --prefix=/ada/xml/18.2 --project-subdir=lib/gnat \
>>         --build-var=XMLADA_BUILD --build-name=static \
>>         --install-name=xmlada xmlada.gpr
>> Install project XmlAda_Schema - static
>> Install project XmlAda_Dom - static
>> Install project XmlAda_Sax - static
>> Install project XmlAda_Unicode - static
>> Install project XmlAda_Input - static
>> warning: path does not exist
>> 'd:\apps\tools\mingw2\xmlada_tmp\branches\18.2\input_sources\../docs/_build/html/'
>> warning: path does not exist
>> 'd:\apps\tools\mingw2\xmlada_tmp\branches\18.2\input_sources\../docs/_build/latex/'
> 
> I get that too: it "just" means that the documentation isn't installed,
> probably because I don't have the necessary tool chain for building html
> from $documentation_source_files.
> 
> You should have the static libraries and the project GPR installed
> properly.
> 

Yes, I should.
But they are to be found nowhere.
I would expect them in /ada/xml/18.2 as the prefix says - but no.
Nothing. So I created the missing _build/html and _build/latex and put
XMLAda.pdf there. But no go. I got rid of the warnings - but nothing
created. And I see that it compiles and creates the static libs. But it
does not install them.
So - I gave up (temporarily) I took all the sources and put them into a
directory and pointed _my_ .gpr file to that directory. It works - but
is a crude cludge.

I am now on to install AWS too. I think that will be easier -
if I can convince AWS that I do have XMLAda 'installed'...




-- 
--
Björn


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-20  9:27       ` Björn Lundin
@ 2018-09-20 10:06         ` Simon Wright
  2018-09-20 10:51           ` Björn Lundin
  0 siblings, 1 reply; 18+ messages in thread
From: Simon Wright @ 2018-09-20 10:06 UTC (permalink / raw)


Björn Lundin <b.f.lundin@gmail.com> writes:

> On 2018-09-20 11:17, Simon Wright wrote:

>> You should have the static libraries and the project GPR installed
>> properly.
>> 
>
> Yes, I should.
> But they are to be found nowhere.

I would expect the static libraries to be in
$prefix/lib/xmlada/xmlada_*.static/ and the GPRs in $prefix/lib/gnat/
(my GPRs are in $prefix/share/gpr/, don't know why the two possibilities
exist or why some GPRs end up in one or the other!)

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-20 10:06         ` Simon Wright
@ 2018-09-20 10:51           ` Björn Lundin
  2018-09-20 16:01             ` Simon Wright
  0 siblings, 1 reply; 18+ messages in thread
From: Björn Lundin @ 2018-09-20 10:51 UTC (permalink / raw)


On 2018-09-20 12:06, Simon Wright wrote:
> Björn Lundin <b.f.lundin@gmail.com> writes:
> 
>> On 2018-09-20 11:17, Simon Wright wrote:
> 
>>> You should have the static libraries and the project GPR installed
>>> properly.
>>>
>>
>> Yes, I should.
>> But they are to be found nowhere.

Or I should say they get build in the source.

> 
> I would expect the static libraries to be in
> $prefix/lib/xmlada/xmlada_*.static/ and the GPRs in $prefix/lib/gnat/
> (my GPRs are in $prefix/share/gpr/, don't know why the two possibilities
> exist or why some GPRs end up in one or the other!)
> 


Yes. Strange thins are happenign here.
I now found them in

gprinstall -f -p -XLIBRARY_TYPE=static -XBUILD=Production -XPROCESSORS=0 \
        --prefix=/ada/xml/18.2 --project-subdir=lib/gnat \
        --build-var=XMLADA_BUILD --build-name=static \
        --install-name=xmlada xmlada.gpr



xmlada/18.2/static
But under a totally different root.
and it is the *.ali and lib*.a but no *.ads and no *.gpr

hmm I need to revisit this later.

-- 
--
Björn


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-20 10:51           ` Björn Lundin
@ 2018-09-20 16:01             ` Simon Wright
  2018-09-21 12:04               ` Björn Lundin
  0 siblings, 1 reply; 18+ messages in thread
From: Simon Wright @ 2018-09-20 16:01 UTC (permalink / raw)


Björn Lundin <b.f.lundin@gmail.com> writes:

> and it is the *.ali and lib*.a but no *.ads and no *.gpr

I'd expect the source files to be somewhere under $prefix/include


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-20 16:01             ` Simon Wright
@ 2018-09-21 12:04               ` Björn Lundin
  0 siblings, 0 replies; 18+ messages in thread
From: Björn Lundin @ 2018-09-21 12:04 UTC (permalink / raw)


On 2018-09-20 18:01, Simon Wright wrote:
> Björn Lundin <b.f.lundin@gmail.com> writes:
> 
>> and it is the *.ali and lib*.a but no *.ads and no *.gpr
> 
> I'd expect the source files to be somewhere under $prefix/include
> 

Yes - but there are no include directories...
This - and the other strange things - made me try it on a win10 box.
I did all the above on a win2016 box.

clean install of msys2.
grabbed xmlada (gpl-2018) and it compiled ok (with --disable-shared)
grabbed aws (gpl-2018) and it did NOT compile ok

got lots of warnings and some errors
which seems bad. See below.
But I _think_ they are in the templates-parser, which we do not use.
commented out quite a bit and then
win32\build.cmd path/to/installation
worked.


copied the libs from win10 -> win2016.
Generated the system from scratch went good
started went well.
Now I'm in for some heavy testing.


                                              ^
aws-os_lib-tmplt.c:323:11: warning: asm operand 1 probably doesn't match
constraints
 /*NOGEN*/ CND(SIN_FAMILY_OFFSET, "sin_family offset in record");
           ^~~
aws-os_lib-tmplt.c:342:11: warning: asm operand 1 probably doesn't match
constraints
 /*NOGEN*/ CND(AI_FLAGS_OFFSET, "???");
           ^~~
aws-os_lib-tmplt.c:343:11: warning: asm operand 1 probably doesn't match
constraints
 /*NOGEN*/ CND(AI_FAMILY_OFFSET, "???");
           ^~~
aws-os_lib-tmplt.c:344:11: warning: asm operand 1 probably doesn't match
constraints
 /*NOGEN*/ CND(AI_CANONNAME_OFFSET, "???");
           ^~~
aws-os_lib-tmplt.c:345:11: warning: asm operand 1 probably doesn't match
constraints
 /*NOGEN*/ CND(AI_ADDR_OFFSET, "???");
           ^~~
aws-os_lib-tmplt.c:323:11: error: impossible constraint in 'asm'
 /*NOGEN*/ CND(SIN_FAMILY_OFFSET, "sin_family offset in record");
           ^~~
aws-os_lib-tmplt.c:342:11: error: impossible constraint in 'asm'
 /*NOGEN*/ CND(AI_FLAGS_OFFSET, "???");
           ^~~
aws-os_lib-tmplt.c:343:11: error: impossible constraint in 'asm'
 /*NOGEN*/ CND(AI_FAMILY_OFFSET, "???");
           ^~~
aws-os_lib-tmplt.c:344:11: error: impossible constraint in 'asm'
 /*NOGEN*/ CND(AI_CANONNAME_OFFSET, "???");
           ^~~
aws-os_lib-tmplt.c:345:11: error: impossible constraint in 'asm'
 /*NOGEN*/ CND(AI_ADDR_OFFSET, "???");
           ^~~
/usr/bin/sh: line 4: ../xoscons: No such file or directory
mingw32-make[1]: *** [Makefile:90:
../.build/x86_64-w64-mingw32/release/../setup/src/aws-os_lib.ads] Error 127
mingw32-make: *** [Makefile:162: config_setup] Error 2



-- 
--
Björn

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-19  8:47 gnat via msys2 pacman + xml/ada Björn Lundin
                   ` (2 preceding siblings ...)
  2018-09-19 14:54 ` Simon Wright
@ 2018-09-24 10:46 ` Maxim Reznik
  2018-09-24 10:51   ` Björn Lundin
  3 siblings, 1 reply; 18+ messages in thread
From: Maxim Reznik @ 2018-09-24 10:46 UTC (permalink / raw)


I've used msys2 to build Matreshka project on Windows 64 before GNAT Community 2018 was released. At that time msys2 GNAT was most capable compiler to build it.

The only solution I found is to move gnat*.dll, gnarl*.dll into adalib/ removing corresponding gna*.dll.a libraries.

I used commands like that:

  adalib=$(dirname `gcc -print-libgcc-file-name`)/adalib
  bin_dir=$(dirname `which gcc`)
  rm -f ${adalib}/libgna{t,rl}-6.dll.a
  cp ${bin_dir}/libgna{t,rl}-6.dll ${adalib}/

After that I was able to link shared libraries.

Best regards,

-- 
Maxim Reznik

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: gnat via msys2 pacman + xml/ada
  2018-09-24 10:46 ` Maxim Reznik
@ 2018-09-24 10:51   ` Björn Lundin
  0 siblings, 0 replies; 18+ messages in thread
From: Björn Lundin @ 2018-09-24 10:51 UTC (permalink / raw)


On 2018-09-24 12:46, Maxim Reznik wrote:
> I've used msys2 to build Matreshka project on Windows 64 before GNAT Community 2018 was released. At that time msys2 GNAT was most capable compiler to build it.
> 
> The only solution I found is to move gnat*.dll, gnarl*.dll into adalib/ removing corresponding gna*.dll.a libraries.

Ok, thanks.
I got it to works with static linking, and that is all I need for the
moment.
But if I want dynamic linking, I'll keep this in mind


-- 
--
Björn

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2018-09-24 10:51 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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