[Gnoga-list] Installation issue
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 dubois@PC:/media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a$ sudo make PREFIX=/media/4To/Donnees/Courrier/020-Ada/X-Bibliotheque/035-Gnoga-1.4a install [sudo] Mot de passe de dubois : gprbuild -p --target=x86_64-linux-gnu -P deps/simple_components/lib_components.gpr -XAtomic_Access=GCC-long-offsets -XOS=Linux gprinstall -p -f --target=x86_64-linux-gnu --prefix="/media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/build" --install-name=components deps/simple_components/lib_components.gpr -XAtomic_Access=GCC-long-offsets -XOS=Linux Install project Lib_Components warning: path does not exist '/media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/deps/simple_components/obj/components/static/gnatdoc/' make -C components make[1] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components » make -C basic install make[2] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/basic » mkdir -p ../../css mkdir -p ../../html mkdir -p ../../img mkdir -p ../../js mkdir -p ../../upload cp -p css/README ../../css cp -p html/README ../../html cp -p html/*.* ../../html cp -p img/README ../../img cp -p img/*.* ../../img cp -p js/README ../../js cp -p js/*.* ../../js cp -p upload/README ../../upload make[2] : on quitte le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/basic » make -C electron install make[2] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/electron » cp -p html/*.* ../../html cp -p js/*.* ../../js make[2] : on quitte le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/electron » make -C bootstrap install make[2] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/bootstrap » cp -p css/*.* ../../css cp -p html/*.* ../../html mkdir ../../html/fonts mkdir: impossible de créer le répertoire «../../html/fonts»: Le fichier existe Makefile:19: recipe for target 'install' failed make[2]: [install] Error 1 (ignorée) cp -p html/fonts/*.* ../../html/fonts cp -p js/*.* ../../js make[2] : on quitte le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/bootstrap » make -C jqueryui install make[2] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/jqueryui » cp -p css/*.* ../../css cp -p html/*.* ../../html mkdir ../../css/images mkdir: impossible de créer le répertoire «../../css/images»: Le fichier existe Makefile:19: recipe for target 'install' failed make[2]: [install] Error 1 (ignorée) cp -p css/images/*.* ../../css/images cp -p js/*.* ../../js make[2] : on quitte le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/jqueryui » make -C message_boxes install make[2] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/message_boxes » make[2]: rien à faire pour « install ». make[2] : on quitte le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/message_boxes » make -C ace_editor install make[2] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/ace_editor » cp -p html/*.* ../../html cp -rp js/ace-builds ../../js make[2] : on quitte le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/components/ace_editor » make -C pixi install make[2] : on entre dans le répertoire « /media/4To/Donnees/Courrier/020-Ada/Y-Outillage/030-Gnoga/gnoga-1.4a/com
Re: [Gnoga-list] Installation issue
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 <mailto:zzb...@wanadoo.fr>> 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$ <mailto: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 <mailto: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 := (); --
Re: [Gnoga-list] Installation issue
Thanks to all. Marc -- 1. What version of GNAT are you using? ~$ gnat GNAT 7.3.0 Copyright 1996-2017, Free Software Foundation, Inc. List of available commands gnat bind gnatbind-7 gnat chop gnatchop-7 gnat clean gnatclean-7 gnat compile gnatmake-7 -f -u -c gnat check gnatcheck-7 gnat elim gnatelim-7 gnat find gnatfind-7 gnat krunch gnatkr-7 gnat link gnatlink-7 gnat list gnatls-7 gnat make gnatmake-7 gnat metric gnatmetric-7 gnat name gnatname-7 gnat preprocess gnatprep-7 gnat pretty gnatpp-7 gnat stack gnatstack-7 gnat stub gnatstub-7 gnat test gnattest-7 gnat xref gnatxref-7 2. What version of GPRBUILD do you have and why are you using gnatmake instead of gprbuild? ~$ gprbuild --version GPRBUILD GPL 2017 (20170515) (x86_64-pc-linux-gnu) Copyright (C) 2004-2017, AdaCore This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -I ignored it could run directly with gprbuild. gnatmake has an option to use directly gpr file, it's easy tu put all parameters in a gpr file, so.. -What's the difference between the 2, please? 3. What is the absolute path of the gnoga source directory and the settings.gpr file? @PC:/media/4To/Donnees/Courrier/020-Ada$ ls Install_trial M-Sources O-Projets P-Exec X-Bibliotheque Y-Outillage Z-Doc @PC:/media/4To/Donnees/Courrier/020-Ada/M-Sources$ @PC:/media/4To/Donnees/Courrier/020-Ada/O-Projets$ Le 28/04/2019 à 02:51, Jeremiah Breeden a écrit : 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 <mailto:zzb...@wanadoo.fr>> 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 <mailto: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
Hi Pascal, "Concerning your building your with gpr project, have you set GPR_PROJECT_PATH before?" No,i did : sudo make PREFIX=/media/4To/Donnees/Courrier/020-Ada/X-Bibliotheque/035-Gnoga-1.4a install See you soon Marc Le 28/04/2019 à 10:29, Pascal via Gnoga-list a écrit : Le 28 avr. 2019 à 02:51, Jeremiah Breeden a écrit : 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 Hello Marc, Moreover information asked by Jeremiah, outputs from "make help" in Gnoga root folder would be useful being reported. Concerning your building your with gpr project, have you set GPR_PROJECT_PATH before? See INSTALL file section 1. HTH, Pascal. http://blady.pagesperso-orange.fr ___ 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] GIT master branch discussion.
Hello, if the last stable version is V2, there is no reason to set the master as V1. The rule must be to set the master on the last stable version, as usual. So my preference is for c) option with 2.1a. Thanks Marc Le 20/03/2022 à 12:15, Blady via Gnoga-list a écrit : Hello, The master branch of the Gnoga GIT repo is stuck on version 1.2a for many years. Some users point out that, for instance: "It is customary when using git to have the master branch point at the latest stable branch. Is there any reason not to for gnoga?" (from Tama) Thus I propose some options: a) set master to the last stable V1 commit, that is V1.6a b) set master to the last V1 commit, that is V1.7-alpha c) set master to the last stable V2 commit, that is V2.1a d) set master to the last V2 commit, that is V2.2-alpha e) add branches named edge, stable... f) do nothing My preference is for a). What is your feedback? Thanks, Pascal. https://blady.pagesperso-orange.fr ___ 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