Source: binutils-avr
Version: 2.26.20160125+Atmel3.6.2-6
Severity: wishlist
Tags: sid ftbfs
User: debian-de...@lists.debian.org
Usertags: loongarch64

Dear maintainers,

When compiling the package binutils-avr for loong64 in the Debian Package Auto-Building environment [1], The error message is as follows:
- The machine 'loongarch64' is not recognized.
checking build system type... Invalid configuration `loongarch64-linux-gnu': machine `loongarch64' not recognized
configure: error: /bin/bash ./config.sub loongarch64-linux-gnu failed
make: *** [debian/rules:46: configure-stamp] Error 1


In addition, we offer you two suggestions for binutils-avr source package.
- dh_clean: warning: Compatibility levels before 10 are deprecated (level 7 in use).
You might consider updating the compat level.
- If update the compat level to 13, there will occur an error.
dh_clean -k
dh_clean: warning: The -k option is not supported in compat 12; use dh_prep instead
dh_clean: error: This feature was removed in compat 12.
make: *** [debian/rules:80: install] Error 255

Please consider the patch I have attached.
Most importantly, it is recommended to update config.guess and config.sub for the LoongArch architecture.
The full compilation log can be found at [2].

[1]:https://buildd.debian.org/status/package.php?p=binutils-avr&suite=sid
[2]:https://buildd.debian.org/status/logs.php?pkg=binutils-avr&ver=2.26.20160125%2BAtmel3.6.2-6&arch=loong64

thanks,
Dandan Zhang

diff -Nru binutils-avr-2.26.20160125+Atmel3.6.2/debian/compat 
binutils-avr-2.26.20160125+Atmel3.6.2/debian/compat
--- binutils-avr-2.26.20160125+Atmel3.6.2/debian/compat 2023-07-31 
22:56:17.000000000 +0000
+++ binutils-avr-2.26.20160125+Atmel3.6.2/debian/compat 2023-07-31 
23:15:01.000000000 +0000
@@ -1 +1 @@
-7
+13
diff -Nru binutils-avr-2.26.20160125+Atmel3.6.2/debian/rules 
binutils-avr-2.26.20160125+Atmel3.6.2/debian/rules
--- binutils-avr-2.26.20160125+Atmel3.6.2/debian/rules  2023-07-31 
22:56:17.000000000 +0000
+++ binutils-avr-2.26.20160125+Atmel3.6.2/debian/rules  2023-07-31 
23:15:01.000000000 +0000
@@ -41,6 +41,7 @@
 configure-stamp:
        dh_testdir
 
+       dh_update_autotools_config
        # Add here commands to configure the package.
        #cd $(BUILD_TREE)/ld && aclocal-1.9 && automake-1.9
        #cd $(BUILD_TREE) && env CC="gcc" 
CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter" 
./configure $(CONFARGS)
@@ -77,7 +78,7 @@
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k
+       dh_prep
        dh_installdirs
 
        # Add here commands to install the package into debian/$(PACKAGE).

Reply via email to