From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:3b0e:b0:4bb:6b72:3c36 with SMTP id nm14-20020a0562143b0e00b004bb6b723c36mr56190192qvb.121.1670230063534; Mon, 05 Dec 2022 00:47:43 -0800 (PST) X-Received: by 2002:a05:622a:5a08:b0:3a5:7548:b41e with SMTP id fy8-20020a05622a5a0800b003a57548b41emr76078607qtb.0.1670230063392; Mon, 05 Dec 2022 00:47:43 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 5 Dec 2022 00:47:43 -0800 (PST) Injection-Info: google-groups.googlegroups.com; posting-host=184.98.49.135; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 184.98.49.135 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3f881d33-40c0-4c30-96c1-9df82bbddbb0n@googlegroups.com> Subject: Problem with gpr file after updating GNAT From: Jerry Injection-Date: Mon, 05 Dec 2022 08:47:43 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 4759 Xref: reader01.eternal-september.org comp.lang.ada:64671 List-Id: I recently upgraded my macOS GNAT from 2015 to Simon's latest offering ("if= it ain't broke...") on new Apple hardware. At the same time I used Apple's= Migration Assistant to transfer files. From Visual Studio Code, I use a sh= ort shell script to run gprbuild. This has worked flawlessly for quite a wh= ile. Now things are broken and I can't figure out what is wrong even after = reviewing the gprbuild docs. GPRBUILD 23.0.0 (20221109) (aarch64-apple-darwin21) Here is the shell line invoking gprbuild gprbuild -p /Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Samp= ling/build.gpr Here is the gpr file named build.gpr after deleting a bunch of comments (s= orry for the length); with "MPFR_Library"; -- Multiple precision floating point ops and functions with "GMP_Library"; -- Multiple precision integer ops and functions with "Octave_Library"; -- Octave built-in functions (not the loadable funct= ions from Octave) with "GSL_Library"; -- GNU Scientific Library, installed as part of Mac Por= ts. project Build is for Source_Dirs use=20 ("/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampli= ng/source/", "/Users/me/Documents/Programs/Ada/Code/", "/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Samplin= g/source/Tests", "/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampling/s= ource/Other_Code", "/Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Sampling", "/Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Radar", "/Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Sampling/Po= st-processing", "/Users/me/Documents/Programs/Ada/Code/My_Code/My_Tools", "/Users/me/Documents/Programs/Ada/Code/My_Code/One-Offs", "/Users/me/Documents/Programs/Ada/Code/My_Code/Examples_and_Snippets_and_= Notes", "/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_git/plpl= ot/bindings/ada", "/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_git/plpl= ot/examples/ada", "/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/PLplot_testing/= ", "/Users/me/Documents/Programs/Ada/Code/Bindings/GMP_and_MPFR/SVN/adabi= ndinggmpmpfr-read-only", "/Users/me/Documents/Programs/Ada/Code/Bindings/Octave/", "/Users/me/Documents/Programs/Ada/Code/Bindings/GSL/"); for Object_Dir use "build-normal"; for Exec_Dir use "product-normal"; for Main use ("Uniform_Aperture_Sum.adb"); -- <<< SET MAIN HERE package Builder is for Default_Switches ("Ada") use ("-O0", "-gnat12", "-g", "-gnatE", "-gna= teE"); for Executable ("Uniform_Aperture_Sum.adb") use "run"; -- <<< AND HERE end Builder; package Compiler is end Compiler; =09 package Binder is for Default_Switches ("Ada") use ("-E"); end Binder; package Linker is for Default_Switches ("Ada") use ("-Wl,-no_pie");=20 end Linker; package Pretty_Printer is for Default_Switches ("ada") use ("--max-line-length=3D100", "--indent= ation=3D4", "--indent-continuation=3D2", "--decimal-grouping=3D3", "--based-groupin= g=3D4", "--alignment", "--RM-style-spacing", "--preserve-blank-lines", "--comments-fill", "--c= omments-special", "--no-separate-return", "--split-line-before-op"); end Pretty_Printer; end Build; Here is the path to the main program. The path is in the sources list in bu= ild.gpr. /Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Radar/Uniform_Ape= rture_Sum.adb And here is the complaint from GNAT when I try to build: build.gpr:61:19: "Uniform_Aperture_Sum.adb" is not a source of project "bui= ld" gprbuild: problems with main sources