Bug 187678

Summary: Link error (duplicate symbol _g_gigacageBasePtrs) when building with USE_SYSTEM_MALLOC=1
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: fpizlo, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2018-07-14 11:30:18 PDT
Building with USE_SYSTEM_MALLOC=1:

/JavaScriptCore.framework/Versions/A/JavaScriptCore
duplicate symbol _g_gigacageBasePtrs in:
    /Volumes/Data/Development/apple/webkit/OpenSource/WebKitBuild/Release/DerivedSources/JavaScriptCore/libWTF.a(Gigacage.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Simon Fraser (smfr) 2018-07-14 11:46:40 PDT
I think this is because we pull in _g_gigacageBasePtrs from both bmalloc and WTF