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-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!Lx7EM+81f32E0bqku+QpCA.user.46.165.242.75.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Silly TARGET fix in gcc means gprconfig can find the Ada runtime Date: Thu, 10 Mar 2022 20:01:11 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <2038c88e-b2f7-4499-aeb6-4ddbe081a5a2n@googlegroups.com> <2bb984ff-4ccc-4f08-a58d-46f5caf385fdn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="43849"; posting-host="Lx7EM+81f32E0bqku+QpCA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-GB Xref: reader02.eternal-september.org comp.lang.ada:63601 List-Id: On 10/03/2022 18:19, 196...@googlemail.com wrote: > On Thursday, 10 March 2022 at 17:55:30 UTC, Luke A. Guest wrote: >> On 10/03/2022 16:44, 196....com wrote: >>> For all those who can cursed the inability of gprconfig to find the ada runtime, a fix has been pushed into the gcc sources, https://github.com/gcc-mirror/gcc/commit/9467e7331188705ec16c086b77e1809c5b0aab7d. >>> >>> Basically, with 'gcc --dumpmachine' would return something like 'x86_64-pc-linux', but the runtime file s-oscons.ads said it was 'x86_64-pc-linux-gnu' giving a mismatch and the runtime never being found. >>> >>> After modifying compilers.xml to hunt in ../lib(.+)?/ since files are 64bit under lib64, I've built gcc-11, gprbuild & xmlada all without issues. Hooray... >>> >>> Must be one of the longest gubs in gnat... >> On Gentoo, it is x86_64-pc-linux-gnu: >> >> ls /usr/x86_64-pc-linux-gnu/ >> bin binutils-bin gcc-bin i686-w64-mingw32 lib x86_64-w64-mingw32 >> >> gcc -dumpmachine >> x86_64-pc-linux-gnu >> >> How does this affect us? > > On suse it's x86_64-suse-linux. If you were to build on redhat, it would be x86_64-redhat-linux. They would fail. I'm sure there are others. That doesn't answer my question. I asked whether this change will flip it in the other direction and fail for distributions which use the -gnu part at the end like gentoo does. If so, that's not a fix.