Re: [Gnoga-list] David

2019-04-27 Thread Jeremiah Breeden
Found some of my cliffnotes as a reference for how I got it all working.
Haven't tested this in a while though:

http://www.msys2.org/
pacman -Sy make
pacman -Sy mingw-w64-x86_64-toolchain
download Gnoga
download gprbuild tools from Gnoga website
copy gprbuild tools to proper location
go to home directory
gprconfig --target=x86_64-w64-mingw32 --config=Ada batch
rename generated file to default.cgpr
copy default.cgpr to /share/gpr directory
modify gnoga project as needed  (all the .exe additions to various gpr
files)
make all
make install

I feel like the gprconfig one, I didn't end up specifying the --config flag
but instead manually selected the languages when prompted instead.  It's
been a while though.  I'd have to comb through the gprconfig documentation
again to be sure.

On Sat, Apr 27, 2019 at 11:56 PM Jeremiah Breeden <
jeremiah.bree...@gmail.com> wrote:

>
> 2.  gprbuild...I haven't successfully built it on msys2 yet.  I grabbed
> the gprbuild from the Gnoga repo, but it doesn't work out of the box (it
> works with 32bit by default, not 64bit).  I copied the files into their
> correct locations in /mingw64/, then I used gprconfig to create a new .cpgr
> file and renamed it to the default one and put it in the appropriate share
> folder.  This got me gprbuild.  One thing I did not try but intend to at
> some point is to simply add my GNAT community version to the end of my
> path.  Maybe with my FSF first in the path, msys2 will pick up FSF GNAT for
> the compiler and then GNAT community's 64bit GPRBUILD for the build tools.
>
>
>>
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] David

2019-04-27 Thread Jeremiah Breeden
Gnoga on Windows 64bit is a bit of a trial unless you are doing GNAT
community.  The latest dev branch (1.5) doesn't even install properly when
using msys2 (so I've stayed on 1.4 for now).  In terms of what you need to
do:

1.  Update msys2 to latest GCC and GNAT along with all the necessary build
tools like Make using pacman to install everything.
2.  gprbuild...I haven't successfully built it on msys2 yet.  I grabbed the
gprbuild from the Gnoga repo, but it doesn't work out of the box (it works
with 32bit by default, not 64bit).  I copied the files into their correct
locations in /mingw64/, then I used gprconfig to create a new .cpgr file
and renamed it to the default one and put it in the appropriate share
folder.  This got me gprbuild.  One thing I did not try but intend to at
some point is to simply add my GNAT community version to the end of my
path.  Maybe with my FSF first in the path, msys2 will pick up FSF GNAT for
the compiler and then GNAT community's 64bit GPRBUILD for the build tools.
3.  You have to manually modify gnoga-code/tools/tools.gpr,
gnoga-code/deps/zanyblue/src/zbinfo/zbinfo.gpr, and
gnoga-code/deps/zanyblue/src/zbmcompile/zbmcompile.gpr to add a .exe to the
end of the executable names.  msys2's version of GNAT doesn't recognize the
executable files otherwise.  I've mentioned this a few times in tickets and
emails here, but I don't think anyone is gonna modify the build scripts
(and I don't know how to do it), so if you want commercial ready Gnoga on
windows, you'll need to do this yourself for now.

I know this is a bit concise and I glossed over steps, but if you have
trouble ask and I'll try and get you going with more specific ones.

On Sat, Apr 27, 2019 at 9:55 PM Travis Ayres  wrote:

> While we're at it, can we talk about instructions for using Ada with
> MSYS2?
>
> On Sat, Apr 27, 2019, 6:52 PM David Botton  wrote:
>
>> Looks like power outage and ups dead. I’ll bring back up tomorrow and get
>> a new ups
>>
>> On Sat, Apr 27, 2019 at 7:47 AM Jeremiah Breeden <
>> jeremiah.bree...@gmail.com> wrote:
>>
>>> Have any of yall heard from David?  All 3 of his gnoga sites have gone
>>> down (www.gnoga.com, www.learnadanow.com, www.getadanow.com).
>>> ___
>>> Gnoga-list mailing list
>>> Gnoga-list@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>>>
>> ___
>> Gnoga-list mailing list
>> Gnoga-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>>
> ___
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] David

2019-04-27 Thread Jeremiah Breeden
Awesome!  Thanks.  Glad you are doing ok!

On Sat, Apr 27, 2019 at 9:52 PM David Botton  wrote:

> Looks like power outage and ups dead. I’ll bring back up tomorrow and get
> a new ups
>
> On Sat, Apr 27, 2019 at 7:47 AM Jeremiah Breeden <
> jeremiah.bree...@gmail.com> wrote:
>
>> Have any of yall heard from David?  All 3 of his gnoga sites have gone
>> down (www.gnoga.com, www.learnadanow.com, www.getadanow.com).
>> ___
>> Gnoga-list mailing list
>> Gnoga-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>>
> ___
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] David

2019-04-27 Thread David Botton
Looks like power outage and ups dead. I’ll bring back up tomorrow and get a
new ups

On Sat, Apr 27, 2019 at 7:47 AM Jeremiah Breeden 
wrote:

> Have any of yall heard from David?  All 3 of his gnoga sites have gone
> down (www.gnoga.com, www.learnadanow.com, www.getadanow.com).
> ___
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] David

2019-04-27 Thread Travis Ayres
While we're at it, can we talk about instructions for using Ada with MSYS2?

On Sat, Apr 27, 2019, 6:52 PM David Botton  wrote:

> Looks like power outage and ups dead. I’ll bring back up tomorrow and get
> a new ups
>
> On Sat, Apr 27, 2019 at 7:47 AM Jeremiah Breeden <
> jeremiah.bree...@gmail.com> wrote:
>
>> Have any of yall heard from David?  All 3 of his gnoga sites have gone
>> down (www.gnoga.com, www.learnadanow.com, www.getadanow.com).
>> ___
>> Gnoga-list mailing list
>> Gnoga-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>>
> ___
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Installation issue

2019-04-27 Thread Jeremiah Breeden
I would guess it is either your version of GNAT and GPRBUILD or your folder
structure (this is more likely given your error).  The GPR file uses
relative paths for source and settings.  The path you showed is different
than the original gnoga path, so I don't know if you have all the other
files correctly located or not.  If you still need help, please answer the
following questions:

1.  What version of GNAT are you using?
2.  What version of GPRBUILD do you have and why are you using gnatmake
instead of gprbuild?
3.  What is the absolute path of the gnoga source directory and the
settings.gpr file?

Please answer in full!  Thanks!
Jeremiah

On Sat, Apr 27, 2019 at 8:03 AM Dubois  wrote:

> Hi Jeremiah,
>it's a strange case, it doesn't work with the 1st option below
> (compilation1) but it works correctly (release) with the 2d one &  i have
> no any idea why !
>Your help is welcomed.
> Thks you
> Regards
> Marc
> Ps : Full original file in attached piece.
> I guess it's a problem with gpr file
>
> ___
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Installation issue

2019-04-27 Thread Dubois

Hi Jeremiah,
   it's a strange case, it doesn't work with the 1st option below 
(compilation1) but it works correctly (release) with the 2d one &  i 
have no any idea why !

   Your help is welcomed.
Thks you
Regards
Marc
Ps : Full original file in attached piece.
I guess it's a problem with gpr file

===--

 when "compilation1" => for Default_Switches ("Ada") use
   ("-gnat2012", --Allow full Ada 2012 features (same as -gnat12)
    "-gnata",    --Assertions enabled. Pragma [Assert, Debug] 
activated.

    "-gnatc",    --Check syntax & semantics only (no code generation).
    "-gnatf",    --only 1st error & avertissements is displayed.
 --ens. erreurs & avertissements sauf $8.d.Full errors.
 --'f' causes all errors to be reported else
 -- only 1st  error is displayed.
    "-gnaty",    --Causes the compiler to enforce specified style 
rules.

    "-gnatw.eD", -- ???
    "-Wall");    --Enables most warnings from the back end.


    when "release" => for Default_Switches ("Ada") use
  ("-gnat2012", --Allow full Ada 2012 features (same as -gnat12)
   "-gnatE",    --Full dynamic elaboration checks.
   "-gnatQ",    --Full dynamic elaboration checks.
   "-gnatp",    --la suppression de tous les contrôles.
   "-gnatn",    --mise du code en ligne
        -- pour > procédures désignées pragma inline.
   "-O2"    --optimisation étendue de gcc.
 )
    & Build_Switches;


Le 27/04/2019 à 13:43, Jeremiah Breeden a écrit :

Hi Marc,

I tried it on my machine using gprbuild and it worked fine:

$ gprbuild tutorial_01.gpr
Compile
   [Ada]  gnoga-application.adb
Build Libraries
   [gprlib]   gnoga.lexch
   [archive]  libgnoga.a
   [index]    libgnoga.a
Bind
   [gprbind]  tutorial_01.bexch
   [Ada]  tutorial_01.ali
Link
   [link] tutorial_01.adb

Can you give more details on how you tried to build it (how did you 
organize the files, version of GNAT and GPRBUILD, etc.)?


On Mon, Apr 8, 2019 at 5:16 PM Dubois > wrote:


Hi world,
  below is my 1st trial to compile Tutorial_1.adb.
  Any idea, please?
Thanks
Regards
Marc
Ps : Attached file for install.

-


Dubois@PC:/media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a$


gnatmake -P/media/4To/Donnees/Courrier/020-Ada/O-Projets/tutorial_01
Compile
   [Ada]  tutorial_01.adb
Bind
   [gprbind]  tutorial_01.bexch
   [Ada]  tutorial_01.ali
gcc: error: b__tutorial_01.adb: Aucun fichier ou dossier de ce type
gcc: warning: ‘-x ada’ after last input file has no effect
gcc: fatal error: no input files
compilation terminated.
gprbind: compilation of binder generated file failed
gprbuild: unable to bind tutorial_01.adb
gcc-7 -c -gnat2012 -gnata -gnatc -gnatf -gnaty -gnatw.eD -Wall -I-
-gnatA

/media/4To/Donnees/Courrier/020-Ada/M-Sources/100-Gnoga/tutorial_01/A-src/tutorial_01.adb
gnatmake: "tutorial_01.ali" WARNING: ALI or object file not found
after compile
gnatmake:

"/media/4To/Donnees/Courrier/020-Ada/M-Sources/100-Gnoga/tutorial_01/A-src/tutorial_01.adb"
compilation error

___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/gnoga-list



___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

  -- GNOGA_TUTORIAL_01   22.04.2019  15H33

with 
"/media/4To/Donnees/Courrier/020-Ada/X-Bibliotheque/035-Gnoga-1.4a/share/gpr/gnoga.gpr";

Project Tutorial_01 is
  version := "2019";
  for Languages use ("Ada");
  for Main use ("tutorial_01.adb");

   -- Types

  type OS_Type is ("GNU/Linux", "Unix", "Windows", "Windows_NT");
  type Mode_Type is
   ("compilation1", "compilation2", "compilation3", "debug", "release");
  
 -- Variables

  OS : OS_Type := external ("OS", "Windows");  --Affectation directe buggee.
--  OS := "Windows";
  OS := "GNU/Linux";
  Build_Switches := ();

   
--
   -- c1  ::= Pas de generation du code executable.
   -- c2  ::= c1 + unités compilation (gnatu)
   -- c3  ::= c2 + try & find the *worst* possible elaboration order + 
style rules.
   --  to *maximises* the chances to get a Program_Error during 
elaboration.
   -- debug   ::= code compile => ens. vérif. d'exécut. & info. debug, creation 
code exec.
   -- release ::= 

[Gnoga-list] David

2019-04-27 Thread Jeremiah Breeden
Have any of yall heard from David?  All 3 of his gnoga sites have gone down
(www.gnoga.com, www.learnadanow.com, www.getadanow.com).
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Installation issue

2019-04-27 Thread Jeremiah Breeden
Hi Marc,

I tried it on my machine using gprbuild and it worked fine:

$ gprbuild tutorial_01.gpr
Compile
   [Ada]  gnoga-application.adb
Build Libraries
   [gprlib]   gnoga.lexch
   [archive]  libgnoga.a
   [index]libgnoga.a
Bind
   [gprbind]  tutorial_01.bexch
   [Ada]  tutorial_01.ali
Link
   [link] tutorial_01.adb

Can you give more details on how you tried to build it (how did you
organize the files, version of GNAT and GPRBUILD, etc.)?

On Mon, Apr 8, 2019 at 5:16 PM Dubois  wrote:

> Hi world,
>   below is my 1st trial to compile Tutorial_1.adb.
>   Any idea, please?
> Thanks
> Regards
> Marc
> Ps : Attached file for install.
>
> -
>
>
> Dubois@PC:/media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a$
> gnatmake -P/media/4To/Donnees/Courrier/020-Ada/O-Projets/tutorial_01
> Compile
>[Ada]  tutorial_01.adb
> Bind
>[gprbind]  tutorial_01.bexch
>[Ada]  tutorial_01.ali
> gcc: error: b__tutorial_01.adb: Aucun fichier ou dossier de ce type
> gcc: warning: ‘-x ada’ after last input file has no effect
> gcc: fatal error: no input files
> compilation terminated.
> gprbind: compilation of binder generated file failed
> gprbuild: unable to bind tutorial_01.adb
> gcc-7 -c -gnat2012 -gnata -gnatc -gnatf -gnaty -gnatw.eD -Wall -I- -gnatA
> /media/4To/Donnees/Courrier/020-Ada/M-Sources/100-Gnoga/tutorial_01/A-src/tutorial_01.adb
> gnatmake: "tutorial_01.ali" WARNING: ALI or object file not found after
> compile
> gnatmake:
> "/media/4To/Donnees/Courrier/020-Ada/M-Sources/100-Gnoga/tutorial_01/A-src/tutorial_01.adb"
> compilation error
>
> ___
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list