openwrt / openwrt/packages

fish fails to build with ccache

Open
#29,575 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

fish

Maintainer

jqqqqqqqqqq@gmail.com

OpenWrt Version

SNAPSHOT

OpenWrt Target/Subtarget

mediatek/filogic

Relevant Logs
[0/4] cd /home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7....ase/fish /home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.
   Compiling fish v4.7.1 (/mnt/owrt-ram/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1)
error: linker `ccache aarch64-openwrt-linux-musl-gcc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `fish` (bin "fish") due to 1 previous error
FAILED: [code=101] CMakeFiles/fish /home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1/CMakeFiles/fish
cd /home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1 && /home/ki/openwrt/staging_dir/host/bin/cmake -E env FISH_CMAKE_BINARY_DIR=/home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1 PREFIX=/usr DOCDIR=/usr/share/doc/fish DATADIR=/usr/share SYSCONFDIR=/etc BINDIR=/usr/bin CARGO_TARGET_DIR=/home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1/cargo CARGO_BUILD_RUSTC=/home/ki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/host/bin/rustc FISH_SPHINX=SPHINX_EXECUTABLE-NOTFOUND /home/ki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/host/bin/cargo build --bin fish --release  --target aarch64-unknown-linux-musl --no-default-features --features= && /home/ki/openwrt/staging_dir/host/bin/cmake -E copy /home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1/cargo/aarch64-unknown-linux-musl/release/fish /home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1
ninja: build stopped: subcommand failed.
make[2]: *** [Makefile:93: /home/ki/openwrt/build_dir/target-aarch64_cortex-a53_musl/fish-4.7.1/.built] Error 101
make[2]: Leaving directory '/home/ki/openwrt/feeds/packages/utils/fish'
time: package/feeds/packages/fish/compile#31.21#1.38#32.11
    ERROR: package/feeds/packages/fish failed to build.
make[1]: *** [package/Makefile:198: package/feeds/packages/fish/compile] Error 1
make[1]: Leaving directory '/home/ki/openwrt'
make: *** [/home/ki/openwrt/include/toplevel.mk:233: package/feeds/packages/fish/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 with feeds/packages/utils/fish/Makefile and the Cargo/CMake invocation shown in the build log, then reproduce the package build for the mediatek/filogic target with ccache enabled. Trace how the linker command is assembled and confirm that fish builds successfully without the “linker ccache aarch64-openwrt-linux-musl-gcc not found” error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.