openwrt / openwrt/packages

rust: unknown target `armv7-unknown-linux-musleabihfhf`

Open
#27,096 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

rust

Maintainer

@lu-zero

OpenWrt Version

v24.10.2

OpenWrt Target/Subtarget

ipq806x/generic DEVICE_netgear_r7800

Steps to Reproduce

make package/feeds/packages/rust/host/{clean,compile}

Actual Behaviour
Log
Applying /home/maks/openwrt/feeds/packages/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch using plaintext:
patching file src/bootstrap/Cargo.toml
Hunk #1 succeeded at 59 with fuzz 1 (offset -1 lines).

Applying /home/maks/openwrt/feeds/packages/lang/rust/patches/0003-bump-libc-deps-to-0.2.146.patch using plaintext:
patching file vendor/elasticlunr-rs-3.0.2/Cargo.lock
patching file vendor/libffi-3.2.0/Cargo.lock
touch /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/.prepareda18853a9e190984e162177fef73a1d47_18f1e190c5d53547fed41a3eaa76e9e9
(cd /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/; if [ -x configure ]; then cp -fpR /home/maks/openwrt/scripts/config.{guess,sub} /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src// && CC="/home/maks/openwrt/staging_dir/host/bin/gcc" CFLAGS="-O2 -I/home/maks/openwrt/staging_dir/host/include -I/home/maks/openwrt/staging_dir/hostpkg/include -I/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/include" CXX="/home/maks/openwrt/staging_dir/host/bin/g++" CPPFLAGS="-I/home/maks/openwrt/staging_dir/host/include -I/home/maks/openwrt/staging_dir/hostpkg/include -I/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/include" CXXFLAGS="-O2 -I/home/maks/openwrt/staging_dir/host/include -I/home/maks/openwrt/staging_dir/hostpkg/include -I/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/include" LDFLAGS="-L/home/maks/openwrt/staging_dir/host/lib -L/home/maks/openwrt/staging_dir/hostpkg/lib -L/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/lib" CONFIG_SHELL="/usr/bin/env bash" CARGO_HOME="/home/maks/openwrt/dl/cargo"  bash ./configure --build=x86_64-unknown-linux-gnu --target=armv7-unknown-linux-musleabihfhf,x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --prefix=/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host --bindir=/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/bin --libdir=/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/lib --sysconfdir=/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/etc --datadir=/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/share --mandir=/home/maks/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/man --dist-compression-formats=gz --disable-sanitizers --release-channel=stable --enable-cargo-native-static --bootstrap-cache-path=/home/maks/openwrt/dl/rustc --set=llvm.download-ci-llvm=true --set=target.armv7-unknown-linux-musleabihfhf.ar=arm-openwrt-linux-muslgnueabihf-gcc-ar --set=target.armv7-unknown-linux-musleabihfhf.cc=arm-openwrt-linux-muslgnueabihf-gcc --set=target.armv7-unknown-linux-musleabihfhf.cxx=arm-openwrt-linux-muslgnueabihf-g++ --set=target.armv7-unknown-linux-musleabihfhf.linker=arm-openwrt-linux-muslgnueabihf-gcc --set=target.armv7-unknown-linux-musleabihfhf.ranlib=arm-openwrt-linux-muslgnueabihf-gcc-ranlib --set=target.armv7-unknown-linux-musleabihfhf.crt-static=false --set=target.armv7-unknown-linux-musleabihfhf.musl-root=/home/maks/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-14.2.0_musl_eabi ; fi )
configure: processing command line
configure:
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--target ...
configure: build.build          := x86_64-unknown-linux-gnu
configure: build.target         := ['armv7-unknown-linux-musleabihfhf', 'x86_64-u ...
configure: build.host           := ['x86_64-unknown-linux-gnu']
configure: install.prefix       := /home/maks/openwrt/staging_dir/target-arm_cort ...
configure: install.bindir       := /home/maks/openwrt/staging_dir/target-arm_cort ...
configure: install.libdir       := /home/maks/openwrt/staging_dir/target-arm_cort ...
configure: install.sysconfdir   := /home/maks/openwrt/staging_dir/target-arm_cort ...
configure: install.datadir      := /home/maks/openwrt/staging_dir/target-arm_cort ...
configure: install.mandir       := /home/maks/openwrt/staging_dir/target-arm_cort ...
configure: dist.compression-formats := ['gz']
configure: build.sanitizers     := False
configure: rust.channel         := stable
configure: build.cargo-native-static := True
configure: build.bootstrap-cache-path := /home/maks/openwrt/dl/rustc
configure: llvm.download-ci-llvm := True
configure: target.armv7-unknown-linux-musleabihfhf.ar := arm-openwrt-linux-muslgn ...
configure: target.armv7-unknown-linux-musleabihfhf.cc := arm-openwrt-linux-muslgn ...
configure: target.armv7-unknown-linux-musleabihfhf.cxx := arm-openwrt-linux-muslg ...
configure: target.armv7-unknown-linux-musleabihfhf.linker := arm-openwrt-linux-mu ...
configure: target.armv7-unknown-linux-musleabihfhf.ranlib := arm-openwrt-linux-mu ...
configure: target.armv7-unknown-linux-musleabihfhf.crt-static := False
configure: target.armv7-unknown-linux-musleabihfhf.musl-root := /home/maks/openwr ...
configure: profile              := dist
configure:
configure: writing `config.toml` in current directory
configure:
configure: run `python /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/x.py --help`
touch /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/.configured
CARGO_HOME=/home/maks/openwrt/dl/cargo TARGET_CFLAGS="-O3 -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15 -mfloat-abi=hard -mthumb -mvectorize-with-neon-quad -mtls-dialect=gnu2 -Wa,-mimplicit-it=always -fno-caller-saves -fno-plt -fipa-pta -fno-signed-zeros -ftree-vectorize -ftree-vectorizer-verbose=2 -fopt-info-vec -fhonour-copts -mfloat-abi=hard -fmacro-prefix-map=/home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/rust-1.85.0=rust-1.85.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" python3 /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/x.py --build-dir /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/build --config /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/config.toml dist build-manifest cargo llvm-tools rustc rust-std rust-src
extracting /home/maks/openwrt/dl/rustc/2025-01-09/rust-std-1.84.0-x86_64-unknown-linux-gnu.tar.xz
extracting /home/maks/openwrt/dl/rustc/2025-01-09/rustc-1.84.0-x86_64-unknown-linux-gnu.tar.xz
extracting /home/maks/openwrt/dl/rustc/2025-01-09/cargo-1.84.0-x86_64-unknown-linux-gnu.tar.xz
Building bootstrap
   Compiling proc-macro2 v1.0.89
   Compiling unicode-ident v1.0.13
   Compiling memchr v2.7.4
   Compiling version_check v0.9.5
   Compiling typenum v1.17.0
   Compiling shlex v1.3.0
   Compiling libc v0.2.167
   Compiling serde v1.0.215
   Compiling rustix v0.38.40
   Compiling crossbeam-utils v0.8.20
   Compiling regex-syntax v0.8.5
   Compiling cc v1.2.0
   Compiling cfg-if v1.0.0
   Compiling bitflags v2.6.0
   Compiling generic-array v0.14.7
   Compiling pkg-config v0.3.31
   Compiling linux-raw-sys v0.4.14
   Compiling quote v1.0.37
   Compiling aho-corasick v1.1.3
   Compiling syn v2.0.87
   Compiling heck v0.5.0
   Compiling anstyle v1.0.10
   Compiling clap_lex v0.7.2
   Compiling crossbeam-epoch v0.9.18
   Compiling log v0.4.22
   Compiling clap_builder v4.5.20
   Compiling same-file v1.0.6
   Compiling semver v1.0.23
   Compiling serde_json v1.0.132
   Compiling crossbeam-deque v0.8.5
   Compiling walkdir v2.5.0
   Compiling lzma-sys v0.1.20
   Compiling filetime v0.2.25
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling itoa v1.0.11
   Compiling regex-automata v0.4.9
   Compiling digest v0.10.7
   Compiling ryu v1.0.18
   Compiling bootstrap v0.0.0 (/home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/src/bootstrap)
   Compiling cpufeatures v0.2.15
   Compiling sha2 v0.10.8
   Compiling cmake v0.1.48
   Compiling object v0.36.5
   Compiling home v0.5.9
   Compiling termcolor v1.4.1
   Compiling xattr v1.3.1
   Compiling fd-lock v4.0.2
   Compiling tar v0.4.43
   Compiling toml v0.5.11
   Compiling clap_derive v4.5.18
   Compiling serde_derive v1.0.215
   Compiling bstr v1.10.0
   Compiling globset v0.4.15
   Compiling opener v0.5.2
   Compiling ignore v0.4.23
   Compiling xz2 v0.1.7
   Compiling clap v4.5.20
   Compiling clap_complete v4.5.37
   Compiling build_helper v0.1.0 (/home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/src/build_helper)
    Finished `dev` profile [unoptimized] target(s) in 34.76s
WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.
NOTE: to silence this warning, add `change-id = 134650` at the top of `config.toml`


error occurred: unknown target `armv7-unknown-linux-musleabihfhf`


Build completed unsuccessfully in 0:00:47
make[2]: *** [Makefile:109: /home/maks/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/host/rustc-1.85.0-src/.built] Error 1
make[2]: Leaving directory '/home/maks/openwrt/feeds/packages/lang/rust'
time: package/feeds/packages/rust/host-compile#129.13#36.05#78.44
    ERROR: package/feeds/packages/rust [host] failed to build.
make[1]: *** [package/Makefile:174: package/feeds/packages/rust/host/compile] Error 1
make[1]: Leaving directory '/home/maks/openwrt'
make: *** [/home/maks/openwrt/include/toplevel.mk:233: package/feeds/packages/rust/host/compile] Error 2
Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with package/feeds/packages/rust/host/{clean,compile}, then inspect the Rust package Makefile and the target configuration shown in the log, including patches/0001-Update-xz2-and-use-it-static.patch and patches/0003-bump-libc-deps-to-0.2.146.patch. Done means host compilation no longer reports unknown target armv7-unknown-linux-musleabihfhf and the same command completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.