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=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" Date: Wed, 12 Jul 2023 16:44:16 +0100 Organization: A noiseless patient Spider Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 12 Jul 2023 15:44:17 -0000 (UTC) Injection-Info: dont-email.me; posting-host="21f16c4f59329ff850063878719f6db7"; logging-data="3497171"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NEuXDBHr+iyXNr4lMRob73RiDBCSUUPg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cancel-Lock: sha1:8NWS+Iq7gRYXyidxJEFxVAHFIn8= Content-Language: en-GB In-Reply-To: <13e5d57c-e79e-4635-8986-d0b95542cb61n@googlegroups.com> Xref: news.eternal-september.org comp.lang.ada:65433 List-Id: On 12/07/2023 07:01, Kenneth Wolcott wrote: > On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote: >> On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote: >>> On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote: >>>> On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote: >>>>> On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote: >>>>>> On 04/07/2023 00:58, Kenneth Wolcott wrote: >>>>>>> On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote: >>>>>>>> Kenneth Wolcott writes: >>>>>>>> [...] >>>>>>>>> After adding a semi-colon at the following line in sdlada.gpr >>>>>>>>> >>>>>>>>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata"); >>>>>>>> [...] >>>>>>>> >>>>>>>> Unless "-gnat202" requests the version of Ada that was current during >>>>>>>> the reign of Septimius Severus, you probably want to use "-gnat2022". >>>>>>>> (Options can be abbreviated, but "-gnat202" may become ambiguous if >>>>>>>> there's a new Ada standard before 2030.) >>>>>>>> >>>>>>>> Also "Default_Swiches" is mispelled. >>>>>>>> >>>>>>>> If the typos are the result of re-typing that line, I strongly suggest >>>>>>>> copy-and-pasting any code you post. >>>>>>>> >>>>>>>> -- >>>>>>>> Keith Thompson >>>>>>> >>>>>>> Thank you, Keith :-) >>>>>>> >>>>>>> Fixed those two typos. >>>>>>> >>>>>>> Here's the current output from trying to build: >>>>>>> >>>>>>> make SDL_PLATFORM=macos_ports SDL_MODE=debug >>>>>>> mkdir -p gen/src/ >>>>>>> gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \ >>>>>>> -Psdlada.gpr >>>>>>> sdlada.gpr:26:09: a variable cannot be declared for the first time here >>>>>>> sdlada.gpr:26:23: unknown variable "C_Switches" >>>>>>> gprbuild: "sdlada.gpr" processing failed >>>>>>> make: *** [lib/libadasdl.a] Error 5 >>>>>>> >>>>>>> Thanks, >>>>>>> Ken >>>>>> This makes no sense, line 26 is this: >>>>>> Source_Platform := "../../src/" & Platform; >>>>> Hi Luke; >>>>> >>>>> Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed... >>>>> >>>>> Thanks, >>>>> Ken >>>> Hi Luke; >>>> >>>> Please email the patch to me as an attachment using the email address: [redacted :-) ] >>>> >>>> Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route. >>>> >>>> Thanks, >>>> Ken >>> The email address is kwolcott at yahoo dot com. >> Hi Luke; >> >> Thanks for the patch via email. >> >> The md5sum matches... >> >> I ran git restore in the sdlada git clone directory... >> >> I then applied the patch: >> >> patch -p1 < test.patch >> patching file 'build/gnat/makefile' >> patching file 'build/gnat/sdlada.gpr' >> patching file 'build/gnat/sdlada_image.gpr' >> Reversed (or previously applied) patch detected! Assume -R? [y] y >> patching file 'build/gnat/tests.gpr' >> Reversed (or previously applied) patch detected! Assume -R? [y] y >> patching file 'build/gnat/tests_image.gpr' >> Reversed (or previously applied) patch detected! Assume -R? [y] y >> patching file 'build/gnat/unit_tests.gpr' >> Reversed (or previously applied) patch detected! Assume -R? [y] y >> patching file 'src/image/version_images.c' >> Reversed (or previously applied) patch detected! Assume -R? [y] y >> patching file 'src/ttf/version_ttf.c' >> Reversed (or previously applied) patch detected! Assume -R? [y] y >> >> Attempting to build: >> >> make SDL_PLATFORM=macos_ports SDL_MODE=release >> mkdir -p gen/src/ >> gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ >> -Psdlada.gpr >> Setup >> [mkdir] object directory for project SDLAda >> sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects >> sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory >> gprbuild: "sdlada.gpr" processing failed >> make: *** [lib/libadasdl.a] Error 5 >> So, what did I do wrong this time? >> >> Thanks, >> Ken > > > Ok, > > I deleted the contents of the sdlada git clone directory... > > then did a git restore . > > then applied the patch > > then ran make. > > Still fails... > > ***************************************************************** > patch -p1 < test.patch > patching file 'build/gnat/makefile' > patching file 'build/gnat/sdlada.gpr' > patching file 'build/gnat/sdlada_image.gpr' > patching file 'build/gnat/tests.gpr' > patching file 'build/gnat/tests_image.gpr' > patching file 'build/gnat/unit_tests.gpr' > patching file 'src/image/version_images.c' > patching file 'src/ttf/version_ttf.c' > sdlada: cd build/gnat > gnat: make SDL_PLATFORM=macos_ports SDL_MODE=release > mkdir -p gen/src/ > gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ > -Ptools.gpr > Setup > [mkdir] object directory for project Tools > Compile > [Ada] gen_keyboard.adb > [Ada] scancodes.ads > [Ada] utils.adb > Bind > [gprbind] gen_keyboard.bexch > [Ada] gen_keyboard.ali > Link > [link] gen_keyboard.adb > ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads > gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ > -Psdlada.gpr > Setup > [mkdir] object directory for project SDLAda > sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects > sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory > gprbuild: "sdlada.gpr" processing failed > make: *** [lib/libadasdl.a] Error 5 > ***************************************************************** Check the sdlada.gpr, it will get the platform name as the src dir too, I forgot about that. Change: case Platform is when "macos_homebrew" => to: case Platform is when "macos_homebrew" | "macos_ports" | "macosx" =>