OpenWrt Forum Archive

Topic: warning "Argument list too long" when making image

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a KIXRP435 Development Platform (IXP43X) BE, and going to make a ram iamge for it.
After check the USB support, compile procedure begins to say "make[9]: execvp: /bin/sh: Argument list too long"

Is there anyone would like to help me? What information more should I collect?
Any help will be appreciated~



svn info

Path: .
URL: svn://svn.openwrt.org/openwrt/trunk
Repository Root: svn://svn.openwrt.org/openwrt
Repository UUID: 3c298f89-4303-0410-b956-a3cf2f4a3e73
Revision: 18776
Node Kind: directory
Schedule: normal
Last Changed Author: ryd
Last Changed Rev: 18775
Last Changed Date: 2009-12-14 18:35:16 +0800 (Mon, 14 Dec 2009)
WARNING: skipping libiw -- package not selected

make[3]: Leaving directory `/opt/kamikaze/package/wireless-tools'

make[2]: Circular package/mac80211/compile <- package/iw/compile dependency dropped.

make[3]: Entering directory `/opt/kamikaze/package/mac80211'

rm -rf /opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05/modules

make -C "/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05" CROSS_COMPILE="armeb-openwrt         -linux-uclibcgnueabi-" ARCH="arm" EXTRA_CFLAGS="-I/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless         -2009-12-05/include  -DCONFIG_B43_PCI_AUTOSELECT -DCONFIG_B43_PCICORE_AUTOSELECT -DCONFIG_SSB_DRIVER_PCICORE_P         OSSIBLE -DCONFIG_SSB_DRIVER_PCICORE -DCONFIG_SSB_PCIHOST_POSSIBLE -DCONFIG_SSB_PCIHOST -DCONFIG_SSB_SPROM  -DC         ONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS -DCONFIG_B43_LEDS -DCONFIG_B43LEGACY_LEDS -DCONFIG_AR9170_LEDS -DCO         NFIG_B43_HWRNG -DCONFIG_B43LEGACY_HWRNG   -D__CONFIG_MAC80211_RC_DEFAULT=minstrel "  CONFIG_MAC80211_RC_PID=y          CONFIG_MAC80211_RC_MINSTREL=y CONFIG_MAC80211_LEDS=y CONFIG_MAC80211_DEBUGFS= CONFIG_B43_PCMCIA=n CONFIG_B43_P         IO=n CONFIG_B43_PCI_AUTOSELECT=y CONFIG_B43_PCICORE_AUTOSELECT=y CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y CONFIG_S         SB_DRIVER_PCICORE=y CONFIG_SSB_PCIHOST_POSSIBLE=y CONFIG_SSB_PCIHOST=y CONFIG_B43LEGACY_LEDS=y CONFIG_B43_LEDS         =y CONFIG_B43_HWRNG=y CONFIG_B43LEGACY_HWRNG=y CONFIG_B43= CONFIG_B43LEGACY= CONFIG_ATH_COMMON=m CONFIG_ATH_DE         BUG= CONFIG_ATH5K=m CONFIG_ATH9K= CONFIG_ATH9K_DEBUGFS= CONFIG_ZD1211RW= CONFIG_P54_COMMON= CONFIG_P54_PCI= CO         NFIG_P54_USB= CONFIG_P54_SPI= CONFIG_RT2X00= CONFIG_RT2X00_LIB_PCI= CONFIG_RT2X00_LIB_USB= CONFIG_RT2400PCI= C         ONFIG_RT2500PCI= CONFIG_RT2500USB= CONFIG_RT61PCI= CONFIG_RT73USB= CONFIG_RT2800PCI= CONFIG_RT2800USB= CONFIG_         RTL8180= CONFIG_RTL8187= CONFIG_MAC80211_HWSIM= CONFIG_PCMCIA= CONFIG_LIBIPW= CONFIG_LIBERTAS= CONFIG_LIBERTAS         _CS= CONFIG_LIBERTAS_SDIO= CONFIG_LIBERTAS_THINFIRM= CONFIG_LIBERTAS_USB= CONFIG_IPW2100= CONFIG_IPW2200= CONF         IG_NL80211=y CONFIG_LIB80211= CONFIG_LIB80211_CRYPT_WEP= CONFIG_LIB80211_CRYPT_CCMP= CONFIG_LIB80211_CRYPT_TKI         P= CONFIG_IWLWIFI= CONFIG_IWLAGN= CONFIG_MWL8K= CONFIG_ATMEL= CONFIG_PCMCIA_ATMEL= CONFIG_ADM8211= CONFIG_USB_         NET_RNDIS_HOST= CONFIG_USB_NET_RNDIS_WLAN= CONFIG_USB_NET_CDCETHER= CONFIG_USB_USBNET= CONFIG_AT76C50X_USB= CO         NFIG_WL12XX= CONFIG_EEPROM_93CX6= CONFIG_AR9170_USB= CONFIG_AR9170_LEDS=y CONFIG_IWM= MADWIFI= OLD_IWL= KLIB_B         UILD="/opt/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32" MODPROBE=: KLIB=/lib/modules/2.6.32 KERNEL_SU         BLEVEL=32 all

make[4]: Entering directory `/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05'

make -C /opt/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32 M=/opt/kamikaze/build_dir/linux-ixp4xx_gener         ic/compat-wireless-2009-12-05 modules

make[5]: Entering directory `/opt/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32'

make[9]: execvp: /bin/sh: Argument list too long

make[9]: *** [/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05/drivers/net/wireless/ath         /ath5k/reset.o] Error 127

make[8]: *** [/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05/drivers/net/wireless/ath         /ath5k] Error 2

make[7]: *** [/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05/drivers/net/wireless/ath         ] Error 2

make[6]: *** [/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05/drivers/net/wireless] Er         ror 2

make[5]: *** [_module_/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05] Error 2

make[5]: Leaving directory `/opt/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32'

make[4]: *** [modules] Error 2

make[4]: Leaving directory `/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05'

make[3]: *** [/opt/kamikaze/build_dir/linux-ixp4xx_generic/compat-wireless-2009-12-05/.built] Error 2

make[3]: Leaving directory `/opt/kamikaze/package/mac80211'

make[2]: *** [package/mac80211/compile] Error 2

make[2]: Leaving directory `/opt/kamikaze'

make[1]: *** [/opt/kamikaze/staging_dir/target-armeb_uClibc-0.9.30.1/stamp/.package_compile] Error 2

make[1]: Leaving directory `/opt/kamikaze'

make: *** [world] Error 2

what distribution are you using to cross compile?

RHEL 5.2 64bit

that may be the problem... set up a VM with debian and it'll work

thanks, i'll try and let you know the result

you need to install some packages:

apt-get install build-essential automake autoconf flex bison gawk

I‘ve installed Debian 5.0 in vmware.
When make V=99, it stops at:
but there's the file exactly

pillow@debian:~/ixp/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32/include/asm-generic$ ls bitsperlong.h -al
-rw-r--r-- 1 pillow pillow 874 2009-12-02 19:51 bitsperlong.h
armeb-openwrt-linux-uclibcgnueabi-gcc -D_GNU_SOURCE -I/home/pillow/ixp/kamikaze/staging_dir/target-armeb_uClibc-0.9.30.1/usr/include/libnl-tiny -I/home/pillow/ixp/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32/include -I/home/pillow/ixp/kamikaze/build_dir/target-armeb_uClibc-0.9.30.1/swconfig -I/home/pillow/ixp/kamikaze/staging_dir/target-armeb_uClibc-0.9.30.1/usr/include -I/home/pillow/ixp/kamikaze/staging_dir/target-armeb_uClibc-0.9.30.1/include -I/home/pillow/ixp/kamikaze/staging_dir/toolchain-armeb_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/home/pillow/ixp/kamikaze/staging_dir/toolchain-armeb_gcc-4.3.3+cs_uClibc-0.9.30.1/include -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -c -o cli.o cli.c
In file included from /home/pillow/ixp/kamikaze/staging_dir/toolchain-armeb_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/armeb-openwrt-linux-uclibcgnueabi/4.3.3/../../../../armeb-openwrt-linux-uclibcgnueabi/sys-include/asm/types.h:4,
                 from /home/pillow/ixp/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32/include/linux/types.h:4,
                 from cli.c:27:
/home/pillow/ixp/kamikaze/build_dir/linux-ixp4xx_generic/linux-2.6.32/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: No such file or directory
make[4]: *** [cli.o] Error 1
make[4]: Leaving directory `/home/pillow/ixp/kamikaze/build_dir/target-armeb_uClibc-0.9.30.1/swconfig'
make[3]: *** [/home/pillow/ixp/kamikaze/build_dir/target-armeb_uClibc-0.9.30.1/swconfig/.built] Error 2
make[3]: Leaving directory `/home/pillow/ixp/kamikaze/package/swconfig'
make[2]: *** [package/swconfig/compile] Error 2
make[2]: Leaving directory `/home/pillow/ixp/kamikaze'
make[1]: *** [/home/pillow/ixp/kamikaze/staging_dir/target-armeb_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/pillow/ixp/kamikaze'
make: *** [world] Error 2
pillow@debian:~/ixp/kamikaze$ make menuconfig
#
# using defaults found in .config
#


Your configuration changes were NOT saved.

i meet the same problem when i compile  compat-wireless-2.6.32.3 package. my platform is Redhat EL 4 update 7, target is mpc8241 a powerpc processor.

make: Entering directory `/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/compat-wireless-2.6.32.3'
make -C /export/homeO2/byang/work/trunk/build_dir/linux-AP1200/linux-2.6.32 M=/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/compat-wireless-2.6.32.3 modules
make[1]: Entering directory `/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/linux-2.6.32'
make[3]: execvp: /bin/sh: Argument list too long
make[3]: *** [/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/compat-wireless-2.6.32.3/drivers/net/b44.o] Error 127
make[2]: *** [/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/compat-wireless-2.6.32.3/drivers/net] Error 2
make[1]: *** [_module_/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/compat-wireless-2.6.32.3] Error 2
make[1]: Leaving directory `/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/linux-2.6.32'
make: *** [modules] Error 2
make: Leaving directory `/export/homeO2/byang/work/trunk/build_dir/linux-AP1200/compat-wireless-2.6.32.3'

(Last edited by nmtr on 18 Jan 2010, 19:11)

The discussion might have continued from here.