[MacPorts] #59316: osxfuse @3.8.3: Assertion 'common_is_variable DEFAULT_SDK_10_15_ARCHITECURES' failed

MacPorts noreply at macports.org
Tue Dec 29 15:20:04 UTC 2020


#59316: osxfuse @3.8.3: Assertion 'common_is_variable
DEFAULT_SDK_10_15_ARCHITECURES' failed
---------------------------+----------------------
  Reporter:  andrey-popov  |      Owner:  (none)
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.1
Resolution:                |   Keywords:  catalina
      Port:  osxfuse       |
---------------------------+----------------------

Comment (by doeringudh):

 I got it to work on macOS 10.15.7. The root cause for the breakage seems
 to be the release of Xcode 12.3. It introduces SDK 11.1, the version for
 Big Sur, I presume, and this one is now the default SDK even on Catalina.
 Besides the usual changes in osxfuse for additional SDKs there is a change
 of semantics for the "PAGE_SIZE" C macro.

 "PAGE_SIZE" is no longer a constant but instead points to a variable now,
 so it cannot be used to initialize global variables any more. The compiler
 error message hints at this, and I found the definition in
 "!/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/mach/i386/vm_param.h".
 I opted for changing the code in osxfuse accordingly (if a little hacky),
 since I regard this as more future-proof. Or one could also define the
 macro "!__MAC_OS_X_VERSION_MIN_REQUIRED" to be lower than "101600" to get
 the old semantics.

 Instead of adding more individual patch files to this thread and thereby
 increasing the confusion about what is needed and what isn't to get it
 working, I will add an attachment with the complete modified ports
 structure. Plug-and-Play. I set it up on my Mac as a local repo, according
 to these instructions: [https://guide.macports.org/chunked/development
 .local-repositories.html]. For the complete picture, make a recursive diff
 between the ports in the macports and the local repo. The only thing that
 still has to be done manually is creating the symlink in
 "!/Library/Extensions".

-- 
Ticket URL: <https://trac.macports.org/ticket/59316#comment:41>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list