[MacPorts] #48471: gcc48 @4.8.5 build failure on OS X 10.11 [El Capitan, Public Beta 3]

MacPorts noreply at macports.org
Thu Oct 8 22:10:39 PDT 2015


#48471: gcc48 @4.8.5 build failure on OS X 10.11 [El Capitan, Public Beta 3]
-----------------------+-----------------------
  Reporter:  jasonw@…  |      Owner:  mww@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.3
Resolution:            |   Keywords:  elcapitan
      Port:  gcc48     |
-----------------------+-----------------------

Comment (by dar1985.lukic@…):

 Hi,

 had some time to spare and worked on a patch (see:
 {{{define_nonstandard_clang_macros.patch}}}). This patch works for me, but
 fixing the actual bug in {{{/usr/include/Availability.h}}} itself would be
 the best solution.

 I'm not sure if I'm correct, but this error is probably caused by some
 incorrectly defined conditions in {{{/usr/include/Availability.h}}}:
 {{{
 /* for use marking APIs available info for Mac OSX */
 #if defined(__has_feature)
   #if __has_attribute(availability)
     #define __OSX_UNAVAILABLE
 __OS_AVAILABILITY(macosx,unavailable)
     #define __OSX_AVAILABLE(_vers)
 __OS_AVAILABILITY(macosx,introduced=_vers)
     #define __OSX_DEPRECATED(_start, _dep, _msg) __OSX_AVAILABLE(_start)
 __OS_AVAILABILITY_MSG(macosx,deprecated=_dep,_msg)
   #endif
 #endif
 }}}

 The first condition should be {{{#if defined(__has_attribute)}}} instead
 of {{{#if defined(__has_feature)}}}. This patch will also add more fixes
 to GCC's {{{fixincludes/inclhack.def}}} and {{{fixincludes/fixincl.x}}}.
 Most of them might not be directly related to this bug, but they're
 related to clang's {{{__has_attribute}}} macro.

-- 
Ticket URL: <https://trac.macports.org/ticket/48471#comment:24>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list