darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.52k stars 444 forks source link

Symbol not found: _kCTFontOpenTypeFeatureValue #1425

Open godvino opened 1 year ago

godvino commented 1 year ago

Running a gtk4 application fails with the error Symbol not found: _kCTFontOpenTypeFeatureValue

Darling [/Volumes/SystemRoot/var/home/godvino/Projects/rcross]$ DYLD_LIBRARY_PATH=build/build/install/usr/local/lib/ ./build/src/rcross 
dyld: dyld cache load error: shared cache file open() failed
dyld: Symbol not found: _kCTFontOpenTypeFeatureValue
  Referenced from: build/build/install/usr/local/lib//libharfbuzz.0.dylib (which was built for Mac OS X 11.0)
  Expected in: /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
 in build/build/install/usr/local/lib//libharfbuzz.0.dylib
abort_with_payload: reason: dyld cache load error: shared cache file open() failed
Symbol not found: _kCTFontOpenTypeFeatureValue
  Referenced from: build/build/install/usr/local/lib//libharfbuzz.0.dylib (which was built for Mac OS X 11.0)
  Expected in: /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
 in build/build/install/usr/local/lib//libharfbuzz.0.dylib; code: 4
Abort trap: 6 (core dumped)

This is using darling at https://github.com/darlinghq/darling/commit/557e7e9dece394a3f623825679474457e5b64fd0 installed from nixpkgs in a Fedora 38 toolbox container on a Fedora Silverblue 38 host.

HinTak commented 1 year ago

Harfbuzz uses obscure/extensive corners of coretext, not surprised.