Bug 218566 - JSC build fails on Big Sur 11.0.1 beta
Summary: JSC build fails on Big Sur 11.0.1 beta
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CMake (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Other
: P4 Trivial
Assignee: Nobody
URL:
Keywords: DoNotImportToRadar
Depends on:
Blocks:
 
Reported: 2020-11-04 07:41 PST by Sergey Rubanov
Modified: 2020-11-04 17:41 PST (History)
11 users (show)

See Also:


Attachments
Patch (1.93 KB, patch)
2020-11-04 07:47 PST, Sergey Rubanov
no flags Details | Formatted Diff | Diff
Patch (1.42 KB, patch)
2020-11-04 11:10 PST, Sergey Rubanov
no flags Details | Formatted Diff | Diff
Patch (1.39 KB, patch)
2020-11-04 11:28 PST, Sergey Rubanov
no flags Details | Formatted Diff | Diff
Patch for landing (1.39 KB, patch)
2020-11-04 16:57 PST, Sergey Rubanov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Rubanov 2020-11-04 07:41:49 PST
On macOS 11 Big Sur /usr/lib/*.dylib files do not exist. That causes "Tools/Scripts/build-jsc --jsc-only" to fail (it needs /usr/lib/libicucore.dylib).

> New in macOS Big Sur 11.0.1 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-beta-release-notes
Comment 1 Sergey Rubanov 2020-11-04 07:47:13 PST
Created attachment 413161 [details]
Patch
Comment 2 David Kilzer (:ddkilzer) 2020-11-04 10:47:51 PST
Comment on attachment 413161 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=413161&action=review

r- for the cmake minimum version change.

> CMakeLists.txt:9
> -cmake_minimum_required(VERSION 3.10)
> +cmake_minimum_required(VERSION 3.18)

Is this needed to use the find_library() function?

I only have 3.17.x installed on my macOS 10.15.6 system, so I think this would break (Apple) folks using CMake on macOS.
Comment 3 Sergey Rubanov 2020-11-04 11:05:20 PST
Oh, actually cmake minimum required version update is not required, I misunderstood this issue at first https://gitlab.kitware.com/cmake/cmake/-/issues/21007 and forgot to remove this change in CMakeLists
Comment 4 Sergey Rubanov 2020-11-04 11:10:10 PST
Created attachment 413183 [details]
Patch
Comment 5 David Kilzer (:ddkilzer) 2020-11-04 11:21:54 PST
Comment on attachment 413183 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=413183&action=review

r=me

> Source/cmake/WebKitFindPackage.cmake:94
> +        # Apple just has a single tbd for ICU

Nit: Add period at the end of the comment.  (Not necessary to land, but you might want to make this change while fixing the ChangeLog.)

> ChangeLog:8
> +        * CMakeLists.txt:

Nit: Remove this line as this file is no longer changed.
Comment 6 Sergey Rubanov 2020-11-04 11:28:45 PST
Created attachment 413190 [details]
Patch
Comment 7 David Kilzer (:ddkilzer) 2020-11-04 15:06:49 PST
(In reply to Sergey Rubanov from comment #6)
> Created attachment 413190 [details]
> Patch

Can you set cq+, or do I need to do it?  (I didn't want to set it if you had planned to later.)
Comment 8 Sergey Rubanov 2020-11-04 15:27:11 PST
(In reply to David Kilzer (:ddkilzer) from comment #7)
> (In reply to Sergey Rubanov from comment #6)
> > Created attachment 413190 [details]
> > Patch
> 
> Can you set cq+, or do I need to do it?  (I didn't want to set it if you had
> planned to later.)

Sorry, I'm new here and this is my first patch =)
What is cq+ or where can I read about that?
Comment 9 Sergey Rubanov 2020-11-04 16:57:32 PST
Created attachment 413227 [details]
Patch for landing
Comment 10 EWS 2020-11-04 17:41:04 PST
Committed r269410: <https://trac.webkit.org/changeset/269410>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 413227 [details].