WebCore icon indicating copy to clipboard operation
WebCore copied to clipboard

Fix ambiguous reference error

Open ozanmakes opened this issue 4 years ago • 0 comments

When I run ./make I get the following error on macOS:

In file included from DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-0284c6ac-1.cpp:8:
../Source/JavaScriptCore/tools/JSDollarVM.cpp:180:37: error: reference to 'Handle' is ambiguous
    bool isReachableFromOpaqueRoots(Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor, const char** reason) override
                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/MacTypes.h:249:41: note: candidate found by name lookup is 'Handle'
typedef Ptr *                           Handle;
                                        ^
../Source/JavaScriptCore/heap/handle.h:109:29: note: candidate found by name lookup is 'JSC::Handle'
template <typename T> class Handle : public HandleBase, public HandleConverter<Handle<T>, T> {

This change fixed it and allowed me to build WebCore successfully.

Tested on macOS 11.2.2 clang --version: Apple clang version 12.0.0 (clang-1200.0.32.29) Xcode Version 12.4 (12D4e)

ozanmakes avatar Mar 16 '21 10:03 ozanmakes