Bug 216602 - Build fails with -DENABLE_ACCELERATED_2D_CANVAS=ON
Summary: Build fails with -DENABLE_ACCELERATED_2D_CANVAS=ON
Status: RESOLVED DUPLICATE of bug 217384
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Pablo Saavedra
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-09-16 00:11 PDT by Pablo Saavedra
Modified: 2020-10-13 12:23 PDT (History)
9 users (show)

See Also:


Attachments
patch (3.86 KB, patch)
2020-09-16 00:14 PDT, Pablo Saavedra
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Pablo Saavedra 2020-09-16 00:14:33 PDT
Created attachment 408901 [details]
patch
Comment 2 Pablo Saavedra 2020-09-16 00:19:50 PDT
The https://bugs.webkit.org/attachment.cgi?id=408901  patch solve most of the compilation errors but still there is a problem in linking time:


```
lib/libJavaScriptCore.a(lib/../Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/IntlNumberFormatPrototype.cpp.o):IntlNumberFormatPrototype.cpp:function JSC::IntlNumberFormatPrototypeFuncResolvedOptions(JSC::JSGlobalObject*, JSC::CallFrame*): error: undefined reference to 'JSC::IntlNumberFormat::unwrapForOldFunctions(JSC::JSGlobalObject*, JSC::JSValue)'
lib/libJavaScriptCore.a(lib/../Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/IntlNumberFormatPrototype.cpp.o):IntlNumberFormatPrototype.cpp:function JSC::IntlNumberFormatPrototypeGetterFormat(JSC::JSGlobalObject*, JSC::CallFrame*): error: undefined reference to 'JSC::IntlNumberFormat::unwrapForOldFunctions(JSC::JSGlobalObject*, JSC::JSValue)'
collect2: error: ld returned 1 exit status
```

That part of the code was recently modified by this commit

```
commit ddc87c0a4c05321205286709f1e073518add1f2f
Author: ysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Sep 5 04:53:16 2020 +0000

    [JSC] Align legacy Intl constructor behavior to spec
    https://bugs.webkit.org/show_bug.cgi?id=216193
    
    Reviewed by Darin Adler.
```
Comment 3 Radar WebKit Bug Importer 2020-09-23 00:12:13 PDT
<rdar://problem/69418679>
Comment 4 Michael Catanzaro 2020-10-13 07:31:14 PDT
I've just closed all the other ENABLE_ACCELERATED_2D_CANVAS build failures I could find (obsoleted by bug #217603). I'll leave this one in case you want to fix it on 2.30, but probably better to just stop enabling that option.
Comment 5 Adrian Perez 2020-10-13 12:23:03 PDT
We fixed this in bug #217384 — unfortunately that went under my
radar. Pablo, next time please poke us a bit to not let patches
get outdated in Bugzilla; I am sorry for neglecting this one 😓️

Side note: the linker errors about the JSC symbols are unrelated,
and most likely caused by problems masked by unified builds, because
they look similar to the usual stuff we fix when making patches to
keep non-unified builds working.

*** This bug has been marked as a duplicate of bug 217384 ***