Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 688544

Summary: =app-text/texlive-core-2019-r4 fails configure with LTO -- float word ordering is bigendian... unknown
Product: Gentoo Linux Reporter: Markus Walter <gentoo>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jstein, tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=853121
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log (bzipped)
emerge --info
texlive-2019-cairo-config.patch

Description Markus Walter 2019-06-23 10:03:10 UTC
Created attachment 580554 [details]
build log (bzipped)

On my ~amd64 machine with gcc 9.1.0 I see the following problem when trying to merge texlive-core with LTO enabled. Disabling LTO fixed this issue for me.

>>>
checking whether float word ordering is bigendian... unknown
configure: error: 

Unknown float word ordering. You need to manually preset
ax_cv_c_float_words_bigendian=no (or yes) according to your system.

    
=== configuring in cairo failed
<<<
Comment 1 Markus Walter 2019-06-23 10:03:40 UTC
Created attachment 580556 [details]
emerge --info
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-24 08:45:59 UTC
Hello! 

Our texlive packaging is using system cairo, and as per upstream they have removed lto at all. Take a look at https://bugs.freedesktop.org/show_bug.cgi?id=88867
Comment 3 Alexander Miller 2019-09-30 23:59:26 UTC
Created attachment 591456 [details, diff]
texlive-2019-cairo-config.patch

Comment 2 is a bit misleading, and marking the bug RESOLVED UPSTREAM
doesn't look right.

* While texlive uses system libs, it still insists on configuring the
  bundled libs. (That didn't happen with texlive-core-2017-r4, so the
  problem wasn't visible there.)
* Upstream cairo (x11-libs/cairo-1.16.0-r3) builds fine with LTO.
  The configure issue has been fixed in commit 7cfebce (see
  https://cgit.freedesktop.org/cairo/commit/?id=7cfebce). The removal
  of LTO support mentioned in the linked bug is about automatically
  enabled LTO via configure, which is an entirely different beast
  (See commit c7ff9bb3).
* The texlive source actually contains the fixed autoconf macros in
  the file libs/cairo/cairo-src/build/aclocal.float.m4, but it uses
  an outdated copy from libs/cairo/m4/float.m4.

The attached patch simply replaces the latter file with the broken
macros with the former containing the newer upstream version.
With the patch, app-text/texlive-core-2019-r4 built successfully
with LTO enabled.