Discussion:
Bug#862927: gnat (GCC 7) fails to build on m68k
(too old to reply)
John Paul Adrian Glaubitz
2017-07-14 16:10:03 UTC
Permalink
Raw Message
Package: src:gcc-7-cross-ports
Followup-For: Bug #862927
User: debian-***@lists.debian.org
Usertags: m68k

Hello!

I had a go at this and came up with the attached patch which
fixes the problem for me. With the patch applied, I can build
a gnat cross-compiler for m68k.

Cheers,
Adrian

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
John Paul Adrian Glaubitz
2017-07-17 09:00:02 UTC
Permalink
Raw Message
Post by John Paul Adrian Glaubitz
I had a go at this and came up with the attached patch which
fixes the problem for me. With the patch applied, I can build
a gnat cross-compiler for m68k.
The patch has already been merged upstream, both on trunk [1] and in
the gcc-7-branch [2], so carrying the patch is not necessary when
including the next slew of SVN updates.

Adrian
Post by John Paul Adrian Glaubitz
[1] https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=250224
[2] https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=250225
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
John Paul Adrian Glaubitz
2017-07-26 22:10:02 UTC
Permalink
Raw Message
Control: reopen -1
Post by John Paul Adrian Glaubitz
Post by John Paul Adrian Glaubitz
I had a go at this and came up with the attached patch which
fixes the problem for me. With the patch applied, I can build
a gnat cross-compiler for m68k.
The patch has already been merged upstream, both on trunk [1] and in
the gcc-7-branch [2], so carrying the patch is not necessary when
including the next slew of SVN updates.
The current version of gcc-7 in unstable is missing the patch from [1]:

s-maccod.ads:36:15: violation of No_Elaboration_Code_All at line 37
s-maccod.ads:36:15: unit "System" does not have No_Elaboration_Code_All
../gcc-interface/Makefile:299: recipe for target 's-maccod.o' failed

I'll reopen this.
Post by John Paul Adrian Glaubitz
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81446
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Loading...