• [gentoo-dev] [PATCH] toolchain.eclass: fix crossdev powerpc-*-musl buil

    From Georgy Yakovlev@21:1/5 to All on Mon Dec 27 06:30:02 2021
    otherwise initial build may fail with:
    unknown long double size, cannot define BFP_FMT

    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
    ---
    eclass/toolchain.eclass | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
    index fd03ba176276..1102c4fc5d56 100644
    --- a/eclass/toolchain.eclass
    +++ b/eclass/toolchain.eclass
    @@ -1099,6 +1099,11 @@ toolchain_src_configure() {
    # Set up defaults based on current CFLAGS
    is-flagq -mfloat-gprs=double && confgcc+=( --enable-e500-double )
    [[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=( --enable-e500-double )
    + if [[ ${CTARGET} == powerpc-*-musl ]]; then
    + # fix: unknown long double size, cannot define BFP_FMT + confgcc+=( --disable-decimal-float )
    + export gcc_cv_target_ldbl128=no
    + fi
    ;;
    ppc64)
    # On ppc64 big endian target gcc assumes elfv1 by default,
    --
    2.34.1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to All on Mon Dec 27 06:40:02 2021
    On 27 Dec 2021, at 05:24, Georgy Yakovlev <gyakovlev@gentoo.org> wrote:

    otherwise initial build may fail with:
    unknown long double size, cannot define BFP_FMT

    If possible, would you mind filing a bug with the build log
    of it failing (and brief steps on how to get it) just so
    we can easily test if we can drop it in future?

    (We have a lot of hacks like this where I worry
    we'll never be able to drop them with confidence)

    If it takes a huge amount of work to get there, then don't
    bother, as it's negligible gain.


    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
    ---
    eclass/toolchain.eclass | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
    index fd03ba176276..1102c4fc5d56 100644
    --- a/eclass/toolchain.eclass
    +++ b/eclass/toolchain.eclass
    @@ -1099,6 +1099,11 @@ toolchain_src_configure() {
    # Set up defaults based on current CFLAGS
    is-flagq -mfloat-gprs=double && confgcc+=( --enable-e500-double )
    [[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=( --enable-e500-double )
    + if [[ ${CTARGET} == powerpc-*-musl ]]; then
    + # fix: unknown long double size, cannot define BFP_FMT + confgcc+=( --disable-decimal-float )
    + export gcc_cv_target_ldbl128=no
    + fi
    ;;
    ppc64)
    # On ppc64 big endian target gcc assumes elfv1 by default,
    --
    2.34.1



    Looks fine otherwise though.

    best,
    sam

    -----BEGIN PGP SIGNATURE-----

    iQGTBAEBCgB9FiEEYOpPv/uDUzOcqtTy9JIoEO6gSDsFAmHJURlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYw RUE0RkJGRkI4MzUzMzM5Q0FBRDRGMkY0OTIyODEwRUVBMDQ4M0IACgkQ9JIoEO6g SDvTmggAkguPVWhdPn2AEARaOGtoldsFT+mAvcdTiwex2+O1FIl0QsKgXRjyC8fb xdDREh553xBfcg3uBlQDqp+bEnnuYoQgMj0gnSfy11zEj8SqPgyBcM9AGqEVVSzN /OpMW6tdR9WE6D64MFlorFqfThDRbduJGDFIz+IRtyiLG0nNqTjLAVKV7DVDohca iFSyT+2znJzkOaagUQd5ONZtaJEt5raqHfOpZe3ACfabFNYhTdaIUpkqB/xFq0nS Tp6BIXO8JAf4WO8DOC0QHP5iryIMtXoPClOZlgy6uIj/5MfwmavgWvpbh4UHhTPd rsyuHaEumMQ610HltbB+uDTmetykUw==
    =fi/l
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)