<?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>229491</bug_id>
          
          <creation_ts>2021-08-25 02:16:40 -0700</creation_ts>
          <short_desc>postprocess-asm/resolve-asm-file-conflicts.rb build failure with GCC 11.1.0</short_desc>
          <delta_ts>2021-08-30 09:07:14 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>228267</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=223136</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>angelos</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1787117</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-08-25 02:16:40 -0700</bug_when>
    <thetext>Today trying to build WebKitGTK 2.33.3 with GCC 11.1.0 this error was produced
(reformatted for clarity):

  Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.s: Assembler messages:
  Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.s:114513:
    Error: file table slot 1 is already occupied by a different file
      (/home/aperez/webkitgtk-2.33.3/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp vs
       /home/aperez/webkitgtk-2.33.3/build-gtk//home/aperez/webkitgtk-2.33.3/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp)

While this was building 2.33.3, currently the “resolve-asm-conflicts.rb” script
is the same in trunk, so we have the issue there as well.

I got past the issue with the following, but I think it&apos;s not a correct solution
at all:

--- /home/aperez/WebKit/Source/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb	2021-03-25 16:41:56.741540337 +0200
+++ ./Source/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb	2021-08-25 12:07:38.225428021 +0300
@@ -86,8 +87,10 @@
     if not @s.eos?
       return ParseResultError.new(&quot;Expected end of line after #{ret2.str}&quot;)
     end
-    return ParseResultSuccess.new((Pathname.new(ret1.str) / ret2.str).cleanpath.to_s)
+    # return ParseResultSuccess.new((Pathname.new(ret1.str) / ret2.str).cleanpath.to_s)
+    return ParseResultSuccess.new(Pathname.new(ret1.str).cleanpath.to_s)
   end
+
   def parse_string_literal
     if @s.scan(/&quot;/).nil?
       err = &quot;Expected string literal at `#{@s.string}` (pos #{@s.pos})&quot;
@@ -395,7 +399,7 @@
 # First, make sure our tests still pass. This only takes a fraction of
 # our runtime and ensures the tests will get run by anyone trying out
 # changes to this file.
-selftest
+# selftest
 
 if ARGV.size != 2
   $stderr.puts(&quot;Usage: #{$0} input output&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787118</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-08-25 02:17:43 -0700</bug_when>
    <thetext>The last time the script was touched was in bug #223136 so CC&apos;ing
Angelos in case he has some idea on how to go about this :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1788504</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-08-30 08:17:45 -0700</bug_when>
    <thetext>Unfortunately I didn&apos;t notice this because I had added -DGCC_OFFLINEASM_SOURCE_MAP=OFF to my build script in order to facilitate building. Now that I&apos;ve removed it, I cannot build anymore due to this issue. I&apos;m going to turn this option off for now in an unreviewed commit, to get the build working again for now.

I&apos;m bamboozled as to why this didn&apos;t break any Fedora or GNOME builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1788505</commentid>
    <comment_count>3</comment_count>
      <attachid>436773</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-08-30 08:17:58 -0700</bug_when>
    <thetext>Created attachment 436773
Patch for landing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1788507</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-08-30 08:19:29 -0700</bug_when>
    <thetext>Apparently it&apos;s already fixed in bug #228267. We just forgot to land that patch.

*** This bug has been marked as a duplicate of bug 228267 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>436773</attachid>
            <date>2021-08-30 08:17:58 -0700</date>
            <delta_ts>2021-08-30 09:07:14 -0700</delta_ts>
            <desc>Patch for landing</desc>
            <filename>bug-229491-20210830101757.patch</filename>
            <type>text/plain</type>
            <size>1439</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjgxNzU0CmRpZmYgLS1naXQgYS9Tb3VyY2UvY21ha2UvT3B0
aW9uc0NvbW1vbi5jbWFrZSBiL1NvdXJjZS9jbWFrZS9PcHRpb25zQ29tbW9uLmNtYWtlCmluZGV4
IDZjNDBmMjM4YWI3N2RjZGJhZDE1NzA0N2QxODY0ZjU0NTlmNjIwM2MuLjcwY2E2MzA1OTkzNjU1
MWZmNzAyZGViNjA5NzhkOWQ0MWVlMWUwMj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ZwpAQCAtMSwzICsxLDEyIEBACisyMDIxLTA4LTMwICBNaWNoYWVsIENhdGFuemFybyAg
PG1jYXRhbnphcm9AZ25vbWUub3JnPgorCisgICAgICAgIFVucmV2aWV3ZWQsIGRpc2FibGUgb2Zm
bGluZWFzbSBzb3VyY2UgbWFwIGZvciBub3cKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTIyOTQ5MQorCisgICAgICAgIEl0IGJyZWFrcyB0aGUgYnVpbGQs
IGFuZCByZXF1aXJlcyBmdXJ0aGVyIGludmVzdGlnYXRpb24gdG8gdW5kZXJzdGFuZC4KKworICAg
ICAgICAqIFNvdXJjZS9jbWFrZS9PcHRpb25zQ29tbW9uLmNtYWtlOgorCiAyMDIxLTA4LTI3ICBT
dGVwaGFuIFN6YWJvICA8c3RlcGhhbi5zemFib0Bzb255LmNvbT4KIAogICAgICAgICBbUGxheVN0
YXRpb25dW0NNYWtlXSBBZGQgY29udHJvbCBvdmVyIHdoZXRoZXIgSmF2YVNjcmlwdENvcmUgc2hv
dWxkIGJlIHNoYXJlZAo=
</data>
<flag name="commit-queue"
          id="459860"
          type_id="3"
          status="-"
          setter="mcatanzaro"
    />
          </attachment>
      

    </bug>

</bugzilla>