<?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>189556</bug_id>
          
          <creation_ts>2018-09-12 11:42:48 -0700</creation_ts>
          <short_desc>[WPE] fails to build on ARM arches complaining about undefined reference to `epoxy_eglMakeCurrent&apos;</short_desc>
          <delta_ts>2018-09-20 13:32:10 -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>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Chris King">bunnyapocalypse</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>annulen</cc>
    
    <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1459025</commentid>
    <comment_count>0</comment_count>
    <who name="Chris King">bunnyapocalypse</who>
    <bug_when>2018-09-12 11:42:48 -0700</bug_when>
    <thetext>WPEwebkit version 2.21.92 is currently failing to build on ARM architectures in Fedora, complaining about /builddir/build/BUILD/wpewebkit-2.21.92/Tools/wpe/backends/WindowViewBackend.cpp:610: undefined reference to `epoxy_eglMakeCurrent&apos; and many other similar libepoxy things. Libepoxy is installed on the machines that WPE is building on, and the build succeeds on otherwise identical x86 and i686 machines.

Here is the summary of the failed 64bit ARM build (see build.log under the &quot;output&quot; section for the compilation): https://koji.fedoraproject.org/koji/taskinfo?taskID=29607609

And here is the summary of the failed 32 bit ARM build: https://koji.fedoraproject.org/koji/taskinfo?taskID=29607612</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1459148</commentid>
    <comment_count>1</comment_count>
      <attachid>349591</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-09-12 15:43:35 -0700</bug_when>
    <thetext>Created attachment 349591
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461455</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-09-20 11:45:08 -0700</bug_when>
    <thetext>No reviews?

Adrian: you want this before releasing WPE 2.20.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461471</commentid>
    <comment_count>3</comment_count>
      <attachid>349591</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-09-20 12:13:37 -0700</bug_when>
    <thetext>Comment on attachment 349591
Patch

At any rate, linking to epoxy is the correct way to go because well,
the library *is* used after all. With my informal reviewer hat I say “r+”.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461477</commentid>
    <comment_count>4</comment_count>
    <who name="Chris King">bunnyapocalypse</who>
    <bug_when>2018-09-20 12:24:12 -0700</bug_when>
    <thetext>I don&apos;t know if you want this info, but the patch makes the package properly build for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461478</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-09-20 12:25:51 -0700</bug_when>
    <thetext>A quick theory on why this build failure happens in Fedora: it may
have to do with compiler specs, or something that is put in LDFLAGS
to avoid overlinking and/or lazy resolution (like “-Wl,--as-needed”
or “-Wl,-z,now” — which is *good* practice). Something like that
would explain why the library has to be explicitly listed.

Like I wrote in my previous comment: the *correct* thing is to always
list the library anyway, so I am very much favorable to landing the
patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461479</commentid>
    <comment_count>6</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-09-20 12:27:50 -0700</bug_when>
    <thetext>(In reply to Chris King from comment #4)
&gt; I don&apos;t know if you want this info, but the patch makes the package properly
&gt; build for me.

Yes, knowing that this fixes the build for you on Fedora is valuable
information — thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461509</commentid>
    <comment_count>7</comment_count>
      <attachid>349591</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-09-20 13:32:09 -0700</bug_when>
    <thetext>Comment on attachment 349591
Patch

Clearing flags on attachment: 349591

Committed r236275: &lt;https://trac.webkit.org/changeset/236275&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461510</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-09-20 13:32:10 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>349591</attachid>
            <date>2018-09-12 15:43:35 -0700</date>
            <delta_ts>2018-09-20 13:32:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-189556-20180912174334.patch</filename>
            <type>text/plain</type>
            <size>1471</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjM1OTA4CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggZTYwYWJlZTQxODlmMTQ0MmFmYzUyYzU5ODA5OTMwNWEy
MDE3NWVkMS4uMGJlNDI4YzhjYTE4ZTBhMjk5N2E3MDdjODM0YzAxNGVhZGQzODE5OSAxMDA2NDQK
LS0tIGEvVG9v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