[MacPorts] #74416: harfbuzz @14.4.0 does not build on PPC Mac OS X 10.5.8, Leopard, because of two separate errors

MacPorts noreply at macports.org
Fri Sep 11 21:52:16 UTC 2026


#74416: harfbuzz @14.4.0 does not build on PPC Mac OS X 10.5.8, Leopard, because of
two separate errors
-------------------------+----------------------
 Reporter:  ballapete    |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.12.6
 Keywords:  ppc leopard  |       Port:  harfbuzz
-------------------------+----------------------
 When `Portfile` contains the certainly faulty line

 {{{
 if {${os.platform} eq "darwin" && ${os.major} >= 9} {
 }}}

 the build process stops here:

 {{{
 [61/443] /opt/local/bin/g++-mp-15 -Isrc/libharfbuzz.0.dylib.p -Isrc
 -I../harfbuzz-14.4.0/src -I. -I../harfbuzz-14.4.0
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1
 -Wall -Winvalid-pch -fno-exceptions -std=c++11 -O2 -g -fno-exceptions
 -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden
 -DHAVE_CONFIG_H -pipe -Os -DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR
 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MD -MQ src/libharfbuzz.0.dylib.p/hb-
 coretext.cc.o -MF src/libharfbuzz.0.dylib.p/hb-coretext.cc.o.d -o
 src/libharfbuzz.0.dylib.p/hb-coretext.cc.o -c ../harfbuzz-14.4.0/src/hb-
 coretext.cc
 FAILED: [code=1] src/libharfbuzz.0.dylib.p/hb-coretext.cc.o
 /opt/local/bin/g++-mp-15 -Isrc/libharfbuzz.0.dylib.p -Isrc
 -I../harfbuzz-14.4.0/src -I. -I../harfbuzz-14.4.0
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1
 -Wall -Winvalid-pch -fno-exceptions -std=c++11 -O2 -g -fno-exceptions
 -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden
 -DHAVE_CONFIG_H -pipe -Os -DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR
 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MD -MQ src/libharfbuzz.0.dylib.p/hb-
 coretext.cc.o -MF src/libharfbuzz.0.dylib.p/hb-coretext.cc.o.d -o
 src/libharfbuzz.0.dylib.p/hb-coretext.cc.o -c ../harfbuzz-14.4.0/src/hb-
 coretext.cc
 In file included from ../harfbuzz-14.4.0/src/hb-coretext.hh:35,
                  from ../harfbuzz-14.4.0/src/hb-coretext.cc:35:
 ../harfbuzz-14.4.0/src/hb-coretext.h:33:5: warning: 'TARGET_OS_IPHONE' is
 not defined, evaluates to '0' [-Wundef]
    33 | #if TARGET_OS_IPHONE
       |     ^~~~~~~~~~~~~~~~
 ../harfbuzz-14.4.0/src/hb-coretext.cc: In function 'const __CTFont*
 create_ct_font(CGFontRef, CGFloat)':
 ../harfbuzz-14.4.0/src/hb-coretext.cc:298:29: warning: the address of
 'uint32_t CTGetCoreTextVersion()' will never be NULL [-Waddress]
   298 |   if (&CTGetCoreTextVersion != nullptr && CTGetCoreTextVersion() <
 0x00070000) {
       |       ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
 In file included from
 /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:53,
                  from ../harfbuzz-14.4.0/src/hb-coretext.h:37:
 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Headers/CoreText.h:50:10:
 note: 'uint32_t CTGetCoreTextVersion()' declared here
    50 | uint32_t CTGetCoreTextVersion( void )
 AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
       |          ^~~~~~~~~~~~~~~~~~~~
 ../harfbuzz-14.4.0/src/hb-coretext.cc: In function 'hb_face_t*
 hb_coretext_face_create_from_file_or_fail(const char*, unsigned int)':
 ../harfbuzz-14.4.0/src/hb-coretext.cc:413:29: error:
 'CTFontManagerCreateFontDescriptorsFromURL' was not declared in this scope
   413 |   auto ct_font_desc_array =
 CTFontManagerCreateFontDescriptorsFromURL (url);
       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../harfbuzz-14.4.0/src/hb-coretext.cc: In function 'hb_font_t*
 hb_coretext_font_create(CTFontRef)':
 ../harfbuzz-14.4.0/src/hb-coretext.cc:545:31: warning: narrowing
 conversion of 'tag' from 'int' to 'hb_tag_t' {aka 'unsigned int'}
 [-Wnarrowing]
   545 |         hb_variation_t var = {tag, value};
       |                               ^~~
 ninja: build stopped: subcommand failed.
 }}}


 When `Portfile` contains the certainly correct line

 {{{
 if {${os.platform} eq "darwin" && ${os.major} > 9} {
 }}}

 the build process stops much later with an error from GLFW, the OpenGL and
 OpenGL ES framework:

 {{{
 [197/438] /opt/local/bin/g++-mp-15 -Iutil/hb-gpu.p -Iutil
 -I../harfbuzz-14.4.0/util -I. -I../harfbuzz-14.4.0 -Isrc
 -I../harfbuzz-14.4.0/src -Iutil/gpu -I/opt/local/include/freetype2
 -I/opt/local/include/libpng16 -I/opt/local/include/cairo
 -I/opt/local/include/pixman-1 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -fdiagnostics-
 color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -fno-exceptions
 -std=c++11 -O2 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics
 -fvisibility-inlines-hidden -DHAVE_CONFIG_H -pipe -Os
 -DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc
 -MD -MQ util/hb-gpu.p/hb-gpu.cc.o -MF util/hb-gpu.p/hb-gpu.cc.o.d -o util
 /hb-gpu.p/hb-gpu.cc.o -c ../harfbuzz-14.4.0/util/hb-gpu.cc
 FAILED: [code=1] util/hb-gpu.p/hb-gpu.cc.o
 /opt/local/bin/g++-mp-15 -Iutil/hb-gpu.p -Iutil -I../harfbuzz-14.4.0/util
 -I. -I../harfbuzz-14.4.0 -Isrc -I../harfbuzz-14.4.0/src -Iutil/gpu
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/cairo -I/opt/local/include/pixman-1
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1
 -Wall -Winvalid-pch -fno-exceptions -std=c++11 -O2 -g -fno-exceptions
 -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden
 -DHAVE_CONFIG_H -pipe -Os -DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR
 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MD -MQ util/hb-gpu.p/hb-gpu.cc.o -MF
 util/hb-gpu.p/hb-gpu.cc.o.d -o util/hb-gpu.p/hb-gpu.cc.o -c
 ../harfbuzz-14.4.0/util/hb-gpu.cc
 In file included from ../harfbuzz-14.4.0/util/hb-gpu.cc:31:
 ../harfbuzz-14.4.0/util/gpu-output.hh: In member function 'void
 gpu_output_t::init_metal()':
 ../harfbuzz-14.4.0/util/gpu-output.hh:253:38: error: 'GLFW_NO_API' was not
 declared in this scope; did you mean 'GLFW_MOD_ALT'?
   253 |     glfwWindowHint (GLFW_CLIENT_API, GLFW_NO_API);
       |                                      ^~~~~~~~~~~
       |                                      GLFW_MOD_ALT
 ninja: build stopped: subcommand failed.
 }}}

 `GLFW_NO_API` is being used in glfw versions 3.5.x.
 .

-- 
Ticket URL: <https://trac.macports.org/ticket/74416>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list