Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688544 - =app-text/texlive-core-2019-r4 fails configure with LTO -- float word ordering is bigendian... unknown
Summary: =app-text/texlive-core-2019-r4 fails configure with LTO -- float word orderin...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-23 10:03 UTC by Markus Walter
Modified: 2022-12-20 19:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (bzipped) (texlive-core-2019-r4:20190623-092909.log.bz2,12.76 KB, application/x-bzip)
2019-06-23 10:03 UTC, Markus Walter
Details
emerge --info (info.txt,8.90 KB, text/plain)
2019-06-23 10:03 UTC, Markus Walter
Details
texlive-2019-cairo-config.patch (texlive-2019-cairo-config.patch,4.37 KB, patch)
2019-09-30 23:59 UTC, Alexander Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.