[Pkg-pascal-devel] Bug#1061418: castle-game-engine: please add support for loong64

Michalis Kamburelis michalis.kambi at gmail.com
Wed Jan 24 14:00:02 GMT 2024


Hi,

(Upstream of CGE here.)

For a new architecture, we need to have FPC (our compiler) with the
appropriate support for the architecture first.

- And at least upstream FPC 3.2.2 doesn't have this support (the CPU
isn't listed in
https://gitlab.com/freepascal.org/fpc/source/-/blob/fixes_3_2/packages/fpmkunit/src/fpmkunit.pp?ref_type=heads
).

- Only FPC from GitLab (not yet released) has this, and it is called
"loongarch64" (see
https://gitlab.com/freepascal.org/fpc/source/-/blob/main/packages/fpmkunit/src/fpmkunit.pp
). I don't know whether the support is considered stable or not.

- The FPC in Debian (
https://packages.debian.org/sid/fp-compiler-3.2.2 ) isn't released for
this architecture.

So, we need FPC to support this architecture (in some stable way), and
we need this FPC to be packaged in Debian, first.

Then adding it to CGE will be easy :)

- Once the FPC (at least packaged in Debian) has this supported, then
CGE unit ToolArchitectures ( tools/common-code/toolarchitectures.pas )
should be extended, to add a new enum to TCPU type.

- Extending the ToolDebian", as the attached patch does, is also nice
(but optional, it's only useful for `castle-engine package
--format=deb` to create DEBs of your games for new architeture; it's
not necessary to just build applications for new architecture).

- The attached patch just adds "loong64: Result := 'loong64';" to
"ToolDebian" but I don't think it can compile right now -- it
certainly doesn't compile with FPC 3.2.2 upstream.

Regards,
Michalis

śr., 24 sty 2024 o 09:18 wuruilong <wuruilong at loongson.cn> napisał(a):
>
> Source: castle-game-engine
> Severity: normal
> X-Debbugs-Cc: wuruilong at loongson.cn
>
> Dear Maintainer,
>
> Please refer to the attachment patch to support loong64 arch
>
> 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
> _______________________________________________
> Pkg-pascal-devel mailing list
> Pkg-pascal-devel at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-pascal-devel



More information about the Pkg-pascal-devel mailing list