<?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>134971</bug_id>
          
          <creation_ts>2014-07-16 06:54:35 -0700</creation_ts>
          <short_desc>On gentoo, net-libs/webkit-gtk-2.4.4-r200 complains when compiling.</short_desc>
          <delta_ts>2021-03-18 03:29:55 -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>WebGL</component>
          <version>420+</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Fred Krogh">at_webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
    
    <cc>cgarcia</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1022715</commentid>
    <comment_count>0</comment_count>
    <who name="Fred Krogh">at_webkit</who>
    <bug_when>2014-07-16 06:54:35 -0700</bug_when>
    <thetext>Note that it hung during the compile using the nvidia drivers for opengl.  But when using the xorg-x11 drivers, it did compile.  But with the following message which may be of interest to you.
==========

&gt;&gt;&gt; Completed installing webkit-gtk-2.4.4-r200 into /var/tmp/portage/net-libs/webkit-gtk-2.4.4-r200/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/lib64/libjavascriptcoregtk-1.0.so.0.16.12
   usr/bin/jsc-1
   usr/lib64/libwebkitgtk-1.0.so.0.22.10
ecompressdir: bzip2 -9 /usr/share/doc

 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * ./DerivedSources/JavaScriptCore/InspectorJSTypeBuilders.h:716:69: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 * ./DerivedSources/JavaScriptCore/InspectorJSTypeBuilders.h:116:66: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 * ./DerivedSources/JavaScriptCore/InspectorJSTypeBuilders.h:642:69: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 * ./DerivedSources/JavaScriptCore/InspectorJSTypeBuilders.h:1476:68: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.webkitgtk.org/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023679</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-07-21 09:21:31 -0700</bug_when>
    <thetext>In trunk and on 2.4 we&apos;re building with -fno-strict-aliasing, so this error shouldn&apos;t pop up. That is, unless the optimization is re-enabled by -O2 or -O3 or directly later in the compiler command -- that would enable the warning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026633</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-08-04 07:52:00 -0700</bug_when>
    <thetext>This is caused by the following generated code (see
Source/JavaScriptCore/inspector/scripts/CodeGeneratorInspectorStrings.py):

    RefPtr&lt;Inspector::InspectorObject&gt; m_result;

    operator RefPtr&lt;%s&gt;&amp; ()
    {
        COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
        COMPILE_ASSERT(sizeof(%s) == sizeof(Inspector::InspectorObject), cannot_cast);
        return *reinterpret_cast&lt;RefPtr&lt;%s&gt;*&gt;(&amp;m_result);
    }

As Žan mentioned, -fno-strict-aliasing should prevent that
warning. Are you using it?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>