Recent

Author Topic: "fpc.cfg is missing" (notorious?)  (Read 1546 times)

AxBen

  • New Member
  • *
  • Posts: 17
"fpc.cfg is missing" (notorious?)
« on: March 18, 2024, 09:50:52 pm »
This one is driving me nuts  :-\:

- fpc.exe when called from the command line doesn't complain about anything, finds fpc.cfg and compiles (no errors with "-va").
- lazarus.exe keeps complaining (see above). The fpc.file is there, no wrong paths; also I checked the configuration directory, no wrong paths...
- I used procmon to determine a possibly wrong path to no avail.
- Called "lazarus.exe --skip-checks=FpcExe --debug-log="c:\temp\lazarus.log" --debug-enable="DBG_VERBOSE,DBG_VERBOSE_FULL_DATA,DBG_WARNINGS,DBG_ERRORS,FPDEBUG_VERBOSE" to no avail (except for this one:
Quote
"Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=i386-win32--win32 New=i386-win32--win32 Changed: OS/CPU=True LCL=False"

Same config works on a Windows 10 machine (this is a Windows 7).

When I ignore all warnings and go to the configuration, in the sources configuration I get this:
Quote
Warning: Found version 3.3.1, expected 3.2.2
Which is wrong; the sources are 3.3.1 but the compiler is 3.3.1 too - verified by its output.

I'm looking for a hint/warning/whatever that points me to the root cause. How can I get more information?
« Last Edit: March 18, 2024, 09:58:37 pm by AxBen »

TRon

  • Hero Member
  • *****
  • Posts: 3145
Re: "fpc.cfg is missing" (notorious?)
« Reply #1 on: March 19, 2024, 08:27:05 am »
Warning: Found version 3.3.1, expected 3.2.2
Which is wrong; the sources are 3.3.1 but the compiler is 3.3.1 too - verified by its output.
As a wild guess: You installed Lazarus using a package or similar (the important part there: not compiled yourself) and you (later) installed Free Pascal trunk and want to use that compiler with your Lazarus install ?

If that is true then the cause for your errors is most probably because the version of FPC that was used to compile Lazarus <> FPC version installed/found/configured.
All software is open source (as long as you can read assembler)

AxBen

  • New Member
  • *
  • Posts: 17
[SOLVED] Re: "fpc.cfg is missing" (notorious?)
« Reply #2 on: March 19, 2024, 08:41:19 am »
I was able to resolve the issue:

The reason for the problem was a corrupted fpcdefines.xml file, which contained invalid package paths (like 0:tools\... instead of 0:d:\tools\...) which is probably on my head (having resplaced c:\tools with d:\tools - or not :'( - Maybe there are more problems in the file though. Searching for "c:\tools" did not suceed later...

I was able to "resolve" the error by removing the configuration path and restarting Lazarus.

I would be nice to have better feedback from Lazarus, "fpc.cfg is missing" is definitely a very misleading message...

After all: thx for the feedback and sorry for the noise.

Thaddy

  • Hero Member
  • *****
  • Posts: 15531
  • Censorship about opinions does not belong here.
Re: "fpc.cfg is missing" (notorious?)
« Reply #3 on: March 19, 2024, 08:55:31 am »
There is always  the fpcmkcfg utility to solve a missing fpc.cfg.
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

 

TinyPortal © 2005-2018