<?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>195883</bug_id>
          
          <creation_ts>2019-03-18 05:41:17 -0700</creation_ts>
          <short_desc>[GTK][WPE] Cryptic error from Tools/gtkdoc/generate-gtkdoc</short_desc>
          <delta_ts>2019-03-18 08:20:46 -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>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</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>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1517660</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-03-18 05:41:17 -0700</bug_when>
    <thetext>It&apos;s basically impossible to know at a glance what the actual
problem is with the current error output:

[5/8] Generating ../docs-build.stamp
FAILED: docs-build.stamp
cd /home/aperez/wpe/WebKit/build-rc &amp;&amp; /usr/bin/cmake -E env CC=/usr/lib/ccache/bin/cc &quot;CFLAGS=-fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined -Wno-psabi -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-
security -Wcast-align  -fno-strict-aliasing -fno-exceptions -Wno-unused-parameter&quot; /home/aperez/wpe/WebKit/Tools/gtkdoc/generate-gtkdoc --wpe &amp;&amp; touch docs-build.stamp
Traceback (most recent call last):
  File &quot;/home/aperez/wpe/WebKit/Tools/gtkdoc/generate-gtkdoc&quot;, line 260, in &lt;module&gt;
    build_gtkdoc_for_wpe(arguments)
  File &quot;/home/aperez/wpe/WebKit/Tools/gtkdoc/generate-gtkdoc&quot;, line 196, in build_gtkdoc_for_wpe
    webextensions_generator = get_generator_for_config(common.build_path(&apos;gtkdoc-webextensions.cfg&apos;), arguments.virtual_root)
  File &quot;/home/aperez/wpe/WebKit/Tools/gtkdoc/generate-gtkdoc&quot;, line 141, in get_generator_for_config
    &apos;ignored_files&apos;: files_to_ignore(source_dirs, headers),
  File &quot;/home/aperez/wpe/WebKit/Tools/gtkdoc/gtkdoc.py&quot;, line 455, in __init__
    &apos;--cflags&apos;], print_output=False)
  File &quot;/home/aperez/wpe/WebKit/Tools/gtkdoc/gtkdoc.py&quot;, line 222, in _run_command
    % (args[0], process.returncode))
Exception: pkg-config produced a non-zero return code 1
[6/8] Generating ../../DerivedSources/WebInspectorUI/InspectorGResourceBundle.c
ninja: build stopped: subcommand failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517661</commentid>
    <comment_count>1</comment_count>
      <attachid>365011</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-03-18 05:51:39 -0700</bug_when>
    <thetext>Created attachment 365011
Patch


With this patch; when the same error situation as above is reached,
the following is logged:

Exception: pkg-config produced a non-zero return code 1                                                        
Command:                                                                                                                           
  pkg-config /home/aperez/wpe/WebKit/build-rc/wpe-web-extension-0.1.pc --cflags                                                                            
Error output:                                                      
  Package wpe-0.2 was not found in the pkg-config search path.
  Perhaps you should add the directory containing &apos;wpe-0.2.pc&apos;
  to the PKG_CONFIG_PATH environment variable                     
  Package &apos;wpe-0.2&apos;, required by &apos;wpe-web-extension-0.1&apos;, not found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517663</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-03-18 06:08:53 -0700</bug_when>
    <thetext>FWIW, the failure from the WPE EWS seems unrelated — it needed
cleaning of the build directory because the CMake cache was botched
after r243060.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517686</commentid>
    <comment_count>3</comment_count>
      <attachid>365011</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-18 08:19:15 -0700</bug_when>
    <thetext>Comment on attachment 365011
Patch

Clearing flags on attachment: 365011

Committed r243062: &lt;https://trac.webkit.org/changeset/243062&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517687</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-18 08:19:16 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517688</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-18 08:20:46 -0700</bug_when>
    <thetext>&lt;rdar://problem/48979337&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>365011</attachid>
            <date>2019-03-18 05:51:39 -0700</date>
            <delta_ts>2019-03-18 08:19:15 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-195883-20190318145137.patch</filename>
            <type>text/plain</type>
            <size>1719</size>
            <attacher name="Adrian Perez">aperez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQzMDYwCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9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6CiAgICAgICAgICAgICBzZWxmLnNhd193YXJuaW5n
cyA9IFRydWUK
</data>

          </attachment>
      

    </bug>

</bugzilla>