Atozed Forums

Full Version: Delphi OSX64 changes broken FPC compilation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The changes to IdCompilerDefines.inc in SVN revs 5500-5505 broke compiling Indy for 64-bit OS X under Free Pascal.  Prior to those changes, THANDLE was set to THANDLE_32 for both 32-bit and 64-bit OS X builds, but Embarcadero's patch and subsequent changes switched it to THANDLE_CPUBITS.  Compiling IdGlobal.pas with Free Pascal 3.3.1 now fails in InterlockedExchangeTHandle, line 4487 with the error "Typecast has different size (4 -> 8) in assignment" on the VTarget cast.

EDIT: Since it dropped the "$ELSE" clause, it looks like it's also undefined for any non-Apple BSD variants, but we don't compile for those so I'm not sure.
(01-24-2020, 07:57 PM)zpeterson Wrote: [ -> ]The changes to IdCompilerDefines.inc in SVN revs 5500-5505

Indy does not use SVN anymore. The latest code is now on Indy's GitHub repository going forward.

(01-24-2020, 07:57 PM)zpeterson Wrote: [ -> ]... broke compiling Indy for 64-bit OS X under Free Pascal.

That was fixed a month ago in Indy's GitHub repo (commit #39b514b). See this ticket for discussion.
Ah, ok, thanks.

In that case, the problem is that the "Development Snapshot" link on https://www.indyproject.org/download/v10/ points to the old website content that still refers to the SVN repository.
(01-27-2020, 03:57 AM)zpeterson Wrote: [ -> ]In that case, the problem is that the "Development Snapshot" link on https://www.indyproject.org/download/v10/ points to the old website content that still refers to the SVN repository.

Yes, I'm aware of that, and I stated as much in the blog post I linked to in my previous reply above:

Quote:Indy’s main website has not been updated yet to reflect this new information. Though there is a link to the GitHub repository in the download section for the dev snapshot.