<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>223680</bug_id>
          
          <creation_ts>2021-03-24 01:52:21 -0700</creation_ts>
          <short_desc>[BigSur] CMake build cannot link to cached dylib</short_desc>
          <delta_ts>2021-03-31 01:53:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CMake</component>
          <version>WebKit Local Build</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="lecris">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1743226</commentid>
    <comment_count>0</comment_count>
    <who name="lecris">webkit</who>
    <bug_when>2021-03-24 01:52:21 -0700</bug_when>
    <thetext>I am trying to port webkit-gtk to homebrew, but I am running into a roadblock with one of the packages used (probably `WTF`&apos;s link to `ICU`). The exact error is:
```
make[3]: *** No rule to make target `/usr/lib/libicucore.dylib&apos;, needed by `bin/LLIntSettingsExtractor&apos;.  Stop.
make[2]: *** [Source/JavaScriptCore/CMakeFiles/LLIntSettingsExtractor.dir/all] Error 2
```

In BigSur, Mac has switched to using cached dylib so there is no `/usr/lib/libicucore.dylib`, instead `.tbd` is used. From what I&apos;ve read with CMake &gt;3.19 these libraries are picked up correctly, however this doesn&apos;t seem to be the case in this project. A new target `/usr/lib/libicucore.dylib` is generated after the config stage, but I am not able to track down to why and how it is generated. Could anyone help point me to the appropriate section, and if possible to a resolution to this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1744577</commentid>
    <comment_count>1</comment_count>
    <who name="lecris">webkit</who>
    <bug_when>2021-03-27 19:46:59 -0700</bug_when>
    <thetext>I have since resolved this issue by adding `find_package(ICU COMPONENTS data uc i18n REQUIRED)`, however a bunch more errors have appeared due to the CMAKE project not accounting for a`GTK` build on `MacOS`. Some are trivial fixes like the `namespace` not being added or a `const` function pointing to a non-static member. I am able to solve some of these issues, but there are a few issues I would like to ask for some help with. Currently one unresolved issue is:
```
../Source/WebKit/Shared/SandboxExtension.h:120:74: error: use of undeclared identifier &apos;audit_token_t&apos;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1745554</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-31 01:53:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/76044123&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>