comp.lang.ada
 help / color / mirror / Atom feed
* Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS
@ 2018-10-27 16:57 Bojan Bozovic
  2018-10-30 16:34 ` Vadim Godunko
  0 siblings, 1 reply; 7+ messages in thread
From: Bojan Bozovic @ 2018-10-27 16:57 UTC (permalink / raw)


I installed mingw 8.2.0 GNAT, I tried 64-bit.

https://github.com/reznikmm/matreshka#windows-64bit

I have followed instructions above, I removed adainclude .dll.a files and replaced them with .dll, however, matreshka ./configure can't find ASIS even though I installed it, by pointing to repo indicated above, gprbuild works, but not ASIS. Even ./configure and then make all and make install work, but I need a2js. Any ideas? Maybe I should try Cygwin, or Linux in VirtualBox? If you have working setup, tell me what you use or maybe I should try to compile ASIS on my own?


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

* Re: Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS
  2018-10-27 16:57 Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS Bojan Bozovic
@ 2018-10-30 16:34 ` Vadim Godunko
  2018-10-30 19:04   ` Bojan Bozovic
  0 siblings, 1 reply; 7+ messages in thread
From: Vadim Godunko @ 2018-10-30 16:34 UTC (permalink / raw)


You can look at "config.log" for more information.


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

* Re: Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS
  2018-10-30 16:34 ` Vadim Godunko
@ 2018-10-30 19:04   ` Bojan Bozovic
  2018-10-31 15:00     ` Maxim Reznik
  0 siblings, 1 reply; 7+ messages in thread
From: Bojan Bozovic @ 2018-10-30 19:04 UTC (permalink / raw)


On Tuesday, October 30, 2018 at 5:34:09 PM UTC+1, Vadim Godunko wrote:
> You can look at "config.log" for more information.

File config.log says ASIS and main.adb are compiled with different GNAT versions. I've tried to build gcc/gnat 8.1.0 using MinGW gcc 8.2.0 but build failed. Before I try harder to make gcc 8.1.0 compile, I'd like to try other options. I will try to build with GNAT/GPL 2018 for Linux 64-bit, as that compiler comes with ASIS, I'll set up Linux on VM for tomorrow and post my result. If I'm out of luck I'll try to find build instructions for gcc/gnat 8.1.0 and will try building with different compilers.

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

* Re: Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS
  2018-10-30 19:04   ` Bojan Bozovic
@ 2018-10-31 15:00     ` Maxim Reznik
  2018-10-31 18:54       ` Bojan Bozovic
  0 siblings, 1 reply; 7+ messages in thread
From: Maxim Reznik @ 2018-10-31 15:00 UTC (permalink / raw)


Hello,

The easiest way is to use GNAT GPL 2018 for Windows and corresponding ASIS.

You can get asis-gpl-2018-20180523-src.tar.gz if click "Sources":
https://www.adacore.com/download/more

README file in the archive has building instrutions.

Some time ago I've build ASIS for gcc 7.x in msys2. I can provide you scripts, but this is non trivial. So, try GNAT GPL 2018 first.

Best regards,


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

* Re: Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS
  2018-10-31 15:00     ` Maxim Reznik
@ 2018-10-31 18:54       ` Bojan Bozovic
  2018-11-01 11:58         ` Maxim Reznik
  0 siblings, 1 reply; 7+ messages in thread
From: Bojan Bozovic @ 2018-10-31 18:54 UTC (permalink / raw)


On Wednesday, October 31, 2018 at 4:00:36 PM UTC+1, Maxim Reznik wrote:
> Hello,
> 
> The easiest way is to use GNAT GPL 2018 for Windows and corresponding ASIS.
> 
> You can get asis-gpl-2018-20180523-src.tar.gz if click "Sources":
> https://www.adacore.com/download/more
> 
> README file in the archive has building instrutions.
> 
> Some time ago I've build ASIS for gcc 7.x in msys2. I can provide you scripts, but this is non trivial. So, try GNAT GPL 2018 first.
> 
> Best regards,

Thanks very much, ASIS builds. There is a problem, Matreshka configure can't find it.

I've set ADA_INCLUDE_PATH and ADA_OBJECTS_PATH to point where ASIS is located, but it isn't found in configure step.

Here is output of gnatls -v on my system.

C:\matreshka-18.1>gnatls -v

GNATLS Community 2018 (20180523-73)
Copyright (C) 1997-2018, Free Software Foundation, Inc.

Source Search Path:
   <Current_Directory>
   C:\ASIS-GPL\INCLUDE\ASIS\ASISLIB
   C:\GNAT\2018\lib\gcc\x86_64-pc-mingw32\7.3.1\adainclude


Object Search Path:
   <Current_Directory>
   C:\ASIS-GPL\LIB\ASIS\ASISLIB
   C:\GNAT\2018\lib\gcc\x86_64-pc-mingw32\7.3.1\adalib


Project Search Path:
   <Current_Directory>
   C:\GNAT\2018\x86_64-pc-mingw32\lib\gnat
   C:\GNAT\2018\x86_64-pc-mingw32\share\gpr
   C:\GNAT\2018\share\gpr
   C:\GNAT\2018\lib\gnat

Thanks for your assistance in advance.
Kind regards,
Bojan


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

* Re: Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS
  2018-10-31 18:54       ` Bojan Bozovic
@ 2018-11-01 11:58         ` Maxim Reznik
  2018-11-01 14:02           ` Bojan Bozovic
  0 siblings, 1 reply; 7+ messages in thread
From: Maxim Reznik @ 2018-11-01 11:58 UTC (permalink / raw)


Setting ADA_INCLUDE_PATH and ADA_OBJECTS_PATH is not necessary. What you need is to set ADA_PROJECT_PATH (or GPR_PROJECT_PATH):
In CMD console do:

set ADA_PROJECT_PATH=C:\ASIS-GPL\share\gpr

before running make.exe


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

* Re: Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS
  2018-11-01 11:58         ` Maxim Reznik
@ 2018-11-01 14:02           ` Bojan Bozovic
  0 siblings, 0 replies; 7+ messages in thread
From: Bojan Bozovic @ 2018-11-01 14:02 UTC (permalink / raw)


On Thursday, November 1, 2018 at 12:58:22 PM UTC+1, Maxim Reznik wrote:
> Setting ADA_INCLUDE_PATH and ADA_OBJECTS_PATH is not necessary. What you need is to set ADA_PROJECT_PATH (or GPR_PROJECT_PATH):
> In CMD console do:
> 
> set ADA_PROJECT_PATH=C:\ASIS-GPL\share\gpr
> 
> before running make.exe

Setting ADA_PROJECT_PATH to C:\ASIS-GPL\include\asis\asislib did the trick. Thanks.

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

end of thread, other threads:[~2018-11-01 14:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-27 16:57 Problem compiling Matreshka 18.1 a2js for Windows, I have problem with ASIS Bojan Bozovic
2018-10-30 16:34 ` Vadim Godunko
2018-10-30 19:04   ` Bojan Bozovic
2018-10-31 15:00     ` Maxim Reznik
2018-10-31 18:54       ` Bojan Bozovic
2018-11-01 11:58         ` Maxim Reznik
2018-11-01 14:02           ` Bojan Bozovic

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