#1091769 oaklisp: Please add support for loong64

#1091769#5
Date:
2024-12-31 08:05:36 UTC
From:
To:
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

#1091769#10
Date:
2025-01-06 08:49:26 UTC
From:
To:
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,

#1091769#15
Date:
2025-01-06 09:30:14 UTC
From:
To:
Xiao Sheng,

Thanks for testing that -mabi=ilp32f patch.
---------------- wuruilong (and other loong folks), Here is what the build log says: 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
#1091769#20
Date:
2025-01-07 02:09:19 UTC
From:
To:
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
 >
 >

#1091769#25
Date:
2025-01-10 01:34:00 UTC
From:
To:
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
 >
 >

#1091769#30
Date:
2025-01-12 19:33:16 UTC
From:
To:
Well, it's in the configure.ac script already so I'll just leave in
there and maybe someday it will work.