Bug 231929

Summary: Debug + Code Coverage configuration make error: headers don't have symbol
Product: WebKit Reporter: Gabriel Nava Marino <gnavamarino>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, ddkilzer, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Gabriel Nava Marino 2021-10-18 18:38:36 PDT
First try:
set-webkit-configuration --coverage --debug then make

These errors will occur during the GenerateTAPI step:
error: headers don't have symbol '(weak-def) ___llvm_profile_filename'
error: headers don't have symbol '(weak-def) ___llvm_profile_raw_version'
error: headers don't have symbol '(weak-def) _lprofDirMode'

These seem related to https://bugs.webkit.org/show_bug.cgi?id=226684. However, reverting the change results in another error mentioned in https://bugs.webkit.org/show_bug.cgi?id=226562.
Comment 1 Gabriel Nava Marino 2021-10-18 18:49:17 PDT
Potentially related: https://stackoverflow.com/questions/58127940/undefined-symbols-llvm-profile-runtime
Comment 2 Radar WebKit Bug Importer 2021-10-25 18:39:15 PDT
<rdar://problem/84641844>
Comment 3 David Kilzer (:ddkilzer) 2021-10-27 20:19:41 PDT
I wonder if we can disable TAPI for Debug builds.  I'm not sure there's a need for it in those builds, unless developers only build Debug locally and would miss new issues they created.