<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>258625</bug_id>
          
          <creation_ts>2023-06-28 08:50:32 -0700</creation_ts>
          <short_desc>Fix JavaScriptCore build on oss-fuzz</short_desc>
          <delta_ts>2023-07-12 21:37:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Template Framework</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58850</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1964035</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-06-28 08:50:32 -0700</bug_when>
    <thetext>Fix JavaScriptCore build on oss-fuzz.

Step #3 - &quot;compile-none-address-x86_64&quot;: /usr/local/bin/clang++ -DBUILDING_JSCONLY__ -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DHAVE_CONFIG_H=1 -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -I/src/WebKit/WebKitBuild/Debug -I/src/WebKit/WebKitBuild/Debug/WTF/DerivedSources -I/src/WebKit/Source/WTF -I/src/WebKit/Source/WTF/wtf -I/src/WebKit/Source/WTF/wtf/dtoa -I/src/WebKit/Source/WTF/wtf/fast_float -I/src/WebKit/Source/WTF/wtf/persistence -I/src/WebKit/Source/WTF/wtf/text -I/src/WebKit/Source/WTF/wtf/text/icu -I/src/WebKit/Source/WTF/wtf/threads -I/src/WebKit/Source/WTF/wtf/unicode -I/src/WebKit/WebKitBuild/Debug/bmalloc/Headers -isystem /src/deps/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope  -stdlib=libc++ -DU_STATIC_IMPLEMENTATION -fno-strict-aliasing -fno-exceptions -fno-rtti -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Werror -std=c++20 -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/text/TextBreakIterator.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/text/TextBreakIterator.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/text/TextBreakIterator.cpp.o -c /src/WebKit/Source/WTF/wtf/text/TextBreakIterator.cpp
Step #3 - &quot;compile-none-address-x86_64&quot;: /src/WebKit/Source/WTF/wtf/text/TextBreakIterator.cpp:134:71: error: macro &apos;ATOMIC_VAR_INIT&apos; has been marked as deprecated [-Werror,-Wdeprecated-pragma]
Step #3 - &quot;compile-none-address-x86_64&quot;: static std::atomic&lt;UBreakIterator*&gt; nonSharedCharacterBreakIterator = ATOMIC_VAR_INIT(nullptr);
Step #3 - &quot;compile-none-address-x86_64&quot;:                                                                       ^
Step #3 - &quot;compile-none-address-x86_64&quot;: /usr/local/bin/../include/c++/v1/atomic:2709:43: note: macro marked &apos;deprecated&apos; here
Step #3 - &quot;compile-none-address-x86_64&quot;: #  pragma clang deprecated(ATOMIC_VAR_INIT)
Step #3 - &quot;compile-none-address-x86_64&quot;:                                           ^
Step #3 - &quot;compile-none-address-x86_64&quot;: 1 error generated.

&lt;https://oss-fuzz-build-logs.storage.googleapis.com/log-90f78f23-a141-4a4d-957f-b779d521881c.txt&gt;

See:  &lt;https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58850&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964036</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-28 08:53:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/111454222&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964037</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-06-28 08:56:02 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/15373</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964051</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-28 09:45:45 -0700</bug_when>
    <thetext>Committed 265585@main (2b3bfa9afb6a): &lt;https://commits.webkit.org/265585@main&gt;

Reviewed commits have been landed. Closing PR #15373 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964992</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-07-04 08:32:10 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/15543</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965004</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-04 09:46:02 -0700</bug_when>
    <thetext>Committed 265756@main (ee9d5f08a78b): &lt;https://commits.webkit.org/265756@main&gt;

Reviewed commits have been landed. Closing PR #15543 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965963</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-07-10 09:51:40 -0700</bug_when>
    <thetext>Next build failure:

Step #3 - &quot;compile-none-address-x86_64&quot;: /src/WebKit/Source/JavaScriptCore/API/tests/FunctionToStringTests.cpp:107:5: error: use of undeclared identifier &apos;printf&apos;
Step #3 - &quot;compile-none-address-x86_64&quot;:      printf(&quot;%s: function toString tests.\n&quot;, failed ? &quot;FAIL&quot; : &quot;PASS&quot;);
Step #3 - &quot;compile-none-address-x86_64&quot;:      ^
Step #3 - &quot;compile-none-address-x86_64&quot;: error generated.

&lt;https://oss-fuzz-build-logs.storage.googleapis.com/log-5ced79d5-e42d-4944-8724-011b4c1d599b.txt&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965964</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-07-10 09:54:06 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/15698</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965978</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-10 10:40:35 -0700</bug_when>
    <thetext>Committed 265910@main (cbe26af65a98): &lt;https://commits.webkit.org/265910@main&gt;

Reviewed commits have been landed. Closing PR #15698 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>