Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887535 - app-text/texlive-core-2021-r2: unable to check floating point endianness for cairo library when LTO is enabled
Summary: app-text/texlive-core-2021-r2: unable to check floating point endianness for ...
Status: RESOLVED DUPLICATE of bug 853121
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-20 19:38 UTC by Jocelyn Mayer
Modified: 2022-12-20 19:44 UTC (History)
1 user (show)

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


Attachments
Output from emerge --info =app-text/texlive-core-2021-r2 (emerge-infos-texlive-core-2021-r2,25.43 KB, text/plain)
2022-12-20 19:39 UTC, Jocelyn Mayer
Details
Emerge failure build log (texlive-core-2021-r2:20221220-175301.log.gz,39.95 KB, application/gzip)
2022-12-20 19:39 UTC, Jocelyn Mayer
Details
Patch proposal to texlive-core build system to avoid this issue (texlive-core-20190410-cairo-cflags.patch,811 bytes, patch)
2022-12-20 19:40 UTC, Jocelyn Mayer
Details | Diff
Patch proposal to the texlive-core ebuild to avoid this issue (app-text_texlive-core_texlive-core-2021-r2.ebuild.patch,590 bytes, patch)
2022-12-20 19:41 UTC, Jocelyn Mayer
Details | Diff
Emerge build log with patches applied (texlive-core-2021-r2:20221220-180635.log.gz,315.18 KB, application/gzip)
2022-12-20 19:42 UTC, Jocelyn Mayer
Details

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