Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836226 - mail-client/thunderbird-102.2.1 fails to compile: ERROR: The rust compiler host (x86_64-unknown-linux-musl) is not suitable for the configure host (x86_64-gentoo-linux-musl)
Summary: mail-client/thunderbird-102.2.1 fails to compile: ERROR: The rust compiler ho...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-26 21:08 UTC by Agostino Sarubbo
Modified: 2024-08-22 01:16 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,84.65 KB, text/plain)
2022-03-26 21:08 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-26 21:08:17 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: mail-client/thunderbird-91.7.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-26 21:08:19 UTC
Created attachment 767926 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-09-08 08:48:58 UTC
tinderbox_musl has reproduced this issue with version 102.2.1 - Updating summary.
Comment 3 Marius Dinu 2024-08-15 08:08:33 UTC
I get an error very close to this one on ARM-glibc when emerge-ing firefox and it's probably caused by the same issue:

 0:33.26 checking for rust host triplet...
 0:33.26 ERROR: The rust compiler host (armv7-unknown-linux-gnueabihf) is not suitable for the configure host (armv7a-unknown-linux-gnueabihf/thumbv7neon-unknown-linux-gnueabihf).
 0:33.26
 0:33.26 You can solve this by:
 0:33.26 * Set your configure host to match the rust compiler host by editing your
 0:33.26 mozconfig and adding "ac_add_options --host=armv7-unknown-linux-gnueabihf".
 0:33.26 * Or, install the rust toolchain for armv7a-unknown-linux-gnueabihf/thumbv7neon-unknown-linux-gnueabihf, if supported, by running
 0:33.26 "rustup default stable-thumbv7neon-unknown-linux-gnueabihf"

The only thing I can think of (that could be seen as unusual) is that I added to CFLAGS "-march=armv7ve+neon-vfpv3 -mcpu=cortex-a17 -mfpu=neon-vfpv3 -mfloat-abi=hard" and then I did "emerge --empty-tree @world".
I have no ideea where "thumb" came from.

# eselect rust list
Available Rust versions:
  [1]   rust-bin-1.79.0 *

Thank you.
Comment 4 Marius Dinu 2024-08-22 01:16:39 UTC
I think I found the problem. In gentoo repo, www-client/firefox/firefox-115.*.ebuild, somewhere around line 1050:

        # Modifications to better support ARM, bug #c
        if use cpu_flags_arm_neon ; then
                mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon

                if ! tc-is-clang ; then
                        # thumb options aren't supported when using clang, bug 666966
                        mozconfig_add_options_ac '+cpu_flags_arm_neon' \
                                --with-thumb=yes \
                                --with-thumb-interwork=no
                fi
        fi

Change "--with-thumb=yes" to "--with-thumb=no". Then it will build fine.

I belive the same applies to thunderbird. In mail-client/thunderbird/thunderbird-115.*.ebuild, somewhere around line 1010, there's the same code as quoted above.