Hi,
Cross compiling Linux-x86->eabihf of the program:
"
program rpiconsole;
uses
initc;
begin
end.
"
produces the messages:
"
Free Pascal Compiler version 3.0.1 [2015/08/14] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMHF
Compiling rpiconsole.pas
Assembling rpiconsole
Linking rpiconsole
rpiconsole.pas(6) Warning: "crti.o" not found, this will probably cause a linking failure
rpiconsole.pas(6) Warning: "crtbegin.o" not found, this will probably cause a linking failure
rpiconsole.pas(6) Warning: "crtend.o" not found, this will probably cause a linking failure
rpiconsole.pas(6) Warning: "crtn.o" not found, this will probably cause a linking failure
/home/mse/packs/standard/svn/fp/arm/install_3_0//eabihf/bin/ld: warning: link.res contains output sections; did you forget -T? /home/mse/packs/standard/svn/fp/arm/install_3_0//eabihf/lib/fpc/3.0.1/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/home/mse/packs/standard/svn/fp/arm/install_3_0//eabihf/lib/fpc/3.0.1/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
rpiconsole.pas(6) Error: Error while linking
rpiconsole.pas(6) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
"
The --verbose ld output is attached.
"
program rpiconsole;
uses
initc,xlib;
begin
end.
"
Compiles OK.
Any help appreciated.
Thanks, Martin
