[fpc-pascal] Building trunk

Joost van der Sluis joost at cnoc.nl
Fri Nov 23 14:58:04 CET 2018


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.



More information about the fpc-pascal mailing list