Recent

Author Topic: Can't Install Anything  (Read 5429 times)

dbannon

  • Hero Member
  • *****
  • Posts: 3558
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Can't Install Anything
« Reply #15 on: March 04, 2025, 01:56:45 am »

So when I hit "Run" it just throws the MacOS Dialog "lazarus.app is damaged and can't be opened.  you should move it to the trash"....  I can't do anything else.

Jim

Jim, I am sorry, rubbish instructions I gave you.  Much more details needed.

You start up your working RC1 install and use it to open the RC2 project. When I did my test, on Linux, at that stage, I ran it and saw output in the console. But thats not how Mac does it. You must add a command line parameter to the command that is going to be run so it writes a log of the console output. That means, in your RC1 IDE click Run->RunParameter and set "Command line parameters (..." to something like

Code: Bash  [Select][+][-]
  1.     --args     "--debug-log=$HOME/Lazarus.log"

Lazarus (RC1) will append that to the lazarus (RC2) command to start it. I am not sure if it uses startlazarus or lazarus but it should not matter.  The information you need will, hopefully, appear in that log file.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #16 on: March 04, 2025, 02:52:27 pm »
So when I hit "Run" it just throws the MacOS Dialog "lazarus.app is damaged and can't be opened.  you should move it to the trash"....  I can't do anything else.
I dunno mac but to me that looks like a gatekeeper related issue ? e.g. macos does not trust the application (manifest related ?) and therefor refuses to execute it.

PS: I don't know if this is able to help you with that in case you have no idea. For sure, I have no idea.

I'm an idiot.... Can't believe I forgot about that already.....  Ok it is crashing someplace there is no debug info.  I am not that smart to figure anything out from that.


JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #17 on: March 04, 2025, 03:02:39 pm »
So when I hit "Run" it just throws the MacOS Dialog "lazarus.app is damaged and can't be opened.  you should move it to the trash"....  I can't do anything else.
I dunno mac but to me that looks like a gatekeeper related issue ? e.g. macos does not trust the application (manifest related ?) and therefor refuses to execute it.

PS: I don't know if this is able to help you with that in case you have no idea. For sure, I have no idea.

I'm an idiot.... Can't believe I forgot about that already.....  Ok it is crashing someplace there is no debug info.  I am not that smart to figure anything out from that.

Maybe this means something....


Quote
SetPrimaryConfigPath NewValue="/Users/jimkueneman/Desktop/lazarus/config"
Hint: (lazarus) Using config file: "/Users/jimkueneman/Desktop/lazarus/lazarus.cfg"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/Users/jimkueneman/Desktop/lazarus/config"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TMainIDE.LoadGlobalOptions] overriding Lazarusdir with command line: /Users/jimkueneman/Desktop/lazarus/
Looking for code tools config file:  "/Users/jimkueneman/Desktop/lazarus/config/codetoolsoptions.xml"
NOTE: codetools config file not found - using defaults
Warning: (lazarus) invalid compiler: /usr/local/bin/_PPCARCH_ file not found
SearchLazarusDirectoryCandidates Value=/Users/jimkueneman/Desktop/lazarus File=/Users/jimkueneman/Desktop/lazarus
SearchLazarusDirectoryCandidates Value=/Developer/lazarus File=/Developer/lazarus
SearchLazarusDirectoryCandidates Value=/Applications/Lazarus File=/Applications/Lazarus
SearchLazarusDirectoryCandidates Value=/usr/share/lazarus File=/usr/share/lazarus
SearchLazarusDirectoryCandidates Value=/usr/local/share/lazarus File=/usr/local/share/lazarus
SearchLazarusDirectoryCandidates Value=/usr/local/lib/lazarus File=/usr/local/lib/lazarus
SearchLazarusDirectoryCandidates Value=/usr/local/lazarus File=/usr/local/lazarus
SearchLazarusDirectoryCandidates Value=/usr/lib/lazarus File=/usr/lib/lazarus
SearchLazarusDirectoryCandidates Value=/usr/lib/lazarus/4.0RC2 File=/usr/lib/lazarus/4.0RC2
SearchLazarusDirectoryCandidates Value=~/pascal/lazarus File=/Users/jimkueneman/pascal/lazarus
SearchLazarusDirectoryCandidates Value=~/lazarus File=/Users/jimkueneman/lazarus
SearchLazarusDirectoryCandidates Value=/Developer/lazarus File=/Developer/lazarus
SearchCompilerCandidates Value=/usr/local/bin/_PPCARCH_ File=/usr/local/bin/_PPCARCH_
SearchCompilerCandidates Value=/usr/local/bin/_PPCARCH_ File=/usr/local/bin/_PPCARCH_
SearchCompilerCandidates Value=/usr/local/bin/fpc File=/usr/local/bin/fpc
SearchCompilerCandidates Value=fpc File=/Users/jimkueneman/Desktop/lazarus/fpc
SearchCompilerCandidates Value=ppcaarch64 File=
SearchCompilerCandidates Value=/usr/local/bin/_PPCARCH_ File=/usr/local/bin/_PPCARCH_
SearchCompilerCandidates Value=/usr/bin/_PPCARCH_ File=/usr/bin/_PPCARCH_
SearchCompilerCandidates Value=/opt/fpc/_PPCARCH_ File=/opt/fpc/_PPCARCH_
SearchCompilerCandidates Value=$(LazarusDir)/fpc/3.2.2/bin/aarch64-darwin/fpc File=/Users/jimkueneman/Desktop/lazarus/fpc/3.2.2/bin/aarch64-darwin/fpc
SearchCompilerCandidates Value=$(LazarusDir)/fpc/bin/aarch64-darwin/fpc File=/Users/jimkueneman/Desktop/lazarus/fpc/bin/aarch64-darwin/fpc
SearchCompilerCandidates Value=/usr/bin/fpc File=/usr/bin/fpc
SearchCompilerCandidates Value=/opt/fpc/fpc File=/opt/fpc/fpc
Hint: [TPCTargetConfigCache.NeedsUpdate] TargetOS="" TargetCPU="" Subtarget="" WorkDir="" Options="" compiler file changed "/usr/local/bin/fpc" FileAge=1621181457 StoredAge=0
Hint: [TPCTargetConfigCache.Update] /usr/local/bin/fpc TargetOS= TargetCPU= Subtarget= WorkDir="" CompilerOptions="" ExtraOptions="" PATH=/usr/bin:/bin:/usr/sbin:/sbin
Hint: (lazarus) [RunTool] "/usr/local/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/local/bin/fpc" "-va" "/Users/jimkueneman/Desktop/lazarus/config/compilertest.pas" "-Fr/Users/jimkueneman/Desktop/lazarus/components/codetools/fpc.errore.msg", WorkDir="/Users/jimkueneman/Desktop/lazarus/config/"
Hint: [TPCTargetConfigCache.Update] has changed
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=aarch64-darwin--cocoa New=aarch64-darwin--cocoa Changed: OS/CPU=True LCL=False
SearchFPCSrcDirCandidates Value=$(LazarusDir)/fpc/$(FPCVer)/sources File=/Users/jimkueneman/Desktop/lazarus/fpc/3.2.2/sources/
SearchFPCSrcDirCandidates Value=/usr/local/share/fpcsrc/3.2.2 File=/usr/local/share/fpcsrc/3.2.2/
SearchFPCSrcDirCandidates Value=/usr/local/share/fpcsrc File=/usr/local/share/fpcsrc/
SearchFPCSrcDirCandidates Value=$(LazarusDir)/fpc/$(FPCVer)/source File=/Users/jimkueneman/Desktop/lazarus/fpc/3.2.2/source/
SearchFPCSrcDirCandidates Value=$Path($(CompPath))/../../source File=/usr/source/
SearchFPCSrcDirCandidates Value=/usr/share/fpcsrc/$(FPCVer) File=/usr/share/fpcsrc/3.2.2/
SearchFPCSrcDirCandidates Value=/usr/local/share/fpcsrc/$(FPCVer) File=/usr/local/share/fpcsrc/3.2.2/
SearchFPCSrcDirCandidates Value=/usr/share/fpcsrc File=/usr/share/fpcsrc/
SearchFPCSrcDirCandidates Value=/usr/fpcsrc File=/usr/fpcsrc/
SearchFPCSrcDirCandidates Value=/usr/share/fpc/src File=/usr/share/fpc/src/
SearchFPCSrcDirCandidates Value=/usr/fpc/src File=/usr/fpc/src/
SearchFPCSrcDirCandidates Value=/usr/local/fpc/src File=/usr/local/fpc/src/
SearchFPCSrcDirCandidates Value=/usr/local/share/fpc/src File=/usr/local/share/fpc/src/
SearchFPCSrcDirCandidates Value=/usr/local/src/fpc File=/usr/local/src/fpc/
SearchFPCSrcDirCandidates Value=/usr/lib/fpc/src File=/usr/lib/fpc/src/
SearchFPCSrcDirCandidates Value=/usr/local/lib/fpc/src File=/usr/local/lib/fpc/src/
SearchFPCSrcDirCandidates Value=/vol/fpc/src File=/vol/fpc/src/
SearchFPCSrcDirCandidates Value=/vol/lib/fpc/src File=/vol/lib/fpc/src/
SearchFPCSrcDirCandidates Value=/usr/src/fpc File=/usr/src/fpc/
SearchFPCSrcDirCandidates Value=/vol/src/fpc File=/vol/src/fpc/
SearchMakeExeCandidates Value=make File=/usr/bin/make
NOTE: help options config file not found - using defaults
### TCodeT

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #18 on: March 04, 2025, 03:06:54 pm »
I am not sure it is compiled with debug info... I can't set break points.  Is there something I can add on the build command line to ensure it is built with the info we need?

Jim

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Can't Install Anything
« Reply #19 on: March 04, 2025, 10:57:05 pm »
I am not sure it is compiled with debug info... I can't set break points.  Is there something I can add on the build command line to ensure it is built with the info we need?
I lost track of the plot (sorry for that) but when using make you can add DEBUG=1 to the arguments on the commandline, e.g. make DEBUG=1 clean bigide
Today is tomorrow's yesterday.

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #20 on: March 04, 2025, 11:30:00 pm »
Thanks... one step forward 3 back...... when compiling with DEBUG=1

Maybe a clue?  Maybe not.

Quote

/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(21732,15) Error: (4109) range check error while evaluating constants (2147549183 must be between -2147483648 and 2147483647)
laz.virtualtrees.pas(36880) Fatal: (10026) There were 3 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [laz.virtualtreeview_package.ppu] Error 1
make[1]: *** [idepackages] Error 2
make: *** [basecomponents] Error 2
jimkueneman@iMac lazarus %


Has to do with assigning results to HRESULT in functions

Code: Pascal  [Select][+][-]
  1.  
  2. // Line 21477
  3. Result := E_UNEXPECTED;  
  4.  
  5. // Line 21477
  6.   Result := E_UNEXPECTED;  
  7.  
  8. // Line 21732
  9. Result := E_UNEXPECTED;  
  10.  
  11.  

And I can't figure out how to get to those constants....
« Last Edit: March 04, 2025, 11:42:07 pm by JimKueneman »

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Can't Install Anything
« Reply #21 on: March 04, 2025, 11:38:01 pm »
That is very unfortunate JimKueneman.

What version of Lazarus did you tried to build exactly ? (I have to try that myself when I have some free time)
Today is tomorrow's yesterday.

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #22 on: March 04, 2025, 11:43:05 pm »
RC2 for MacOS.   I can get RC1 running but RC2 just crashed right after the splash screen on my M1 iMac.

dbannon

  • Hero Member
  • *****
  • Posts: 3558
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Can't Install Anything
« Reply #23 on: March 04, 2025, 11:46:44 pm »
Code: Pascal  [Select][+][-]
  1. 21730     Result := NOERROR;
  2. 21731   except
  3. 21732     Result := E_UNEXPECTED;
  4. 21733   end;
  5. 21734   //{$ifdef DEBUG_VTV}Logger.ExitMethod([lcDrag],'DragOver');{$endif}
  6. 21735 end;

E_UNEXPECTED  ??

defined in FPC ?

rtl/inc/objpash.inc:67:       E_UNEXPECTED  = hresult($8000FFFF);

Have to go out for a while ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #24 on: March 05, 2025, 12:07:41 am »
Code: Pascal  [Select][+][-]
  1. 21730     Result := NOERROR;
  2. 21731   except
  3. 21732     Result := E_UNEXPECTED;
  4. 21733   end;
  5. 21734   //{$ifdef DEBUG_VTV}Logger.ExitMethod([lcDrag],'DragOver');{$endif}
  6. 21735 end;

E_UNEXPECTED  ??

defined in FPC ?

rtl/inc/objpash.inc:67:       E_UNEXPECTED  = hresult($8000FFFF);

Have to go out for a while ....

Davo

How do I fix this?

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Can't Install Anything
« Reply #25 on: March 05, 2025, 12:17:53 am »
How do I fix this?
It literally is unexpected (can't remember having it ever seen before) . I do not want to speak for dbannon but atm I think it got us both stumped so not a clue whatsoever. I try to reproduce if I have some time.

Perhaps someone else has a clue ?

(PS: yes it is a range-check error, can be fixed in a jiffy but why it was chosen to do this way)
« Last Edit: March 05, 2025, 12:40:27 am by TRon »
Today is tomorrow's yesterday.

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #26 on: March 05, 2025, 12:50:26 am »
How do I fix this?
It literally is unexpected (can't remember having it ever seen before) . I do not want to speak for dbannon but atm I think it got us both stumped so not a clue whatsoever. I try to reproduce if I have some time.

Perhaps someone else has a clue ?

(PS: yes it is a range-check error, can be fixed in a jiffy but why it was chosen to do this way)

So in systemh.inc it is defined as:

Code: Pascal  [Select][+][-]
  1. HRESULT             = type Longint;  
  2.  

So yes

Code: Pascal  [Select][+][-]
  1. E_UNEXPECTED  = hresult($8000FFFF);  
  2.  

is outside the longint range.

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #27 on: March 05, 2025, 01:01:55 am »
So I tried changing that to LongWord and it still failed.  I then commented that line out and it compiled to the same place and failed so apparently there is another HRESULT definition that is being picked up in a unit somewhere....  You can't just right click and have it show me the definition is just says it can't file a file

Quote
laz.virtualtrees.pas(6091,5) Error: include file not found "laz.vtvdragmanager.inc"

Jim
« Last Edit: March 05, 2025, 01:08:39 am by JimKueneman »

JimKueneman

  • Full Member
  • ***
  • Posts: 246
Re: Can't Install Anything
« Reply #28 on: March 05, 2025, 01:18:03 am »
So I just defined HRESULT = type LongWord in the VirutalTrees.pas file and got further but not far enough....

Quote
(9009) Assembling laz.vtgraphics
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(768,20) Error: (5042) No matching implementation for interface method "Next(LongWord;out tagFORMATETC;PULONG=`nil`):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(768,20) Error: (5042) No matching implementation for interface method "Skip(LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(768,20) Error: (5042) No matching implementation for interface method "Reset:LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(768,20) Error: (5042) No matching implementation for interface method "Clone(out IEnumFORMATETC):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "GetData(const tagFORMATETC;out TagSTGMEDIUM):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "GetDataHere(const tagFORMATETC;out TagSTGMEDIUM):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "QueryGetData(const tagFORMATETC):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "GetCanonicalFormatEtc(const tagFORMATETC;out tagFORMATETC):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "SetData(const tagFORMATETC;var TagSTGMEDIUM;LongBool):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "EnumFormatEtc(LongWord;out IEnumFORMATETC):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "DAdvise(const tagFORMATETC;LongWord;const IAdviseSink;out LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "DUnadvise(LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(832,19) Error: (5042) No matching implementation for interface method "EnumDAdvise(out IEnumSTATDATA):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(871,20) Error: (5042) No matching implementation for interface method "QueryContinueDrag(LongBool;LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(871,20) Error: (5042) No matching implementation for interface method "GiveFeedback(LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(871,20) Error: (5042) No matching implementation for interface method "DragEnter(const IDataObject;LongWord;TPoint;var LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(871,20) Error: (5042) No matching implementation for interface method "DragOver(LongWord;TPoint;var LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(871,20) Error: (5042) No matching implementation for interface method "DragLeave:LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(871,20) Error: (5042) No matching implementation for interface method "Drop(const IDataObject;LongWord;TPoint;var LongWord):LongInt; StdCall;" found
/Users/jimkueneman/Desktop/lazarus/components/virtualtreeview/laz.virtualtrees.pas(4168,1) Fatal: (10026) There were 19 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [laz.virtualtreeview_package.ppu] Error 1
make[1]: *** [idepackages] Error 2
make: *** [basecomponents] Error 2
jimkueneman@iMac lazarus %



dbannon

  • Hero Member
  • *****
  • Posts: 3558
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Can't Install Anything
« Reply #29 on: March 05, 2025, 02:24:24 am »
As TRon says, stumped !

The Unit has seen a number of changes since RC1, they all seem totally unrelated to that use of that constant. I have a feeling the problem is being misreported because of a memory corruption perhaps ?

Just a wild poke in the dark Jim, you have that unit there for both RC1 and RC2, how about making a backup of the RC2 unit and then replacing it with the RC1 one and rebuilding (make clean bigide). If (and its a big "if") the changes made don't extend outside of the unit, it might tell us if the changes really do cause this problem.

(The changes are interesting, they seem to be building in support for an early version 1.8 of LCL, why ?)

Davo

Edit : good chance that wont work, most recent commits there involved other, related units but worth trying, easier that reversing those commits.

Jim, is your download of RC2 based on Git or a zip file ?  If its git, then we (ie you) can use git to step back to intermediate states between RC2 and RC1. That will reveal the commit that broke things....

Davo
« Last Edit: March 05, 2025, 02:34:59 am by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018