On Tue, 10 Jan 2017 11:30:35 +0100, Mattias Gaertner <nc-gaert...@netcologne.de> wrote:
>Lazarus does not need the FPC sources for building. > > >>[...] >> (3104) Compiling fcllaz.pas >> Fatal: (10022) Can't find unit system used by fcllaz >> Fatal: (1018) Compilation aborted >> >> The file ~/.fpc.cfg has been generated by running command: >> fpcmkcfg -o ./.fpc.cfg >> >> But I have not edited it in any way. > >Check its -Fu paths. This is what I found: # searchpath for units and other system dependent things -Fu/units/$fpctarget -Fu/units/$fpctarget/* -Fu/units/$fpctarget/rtl It does not really look like a path, at least not a full path. What should the correct setting be? > >> The unit system it fails to find is in the fpc sources, so somehow >> make must be told where they are located... > >It fails to find the "unit", not the sources. Either a ppu is missing >or is incompatible. I found the system.ppu as follows: ~ $ find /home/pi/ -name system.ppu /home/pi/lib/fpc/3.0.0/units/arm-linux/rtl/system.ppu Given that path, what would the correct fpc.cfg setting be? Something like this perhaps: -Fu/home/pi/lib/fpc/$fpcversion/units/$fpctarget -Fu/home/pi/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/home/pi/lib/fpc/$fpcversion/units/$fpctarget/rtl I read in a googled article (http://wiki.freepascal.org/Installing_Lazarus#Installing_from_source) that one should set these (obviously they are for Windows, but anyway...): -FuC:\freepascal\fpc\$FPCVERSION/units/$FPCTARGET/ -FuC:\freepascal\fpc\$FPCVERSION/units/$FPCTARGET/* -FuC:\freepascal\fpc\$FPCVERSION/units/$FPCTARGET/rtl Tried to adapt that but to no avail (of course thinking about sourcefiles then). So this is tested: -FuC:/home/pi/dev/fpc/$FPCVERSION/rtl/$FPCTARGET/ -FuC:/home/pi/dev/fpc/$FPCVERSION/rtl/$FPCTARGET/* -FuC:/home/pi/dev/fpc/$FPCVERSION/rtl/$FPCTARGET/rtl -- Bo Berglund Developer in Sweden _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal