comp.lang.ada
 help / color / mirror / Atom feed
* Silly TARGET fix in gcc means gprconfig can find the Ada runtime
@ 2022-03-10 16:44 196...@googlemail.com
  2022-03-10 17:55 ` Luke A. Guest
  0 siblings, 1 reply; 5+ messages in thread
From: 196...@googlemail.com @ 2022-03-10 16:44 UTC (permalink / raw)


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...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Silly TARGET fix in gcc means gprconfig can find the Ada runtime
  2022-03-10 16:44 Silly TARGET fix in gcc means gprconfig can find the Ada runtime 196...@googlemail.com
@ 2022-03-10 17:55 ` Luke A. Guest
  2022-03-10 18:19   ` 196...@googlemail.com
  0 siblings, 1 reply; 5+ messages in thread
From: Luke A. Guest @ 2022-03-10 17:55 UTC (permalink / raw)



On 10/03/2022 16:44, 196...@googlemail.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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Silly TARGET fix in gcc means gprconfig can find the Ada runtime
  2022-03-10 17:55 ` Luke A. Guest
@ 2022-03-10 18:19   ` 196...@googlemail.com
  2022-03-10 20:01     ` Luke A. Guest
  0 siblings, 1 reply; 5+ messages in thread
From: 196...@googlemail.com @ 2022-03-10 18:19 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Silly TARGET fix in gcc means gprconfig can find the Ada runtime
  2022-03-10 18:19   ` 196...@googlemail.com
@ 2022-03-10 20:01     ` Luke A. Guest
  2022-03-19 15:00       ` 196...@googlemail.com
  0 siblings, 1 reply; 5+ messages in thread
From: Luke A. Guest @ 2022-03-10 20:01 UTC (permalink / raw)



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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Silly TARGET fix in gcc means gprconfig can find the Ada runtime
  2022-03-10 20:01     ` Luke A. Guest
@ 2022-03-19 15:00       ` 196...@googlemail.com
  0 siblings, 0 replies; 5+ messages in thread
From: 196...@googlemail.com @ 2022-03-19 15:00 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-19 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-10 16:44 Silly TARGET fix in gcc means gprconfig can find the Ada runtime 196...@googlemail.com
2022-03-10 17:55 ` Luke A. Guest
2022-03-10 18:19   ` 196...@googlemail.com
2022-03-10 20:01     ` Luke A. Guest
2022-03-19 15:00       ` 196...@googlemail.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox