Recent

Author Topic: lazarus 4.0 RC1 error  (Read 1428 times)

fcu

  • Full Member
  • ***
  • Posts: 109
lazarus 4.0 RC1 error
« on: December 12, 2024, 08:38:21 am »
Hi
ii've installed lazarus 4.0 RC1 64bits on windows 10 pro 64bits
now the problem is whenever i create a new project i got this error message while compiling


rvk

  • Hero Member
  • *****
  • Posts: 6643
Re: lazarus 4.0 RC1 error
« Reply #1 on: December 12, 2024, 10:55:54 am »
Did you pass those parameters yourself?

Can you right click that line and copy the complete text?
Is it larger than what we see in your image?

See
https://forum.lazarus.freepascal.org/index.php?topic=59620.0

fcu

  • Full Member
  • ***
  • Posts: 109
Re: lazarus 4.0 RC1 error
« Reply #2 on: December 12, 2024, 01:30:51 pm »
Did you pass those parameters yourself?

no , it's brand new installation , i just create an empty console app then hit compile , and this error pops up 

fcu

  • Full Member
  • ***
  • Posts: 109
Re: lazarus 4.0 RC1 error
« Reply #3 on: December 12, 2024, 01:34:13 pm »
Is it larger than what we see in your image?

no , only those numbers

rvk

  • Hero Member
  • *****
  • Posts: 6643
Re: lazarus 4.0 RC1 error
« Reply #4 on: December 12, 2024, 01:48:35 pm »
I'm not behind a computer now and I don't have RC (I use trunk) but I wonder where the -vm numbers come from.

From here it seems to come from an option
"show defined macros"

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/23347

Is that option on and can you uncheck it?

fcu

  • Full Member
  • ***
  • Posts: 109
Re: lazarus 4.0 RC1 error
« Reply #5 on: December 12, 2024, 01:54:05 pm »
sorry i am also not on my desk , if i come home i will try your suggestion  , thank you

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10699
  • Debugger - SynEdit - and more
    • wiki
Re: lazarus 4.0 RC1 error
« Reply #6 on: December 12, 2024, 08:03:23 pm »
Those -vm... are generated if you have some messages suppressed.

Most likely in
Menu: Project > Project options
then page: Compiler Options > Messages

For each checkbox that is NOT checked, one of the numbers is added.
(I don't know what those numbers correspondent to)

If not on that page, then you would have in some custom options have that command line listed....


If you did not select "secondary installation" then your new Lazarus shares the same config than whatever Lazarus you may already have installed.
So if in your existing install you made such changes, and saved them as default => then that explains why they are set.


I am not sure why they cause the error. Maybe if you have an installation with a custom fpc install, using fpc fixes or trunk. Those may have more numbers than the fpc 3.2.2 that comes wit Lazarus 4.0RC. And the fpc 3.2.2 may therefore give an error.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10699
  • Debugger - SynEdit - and more
    • wiki
Re: lazarus 4.0 RC1 error
« Reply #7 on: December 12, 2024, 08:06:35 pm »
Just tested.

fpc 3.2.3 accepts -vm6060
fpc 3.2.2 does not.

So its a new msg number that was added after the release of 3.2.2

 

TinyPortal © 2005-2018