<?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>60357</bug_id>
          
          <creation_ts>2011-05-06 01:33:34 -0700</creation_ts>
          <short_desc>JavaScriptCore fails to build with gcc 4.6</short_desc>
          <delta_ts>2011-05-06 10:28:35 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>60265</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="Bernhard Rosenkraenzer">bero</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>menard</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>399428</commentid>
    <comment_count>0</comment_count>
    <who name="Bernhard Rosenkraenzer">bero</who>
    <bug_when>2011-05-06 01:33:34 -0700</bug_when>
    <thetext>(Seen in the qtwebkit-2.2 branch, but given it doesn&apos;t seem Qt related, it&apos;s probably also a problem for the other platforms)

-Werror is in the default compiler flags (at least for QtWebKit on X11), causing NullPtr.h to fail because of a new gcc 4.6 warning:

make[1]: Entering directory `/usr/src/ark/BUILD/qtwebkit/WebKitBuild/Release/JavaScriptCore&apos;
g++ -c -m64 -pipe -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Werror -fno-stack-protector -O3 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -D_REENTRANT -DENABLE_DEVICE_ORIENTATION=1 -DENABLE_DIRECTORY_UPLOAD=1 -DENABLE_INPUT_SPEECH=1 -DENABLE_LINK_PREFETCH=1 -DENABLE_MATHML=1 -DUSE_SYSTEM_MALLOC=1 -DENABLE_SVG_DOM_OBJC_BINDINGS=1 -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I../../../Source/JavaScriptCore -I/usr/lib64/qt4/include/QtCore -I/usr/lib64/qt4/include -I../../../Source/JavaScriptCore -I../../../Source -I../../../Source/ThirdParty -I../../../Source/JavaScriptCore/assembler -I../../../Source/JavaScriptCore/bytecode -I../../../Source/JavaScriptCore/bytecompiler -I../../../Source/JavaScriptCore/heap -I../../../Source/JavaScriptCore/dfg -I../../../Source/JavaScriptCore/debugger -I../../../Source/JavaScriptCore/interpreter -I../../../Source/JavaScriptCore/jit -I../../../Source/JavaScriptCore/parser -I../../../Source/JavaScriptCore/profiler -I../../../Source/JavaScriptCore/runtime -I../../../Source/JavaScriptCore/wtf -I../../../Source/JavaScriptCore/wtf/gobject -I/usr/src/ark/BUILD/qtwebkit/Source/JavaScriptCore/wtf/symbian -I../../../Source/JavaScriptCore/wtf/unicode -I../../../Source/JavaScriptCore/yarr -I../../../Source/JavaScriptCore/API -I../../../Source/JavaScriptCore/ForwardingHeaders -Igenerated -I../../../Source -I../include/QtWebKit -I../include -I. -I../../../Source/JavaScriptCore -I. -o obj/release/YarrInterpreter.o ../../../Source/JavaScriptCore/yarr/YarrInterpreter.cpp
In file included from ../../../Source/JavaScriptCore/wtf/PassRefPtr.h:25:0,
                 from ../../../Source/JavaScriptCore/wtf/CrossThreadRefCounted.h:35,
                 from ../../../Source/JavaScriptCore/wtf/text/StringImpl.h:28,
                 from ../../../Source/JavaScriptCore/runtime/UString.h:26,
                 from ../../../Source/JavaScriptCore/yarr/YarrPattern.h:30,
                 from ../../../Source/JavaScriptCore/yarr/YarrInterpreter.h:29,
                 from ../../../Source/JavaScriptCore/yarr/YarrInterpreter.cpp:28:
../../../Source/JavaScriptCore/wtf/NullPtr.h:48:1: error: identifier &apos;nullptr&apos; will become a keyword in C++0x [-Werror=c++0x-compat]
cc1plus: all warnings being treated as errors

make[1]: *** [obj/release/YarrInterpreter.o] Error 1


The easiest fixes are to either not use -Werror, given the warning in this context is clearly harmless, or to put gcc 4.6 into c++0x mode (in that case, NullPtr.h already does the right thing and uses the compiler&apos;s nullptr</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399609</commentid>
    <comment_count>1</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-05-06 10:28:35 -0700</bug_when>
    <thetext>it has been fixed :

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

    </bug>

</bugzilla>