Recent

Author Topic: Problem with 32bit compiler [SOLVED]  (Read 1265 times)

Narciso

  • New Member
  • *
  • Posts: 10
Problem with 32bit compiler [SOLVED]
« on: February 03, 2025, 05:30:30 pm »
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?
« Last Edit: February 06, 2025, 03:02:59 pm by Narciso »

TRon

  • Hero Member
  • *****
  • Posts: 4310
Re: Problem with 32bit compiler
« Reply #1 on: February 03, 2025, 08:50:50 pm »
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.
Today is tomorrow's yesterday.

dseligo

  • Hero Member
  • *****
  • Posts: 1500
Re: Problem with 32bit compiler
« Reply #2 on: February 03, 2025, 09:43:59 pm »
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;

Did you install win32 cross-compiler?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11032
  • Debugger - SynEdit - and more
    • wiki
Re: Problem with 32bit compiler
« Reply #3 on: February 03, 2025, 09:47:33 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11032
  • Debugger - SynEdit - and more
    • wiki
Re: Problem with 32bit compiler
« Reply #4 on: February 03, 2025, 09:48:44 pm »
Did you install win32 cross-compiler?

If he did not, he should get "compiler does not support target...."

Narciso

  • New Member
  • *
  • Posts: 10
Re: Problem with 32bit compiler
« Reply #5 on: February 04, 2025, 08:22:42 am »
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.

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

  • Hero Member
  • *****
  • Posts: 4310
Re: Problem with 32bit compiler
« Reply #6 on: February 04, 2025, 09:17:30 am »
This output:
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

Does not compute with this output:
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 are you up to ?

PS: see also wiki Lazarus guide to cross-compile Win 32/64-bit
« Last Edit: February 04, 2025, 09:29:10 am by TRon »
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 16809
  • Ceterum censeo Trump esse delendam
Re: Problem with 32bit compiler
« Reply #7 on: February 04, 2025, 09:25:29 am »
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.
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

TRon

  • Hero Member
  • *****
  • Posts: 4310
Re: Problem with 32bit compiler
« Reply #8 on: February 04, 2025, 09:31:52 am »
Exactly the reason I expected other output with the verbosity turned on Thaddy. Seems TS changed something between posts complicating things further.
Today is tomorrow's yesterday.

tetrastes

  • Hero Member
  • *****
  • Posts: 640
Re: Problem with 32bit compiler
« Reply #9 on: February 04, 2025, 10:07:50 am »
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.

Not necessarily. You may live quite happy with ppcx64 and ppc386. This is so, f.e., if you install by
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

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11032
  • Debugger - SynEdit - and more
    • wiki
Re: Problem with 32bit compiler
« Reply #10 on: February 04, 2025, 10:19:53 am »
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

  • New Member
  • *
  • Posts: 10
Re: Problem with 32bit compiler
« Reply #11 on: February 04, 2025, 04:42:12 pm »
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?

i solved installing "C:\Users\Acer\Downloads\fpc-3.2.2.win32.and.win64.exe"

Thaddy

  • Hero Member
  • *****
  • Posts: 16809
  • Ceterum censeo Trump esse delendam
Re: Problem with 32bit compiler
« Reply #12 on: February 04, 2025, 06:13:51 pm »
mark your initial post as [solved]
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

 

TinyPortal © 2005-2018