Source: oaklisp
Version: 1.3.7-4
Severity: normal
Tags: sid patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: loong64
Dear Maintainer,
Add 32-bit support for this architecture according to loongarch's official documentation. Link to details: https://github.com/loongson/la-toolchain-conventions
wuruilong
-- 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=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Hi,
I just test your patch[1] for loong64, it failed:
The error log is:
checking build system type... loongarch64-unknown-linux-gnu
checking host system type... loongarch64-unknown-linux-gnu
configure: WARNING: non 32-bit pointer platform detected
configure: trying to enable 32-bit memory model compiler option for loongarch64
configure: compiler option for 32-bit memory model: -mabi=ilp32f
checking size of void *... 0
configure: error: bad flags, Indy
tail -v -n \+0 config.log
==> config.log <==
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Oaklisp configure 1.3.7, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ ./configure --build=loongarch64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules '--libdir=${prefix}/lib/loongarch64-linux-gnu' --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking
The full build log please see attachment.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1091769;filename=add-support-for-loong64.patch;msg=5
Regards,
--
肖盛文 xiao sheng wen -- Debian Developer(atzlinux)
Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40debian.org
Debian salsa: https://salsa.debian.org/atzlinux-guest
GnuPG Public Key: 0x00186602339240CB
Acknowledgement sent
to "Barak A. Pearlmutter" <[email protected]>:
Extra info received and forwarded to list. Copy sent to Barak A. Pearlmutter <[email protected]>.
(Mon, 06 Jan 2025 09:33:01 GMT) (full text, mbox, link).
Subject: Re: Bug#1091769: oaklisp: loong patch test fail
Date: Mon, 6 Jan 2025 09:30:14 +0000
Xiao Sheng,
Thanks for testing that -mabi=ilp32f patch.
----------------
wuruilong (and other loong folks),
Here is what the build log says:
> configure:5169: gcc -o conftest ... -mabi=ilp32f ... conftest.c ...
> gcc: error: unrecognized argument in option '-mabi=ilp32f'
> gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
It would seem that Debian GCC for loongarch64 did not have 32-bit
support available on the build system.
Perhaps gcc-multilib needs to be installed? That is necessary for
other 64-bit architectures that have a 32-bit mode. I could add
loongarch64 to the architecture list for gcc-multilib in the build
dependencies. But I'm not seeing it as available for loongarch64 in
https://packages.debian.org/unstable/gcc-multilib
Acknowledgement sent
to wuruilong <[email protected]>:
Extra info received and forwarded to list. Copy sent to Barak A. Pearlmutter <[email protected]>.
(Tue, 07 Jan 2025 02:12:01 GMT) (full text, mbox, link).
Hi,
The current repository version of gcc does not support this option yet.
Oaklisp needs to wait for gcc to be upgraded to support it.
wuruilong
On Mon, 6 Jan 2025 09:30:14 +0000 "Barak A. Pearlmutter" wrote:
> Xiao Sheng,
>
> Thanks for testing that -mabi=ilp32f patch.
>
> ----------------
>
> wuruilong (and other loong folks),
>
> Here is what the build log says:
>
> > configure:5169: gcc -o conftest ... -mabi=ilp32f ... conftest.c ...
> > gcc: error: unrecognized argument in option '-mabi=ilp32f'
> > gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
>
> It would seem that Debian GCC for loongarch64 did not have 32-bit
> support available on the build system.
>
> Perhaps gcc-multilib needs to be installed? That is necessary for
> other 64-bit architectures that have a 32-bit mode. I could add
> loongarch64 to the architecture list for gcc-multilib in the build
> dependencies. But I'm not seeing it as available for loongarch64 in
> https://packages.debian.org/unstable/gcc-multilib
>
>
Acknowledgement sent
to wuruilong <[email protected]>:
Extra info received and forwarded to list. Copy sent to Barak A. Pearlmutter <[email protected]>.
(Fri, 10 Jan 2025 01:36:02 GMT) (full text, mbox, link).
Hi,
I'm very sorry, Oaklisp has not been verified locally, and currently GCC
does not support it. I was very impatient to submit this bug, and I
think it's better to close this bug now. It's safer to submit the
corresponding patch after the local compilation is successful in the future.
wuruilong
On Mon, 6 Jan 2025 09:30:14 +0000 "Barak A. Pearlmutter" wrote:
> Xiao Sheng,
>
> Thanks for testing that -mabi=ilp32f patch.
>
> ----------------
>
> wuruilong (and other loong folks),
>
> Here is what the build log says:
>
> > configure:5169: gcc -o conftest ... -mabi=ilp32f ... conftest.c ...
> > gcc: error: unrecognized argument in option '-mabi=ilp32f'
> > gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
>
> It would seem that Debian GCC for loongarch64 did not have 32-bit
> support available on the build system.
>
> Perhaps gcc-multilib needs to be installed? That is necessary for
> other 64-bit architectures that have a 32-bit mode. I could add
> loongarch64 to the architecture list for gcc-multilib in the build
> dependencies. But I'm not seeing it as available for loongarch64 in
> https://packages.debian.org/unstable/gcc-multilib
>
>
Acknowledgement sent
to "Barak A. Pearlmutter" <[email protected]>:
Extra info received and forwarded to list. Copy sent to Barak A. Pearlmutter <[email protected]>.
(Sun, 12 Jan 2025 19:36:01 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.