[Pkg-pascal-devel] Castle Game Engine build failure on sparc64.

Abou Al Montacir abou.almontacir at sfr.fr
Thu Nov 11 10:38:22 GMT 2021


Hi Michalis and All,

While I was waiting for Armel compilation, I had a look at other architectures
failure and picked my beloved SPARC one.
The failure [1] looks as follows:

Compiling tools/build-tool/code/toolproject.pas
Compiling ./tools/common-code/toolarchitectures.pas
toolarchitectures.pas(129,3) Error: Illegal expression
toolarchitectures.pas(146,3) Error: Illegal expression
toolarchitectures.pas(146,3) Fatal: Syntax error, ";" expected but "identifier DEFAULTOS" found
Fatal: Compilation aborted
Error: /usr/bin/ppcsparc64 returned an error exitcode

It looks like CPUsparc directive has gone and was replaced by sparc or CPUsparc6
4.
According to the compiler code in fpcsrc/compiler/options.pas:3499
      {$ifdef sparc}
        def_system_macro('CPUSPARCGEN');
        def_system_macro('CPUSPARC');
        def_system_macro('CPUSPARC32');
        def_system_macro('CPU32');
        def_system_macro('FPC_CURRENCY_IS_INT64');
        def_system_macro('FPC_COMP_IS_INT64');
      {$endif}

      {$ifdef sparc64}
        def_system_macro('CPUSPARCGEN');
        def_system_macro('CPUSPARC64');
        def_system_macro('CPU64');
        def_system_macro('FPC_CURRENCY_IS_INT64');
        def_system_macro('FPC_COMP_IS_INT64');
      {$endif}

So do you agree that we should change the define to the new name, even if the of


ficial documentation, Table G.2 in [2], does not mention the new directive?

I'll probably raise a ticket on upstream GiLlab so that doc get aligned with cod
e.

[1] https://buildd.debian.org/status/fetch.php?pkg=castle-game-engine&arch=sparc64&ver=7.0~alpha.1%2Bdfsg-3&stamp=1635791264&raw=0
[2] https://www.freepascal.org/docs-html/3.2.2/prog/progap7.html
-- 
Cheers,
Abou Al Montacir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20211111/936be173/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20211111/936be173/attachment.sig>


More information about the Pkg-pascal-devel mailing list