<?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>14974</bug_id>
          
          <creation_ts>2007-08-15 11:07:16 -0700</creation_ts>
          <short_desc>Build failure on PPC Linux</short_desc>
          <delta_ts>2007-10-23 08:36:30 -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>523.x (Safari 3)</version>
          <rep_platform>Mac (PowerPC)</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14521</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Mike Hommey">mh+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2237</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Hommey">mh+webkit</who>
    <bug_when>2007-08-15 11:07:16 -0700</bug_when>
    <thetext>The assembly in JavaScriptCore/wtf/TCSpinLock.h fails to build on PPC with the following error message:
g++ -c -g -O2 -Wall -D_REENTRANT -I/usr/include -g -Wall -W -DQT_SHARED -DBUILDING_GDK__ -I/usr/share/qt4/mkspecs/linux-g++ -I../../../JavaScriptCore/kjs -I../../../JavaScriptCore -I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings -I../../../JavaScriptCore/bindings/c -I../../../JavaScriptCore/wtf -Itmp -I../../../JavaScriptCore -I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings -I../../../JavaScriptCore/bindings/c -I../../../JavaScriptCore/wtf -I../../../JavaScriptCore/pcre -Itmp -I../../../JavaScriptCore/kjs -I. -o TCSystemAlloc.o ../../../JavaScriptCore/wtf/TCSystemAlloc.cpp
../../../JavaScriptCore/wtf/TCSpinLock.h: In function &apos;void* TCMalloc_SystemAlloc(size_t, size_t)&apos;:
../../../JavaScriptCore/wtf/TCSpinLock.h:98: error: &apos;asm&apos; operand requires impossible reload

The toolchain in use is :
gcc 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)
glibc 2.6.1
and binutils 2.17cvs20070804</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-08-16 01:37:15 -0700</bug_when>
    <thetext>Patches are welcome.  The code in TCSpinLock.h compiles under GCC 4.0 on PowerPC Mac OS X.  A simple workaround would be to use the pthread version of TCMalloc_SpinLock rather than the custom assembly version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157</commentid>
    <comment_count>2</comment_count>
    <who name="Mike Hommey">mh+webkit</who>
    <bug_when>2007-08-16 12:01:55 -0700</bug_when>
    <thetext>After further investigation, it is likely a regression in g++. It builds with -O0, and builds at -O2 with g++-4.0. Maybe you should give a try building with g++-4.1 or 4.2 on OSX, it may also fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-08-16 20:21:09 -0700</bug_when>
    <thetext>Mac OS X only ships with GCC 4.0.1.  Mainline GCC does not support many of the features that Apple has added and which are possibly used by the Mac port, so it is not particularly easy to test with other versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59252</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-10-23 08:36:30 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 14521 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>