<div dir="ltr"><div>I've resolved my initial issue. It was something included in the command-line that was causing the error.</div><div><br></div><div>I'm trying to use the unmodified linux/powerpc64 files with freebsd. When building bsd/system.pp I get the following:</div><div><br></div><div>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Assembler messages:<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld57 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld58 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld59 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld60 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld61 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld62 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld63 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld64 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld1 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld23 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld24 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld25 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld26 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld27 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld28$strlab does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld30 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld31 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld32 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld33 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld34 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld35 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld36 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld37 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld38 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld39 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld40 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld41 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld42 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld43 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld44 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld45 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld46 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld47 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld48 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld49 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld50 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ._$SYSTEM$_Ld51 does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld52$strlab does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld53$strlab does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld54$strlab does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld55$strlab does not evaluate to a constant<br>/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd/system.s: Error: .size expression for ..Ld56$strlab does not evaluate to a constant<br>system.pp(395) Error: Error while assembling exitcode 1<br>system.pp(395) Fatal: There were 2 errors compiling module, stopping<br>Fatal: Compilation aborted<br></div><div><br></div><div>I'm a novice programmer, so any suggestions on what to look at or how to fix this?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 13, 2020 at 6:14 PM Curtis Hamilton <<a href="mailto:clhamilto@gmail.com">clhamilto@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>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. <br></div><div><br></div><div>However, I'm still getting the same error message. <br></div><div><br></div><div>Maybe I'm missing something. Attached are the modified files.</div><div><br></div><div>Thanks in advance.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 13, 2020 at 6:06 AM Jonas Maebe via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 13/09/2020 10:36, Karoly Balogh (Charlie/SGR) via fpc-pascal wrote:<br>
> See systems/t_linux.pas for an example, and do something similar in the<br>
> PPC64 FreeBSD port.<br>
<br>
You should also set the ABI in systems/i_bsd.pas already. The code in<br>
t_linux is because of the support for both big and little endian<br>
PowerPC64 (which FreeBSD also has, so you'll indeed have to do the same<br>
there).<br>
<br>
<br>
Jonas<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div>
</blockquote></div>