Bug 108823

Summary: [Bisected]. Autotools. Installing mesa fails with error "error: relink 'libEGL.la' with the above command before installing it"
Product: Mesa Reporter: Denis <denys.kostin>
Component: OtherAssignee: mesa-dev
Status: RESOLVED WONTFIX QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=107624
Whiteboard:
i915 platform: i915 features:

Description Denis 2018-11-21 14:47:06 UTC
Hi. I remember that building via autotools is not a priority but I guess, it still should work.
Here is a command for configuring:
>./autogen.sh --with-gallium-drivers="" --with-dri-drivers=i965 --prefix=/home/den/mesa64/mesa_19.0.0last/

For me it was broken after this commit:

den@den-HP-ZBook-14u-G4:~/repositories/mesa$ git bisect bad621b0fa8922ade0a8122b868177308e65e6d3595 is the first bad commit
commit 621b0fa8922ade0a8122b868177308e65e6d3595
Author: Eric Anholt <eric@anholt.net>
Date:   Mon Oct 29 09:28:00 2018 -0700

    egl: Improve the debugging of gbm format matching in DRI configs.
    
    Previously the debug would be:
    
    libEGL debug: No DRI config supports native format 0x20203852
    libEGL debug: No DRI config supports native format 0x38385247
    
    but
    
    libEGL debug: No DRI config supports native format R8
    libEGL debug: No DRI config supports native format GR88
    
    is a lot easier to understand.
    
    Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
    Reviewed-by: Daniel Stone <daniels@collabora.com>

:040000 040000 50d5e1cbd57b488d0e24fd86787c611bf58bd588 38f4b556496b2f14dcd382f55cfc3eb5fabe18d1 M	src


Haven't any ideas, what went wrong with this commit, but after it I can build mesa, but can't install (error below):


/home/den/repositories/mesa/src/egl/drivers/dri2/platform_drm.c:668: undefined reference to `gbm_format_get_name'
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libEGL.la' with the above command before installing it
Makefile:1030: recipe for target 'install-libLTLIBRARIES' failed
make[5]: *** [install-libLTLIBRARIES] Error 1


upd - with meson build works fine.
uupd - my configuration:
ubuntu 16.04
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
GNU ld (GNU Binutils for Ubuntu) 2.26.1
kernel 4.17.0-041700-generic

Interesting that on another 16.04 ubuntu build/install works fine. Similar issue was written in related bug (for vulkan).

Appreciate any help or suggestions.
Comment 1 Denis 2018-11-26 14:41:58 UTC
any ideas what could be wrong, guys?
Issue is still actual for my PC, using autotools
Comment 2 Denis 2019-01-31 14:39:10 UTC
with the latest news and removing autotools from build closing this ticket as not actual

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.