OP-TEE / manifest

Manifests to use OP-TEE on various platforms
68 stars 174 forks source link

make[2]: /bin/sh: Argument list too long #289

Open zoujiaying1995 opened 3 months ago

zoujiaying1995 commented 3 months ago

I am encountering an Argument list too long error during the build process. The error occurs while running make and appears to be related to a script or command being passed too many arguments. Below is the relevant portion of the build output:

Consolidate compiler generated dependencies of target f07bfc66-958c-4a15-99c0-260e4e7375dd.plugin
Consolidate compiler generated dependencies of target xtest
[  5%] Built target f07bfc66-958c-4a15-99c0-260e4e7375dd.plugin
[100%] Built target xtest
make[2]: /bin/sh: Argument list too long
make[2]: *** [package/pkg-generic.mk:294: /path/to/build/optee_test_ext-1.0/.stamp_built] Error 127
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/path/to/buildroot'
make: *** [common.mk:336: buildroot] Error 2

Steps to Reproduce

$ repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml -b 4.0.0
$ repo sync
$ cd build
$ make toolchains
$ make run

Any guidance on how to resolve this issue would be greatly appreciated. Thank you!

jforissier commented 3 months ago

Hi @zoujiaying1995,

This problem was fixed in 4.3.0. See https://github.com/OP-TEE/build/pull/745.