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:620a:1a89:b0:767:15f4:7a81 with SMTP id bl9-20020a05620a1a8900b0076715f47a81mr76314qkb.10.1689203478014; Wed, 12 Jul 2023 16:11:18 -0700 (PDT) X-Received: by 2002:a05:6830:1396:b0:6b8:6f61:5f61 with SMTP id d22-20020a056830139600b006b86f615f61mr19307otq.6.1689203477697; Wed, 12 Jul 2023 16:11:17 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Wed, 12 Jul 2023 16:11:17 -0700 (PDT) In-Reply-To: <45f83e2f-0085-4f42-9a49-05c7a3e4101an@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com> <0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com> <87lefwwpce.fsf@nosuchdomain.example.com> <6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com> <78b8aa21-7b89-417d-a264-f756d568771cn@googlegroups.com> <4f24f3df-6413-4a1b-a2ac-e9b90b20ec4en@googlegroups.com> <13e5d57c-e79e-4635-8986-d0b95542cb61n@googlegroups.com> <45f83e2f-0085-4f42-9a49-05c7a3e4101an@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8a8b8b5a-a997-4c46-b3c8-5d8170522bb2n@googlegroups.com> Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" From: Kenneth Wolcott Injection-Date: Wed, 12 Jul 2023 23:11:18 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 11237 Xref: news.eternal-september.org comp.lang.ada:65436 List-Id: On Wednesday, July 12, 2023 at 4:09:38=E2=80=AFPM UTC-7, Kenneth Wolcott wr= ote: > On Wednesday, July 12, 2023 at 8:44:20=E2=80=AFAM UTC-7, Luke A. Guest wr= ote:=20 > > On 12/07/2023 07:01, Kenneth Wolcott wrote:=20 > > > On Tuesday, July 11, 2023 at 10:43:37=E2=80=AFPM UTC-7, Kenneth Wolco= tt wrote:=20 > > >> On Thursday, July 6, 2023 at 6:25:42=E2=80=AFPM UTC-7, Kenneth Wolco= tt wrote:=20 > > >>> On Thursday, July 6, 2023 at 6:23:51=E2=80=AFPM UTC-7, Kenneth Wolc= ott wrote:=20 > > >>>> On Thursday, July 6, 2023 at 12:37:20=E2=80=AFPM UTC-7, Kenneth Wo= lcott wrote:=20 > > >>>>> On Tuesday, July 4, 2023 at 2:00:11=E2=80=AFAM UTC-7, Luke A. Gue= st wrote:=20 > > >>>>>> On 04/07/2023 00:58, Kenneth Wolcott wrote:=20 > > >>>>>>> On Monday, July 3, 2023 at 4:24:37=E2=80=AFPM UTC-7, Keith Thom= pson wrote:=20 > > >>>>>>>> Kenneth Wolcott writes:=20 > > >>>>>>>> [...]=20 > > >>>>>>>>> After adding a semi-colon at the following line in sdlada.gpr= =20 > > >>>>>>>>>=20 > > >>>>>>>>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");=20 > > >>>>>>>> [...]=20 > > >>>>>>>>=20 > > >>>>>>>> Unless "-gnat202" requests the version of Ada that was current= during=20 > > >>>>>>>> the reign of Septimius Severus, you probably want to use "-gna= t2022".=20 > > >>>>>>>> (Options can be abbreviated, but "-gnat202" may become ambiguo= us if=20 > > >>>>>>>> there's a new Ada standard before 2030.)=20 > > >>>>>>>>=20 > > >>>>>>>> Also "Default_Swiches" is mispelled.=20 > > >>>>>>>>=20 > > >>>>>>>> If the typos are the result of re-typing that line, I strongly= suggest=20 > > >>>>>>>> copy-and-pasting any code you post.=20 > > >>>>>>>>=20 > > >>>>>>>> --=20 > > >>>>>>>> Keith Thompson=20 > > >>>>>>>=20 > > >>>>>>> Thank you, Keith :-)=20 > > >>>>>>>=20 > > >>>>>>> Fixed those two typos.=20 > > >>>>>>>=20 > > >>>>>>> Here's the current output from trying to build:=20 > > >>>>>>>=20 > > >>>>>>> make SDL_PLATFORM=3Dmacos_ports SDL_MODE=3Ddebug=20 > > >>>>>>> mkdir -p gen/src/=20 > > >>>>>>> gprbuild -p -gnat2012 -XSDL_MODE=3Ddebug -XSDL_PLATFORM=3Dmacos= _ports \=20 > > >>>>>>> -Psdlada.gpr=20 > > >>>>>>> sdlada.gpr:26:09: a variable cannot be declared for the first t= ime here=20 > > >>>>>>> sdlada.gpr:26:23: unknown variable "C_Switches"=20 > > >>>>>>> gprbuild: "sdlada.gpr" processing failed=20 > > >>>>>>> make: *** [lib/libadasdl.a] Error 5=20 > > >>>>>>>=20 > > >>>>>>> Thanks,=20 > > >>>>>>> Ken=20 > > >>>>>> This makes no sense, line 26 is this:=20 > > >>>>>> Source_Platform :=3D "../../src/" & Platform;=20 > > >>>>> Hi Luke;=20 > > >>>>>=20 > > >>>>> Is it possible for us to arrange a process to send the patch to m= e in another means? If Google Groups blocks attachments and I'm getting mas= sively confused with the content being pasted inside the posting, we need t= o derive another means of communicating. I can share a different email addr= ess which is already being heavily spammed...=20 > > >>>>>=20 > > >>>>> Thanks,=20 > > >>>>> Ken=20 > > >>>> Hi Luke;=20 > > >>>>=20 > > >>>> Please email the patch to me as an attachment using the email addr= ess: [redacted :-) ]=20 > > >>>>=20 > > >>>> Please also provide a checksum of some kind so I know that the fil= e didn't get corrupted en-route.=20 > > >>>>=20 > > >>>> Thanks,=20 > > >>>> Ken=20 > > >>> The email address is kwolcott at yahoo dot com.=20 > > >> Hi Luke;=20 > > >>=20 > > >> Thanks for the patch via email.=20 > > >>=20 > > >> The md5sum matches...=20 > > >>=20 > > >> I ran git restore in the sdlada git clone directory...=20 > > >>=20 > > >> I then applied the patch:=20 > > >>=20 > > >> patch -p1 < test.patch=20 > > >> patching file 'build/gnat/makefile'=20 > > >> patching file 'build/gnat/sdlada.gpr'=20 > > >> patching file 'build/gnat/sdlada_image.gpr'=20 > > >> Reversed (or previously applied) patch detected! Assume -R? [y] y=20 > > >> patching file 'build/gnat/tests.gpr'=20 > > >> Reversed (or previously applied) patch detected! Assume -R? [y] y=20 > > >> patching file 'build/gnat/tests_image.gpr'=20 > > >> Reversed (or previously applied) patch detected! Assume -R? [y] y=20 > > >> patching file 'build/gnat/unit_tests.gpr'=20 > > >> Reversed (or previously applied) patch detected! Assume -R? [y] y=20 > > >> patching file 'src/image/version_images.c'=20 > > >> Reversed (or previously applied) patch detected! Assume -R? [y] y=20 > > >> patching file 'src/ttf/version_ttf.c'=20 > > >> Reversed (or previously applied) patch detected! Assume -R? [y] y=20 > > >>=20 > > >> Attempting to build:=20 > > >>=20 > > >> make SDL_PLATFORM=3Dmacos_ports SDL_MODE=3Drelease=20 > > >> mkdir -p gen/src/=20 > > >> gprbuild -p -gnat2012 -XSDL_MODE=3Drelease -XSDL_PLATFORM=3Dmacos_po= rts \=20 > > >> -Psdlada.gpr=20 > > >> Setup=20 > > >> [mkdir] object directory for project SDLAda=20 > > >> sdlada.gpr:1:17: warning: Linker switches not taken into account in = library projects=20 > > >> sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory= =20 > > >> gprbuild: "sdlada.gpr" processing failed=20 > > >> make: *** [lib/libadasdl.a] Error 5=20 > > >> So, what did I do wrong this time?=20 > > >>=20 > > >> Thanks,=20 > > >> Ken=20 > > >=20 > > >=20 > > > Ok,=20 > > >=20 > > > I deleted the contents of the sdlada git clone directory...=20 > > >=20 > > > then did a git restore .=20 > > >=20 > > > then applied the patch=20 > > >=20 > > > then ran make.=20 > > >=20 > > > Still fails...=20 > > >=20 > > > *****************************************************************=20 > > > patch -p1 < test.patch=20 > > > patching file 'build/gnat/makefile'=20 > > > patching file 'build/gnat/sdlada.gpr'=20 > > > patching file 'build/gnat/sdlada_image.gpr'=20 > > > patching file 'build/gnat/tests.gpr'=20 > > > patching file 'build/gnat/tests_image.gpr'=20 > > > patching file 'build/gnat/unit_tests.gpr'=20 > > > patching file 'src/image/version_images.c'=20 > > > patching file 'src/ttf/version_ttf.c'=20 > > > sdlada: cd build/gnat=20 > > > gnat: make SDL_PLATFORM=3Dmacos_ports SDL_MODE=3Drelease=20 > > > mkdir -p gen/src/=20 > > > gprbuild -p -gnat2012 -XSDL_MODE=3Drelease -XSDL_PLATFORM=3Dmacos_por= ts \=20 > > > -Ptools.gpr=20 > > > Setup=20 > > > [mkdir] object directory for project Tools=20 > > > Compile=20 > > > [Ada] gen_keyboard.adb=20 > > > [Ada] scancodes.ads=20 > > > [Ada] utils.adb=20 > > > Bind=20 > > > [gprbind] gen_keyboard.bexch=20 > > > [Ada] gen_keyboard.ali=20 > > > Link=20 > > > [link] gen_keyboard.adb=20 > > > ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads= =20 > > > gprbuild -p -gnat2012 -XSDL_MODE=3Drelease -XSDL_PLATFORM=3Dmacos_por= ts \=20 > > > -Psdlada.gpr=20 > > > Setup=20 > > > [mkdir] object directory for project SDLAda=20 > > > sdlada.gpr:1:17: warning: Linker switches not taken into account in l= ibrary projects=20 > > > sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory=20 > > > gprbuild: "sdlada.gpr" processing failed=20 > > > make: *** [lib/libadasdl.a] Error 5=20 > > > *****************************************************************=20 > > Check the sdlada.gpr, it will get the platform name as the src dir too,= =20 > > I forgot about that. Change:=20 > > case Platform is=20 > > when "macos_homebrew" =3D>=20 > > to:=20 > >=20 > > case Platform is=20 > > when "macos_homebrew" | "macos_ports" | "macosx" =3D> > After=20 > 1. Completely deleting the cloned instance of sdlada;=20 1.5. Running git clone again to obtain fresh sdlada source :-) > 2. Applying the patch you provided via email;=20 > 3. manually modifying sdlada.gpr as you directed above;=20 >=20 > We have the following result:=20 > ********************************************* > make SDL_PLATFORM=3Dmacos_ports SDL_MODE=3Drelease=20 > mkdir -p gen/src/=20 > gprbuild -p -gnat2012 -XSDL_MODE=3Drelease -XSDL_PLATFORM=3Dmacos_ports \= =20 > -Ptools.gpr=20 > Setup=20 > [mkdir] object directory for project Tools=20 > Compile=20 > [Ada] gen_keyboard.adb=20 > [Ada] scancodes.ads=20 > [Ada] utils.adb=20 > Bind=20 > [gprbind] gen_keyboard.bexch=20 > [Ada] gen_keyboard.ali=20 > Link=20 > [link] gen_keyboard.adb=20 > ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads=20 > gprbuild -p -gnat2012 -XSDL_MODE=3Drelease -XSDL_PLATFORM=3Dmacos_ports \= =20 > -Psdlada.gpr=20 > Setup=20 > [mkdir] object directory for project SDLAda=20 > sdlada.gpr:1:17: warning: Linker switches not taken into account in libra= ry projects > Compile=20 > [C] version_ttf.c=20 > [REDACTED]/sdlada/src/ttf/version_ttf.c:25:18: fatal error: SDL2/SDL_ttf.= h: No such file or directory=20 > 25 | #include =20 > | ^~~~~~~~~~~~~~~~=20 > compilation terminated.=20 > gprbuild: *** compilation phase failed=20 > make: *** [lib/libadasdl.a] Error 4=20 > *********************************************