ARM-software / arm-enterprise-acs

ARM Enterprise ACS
Apache License 2.0
42 stars 52 forks source link

Can not build "luv-live-image" due to missing ".//pcie/test_p004.c" #98

Closed nhanldtn closed 3 years ago

nhanldtn commented 3 years ago

Hi ,

I tried to build the img from master branch, but faced issue:

ERROR: sbsa-acs-test-1.0-r0 do_compile: oe_runmake failed
ERROR: sbsa-acs-test-1.0-r0 do_compile: Function failed: do_compile (log file is located at /home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0/temp/log.do_compile.32027)
ERROR: Logfile of failure stored in: /home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0/temp/log.do_compile.32027
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 32 KERNEL_SRC=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source KERNEL_PATH=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source KERNEL_VERSION=4.18.0-luv CC=aarch64-oe-linux-gcc   -fuse-ld=bfd -fdebug-prefix-map=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0=/usr/src/debug/sbsa-acs-test/1.0-r0 -fdebug-prefix-map=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0/recipe-sysroot= -fdebug-prefix-map=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source=/usr/src/kernel LD=aarch64-oe-linux-ld.bfd   AR=aarch64-oe-linux-ar  O=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| echo "Kernel source is set to /home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source"
| Kernel source is set to /home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source
| make -C /home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source M=/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0 modules
| make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
| make[1]: Entering directory '/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source'
| make[2]: Entering directory '/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-build-artifacts'
| make[3]: *** No rule to make target '/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0/.//pcie/test_p004.o', needed by '/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0/sbsa_acs_test.o'.  Stop.
| /home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source/Makefile:1500: recipe for target '_module_/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0' failed
| make[2]: *** [_module_/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0] Error 2
| make[2]: Leaving directory '/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-build-artifacts'
| Makefile:146: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| make[1]: Leaving directory '/home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work-shared/qemuarm64/kernel-source'
| Makefile:46: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/nluu/acs_tmp/arm-enterprise-acs/luv/build/tmp/work/qemuarm64-oe-linux/sbsa-acs-test/1.0-r0/temp/log.do_compile.32027)

I checked sbsa-acs repo and see "test_pool/pcie/test_p004.c" was deleted (commit a93bdf1ce1ee0ea508f4eadd9067ce8ac7a8e45f )

Thanks,

edhay commented 3 years ago

Hi @nhanldtn ,

Thank you for reporting the issue. The same is fixed and verified through the following commit in sbsa-acs repository. https://github.com/ARM-software/sbsa-acs/commit/9c518a0c0677e5bf02e2c36f9b4b0fdc8bd23739

You could please start a new build and do contact us in case of any support needed.

Enterprise ACS Support Team

nhanldtn commented 3 years ago

I have tested this on Ubuntu 18.04, the build now succeeds!

Thanks,

edhay commented 3 years ago

Thank you for the confirmation. Closing the issue.

Enterprise ACS Support Team