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

Bug#1053742: 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')
merged-usr: no
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 /bin/dash
Init: unable to detect
--- klibc_ori/klibc-2.0.13/debian/rules	2022-01-30 22:49:22.000000000 +0000
+++ klibc_src/klibc-2.0.13/debian/rules	2023-10-08 08:36:23.820231480 +0000
@@ -31,6 +31,9 @@
 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: