Fatal: Can't find unit system used by xyz?! lazarus / 1-Linux ---------------------------------------------------------------------- coradi · 2024-09-21 18:39 New installed FPC on Linux, I got this:-( ---------------------------------------------------------------------- marcov · 2024-09-21 18:55 Something wrong with the configuration file (/etc/fpc.cfg or ~/fpc.cfg), most notably the -Fu line that points to precompiled units. ---------------------------------------------------------------------- coradi · 2024-09-21 18:59 # Automatically created file, don't edit. #IFDEF NORMAL  -TLinux  -Mfpc  -Sg  -Ci  -CpATHLON64  -OpATHLON64  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\*  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\rtl  -Fl/usr/lib/gcc/x86_64-linux-gnu/11  -Fl/usr/lib/gcc/x86_64-linux-gnu/11  -XS  -g-  -p-  -b-  -O1 #ENDIF #IFDEF DEBUG  -TLinux  -Mfpc  -Sg  -Cr  -Ci  -Co  -CpATHLON64  -OpATHLON64  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\*  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\rtl  -Fl/usr/lib/gcc/x86_64-linux-gnu/11  -Fl/usr/lib/gcc/x86_64-linux-gnu/11  -XS  -g  -p-  -b- #ENDIF #IFDEF RELEASE  -TLinux  -Mfpc  -Sg  -CpATHLON64  -OpATHLON64  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\*  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\rtl  -Fl/usr/lib/gcc/x86_64-linux-gnu/11  -Fl/usr/lib/gcc/x86_64-linux-gnu/11  -XS  -g-  -p-  -b-  -O2 #ENDIF ---------------------------------------------------------------------- marcov · 2024-09-21 19:00 What actually gave that message? I assumed a commandline compiler, but did you by any chance tried the textmode IDE ? ---------------------------------------------------------------------- coradi · 2024-09-21 19:01 I use the texmode FPC And Free Pascal Deluxe do(this seems to work, but not the TEXT FPC) Compile package FCL 1.0.1: Success, Hints: 2 Hint: Start of reading config file /home/ssalbach/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg Hint: End of reading config file /home/ssalbach/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg Verbose: Free Pascal Compiler version 3.2.2-r0d122c49 [2024/09/21] for x86_64 Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others Verbose: Target OS: Linux for x86-64 Verbose: Compiling fcllaz.pas Verbose: Compiling lazaruspackageintf.pas Verbose: 124 lines compiled, 0.1 sec Verbose: 2 hint(s) issued Compile package LazUtils 1.0: Success, Warnings: 5, Hints: 361 Hint: Start of reading config file /home/ssalbach/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg Hint: End of reading config file /home/ssalbach/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg Verbose: Free Pascal Compiler version 3.2.2-r0d122c49 [2024/09/21] for x86_64 Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others Verbose: Target OS: Linux for x86-64 Verbose: Compilin ---------------------------------------------------------------------- coradi · 2024-09-21 19:07 Oh now, The Gui Version write the same Project: Executing command before: Exit code 1, Errors: 1 Verbose: Free Pascal Compiler version 3.2.2+dfsg-9ubuntu1 [2022/04/11] for x86_64 Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others Debug: Target OS: Linux for x86-64 program1.pas Progress: Compiling /home/ssalbach/.cache/instantfpc/program1.pas Fatal: Can't find unit system used by Program Verbose: Compilation aborted Verbose: /usr/bin/ppcx64 returned an error exitcode Debug: ---------------------------------------------------------------------- marcov · 2024-09-21 19:10 The textmode IDE needs to configured separately. Normally a distro package would prepare that, but just go to options->directories and then in the "units' tab put something like  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\*  -Fu/usr/lib/fpc/$fpcversion\units\$fpctarget\rtl ---------------------------------------------------------------------- coradi · 2024-09-21 19:12 ?? What is differend tom the existed Version from top? It seems the same ---------------------------------------------------------------------- marcov · 2024-09-21 19:16 The textmode IDE has its own configuration and doesn't read fpc.cfg The *.cfg generator also has a textmode IDE part, but apparently it isn't called for your distro's package. ---------------------------------------------------------------------- coradi · 2024-09-21 19:18 ahh,  I have different FPC on my system. The FPC in FPC Deluxe works well, now only the lazarus in FPC Deluxe have the same error ---------------------------------------------------------------------- dbannon · 2024-09-22 05:14 From what I have seen, this problem [sometimes|usually] relates to an unexpected fpc.cfg somewhere. Or an unreadable one on Windows (because of inappropriate coding, I spent a few hours there yesterday!). Given the frequency of this problem, displaying the path to fpc.cfg on a fpc -h page would be cool as would showing it in the Options page for Lazarus. Davo