loongson-community / discussions

Cross-community issue tracker & discussions / 跨社区工单追踪 & 讨论场所
9 stars 0 forks source link

Bootstrap GNAT and GDC for Debian #60

Closed xen0n closed 3 weeks ago

xen0n commented 1 month ago

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

Steps:

This issue tracks collaboration of said work.

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

xen0n commented 1 month ago

Reasons why bootstrapping is needed:

wzssyqa commented 1 month ago

WÁNG Xuěruì @.***> 于2024年7月16日周二 14:16写道:

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

我来说个更详细的步骤:

  1. 制作Multiarch镜像,同时装amd64和loong64的相关依赖包 这一步需要大量的脏操作,包括装包的时候强制忽略版本依赖关系等
  2. 使用 dpkg-buildpackage -aloong64 来编译 此处的交叉编译分两种,一种是 --host=--build, 还有一种是 --host=--target 我之前用过几次,是可以搞出来的。
  3. 在loong64上,使用第二步编译出来的包,再编译一遍。

This issue tracks collaboration of said work.

cc @212dandan https://github.com/212dandan @Dandan336 https://github.com/Dandan336 (which is the primary account?)

— Reply to this email directly, view it on GitHub https://github.com/loongson-community/discussions/issues/60, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABH4CJ34FMBUAVDVIIIWODZMS3DJAVCNFSM6AAAAABK5367VWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTAMZQGI3TMMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- YunQiang Su

xen0n commented 1 month ago

@Dandan336 says https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072635

xen0n commented 1 month ago

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

RevySR commented 1 month ago

https://tracker.debian.org/news/1546039/accepted-gcc-14-1410-5-source-into-unstable/

xen0n commented 1 month ago

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 commented 1 month ago

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

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

wzssyqa commented 1 month ago

不是的,现在的gnat只能同时装一个版本,而且自带没版本号的链接。

WÁNG Xuěruì @.***> 于 2024年7月22日周一 18:26写道:

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

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

— Reply to this email directly, view it on GitHub https://github.com/loongson-community/discussions/issues/60#issuecomment-2242619074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABH4CNZTAJLWU4KQ2RXKHLZNTM3PAVCNFSM6AAAAABK5367VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSGYYTSMBXGQ . You are receiving this because you commented.Message ID: @.***>

xen0n commented 1 month ago

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 commented 3 weeks ago

These bugs were fixed:

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