[fpc-pascal] FPC for FreeBSD/PowerPC64
Curtis Hamilton
clhamilto at gmail.com
Mon Sep 14 16:59:39 CEST 2020
I've resolved my initial issue. It was something included in the
command-line that was causing the error.
I'm trying to use the unmodified linux/powerpc64 files with freebsd. When
building bsd/system.pp I get the following:
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Assembler
messages:
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld57 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld58 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld59 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld60 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld61 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld62 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld63 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld64 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld1 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld23 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld24 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld25 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld26 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld27 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld28$strlab does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld30 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld31 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld32 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld33 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld34 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld35 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld36 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld37 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld38 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld39 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld40 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld41 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld42 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld43 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld44 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld45 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld46 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld47 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld48 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld49 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld50 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ._$SYSTEM$_Ld51 does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld52$strlab does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld53$strlab does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld54$strlab does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld55$strlab does not evaluate to a constant
/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error:
.size expression for ..Ld56$strlab does not evaluate to a constant
system.pp(395) Error: Error while assembling exitcode 1
system.pp(395) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
I'm a novice programmer, so any suggestions on what to look at or how to
fix this?
On Sun, Sep 13, 2020 at 6:14 PM Curtis Hamilton <clhamilto at gmail.com> wrote:
> Thanks for the info. I checked and added code similar to what's in
> i_linux.pas and t_linux.pas to i_bsd.pas and t_bsd.pas, respectively.
>
> However, I'm still getting the same error message.
>
> Maybe I'm missing something. Attached are the modified files.
>
> Thanks in advance.
>
> On Sun, Sep 13, 2020 at 6:06 AM Jonas Maebe via fpc-pascal <
> fpc-pascal at lists.freepascal.org> wrote:
>
>> On 13/09/2020 10:36, Karoly Balogh (Charlie/SGR) via fpc-pascal wrote:
>> > See systems/t_linux.pas for an example, and do something similar in the
>> > PPC64 FreeBSD port.
>>
>> You should also set the ABI in systems/i_bsd.pas already. The code in
>> t_linux is because of the support for both big and little endian
>> PowerPC64 (which FreeBSD also has, so you'll indeed have to do the same
>> there).
>>
>>
>> Jonas
>> _______________________________________________
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200914/acc84566/attachment.htm>
More information about the fpc-pascal
mailing list