Problem with 32bit compiler [SOLVED] lazarus / 67-Windows ---------------------------------------------------------------------- Narciso · 2025-02-03 16:30 i'm working with  Lazarus 3.6 (rev lazarus_3_6) FPC 3.2.2 x86_64-win64-win32/win64 i should compile a program  in 32 bit, fpc 3.2.2 compiler should can do it, when i set compiler option target win32 and i386 testing result is following; ERRORE: RTL unit not found: system.ppu ERRORE: RTL unit not found: objpas.ppu ERRORE: RTL unit not found: sysutils.ppu ERRORE: RTL unit not found: classes.ppu ERRORE: RTL unit not found: avl_tree.ppu ERRORE: RTL unit not found: zstream.ppu what wrong? ---------------------------------------------------------------------- TRon · 2025-02-03 19:50 In your project options set verbosity to show all. Save the options then rebuild project. Read the output (make sure to read them all) and read the answer to the question. Most probably the fpc.cfg file was not set up correctly. ---------------------------------------------------------------------- dseligo · 2025-02-03 20:43 Quote from: Narciso on February 03, 2025, 05:30:30 pmi'm working with  Lazarus 3.6 (rev lazarus_3_6) FPC 3.2.2 x86_64-win64-win32/win64 i should compile a program  in 32 bit, fpc 3.2.2 compiler should can do it, when i set compiler option target win32 and i386 testing result is following; Did you install win32 cross-compiler? ---------------------------------------------------------------------- Martin_fr · 2025-02-03 20:47 Let us double check what you have. Which of the following did you do? 1) You went to our download, and you did chose: Window 64 > Lazarus 3.6 From that page you downloaded 2 files and installed them:   lazarus-3.6-fpc-3.2.2-win64.exe   lazarus-3.6-fpc-3.2.2-cross-i386-win32-win64.exe OR 2) You went to our download, and you did chose: Window 32 > Lazarus 3.6 From that page you downloaded only 1 files and installed them:   lazarus-3.6-fpc-3.2.2-win32.exe Or something else? If you did (1) and downloaded 2 files: - Did you install them both into the same folder?   (installing first lazarus-3.6-fpc-3.2.2-win64.exe ) - Was that folder empty (before installing the first)? - You never renamed or moved that folder (after the install)? Therefore now in that folder you would have (among others) C:\lazarus => which could be any other name, that you may have chosen. And then within that: C:\lazarus\fpc\3.2.2\         and no other version of FPC C:\lazarus\fpc\3.2.2\bin\x86_64-win64\ C:\lazarus\fpc\3.2.2\units\x86_64-win64\ C:\lazarus\fpc\3.2.2\units\i386-win32\ ---------------------------------------------------------------------- Martin_fr · 2025-02-03 20:48 Quote from: dseligo on February 03, 2025, 09:43:59 pmDid you install win32 cross-compiler? If he did not, he should get "compiler does not support target...." ---------------------------------------------------------------------- Narciso · 2025-02-04 07:22 Quote from: TRon on February 03, 2025, 08:50:50 pmIn your project options set verbosity to show all. Save the options then rebuild project. Read the output (make sure to read them all) and read the answer to the question. Most probably the fpc.cfg file was not set up correctly. Error: ppc386.exe can't be executed, error message: Failed to execute ""ppc386.exe"  -B -Twin32 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -FuC:\lazarus\packager\registration\ -FUC:\lazarus\packager\units\i386-win32\ fcllaz.pas ---------------------------------------------------------------------- TRon · 2025-02-04 08:17 This output: Quote from: Narciso on February 04, 2025, 08:22:42 amError: ppc386.exe can't be executed, error message: Failed to execute ""ppc386.exe"  -B -Twin32 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -FuC:\lazarus\packager\registration\ -FUC:\lazarus\packager\units\i386-win32\ fcllaz.pas Does not compute with this output: Quote from: Narciso on February 03, 2025, 05:30:30 pmERRORE: RTL unit not found: system.ppu ERRORE: RTL unit not found: objpas.ppu ERRORE: RTL unit not found: sysutils.ppu ERRORE: RTL unit not found: classes.ppu ERRORE: RTL unit not found: avl_tree.ppu ERRORE: RTL unit not found: zstream.ppu What are you up to ? PS: see also wiki Lazarus guide to cross-compile Win 32/64-bit ---------------------------------------------------------------------- Thaddy · 2025-02-04 08:25 it should be ppcross386 somewhere. Not ppc386. You seem to compile ppcx64 as main compiler and cross compile to 32 bit. Then the compiler is called ppcross386. ---------------------------------------------------------------------- TRon · 2025-02-04 08:31 Exactly the reason I expected other output with the verbosity turned on Thaddy. Seems TS changed something between posts complicating things further. ---------------------------------------------------------------------- tetrastes · 2025-02-04 09:07 Quote from: Thaddy on February 04, 2025, 09:25:29 amit should be ppcross386 somewhere. Not ppc386. You seem to compile ppcx64 as main compiler and cross compile to 32 bit. Then the compiler is called ppcross386. Not necessarily. You may live quite happy with ppcx64 and ppc386. This is so, f.e., if you install by Quote from: Martin_fr on February 03, 2025, 09:47:33 pm1) You went to our download, and you did chose: Window 64 > Lazarus 3.6 From that page you downloaded 2 files and installed them:   lazarus-3.6-fpc-3.2.2-win64.exe   lazarus-3.6-fpc-3.2.2-cross-i386-win32-win64.exe ---------------------------------------------------------------------- Martin_fr · 2025-02-04 09:19 The name ppc386.exe should be ok. It works here. Do you have the file  C:\lazarus\fpc\3.2.2\bin\x86_64-win64\ppc386.exe (in exactly that path)? And, in Lazarus, if you open menu: Tools > Options On the page (top page): Environment > Files In "Compiler executable" does it have: C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe ---------------------------------------------------------------------- Narciso · 2025-02-04 15:42 Quote from: Narciso on February 03, 2025, 05:30:30 pmi'm working with  Lazarus 3.6 (rev lazarus_3_6) FPC 3.2.2 x86_64-win64-win32/win64 i should compile a program  in 32 bit, fpc 3.2.2 compiler should can do it, when i set compiler option target win32 and i386 testing result is following; ERRORE: RTL unit not found: system.ppu ERRORE: RTL unit not found: objpas.ppu ERRORE: RTL unit not found: sysutils.ppu ERRORE: RTL unit not found: classes.ppu ERRORE: RTL unit not found: avl_tree.ppu ERRORE: RTL unit not found: zstream.ppu what wrong? i solved installing "C:\Users\Acer\Downloads\fpc-3.2.2.win32.and.win64.exe" ---------------------------------------------------------------------- Thaddy · 2025-02-04 17:13 mark your initial post as [solved]