[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1050013: gcc-13: Please don't build the Ada, Go, D and M2 on LoongArch



Package: gcc-13
Version: 13.2.0-2
Severity: wishlist
Tags: patch
User: debian-devel@lists.debian.org
Usertags: loongarch64

Dear gcc maintainers,

According to the status of the GCC upstream[1], the Ada, Go, D and M2 modules are not supported on the LoongArch architecture. Please don't build the Ada, Go, D and M2 modules on the LoongArch architecture in the gcc-13 source package.

In the future, when the GCC upstream supports Ada, Go, D or M2 modules for
the LoongArch architecture, please help us to enable the corresponding support
in debian/rules.defs.

Please consider the patch attached.
For ease of viewing, I've added the patch in personal Debian GCC project[2].
Your opinions are welcome.

[1]: https://gcc.gnu.org/gcc-13/changes.html
[2]: https://salsa.debian.org/zhangdandan/gcc/-/commit/82f3b19df4d6ba97728a15fecc40f8c77cec02b5

thanks,
Dandan Zhang

Subject: [PATCH] Disable Ada, Go, D and M2 on LoongArch

---
 debian/rules.defs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/rules.defs b/debian/rules.defs
index 17ffb78..892b1e9 100644
--- a/debian/rules.defs
+++ b/debian/rules.defs
@@ -847,7 +847,7 @@ endif
 
 ifeq (,$(filter $(DEB_STAGE),stage1 stage2))
 # Ada --------------------
-ada_no_cpus	:= m32r sh3 sh3eb sh4eb
+ada_no_cpus	:= loong64 m32r sh3 sh3eb sh4eb
 ada_no_cpus	+= arc
 ada_no_cpus	+= ia64
 ada_no_systems	:= 
@@ -1006,7 +1006,7 @@ ifneq (,$(findstring gccgo, $(PKGSOURCE)))
   with_libcc1 :=
 endif
 
-go_no_cpus := arc avr hppa
+go_no_cpus := arc avr hppa loong64
 go_no_cpus += m68k # See PR 79281 / PR 83314
 go_no_systems := kfreebsd
 ifneq (,$(filter $(distrelease),precise))
@@ -1064,7 +1064,7 @@ endif
 # D ---------------------------
 d_no_cross := yes
 d_no_snap :=
-d_no_cpus := alpha arc ia64 m68k sh4 s390 sparc64
+d_no_cpus := alpha arc ia64 loong64 m68k sh4 s390 sparc64
 d_no_systems := gnu kfreebsd-gnu
 
 ifneq ($(single_package),yes)
@@ -1261,7 +1261,7 @@ ifneq ($(with_base_only),yes)
     with_m2 := yes
   endif
 endif
-m2_no_archs = powerpc ppc64 sh4 kfreebsd-amd64 kfreebsd-i386 hurd-amd64 hurd-i386
+m2_no_archs = powerpc ppc64 sh4 kfreebsd-amd64 kfreebsd-i386 hurd-amd64 hurd-i386 loong64
 ifneq (,$(filter $(DEB_TARGET_ARCH),$(m2_no_archs)))
     with_m2 := disabled for cpu $(DEB_TARGET_ARCH)
 endif
-- 
2.39.2


Reply to: