Cannot build LUCI OpenWrt 19.07.0-rc1 - Argument list too long


I can run everything, as Luci is just a virtual package. But still this is worrying me, this is the error I get, when I set execvp: /usr/bin/env: Argument list too long, of course I am building everything and it still works, but it looks like for the Makefile arguments list is too long.
Is there are fix for this? I am running from under Docker....

time: package/system/opkg/compile#0.33#0.08#0.39
make[2]: Entering directory '/build/source/feeds/luci/applications/luci-app-opkg'
echo "luci-app-opkg" >> /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/pkginfo/luci-app-opkg.default.install
touch -r /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/luci-app-opkg/.built /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/luci-app-opkg/.autoremove 2>/dev/null >/dev/null
find /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/luci-app-opkg -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/build/source/feeds/luci/applications/luci-app-opkg'
time: package/feeds/luci/luci-app-opkg/compile#1.14#0.40#1.44
make[2]: Entering directory '/build/source/feeds/luci/collections/luci'
make[2]: execvp: /usr/bin/env: Argument list too long
make[2]: *** [../../ /build/source/bin/packages/arm_cortex-a9_vfpv3/luci/luci_git-19.309.76540-c0e73d3-1_all.ipk] Error 127
make[2]: Leaving directory '/build/source/feeds/luci/collections/luci'
time: package/feeds/luci/luci/compile#0.17#0.05#0.21
make[1]: *** [package/Makefile:113: package/feeds/luci/luci/compile] Error 2
make[1]: Leaving directory '/build/source'
make: *** [/build/source/include/ package/feeds/luci/luci/compile] Error 2

the error is on line 266:

i set ulimit -s 819200, but still i get this error.

i had to set a system wide settings, then it works.

if you need this setting for docker it is like this:

docker run  --ulimit stack=-1:-1 --ulimit core=-1:-1 patrikx3/openwrt-insomnia bash

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.