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

Bug 887535

Summary: app-text/texlive-core-2021-r2: unable to check floating point endianness for cairo library when LTO is enabled
Product: Gentoo Linux Reporter: Jocelyn Mayer <l_indien>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: l_indien
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output from emerge --info =app-text/texlive-core-2021-r2
Emerge failure build log
Patch proposal to texlive-core build system to avoid this issue
Patch proposal to the texlive-core ebuild to avoid this issue
Emerge build log with patches applied

Description Jocelyn Mayer 2022-12-20 19:38:45 UTC
texlive-core configure process ends with error while trying to determine floating-point types endianness in the cairo library subdirectory if LTO is required:
configure: error: 
Unknown float word ordering. You need to manually preset
ax_cv_c_float_words_bigendian=no (or yes) according to your system.

It's a long standing bug (at least 2 years)...

A proposal patch allow to temporary disable LTO during cairo configuration.

Reproducible: Always

Steps to Reproduce:
1. Make sure '-flto' is set in compilation flags
2. Try to emerge texlive-core

Actual Results:  
configuration of cairo libray fails

Expected Results:  
Build to succeed
Comment 1 Jocelyn Mayer 2022-12-20 19:39:25 UTC
Created attachment 844259 [details]
Output from emerge --info =app-text/texlive-core-2021-r2
Comment 2 Jocelyn Mayer 2022-12-20 19:39:53 UTC
Created attachment 844261 [details]
Emerge  failure build log
Comment 3 Jocelyn Mayer 2022-12-20 19:40:43 UTC
Created attachment 844263 [details, diff]
Patch proposal to texlive-core build system to avoid this issue
Comment 4 Jocelyn Mayer 2022-12-20 19:41:26 UTC
Created attachment 844265 [details, diff]
Patch proposal to the texlive-core ebuild to avoid this issue
Comment 5 Jocelyn Mayer 2022-12-20 19:42:14 UTC
Created attachment 844269 [details]
Emerge build log with patches applied
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-20 19:43:07 UTC
commit f496f44c04b285b80c7c987eb12ea8d5eb5722a7
Author: Sam James <sam@gentoo.org>
Date:   Fri Sep 23 02:39:55 2022 +0100

    app-text/texlive-core: backport slibtool patch

    May as well given there's nobody working on the 2022 bump right now.

    This was also one of the few (notable, at least) packages left which didn't
    build w/ slibtool.

    Closes: https://bugs.gentoo.org/775170
    Thanks-to: Michael Orlitzky <mjo@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

commit b5760171b4f4159669224f6a31652f1c781a517b
Author: Sam James <sam@gentoo.org>
Date:   Wed Sep 21 02:17:13 2022 +0100

    app-text/texlive-core: fix build with LTO using llvm-strings

    Bug in bundled Cairo, already fixed in x11-libs/cairo.

    Bug: https://bugs.gentoo.org/726200
    Closes: https://bugs.gentoo.org/853121
    Signed-off-by: Sam James <sam@gentoo.org>

This is already fixed in ~arch, so just needs stabling.

*** This bug has been marked as a duplicate of bug 853121 ***
Comment 7 Jocelyn Mayer 2022-12-20 19:44:18 UTC
OK, thanks.