[MacPorts] #65795: harfbuzz-icu can't be compiled on 10.5 i386 anymore

MacPorts noreply at macports.org
Wed Sep 7 18:11:58 UTC 2022


#65795: harfbuzz-icu can't be compiled on 10.5 i386 anymore
---------------------------+----------------------
  Reporter:  catap         |      Owner:  mascguy
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  harfbuzz-icu  |
---------------------------+----------------------

Comment (by kencu):

 TLDR; try adding legacysupport. Usually works.

 this error in the MacOSX10.5 and 10.6 math headers is quite commonly noted
 when using older gcc versions or when building with clang against the
 libgcc headers, and is usually fixed by adding legacysupport:

 https://github.com/macports/macports-legacy-
 support/blob/03a02c1fb64e1ca254cb7c563ec367b12bd7fb18/include/cmath#L69

 https://github.com/macports/macports-legacy-
 support/blob/03a02c1fb64e1ca254cb7c563ec367b12bd7fb18/include/math.h#L38

 It was fixed in clang when building with libc++ with this patch in the
 libc++ headers, which I carried along to all newer clangs since, so you
 don't see it there:

 https://github.com/macports/macports-
 ports/blob/master/lang/llvm-5.0/files/3002-Fix-missing-long-long-math-
 prototypes-when-using-the.patch

 gcc7+ fixed this internally, so you won't see this issue any longer when
 building with new gcc versions, even without legacysupport.

 I had to fix this manually when building webkit2-gtk using clang and
 -stdlib=macoports-libstdc++ many many years ago:

 https://github.com/macports/macports-
 ports/commit/78896778109ce1f25a02c4c167d1e6d6ddf33d4d

 but it's possible that last fix might be able to be replaced by using
 legacysupport now; I haven't tried that.

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


More information about the macports-tickets mailing list