[fpc-pascal] Building trunk
C Western
l at c-m-w.me.uk
Sat Nov 24 10:53:26 CET 2018
On 23/11/2018 13:58, Joost van der Sluis wrote:
> On 11/23/18 2:48 PM, C Western wrote:
>> make distclean cycle OPT="-n" OS_TARGET=linux CPU_TARGET=i386
>> FPC=~/fpc/bootstrap/ppcx64
>>
>> /home/ctcmw/fpc/trunk/fpcsrc/compiler/ppcross386 -Pi386
>> -XPi386-linux- -Xr -Fui386 -Fusystems -Fu../rtl/units/i386-linux
>> -Fii386 -FEi386/bin/i386-linux -FUi386/units/i386-linux -n -di386
>> -dGDB -dBROWSERLOG -Fux86 -Sew -di386 -dGDB -dBROWSERLOG -Fux86
>> -Sew pp.pas
>> pp.pas(277,1) Error: Util i386-linux-ld not found, switching to
>> external linking
>
>> I will try and generate a backtrace as suggested by Sven later.
>
> No need to. The compiler does not crash. It cannot find i386-linux-ld.
>
> You need the binutils for cross-compilation. See the buildfaq.
>
> Or, create them yourself. Add the following bash-scripts somewhere in
> your path and make them executable: (Works on Fedora, might be
> different on other systems)
>
> i386-linux-as:
> --------------------------
> #!/bin/bash
> # name this file /usr/bin/i386-linux-as
> as --32 $@
> --------------------------
>
> i386-linux-ld:
>
> --------------------------
> #!/bin/bash
> # name this file /usr/bin/i386-linux-ld
> ld -A elf32-i386 $@
> --------------------------
>
>
> Regards,
>
> Joost.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Creating i386-linux-ld allows the make distclean cycle to complete.
However the resulting compiler (ppc386) gives a segmentation fault on
startup, just as I had with the previous approach. See my other message
for the stack trace.
Colin
More information about the fpc-pascal
mailing list