Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap GNAT and GDC for Debian #60

Closed
xen0n opened this issue Jul 16, 2024 · 10 comments
Closed

Bootstrap GNAT and GDC for Debian #60

xen0n opened this issue Jul 16, 2024 · 10 comments
Labels
AREA: Integration DISTRO: Debian Issue is present on Debian

Comments

@xen0n
Copy link
Member

xen0n commented Jul 16, 2024

This has been blocking Debian loong64 port's gcc-14 and various other related packages for a while now.

Steps:

  • Cross-compile version 13 of GNAT and GDC for LoongArch
  • Make Debian package out of it
  • Ask someone to upload it to Debian-Ports
  • See if things are unblocked

This issue tracks collaboration of said work.

cc @212dandan @Dandan336 (which is the primary account?)

@xen0n xen0n added AREA: Integration DISTRO: Debian Issue is present on Debian labels Jul 16, 2024
@xen0n
Copy link
Member Author

xen0n commented Jul 16, 2024

Reasons why bootstrapping is needed:

  • It's well known that GNAT is written in Ada
  • GDC runtime code is written in D starting from GCC 12, which unfortunately means no version of LoongArch GCC can support D without first having a D compiler

@wzssyqa
Copy link

wzssyqa commented Jul 16, 2024 via email

@xen0n
Copy link
Member Author

xen0n commented Jul 16, 2024

@xen0n
Copy link
Member Author

xen0n commented Jul 16, 2024

gnat-13 was bumped to gnat-14 for loong64, but only that, missing gdc-13 which causes this bug. This will be fixed shortly.

@xen0n
Copy link
Member Author

xen0n commented Jul 22, 2024

The version is stuck in Build-Attempted status. @Dandan336 says it's still caused by outdated gcc-defaults symlinking unversioned gnatmake etc. to non-existent gnat*-13.

@xen0n
Copy link
Member Author

xen0n commented Jul 22, 2024

There seems to be a gnat package that needs bumping too:

gcc-defaults doesn't seem to contain declarations for the gnat-* packages.

@wzssyqa
Copy link

wzssyqa commented Jul 22, 2024 via email

@xen0n
Copy link
Member Author

xen0n commented Aug 5, 2024

The work is now blocked by gcc SIGILL's on builders. Likely due to too old kernels on builders (no ISA extensions support; the new gcc-14 binaries make use of LSX). Waiting for Loongson to upgrade the builders' kernels.

@xen0n
Copy link
Member Author

xen0n commented Aug 22, 2024

These bugs were fixed:

Now gcc-14 is fully bootstrapped on loong64, complete with GNAT and GDC. Closing 🎉

@xen0n xen0n closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AREA: Integration DISTRO: Debian Issue is present on Debian
Projects
None yet
Development

No branches or pull requests

3 participants