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

Bug#1054468: "klibc: Keep KLIBCARCH with upstream projects"



Source: klibc
Version: 2.0.13-1
Severity: normal
X-Debbugs-Cc: fanpeng@loongson.cn

Dear Maintainer,

When compiling the package klibc for loong64 in the Debian
Package Auto-Building environment, the error message is as follows:
make[2]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
/usr/bin/make -f /<<PKGBUILDDIR>>/scripts/Kbuild.klibc obj=klcc
/<<PKGBUILDDIR>>/scripts/Kbuild.klibc:91: /<<PKGBUILDDIR>>/usr/klibc/arch/loong64/MCONFIG: No such file or directory
make[3]: *** No rule to make target '/<<PKGBUILDDIR>>/usr/klibc/arch/loong64/MCONFIG'.  Stop.


-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to POSIX), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
diff --git a/debian/rules b/debian/rules
index ce1380e..b2d5b4d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,6 +31,9 @@ endif
 ifeq ($(DEB_HOST_ARCH),sh4)
 KLIBCARCH := sh
 endif
+ifeq ($(DEB_HOST_ARCH),loong64)
+KLIBCARCH := loongarch64
+endif
 
 KLIBC_MAKEFLAGS := -C debian/build -f $(CURDIR)/Makefile KBUILD_SRC=$(CURDIR) INSTALLROOT=../tmp ARCH=$(KLIBCARCH) $(KLIBC_MAKEFLAGS)
 

Reply to: