Recent

Author Topic: FPC 3.2.2 - checksum Error by compile run without -B Option  (Read 257 times)

paule32

  • Hero Member
  • *****
  • Posts: 603
  • One in all. But, not all in one.
Hello,

I have a small test.pas, and I tried to compile it with the following Options:

Code: Bash  [Select][+][-]
  1. fpc -dDLLIMPORT -dLANGDEU -dDLLDEBUG -n -Twin64 -FE. -Fu..\ -Fi..\inc -O3 -Os test.pas

under ..\ there are the .o bject, and .ppu, and the created .a rchive  Files that FPC 3.2.2 created.

before, I created a Library (with the -Ur ) Compiler Flag on the Command Line Interface under the Windows 11 64-Bit Pro Console:

Code: Bash  [Select][+][-]
  1. @echo on
  2. fpc -dDLLEXPORT -dLANGDEU -dDLLDEBUG -n -B -Twin64 -FE. -Fu. -Ur -Sc -Sg -Sh -Sx -O3 -Os -CD RTLLib.pas

Take Attention to the Option's
-B  (build all new) and:
-Ur (Generate release unit files - never automated recompile)

The Console Output for the first Command, give me these Lines:

T:\test\tst>fpc -dDLLIMPORT -dLANGDEU -dDLLDEBUG -n -Twin64 -FE. -Fu..\ -Fi..\inc -O3 -Os test.pas

PPU Loading T:\b\miniRTL\src\test\windows.ppu
PPU Source: windows.pas not available

Recompiling Windows, checksum changed for T:\test\system.ppu
windows.pas(9,1) Fatal: Can't find unit Windows used by system
Fatal: Compilation aborted
Error: C:\fpcupdeluxe\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode

did I something wrong, or why FPC would re-compile the windows.pas ?
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

ALLIGATOR

  • Full Member
  • ***
  • Posts: 195
Re: FPC 3.2.2 - checksum Error by compile run without -B Option
« Reply #1 on: June 12, 2025, 05:59:40 pm »
Maybe someone understands something from your explanation, but personally, I don't understand much without a test example to reproduce the “bug” (or bug)

paule32

  • Hero Member
  • *****
  • Posts: 603
  • One in all. But, not all in one.
Re: FPC 3.2.2 - checksum Error by compile run without -B Option
« Reply #2 on: June 12, 2025, 06:06:55 pm »
- I have a own system.pas Library.
- I have all Files that are neccassary to build the used DLL and EXE of the Application
- I have a Developer Directory, in which all Files (the sources, and other resource exists)
- beyond the pas files there are several inc (include Files).
- I can compile with -B (build all new) for EXE and DLL
- but I can not distribute the package because an other developer has Copyright on many Parts of used Unit Code
- so I was thinking to distribute the package as closed source - or partly open source with my own code
- I wonder me, why I can not do a "build" with closed source (also with .o and .ppu files) only
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

 

TinyPortal © 2005-2018