Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I'll say it again for the logic impaired. -- Larry Wall


devel / comp.lang.ada / Re: Problem with gpr file after updating GNAT

SubjectAuthor
* Problem with gpr file after updating GNATJerry
`- Re: Problem with gpr file after updating GNATJerry

1
Problem with gpr file after updating GNAT

<3f881d33-40c0-4c30-96c1-9df82bbddbb0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9074&group=comp.lang.ada#9074

  copy link   Newsgroups: comp.lang.ada
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: i2pn2.org!i2pn.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: list_email@icloud.com (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
 by: Jerry - Mon, 5 Dec 2022 08:47 UTC

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 short shell script to run gprbuild. This has worked flawlessly for quite a while. 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_Sampling/build.gpr

Here is the gpr file named build.gpr after deleting a bunch of comments (sorry 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 functions from Octave)
with "GSL_Library"; -- GNU Scientific Library, installed as part of Mac Ports.

project Build is
for Source_Dirs use
("/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampling/source/",
"/Users/me/Documents/Programs/Ada/Code/",
"/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampling/source/Tests",
"/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampling/source/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/Post-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/plplot/bindings/ada",
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_git/plplot/examples/ada",
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/PLplot_testing/",
"/Users/me/Documents/Programs/Ada/Code/Bindings/GMP_and_MPFR/SVN/adabindinggmpmpfr-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", "-gnateE");
for Executable ("Uniform_Aperture_Sum.adb") use "run"; -- <<< AND HERE
end Builder;

package Compiler is
end Compiler;
package Binder is
for Default_Switches ("Ada") use ("-E");
end Binder;

package Linker is
for Default_Switches ("Ada") use ("-Wl,-no_pie");
end Linker;

package Pretty_Printer is
for Default_Switches ("ada") use ("--max-line-length=100", "--indentation=4",
"--indent-continuation=2", "--decimal-grouping=3", "--based-grouping=4", "--alignment",
"--RM-style-spacing", "--preserve-blank-lines", "--comments-fill", "--comments-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 build.gpr.
/Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Radar/Uniform_Aperture_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 "build"
gprbuild: problems with main sources

Re: Problem with gpr file after updating GNAT

<567a8715-05d2-4fc4-8da3-ee17a34e0a4cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9077&group=comp.lang.ada#9077

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:26a4:b0:6fc:b1fd:c7e1 with SMTP id c36-20020a05620a26a400b006fcb1fdc7e1mr15218433qkp.627.1670324167110;
Tue, 06 Dec 2022 02:56:07 -0800 (PST)
X-Received: by 2002:ac8:7492:0:b0:3a6:6eb1:e5c5 with SMTP id
v18-20020ac87492000000b003a66eb1e5c5mr44254966qtq.536.1670324166995; Tue, 06
Dec 2022 02:56:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Tue, 6 Dec 2022 02:56:06 -0800 (PST)
In-Reply-To: <lywn757ov9.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=184.98.49.135; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG
NNTP-Posting-Host: 184.98.49.135
References: <3f881d33-40c0-4c30-96c1-9df82bbddbb0n@googlegroups.com> <lywn757ov9.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <567a8715-05d2-4fc4-8da3-ee17a34e0a4cn@googlegroups.com>
Subject: Re: Problem with gpr file after updating GNAT
From: list_email@icloud.com (Jerry)
Injection-Date: Tue, 06 Dec 2022 10:56:07 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1372
 by: Jerry - Tue, 6 Dec 2022 10:56 UTC

Both Simon's suggestion
export GNAT_FILE_NAME_CASE_SENSITIVE=0

and Egil's suggestion
package Naming is
for Casing use "MixedCase";
end Naming;

solve the problem.

Thanks. Not sure what the underlying problems are.

Jerry


devel / comp.lang.ada / Re: Problem with gpr file after updating GNAT

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor