Hi all,
Lazarus x64-linux, 2.2.6, fpc 3.2.2. and in case it's significant I have Abbrevia, CEF4Delphi, DCPcrypt, Indy10 and ZeosDBO installed from the online package manager.
OS : OpenSUSE tumbleweed.
Lazarus & FPC where installed from the official rpms on sourceforge rather than the ones supplied by suse.
I've been following the following page
https://wiki.freepascal.org/Cross_compiling and have successfully managed to build the fpc
cross compiler which compiles and builds the test program :
program test;
begin
writeln('DATE ',{$i %DATE%});
writeln('FPCTARGET ',{$i %FPCTARGET%});
writeln('FPCTARGETCPU ',{$i %FPCTARGETCPU%});
writeln('FPCTARGETOS ',{$i %FPCTARGETOS%});
writeln('FPCVERSION ',{$i %FPCVERSION%});
end.
This produces the following output....
DATE 2023/04/16
FPCTARGET i386
FPCTARGETCPU i386
FPCTARGETOS Linux
FPCVERSION 3.2.2
So I then fire up the lazarus-ide and load up my current project, head into project options->config and target and set the Target CPU family to i386 and click ok.
The problem is that when I click Run->Build the build stops almost immediately with :
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.2.2 [2023/04/16] for i386
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for i386
(3104) Compiling fcllaz.pas
/usr/lib64/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit db used by fcllaz
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcross386 returned an error exitcode
Any idea what the problem is?
I also tried manually compiling the LCL with "configure build lazarus" setting target os & target cpu to linux & i386, but that fails in the same way.
Cheers.
Phill.