<?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>140176</bug_id>
          
          <creation_ts>2015-01-07 04:24:49 -0800</creation_ts>
          <short_desc>[GTK] Cannot compile 2.7.3 on i686</short_desc>
          <delta_ts>2017-06-23 06:53:43 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Tomas Popela">tpopela</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>gustavo</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1059368</commentid>
    <comment_count>0</comment_count>
    <who name="Tomas Popela">tpopela</who>
    <bug_when>2015-01-07 04:24:49 -0800</bug_when>
    <thetext>The compilation of the 2.7.3 fails on i686. It fails while generating the documentation (if turned on) or the instrospection files (if documentation is turned off). It looks like there is something wrong with the libwebkit2gtk shared library:

The most interesting lines from the logs below are:
./webkitdomgtk-scan: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectwRec8z/WebKit2-4.0: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

[root@seppuku-t430s webkitdomgtk]# ldd ../../lib/libwebkit2gtk-4.0.so.37.4.0
lddlibc4: cannot open `../../lib/libwebkit2gtk-4.0.so.37.4.0&apos;: Value too large for defined data type

Error when the documenation is enabled:

Running gtkdoc-scangobj
./webkitdomgtk-scan: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory
Scan failed:
Traceback (most recent call last):
  File &quot;/builddir/build/BUILD/webkitgtk-2.7.3/Tools/gtk/generate-gtkdoc&quot;, line 201, in &lt;module&gt;
    generate_documentation_for_config(common.build_path(&apos;gtkdoc-webkitdom.cfg&apos;))
  File &quot;/builddir/build/BUILD/webkitgtk-2.7.3/Tools/gtk/generate-gtkdoc&quot;, line 152, in generate_documentation_for_config
    return generate_doc(generator, arguments.skip_html)
  File &quot;/builddir/build/BUILD/webkitgtk-2.7.3/Tools/gtk/generate-gtkdoc&quot;, line 133, in generate_doc
    generator.generate(not skip_html)
  File &quot;/builddir/build/BUILD/webkitgtk-2.7.3/Tools/gtk/gtkdoc.py&quot;, line 143, in generate
    self._run_gtkdoc_scangobj()
  File &quot;/builddir/build/BUILD/webkitgtk-2.7.3/Tools/gtk/gtkdoc.py&quot;, line 339, in _run_gtkdoc_scangobj
    env=env, cwd=self.output_dir)
  File &quot;/builddir/build/BUILD/webkitgtk-2.7.3/Tools/gtk/gtkdoc.py&quot;, line 210, in _run_command
    % (args[0], process.returncode))
Exception: gtkdoc-scangobj produced a non-zero return code 127

When the documentation is disabled (fails during the introspection files creation)

[100%] Built target WebKitPluginProcess2
/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectwRec8z/WebKit2-4.0: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory
Command &apos;[&apos;/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectwRec8z/WebKit2-4.0&apos;, &apos;--introspect-dump=/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectwRec8z/functions.txt,/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectwRec8z/dump.xml&apos;]&apos; returned non-zero exit status 127
/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectaCbRSP/WebKit2-4.0: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory
Command &apos;[&apos;/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectaCbRSP/WebKit2-4.0&apos;, &apos;--introspect-dump=/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectaCbRSP/functions.txt,/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/Source/WebKit2/tmp-introspectaCbRSP/dump.xml&apos;]&apos; returned non-zero exit status 127
Source/WebKit2/CMakeFiles/WebKit2-4-gir.dir/build.make:60: recipe for target &apos;WebKit2-4.0.gir&apos; failed
make[2]: *** [WebKit2-4.0.gir] Error 1
make[2]: Leaving directory &apos;/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu&apos;
CMakeFiles/Makefile2:923: recipe for target &apos;Source/WebKit2/CMakeFiles/WebKit2-4-gir.dir/all&apos; failed
make[1]: *** [Source/WebKit2/CMakeFiles/WebKit2-4-gir.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Source/WebKit2/CMakeFiles/WebKit2WebExtension-4-gir.dir/build.make:66: recipe for target &apos;WebKit2-4.0.gir&apos; failed
make[2]: *** [WebKit2-4.0.gir] Error 1
make[2]: Leaving directory &apos;/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu&apos;
CMakeFiles/Makefile2:1020: recipe for target &apos;Source/WebKit2/CMakeFiles/WebKit2WebExtension-4-gir.dir/all&apos; failed
make[1]: *** [Source/WebKit2/CMakeFiles/WebKit2WebExtension-4-gir.dir/all] Error 2
make[1]: Leaving directory &apos;/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu&apos;
Makefile:140: recipe for target &apos;all&apos; failed
make: *** [all] Error 2

--------------------------------------------------------------------------------------------------------------------

[root@seppuku-t430s webkitdomgtk]# ldd webkitdomgtk-scan | grep not
        libwebkit2gtk-4.0.so.37 =&gt; not found
        libjavascriptcoregtk-4.0.so.18 =&gt; not found
[root@seppuku-t430s lib]# ls -l -a /builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/lib
total 2681384
drwxr-xr-x. 2 mockbuild mockbuild       4096 Jan  7 12:34 .
drwxr-xr-x. 7 mockbuild mockbuild       4096 Jan  7 10:44 ..
-rw-r--r--. 1 mockbuild mockbuild     135462 Jan  7 10:45 libANGLESupport.a
-rw-r--r--. 1 mockbuild mockbuild     151538 Jan  7 12:18 libGObjectDOMBindings.a
lrwxrwxrwx. 1 mockbuild mockbuild         30 Jan  7 10:58 libjavascriptcoregtk-4.0.so -&gt; libjavascriptcoregtk-4.0.so.18
lrwxrwxrwx. 1 mockbuild mockbuild         34 Jan  7 10:58 libjavascriptcoregtk-4.0.so.18 -&gt; libjavascriptcoregtk-4.0.so.18.1.2
-rwxrwxr-x. 1 mockbuild mockbuild  493364988 Jan  7 10:58 libjavascriptcoregtk-4.0.so.18.1.2
-rw-r--r--. 1 mockbuild mockbuild    8505380 Jan  7 12:13 libWebCoreGTK.a
-rw-r--r--. 1 mockbuild mockbuild      50158 Jan  7 12:14 libWebCorePlatformGTK2.a
-rw-r--r--. 1 mockbuild mockbuild      56600 Jan  7 12:14 libWebCorePlatformGTK.a
-rw-r--r--. 1 mockbuild mockbuild      92038 Jan  7 12:14 libWebCoreTestSupport.a
lrwxrwxrwx. 1 mockbuild mockbuild         23 Jan  7 12:34 libwebkit2gtk-4.0.so -&gt; libwebkit2gtk-4.0.so.37
lrwxrwxrwx. 1 mockbuild mockbuild         27 Jan  7 12:34 libwebkit2gtk-4.0.so.37 -&gt; libwebkit2gtk-4.0.so.37.4.0
-rwxrwxr-x. 1 mockbuild mockbuild 2243191424 Jan  7 12:34 libwebkit2gtk-4.0.so.37.4.0
-rwxrwxr-x. 1 mockbuild mockbuild     102188 Jan  7 12:18 libwebkit2gtkinjectedbundle.so
-rw-r--r--. 1 mockbuild mockbuild      52846 Jan  7 10:44 libWTFGTK.a
[root@seppuku-t430s webkitdomgtk]# export LD_LIBRARY_PATH=&quot;/builddir/build/BUILD/webkitgtk-2.7.3/i686-redhat-linux-gnu/lib&quot;
[root@seppuku-t430s webkitdomgtk]# ldd webkitdomgtk-scan | grep not
        libwebkit2gtk-4.0.so.37 =&gt; not found
[root@seppuku-t430s webkitdomgtk]# ldd ../../lib/libwebkit2gtk-4.0.so.37.4.0
lddlibc4: cannot open `../../lib/libwebkit2gtk-4.0.so.37.4.0&apos;: Value too large for defined data type

After I strip the library the ldd shows the expected output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059375</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2015-01-07 05:11:00 -0800</bug_when>
    <thetext>It seems something is being packed into a not-large-enough storage.

I guess ldd error message cannot get more descriptive.

Did 2.7.2 compile fine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059379</commentid>
    <comment_count>2</comment_count>
    <who name="Tomas Popela">tpopela</who>
    <bug_when>2015-01-07 05:19:49 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Did 2.7.2 compile fine?

Yes, it compiled fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059382</commentid>
    <comment_count>3</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2015-01-07 05:43:39 -0800</bug_when>
    <thetext>To correct myself, the shared library is now probably large enough to cause problems for utilities that don&apos;t support large files.

https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Value-too-large-for-defined-data-type</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1060027</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2015-01-08 17:49:22 -0800</bug_when>
    <thetext>Did you tried building with the gold linker instead of GNU ld?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1060088</commentid>
    <comment_count>5</comment_count>
    <who name="Tomas Popela">tpopela</who>
    <bug_when>2015-01-08 22:13:58 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Did you tried building with the gold linker instead of GNU ld?

We are already doing that. Also building it temporary with -g1 instead of -g fixes the issue, but that&apos;s not the solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1322282</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-06-23 06:53:43 -0700</bug_when>
    <thetext>I think we actually add -g1 upstream now, so I guess this can be closed? There&apos;s not really anything we can do about system utilities lacking large file support.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>