<?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>174424</bug_id>
          
          <creation_ts>2017-07-12 09:05:41 -0700</creation_ts>
          <short_desc>bmalloc: Failure to build when the compiler specifically targets ARMv8-A / defines __ARM_ARCH_8A__</short_desc>
          <delta_ts>2017-07-12 11:43:41 -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>bmalloc</component>
          <version>Other</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Adrian Perez">aperez</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mitz</cc>
    
    <cc>msaboff</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1328070</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2017-07-12 09:05:41 -0700</bug_when>
    <thetext>The following error prevents builds from succeeding when a compiler specifically
targets ARMv8-A (instead of generic ARMv8):

  In file included from /home/aperez/devel/wpe/buildroot/output/build/webkitgtk-2.16.5/Source/bmalloc/bmalloc/BAssert.h:28:0,
                   from /home/aperez/devel/wpe/buildroot/output/build/webkitgtk-2.16.5/Source/bmalloc/bmalloc/BumpAllocator.h:29,
                   from /home/aperez/devel/wpe/buildroot/output/build/webkitgtk-2.16.5/Source/bmalloc/bmalloc/Allocator.h:29,
                   from /home/aperez/devel/wpe/buildroot/output/build/webkitgtk-2.16.5/Source/bmalloc/bmalloc/Allocator.cpp:26:
  /home/aperez/devel/wpe/buildroot/output/build/webkitgtk-2.16.5/Source/bmalloc/bmalloc/BPlatform.h:84:45: warning: &quot;BARM_ARCH_VERSION&quot; is not defined [-Wundef]
   #define BARM_ARCH_AT_LEAST(N) (BCPU(ARM) &amp;&amp; BARM_ARCH_VERSION &gt;= N)
                                               ^
  /home/aperez/devel/wpe/buildroot/output/build/webkitgtk-2.16.5/Source/bmalloc/bmalloc/BPlatform.h:180:9: note: in expansion of macro ‘BARM_ARCH_AT_LEAST’
   #  elif BARM_ARCH_AT_LEAST(4)
           ^~~~~~~~~~~~~~~~~~
  /home/aperez/devel/wpe/buildroot/output/build/webkitgtk-2.16.5/Source/bmalloc/bmalloc/BPlatform.h:184:6: error: #error &quot;Not supported ARM architecture&quot;
   #    error &quot;Not supported ARM architecture&quot;
        ^~~~~

The compiler is GCC 6.4.0, and it&apos;s defining __ARM_ARCH_8A__, which is not checked
by BPlatform.h (it checks for __ARM_ARCH_8__ instead). Compiler output:

  % ./output/host/bin/arm-buildroot-linux-gnueabihf-g++ -E -dM -x c++ -std=c++1y /dev/null|grep ARM_ARCH_8                                                                                         
  #define __ARM_ARCH_8A__ 1 
  % ./output/host/bin/arm-buildroot-linux-gnueabihf-g++ -dumpversion                                      
  6.4.0

I&apos;m submitting a patch for this soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1328071</commentid>
    <comment_count>1</comment_count>
      <attachid>315248</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2017-07-12 09:08:35 -0700</bug_when>
    <thetext>Created attachment 315248
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1328136</commentid>
    <comment_count>2</comment_count>
      <attachid>315248</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-07-12 11:15:06 -0700</bug_when>
    <thetext>Comment on attachment 315248
Patch

Hm, shame there&apos;s so much code duplication here between Platform.h and BPlatform.h....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1328150</commentid>
    <comment_count>3</comment_count>
      <attachid>315248</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-07-12 11:43:40 -0700</bug_when>
    <thetext>Comment on attachment 315248
Patch

Clearing flags on attachment: 315248

Committed r219416: &lt;http://trac.webkit.org/changeset/219416&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1328151</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-07-12 11:43:41 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>315248</attachid>
            <date>2017-07-12 09:08:35 -0700</date>
            <delta_ts>2017-07-12 11:43:40 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-174424-20170712190834.patch</filename>
            <type>text/plain</type>
            <size>1222</size>
            <attacher name="Adrian Perez">aperez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE5MzkzCmRpZmYgLS1naXQgYS9Tb3VyY2UvYm1hbGxvYy9D
aGFuZ2VMb2cgYi9Tb3VyY2UvYm1hbGxvYy9DaGFuZ2VMb2cKaW5kZXggYzcwOGZkMjA1NGVkNDc1
Y2UwZGEyNjI2NzEyZjg3ZDM0ZjYwYjVjNS4uNDJiNzA2ZTA4MjEzMWFjNWU2NzU5YTM2YWZmY2Mx
OGNmYTM2OGFmOSAxMDA2NDQKLS0tIGEvU291cmNlL2JtYWxsb2MvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9ibWFsbG9jL0NoYW5nZUxv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