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.7 required=3.0 tests=BAYES_20,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,PDS_FROM_2_EMAILS autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:56b:b0:62c:eff4:fe8d with SMTP id p11-20020a05620a056b00b0062ceff4fe8dmr8304094qkp.459.1647702000643; Sat, 19 Mar 2022 08:00:00 -0700 (PDT) X-Received: by 2002:a25:500e:0:b0:633:7dc4:a4c2 with SMTP id e14-20020a25500e000000b006337dc4a4c2mr14194525ybb.542.1647702000456; Sat, 19 Mar 2022 08:00:00 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 19 Mar 2022 08:00:00 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2001:8b0:ca:6:0:0:0:fd; posting-account=TiHetgoAAACluCgYkPc8-TWs6dBNgSne NNTP-Posting-Host: 2001:8b0:ca:6:0:0:0:fd References: <2038c88e-b2f7-4499-aeb6-4ddbe081a5a2n@googlegroups.com> <2bb984ff-4ccc-4f08-a58d-46f5caf385fdn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Silly TARGET fix in gcc means gprconfig can find the Ada runtime From: "196...@googlemail.com" <1963bib@googlemail.com> Injection-Date: Sat, 19 Mar 2022 15:00:00 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:63609 List-Id: On Thursday, 10 March 2022 at 20:01:40 UTC, Luke A. Guest wrote: > 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. No, it doesn't.