Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1059508: tcsh: Compilation failed on multiple architectures

4 views
Skip to first unread message

Zhang Na

unread,
Dec 27, 2023, 3:30:06 AM12/27/23
to
Source: tcsh
Version: 6.24.10-3
Severity: normal
X-Debbugs-Cc: zha...@loongson.cn

Dear Maintainer,

https://buildd.debian.org/status/package.php?p=tcsh&suite=sid
Compilation failed on multiple architectures, the reason for failure is the same. You should compile using regular users instead of root. The shell prompts for root and user are different, and testing will result in errors for root.
I have verified on Loong64.
Many packages depend on tcsh, please help compile them through,
thanks!

my test:
dh_md5sums
dh_builddeb
dpkg-deb: building package 'tcsh-dbgsym' in '../tcsh-dbgsym_6.24.10-3_loong64.deb'.
dpkg-deb: building package 'tcsh' in '../tcsh_6.24.10-3_loong64.deb'.
dpkg-genbuildinfo -O../tcsh_6.24.10-3_loong64.buildinfo
dpkg-genchanges -O../tcsh_6.24.10-3_loong64.changes
dpkg-genchanges: info: not including original source code in upload
dpkg-source --after-build .
dpkg-buildpackage: info: binary and diff upload (original source NOT included)
zhangna@localhost:~/tcsh-1/tcsh-6.24.10$ ls ../
build.log tcsh_6.24.10-3.debian.tar.xz tcsh_6.24.10-3_loong64.changes
tcsh-6.24.10 tcsh_6.24.10-3.dsc tcsh_6.24.10-3_loong64.deb
tcsh-dbgsym_6.24.10-3_loong64.deb tcsh_6.24.10-3_loong64.buildinfo tcsh_6.24.10.orig.tar.gz
zhangna@localhost:~$ arch
loongarch64



-- 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=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Zhang Na

unread,
Dec 27, 2023, 9:40:05 PM12/27/23
to
Please try again,  I did not occur this error. This has nothing to do
with the architecture, perhaps you can help solve this permission problem.


## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##

#                             -*- compilation -*-
68. commands.at:1041: testing nice ...
./commands.at:1045: tcsh -f -c 'nice set var=1; echo $?var'
--- /dev/null    2023-08-30 13:17:09.000000000 +0000
+++ /<<PKGBUILDDIR>>/testsuite.dir/at-groups/68/stderr 2023-09-01
09:12:12.022965657 +0000
@@ -0,0 +1 @@
+setpriority: Permission denied.
68. commands.at:1041: 68. nice (commands.at:1041): FAILED (commands.at:1045)

Theppitak Karoonboonyanan

unread,
Feb 1, 2024, 4:10:05 AM2/1/24
to
I've tried building using loong64 QEMU sbuild as described here:
https://wiki.debian.org/LoongArch/sbuildQEMU

The build appears to require loong64-ported version of
linux-libc-dev. Otherwise, <asm/sigcontext.h> would be missing.

When linux-libc-dev is satisfied, the build compiles successfully,
but then fails at override_dh_auto_test stage, with 1 failed test:
"status". The log in testsuite.log says:

---8<---
233. variables.at:1397: testing $ status ...
./variables.at:1407: tcsh -f status.csh 2>&1 | sed 's/Abort *(core dumped)/Abort
/'
--- - 2024-02-01 03:21:49.076577996 +0000
+++ /tmp/build/tcsh-6.24.10/testsuite.dir/at-groups/233/stdout
2024-02-01 03:21
:49.056169869 +0000
@@ -1,4 +1,5 @@
0
+qemu: uncaught target signal 6 (Aborted) - core dumped
Abort
OK
0
233. variables.at:1397: 233. $ status (variables.at:1397): FAILED (variables.at:
1407)
---8<---

The extra output line comes from QEMU.
Is it possible to configure sbuild/buildd chroot to quiet QEMU?

For the 'nice' test reported earlier, it now passes.

Regards,
--
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
0 new messages