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

Bug#1095720: emacs: FTBFS: please don't try to build with native compilation on loong64



Source: emacs
Version: 1:29.4+1-5
Severity: normal
Tags: ftbfs patch
User: debian-loongarch@lists.debian.org
Usertags: loong64
X-Debbugs-CC: debian-loongarch@lists.debian.org

Dear maintainers,

Compiling the emacs failed for loong64 in the Debian Package Auto-Building environment.
The error log is as follows,
```
......
../src/bootstrap-emacs(FletX+0x17c) [0x555556382fec]
../src/bootstrap-emacs(eval_sub+0x958) [0x55555637efd8]
...
make[5]: *** [Makefile:282: /<<PKGBUILDDIR>>/debian/build-src/lisp/emacs-lisp/seq.elc] Segmentation fault make[4]: *** [Makefile:841: /<<PKGBUILDDIR>>/debian/build-src/lisp/emacs-lisp/seq.elc] Error 2
make[4]: *** Waiting for unfinished jobs....
......
```

The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=emacs&ver=1%3A29.4%2B1-5&arch=loong64.

The binary emacs-common blocks the build of 21 source packages.
Referring to other architectures, it is recommended that do not try to build with native compilation on loong64, too.

Please consider the patch I attached.
Based on the attached patch, emacs 1:29.4+1-5 was built successfully on local ENV.
```
   dh_md5sums -a
   dh_builddeb -a
dpkg-deb: building package 'emacs-lucid-dbgsym' in '../emacs-lucid-dbgsym_29.4+1-5_loong64.deb'. dpkg-deb: building package 'emacs-lucid' in '../emacs-lucid_29.4+1-5_loong64.deb'. dpkg-deb: building package 'emacs-nox-dbgsym' in '../emacs-nox-dbgsym_29.4+1-5_loong64.deb'.
......
```

Your opinions are welcome.

Best regards,
Dandan Zhang

diff -Nru emacs-29.4+1/debian/rules emacs-29.4+1/debian/rules
--- emacs-29.4+1/debian/rules	2025-01-13 08:45:01.000000000 +0000
+++ emacs-29.4+1/debian/rules	2025-01-13 08:45:01.000000000 +0000
@@ -286,7 +286,7 @@
 confflags += --without-gconf
 confflags += --with-mailutils
 # At the moment, there's no mips64el libgccjitN-dev
-ifeq (,$(filter $(DEB_HOST_ARCH),mips64el riscv64 s390x))
+ifeq (,$(filter $(DEB_HOST_ARCH),mips64el riscv64 s390x loong64))
   deb_native_compilation_enabled := 1
   confflags += --with-native-compilation
 endif

Reply to: