Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2944 - Packaging fails: /usr/bin/env: Argument list too long #7804

Closed
openwrt-bot opened this issue Mar 30, 2020 · 2 comments
Closed

FS#2944 - Packaging fails: /usr/bin/env: Argument list too long #7804

openwrt-bot opened this issue Mar 30, 2020 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

BlueMax:

Building x86/64 with some additional packages breaks near the end due to packaging shell command argument list too long. Probably related to [[https://github.com/grpc/grpc/issues/14844#issuecomment-451698592|this]]. My cmdline is 150KB.

OpenWrt x86/64 master af35205
20 feeds
Arch Linux 5.5.13

excerpt:
mkdir -p /media/LinuxPart2/OpenWRT/openwrt-compile/build_dir/target-x86_64_musl/root-x86/tmp
IPKG_NO_SCRIPT=1 IPKG_INSTROOT=/media/LinuxPart2/OpenWRT/openwrt-compile/build_dir/target-x86_64_musl/root-x86 TMPDIR=/media/LinuxPart2/OpenWRT/openwrt-compile/build_dir/target-x86_64_musl/root-x86/tmp /media/LinuxPart2/OpenWRT/openwrt-compile/staging_dir/host/bin/opkg --offline-root /media/LinuxPart2/OpenWRT/openwrt-compile/build_dir/target-x86_64_musl/root-x86 --force-postinstall --add-dest root:/ --add-arch all:100 --add-arch x86_64:200 install
/media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/base-files_214-r12770-af35205626_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/grub2_2.04-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-button-hotplug_5.4.28-3_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-cryptodev_5.4.28+1.10-x86-2_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-sched-cake_5.4.28+2020-01-10-aeff7a3e-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kernel_5.4.28-1-45a124e0b66ff236da373ef302dba88c_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-aead_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-authenc_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-ccm_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-cmac_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-ctr_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-ecb_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-ecdh_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-hash_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-hmac_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-hw-padlock_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-kpp_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-manager_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-null_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-pcompress_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-rng_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-seqiv_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-sha256_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-crypto-user_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-fs-vfat_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-fuse_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-hwmon-core_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-hwmon-f71882fg_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-i2c-core_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-i2c-algo-bit_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-hid_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-input-core_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-input-evdev_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-ledtrig-heartbeat_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-ledtrig-netdev_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-ledtrig-default-on_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-ledtrig-timer_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-lib-crc-ccitt_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/openwrt-compile/bin/targets/x86/64/packages/kmod-lib-crc16_5.4.28-1_x86_64.ipk /media/LinuxPart2/OpenWRT/
[...]
make[2]: /usr/bin/env: Argument list too long
make[2]: *** [package/Makefile:68: package/install] Error 127

@openwrt-bot
Copy link
Author

ynezz:

Try following patches which should fix the issue https://patchwork.ozlabs.org/project/openwrt/list/?series=159823 and report back, thanks.

@openwrt-bot
Copy link
Author

BlueMax:

The ticket is invalid (my fault).
I imported/enabled a package list (from a running system) with the following commands to the buildsystem:
opkg list-installed | cut -f 1 -d ' ' > mypackages.txt
cat mypackages.txt | xargs ./scripts/feeds install -d y

The '-d y' switch not only enables the corresponding package but all (non-default) suboptions as well that is problematic as several external dependencies are pulled in. This is not a sane configuration.

I've found another solution:
https://forum.openwrt.org/t/x86-64-cannot-be-built-buildbot-faillogs-not-working/58890/7

Sorry for any inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant