OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Daniel Dickinson - 01.08.2019

FS#2421 - spidev_test fails to build under SDK

Using July 31, 2019 snapshot SDK (and quite few before that, just got around to reporting) spidev_test fails to build under the ath79 SDK (which causes the entire build to fail). Log message is:

cp: cannot stat ‘/home/daniel/Build/openwrt-sdk-ath79-generic_gcc-7.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-4.19.62/tools/spi/*’: No such file or directory
make[3]: *** [Makefile:64: /home/daniel/Build/openwrt-sdk-ath79-generic_gcc-7.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-4.19.62/tools/spi-target-mips_24kc_musl/.prepared_de019ecc69c7e706dce2af75912fda36_6664517399ebbbc92a37c5bb081b5c53] Error 1
time: package/feeds/base/spidev_test/compile#0.20#0.05#0.50

base feed is standard, openwrt-packages has modes to p910nd and saned-backends, otherwise current master, all other feeds standard.

 


Project Manager
Christian Lamparter commented on 02.08.2019 19:29

This is strange, the spidev_test should not be available in the SDK due to @!IN_SDK:

https://github.com/openwrt/openwrt/blob/master/package/utils/spidev_test/Makefile#L22

The main reason being that much like the "perf" utility, its part of to the linux kernel source so it gets updated constantly.

I've tried to reproduce this with todays (added sane-backends + p910nd) with the attached config, but in my case I can compile it successfully, as long as the key-build is in place.

   config (113.3 KiB)
Daniel Dickinson commented on 08.09.2019 03:07

Hi, I'm no longer getting the issue with current snapshots from master. Testing a 19.07-SNAPSHOT tonight, so I'll let you know if it's present there.

Daniel Dickinson commented on 08.09.2019 04:13

with 19.07-SNAPSHOT SDK I get:

cp: cannot stat '/home/daniel/Build/sdk-19.07-ath79/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-4.14.141/tools/spi/*': No such file or directory
make[3]: *** [Makefile:64: /home/daniel/Build/sdk-19.07-ath79/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-4.14.141/tools/spi-target-mips_24kc_musl/.prepared_8b19dd551411b99292ed5d221e373c29_6664517399ebbbc92a37c5bb081b5c53] Error 1
time: package/feeds/base/spidev_test/compile#0.19#0.05#0.38

This is what selects the spidev_test package

config PACKAGE_spidev-test
        tristate
        default m

in Config-build.in in the SDK,
but I think the real issue is that like the kernel and libc spidev_test should be a special wrapper that just packages the already built binaries that should be in the SDK.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing