Modify

Opened 5 years ago

Closed 3 years ago

#12907 closed defect (worksforme)

Unable to Compile Kernel Header ar71xx

Reported by: drkhosla@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: kernel headers ar71xx Cc:

Description

From last two day I am trying to compile openwrt for target ar71xx. But I am unable to compile kernel headers in latest trunk r35342. It is compiling fine upto version r35112 and after that I get following error ....

.
.
.
G_BROKEN_FILENAMES=1
V_Profile_AP113_Config=
V_Profile_TLWA901_Description=  Package set optimized for the TP-LINK TL-WA901N/ND.
V_Profile_TLMR3420_Config=
V_Profile_WZRHPG450H_Description=       Package set optimized for the Buffalo WZR-HP-G450H
V_Profile_A02RBW300N_Config=
V_Profile_UBNTRSPRO_Config=
V_Profile_WNDR3700_Description= Package set optimized for the NETGEAR WNDR3700/WNDR3800/WNDRMAC
yes '' | make -C /openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.4 HOSTCFLAGS="-O2 -I/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" ARCH=mips CC="mips-openwrt-linux-uclibc-gcc" CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" CROSS_COMPILE=mips-openwrt-linux-uclibc- KBUILD_HAVE_NLS=no CONFIG_SHELL=/bin/bash oldconfig
make[4]: Entering directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.4'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
make[4]: Leaving directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.4'
mkdir -p /openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev
make -C /openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.4 HOSTCFLAGS="-O2 -I/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" ARCH=mips CC="mips-openwrt-linux-uclibc-gcc" CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" CROSS_COMPILE=mips-openwrt-linux-uclibc- KBUILD_HAVE_NLS=no CONFIG_SHELL=/bin/bash INSTALL_HDR_PATH="/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev/" headers_install
make[4]: Entering directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.4'
  CHK     include/generated/uapi/linux/version.h
make[6]: execvp: /bin/sh: Argument list too long
make[6]: *** [/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev//include/linux/.install] Error 127
make[5]: *** [linux] Error 2
make[4]: *** [headers_install] Error 2
make[4]: Leaving directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.4'
make[3]: *** [/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.4/.configured] Error 2
make[3]: Leaving directory `/openwrt/toolchain/kernel-headers'
make[2]: *** [toolchain/kernel-headers/compile] Error 2
make[2]: Leaving directory `/openwrt'
make[1]: *** [/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/openwrt'
make: *** [world] Error 2

I think it is due to kernel version change 3.7.2 in ar71xx target

Attachments (3)

001-fix_kernel_build_xargs.patch (1.3 KB) - added by k@… 5 years ago.
Patch for OpenWrt r35953.
001-fix_kernel_build_make_headersinst.patch (2.3 KB) - added by drkhosla@… 4 years ago.
Fix for r37729 kernel header install error
001-fix_kernel_build_headers_install.patch (1.2 KB) - added by drkhosla@… 4 years ago.
Fix for r37729 kernel header install error

Download all attachments as: .zip

Change History (18)

comment:1 Changed 5 years ago by anonymous

"make dirclean" to clean also the kernel headers. Simple "make clean" is not enough. Kernel version was changed last week from 3.7.3 to 3.7.4.

(I have compiled my own wndr3700 succesfully with 35331)

comment:2 Changed 5 years ago by anonymous

I already tried "make distclean" many times and also deleted all directory like build_dir, staging_dir, tools, toolchains, target and update by giving command "svn up" and "make package/symlinks". But my all effort fails, I am able to compile r35112 but unable to compile r35113 and above releases.

comment:3 Changed 5 years ago by drkhosla@…

Strange I first compile r35112 and then update to current trunk r35363 and I am able to compile it. But after distclean, if I update directly to r35363 then I am unable to compile.

comment:4 Changed 5 years ago by anonymous

I upgraded to r35501 but problem persist. I even upgraded my make version of computer to 3.82 and libtool of openwrt to 2.4.2 but error is still there and the detail log is

-bash-3.1$ make V=s
make[1]: Entering directory `/openwrt'
make[2]: Entering directory `/openwrt'
+ mkdir -p /openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2
+ cd /openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2
+ mkdir -p bin lib include stamp
mkdir -p /openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/stamp
touch /openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/.prepared
make[3]: Entering directory `/openwrt/toolchain/gdb'
make[3]: Nothing to be done for `prepare'.
make[3]: Leaving directory `/openwrt/toolchain/gdb'
make[3]: Entering directory `/openwrt/toolchain/gdb'
make[3]: Nothing to be done for `compile'.
make[3]: Leaving directory `/openwrt/toolchain/gdb'
make[3]: Entering directory `/openwrt/toolchain/gdb'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/openwrt/toolchain/gdb'
make[3]: Entering directory `/openwrt/toolchain/binutils'
make[3]: Nothing to be done for `prepare'.
make[3]: Leaving directory `/openwrt/toolchain/binutils'
make[3]: Entering directory `/openwrt/toolchain/binutils'
make[3]: Nothing to be done for `compile'.
make[3]: Leaving directory `/openwrt/toolchain/binutils'
make[3]: Entering directory `/openwrt/toolchain/binutils'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/openwrt/toolchain/binutils'
make[3]: Entering directory `/openwrt/toolchain/gcc/minimal'
make[3]: Nothing to be done for `prepare'.
make[3]: Leaving directory `/openwrt/toolchain/gcc/minimal'
make[3]: Entering directory `/openwrt/toolchain/gcc/minimal'
make[3]: Nothing to be done for `compile'.
make[3]: Leaving directory `/openwrt/toolchain/gcc/minimal'
make[3]: Entering directory `/openwrt/toolchain/gcc/minimal'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/openwrt/toolchain/gcc/minimal'
make[3]: Entering directory `/openwrt/toolchain/kernel-headers'
make[3]: Nothing to be done for `prepare'.
make[3]: Leaving directory `/openwrt/toolchain/kernel-headers'
make[3]: Entering directory `/openwrt/toolchain/kernel-headers'
env
SCAN_COOKIE=10307
V_Profile_WHRHPG300N_Config=
V_Profile_DB120_Config=
V_Profile_UBNT_Config=
V_Profile_TLMR3420_Description= Package set optimized for the TP-LINK TL-MR3420.
V_Profile_AP113_Description=
V_Profile_TLMR11U_Description=  Package set optimized for the TP-LINK TL-MR11U.
V_Profile_PB92_Description=     Package set optimized for the Atheros PB92 reference board.
V_Profile_TEW632BRP_Config=
V_Profile_TLWR941_Description=  Package set optimized for the TP-LINK TL-WR941N/ND.
V_Profile_WZRHPG300NH2_Description=
HOSTNAME=cache.ankhnet.net
V_Profile_AP136_Config=
V_Profile_DIR615E4_Description= Package set optimized for the D-Link DIR-615 rev. E4.
V_Profile_TLWDR4300_Description=        Package set optimized for the TP-LINK TL-WDR3500/3600/4300/4310.
V_Profile_ZCN1523H516_Description=      Package set optimized for the Zcomax ZCN-1523H-5-16 board.
V_Profile_WHRG301N_Config=
V_Profile_WZRHPAG300H_Config=
V_Profile_MZKW04NU_Config=
V_Profile_RW2458N_Config=
V_Profile_CAP4200AG_Description=        Package set optimized for the Senao CAP4200AG.
V_Profile_TLWR2543_Config=
TERM=xterm
V_Profile_AP135_Config=
V_Profile_ALL0315N_Description= Package set optimized for the Allnet ALL0315N.
SH_FUNC=. /openwrt/include/shell.sh;
SHELL=/usr/bin/env bash
V_Profile_JA76PF_Config=
V_Profile_UBNTUNIFI_Description=        Package set optimized for the Ubiquiti UniFi AP.
HISTSIZE=1000
MAKEFLAGS=
V_Profile_AP132_Config=
SSH_CLIENT=202.179.64.99 54802 22
V_Profile_ZCN1523H28_Description=       Package set optimized for the Zcomax ZCN-1523H-2-8 board.
V_Profile_AP121MINI_Description=        Package set optimized for the Atheros AP121-MINI reference board.
V_Profile_TLWR741_Description=  Package set optimized for the TP-LINK TL-WR741N/ND.
V_Profile_UBDEV01_Description=  Package set optimized for the PowerCloud Systems ubdev01 board.
V_Profile_WZRHPG450H_Config=
V_Profile_WNDR3700_Config=
V_Profile_TLWA901_Config=
V_Profile_OM2P_Description=     Package set optimized for the OpenMesh OM2P/OM2P-HS/OM2P-LC.
V_Profile_JA76PF2_Description=  Package set optimized for the jjPlus JA76PF2 board.
V_Profile_TLWR841_Description=  Package set optimized for the TP-LINK TL-WR841N/ND.
V_Profile_Default_Config=
V_Profile_TLWR1041_Config=
V_Profile_TLWA701_Config=
QTDIR=/usr/lib/qt-3.3
V_Profile_TLMR3040_Config=
V_Profile_PB42_Config=
GIT_CONFIG_PARAMETERS='core.autocrlf=false'
V_Profile_WHRHPGN_Config=
QTINC=/usr/lib/qt-3.3/include
V_Profile_TLWR941_Config=
V_Profile_WZRHPG300NH2_Config=
V_Profile_PB92_Config=
V_Profile_DIR601A1_Config=
SSH_TTY=/dev/pts/1
V_Profile_ALFAAP96_Description= Package set optimized for the ALFA Network AP96 board.
V_Profile_MZKW300NH_Description=        Package set optimized for the Planex MZK-W300NH.
LC_ALL=C
V_Profile_DIR600A1_Description= Package set optimized for the D-Link DIR-600 rev. A1.
V_Profile_WZRHPG300NH_Config=
RELEASE=Barrier Breaker
V_Profile_HORNETUB_Config=
V_Profile_EWDORIN_Config=
TARGET_CC_NOCACHE=mips-openwrt-linux-uclibc-gcc
V_Profile_DLRTDEV01_Config=
V_Profile_TLMR3220_Config=
ACLOCAL_INCLUDE=
V_Profile_HORNETUB_Description= Package set optimized for the ALFA Network Hornet-UB board.
V_Target_Description=   Build firmware images for generic Atheros AR71xx/AR913x/AR934x based boards.
USER=openwrt
MAKEOVERRIDES=${-*-command-variables-*-}
V_Profile_JWAP003_Config=
V_Profile_WZRHPG300NH_Description=      Package set optimized for the Buffalo WZR-HP-G300NH2
V_Profile_TEW673GRU_Description=        Package set optimized for the TRENDNet TEW-673GRU.
V_Profile_PB44_Config=
V_Profile_TEW712BR_Description= Package set optimized for the TRENDNet TEW-712BR.
LD_LIBRARY_PATH=/lib
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
V_Profile_ALL0305_Config=
V_Profile_WP543_Config=
TAR=/bin/gtar
V_Profile_Minimal_Config=
V_Profile_TLWR842_Description=  Package set optimized for the TP-LINK TL-WR842N/ND.
V_Profile_ALFANX_Description=   Package set optimized for the ALFA Network N2/N5 boards.
V_Profile_AP96_Config=
V_Profile_NBG_460N_550N_550NH_Config=
V_Profile_WRT160NL_Description= Package set optimized for the Linksys WRT160NL.
V=s
V_Profile_TLMR3020_Description= Package set optimized for the TP-LINK TL-MR3020.
V_Profile_TLWA801_Description=  Package set optimized for the TP-LINK TL-WA801N/ND.
KDEDIR=/usr
REVISION=r35501
MAKELEVEL=4
V_Profile_UBNTUNIFIOUTDOOR_Config=
V_Profile_EWDORIN_Description=  Package set optimized for the Dorin Platform.
V_Profile_DLRTDEV01_Description=        Package set optimized for the PowerCloud Systems dlrtdev01 board.
V_Profile_AP83_Config=
V_Profile_TLMR3220_Description= Package set optimized for the TP-LINK TL-MR3220.
V_Profile_TLWR740_Config=
V_Profile_DIR825B1_Config=
V_Profile_ath5k_Config=
V_Profile_TEW652BRP_Config=
V_Profile_UAPPRO_Config=
V_Profile_NBG_460N_550N_550NH_Description=      Package set optimized for the Zyxel NBG 460N/550N/550NH Routers.
MFLAGS=-wr
V_Profile_AP96_Description=     Package set optimized for the Atheros AP96 reference board.
V_Profile_OPENMESH_Description= Build images for all OpenMesh products.
V_Profile_TLWA7510_Description= Package set optimized for the TP-LINK TL-WA7510N.
V_Profile_DIR825C1_Description= Package set optimized for the D-Link DIR-825 rev. C1.
IS_TTY=1
V_Profile_WLAEAG300N_Description=       Package set optimized for the Buffalo WLAE-AG300N
V_Profile_TLWR1041_Description= Package set optimized for the TP-LINK TL-WR1041N/ND.
MAIL=/var/spool/mail/openwrt
V_Profile_Default_Description=  Default package set compatible with most boards.
V_Profile_DIR615C1_Config=
V_Profile_TLWR703_Config=
V_Profile_TLWR1043_Config=
PATH=/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin:/openwrt/staging_dir/host/bin:/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin:/openwrt/staging_dir/host/bin:/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin:/openwrt/staging_dir/host/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
V_Profile_MR600_Config=
V_Profile_AP81_Description=     Package set optimized for the Atheros AP81 reference board.
V_Profile_WNDR4300_Config=
TOPDIR=/openwrt
V_Profile_WPE72_Description=    Package set optimized for the Compex WPE72 boards including Compex WPE72NX Indoor Access Point.
V_Profile_TLWR743_Description=  Package set optimized for the TP-LINK TL-WR743N/ND.
_=/bin/env
V_Profile_TLWR740_Description=  Package set optimized for the TP-LINK TL-WR740N/ND.
V_Profile_UBNTUNIFIOUTDOOR_Description= Package set optimized for the Ubiquiti UniFiAP Outdoor.
HOSTCC_NOCACHE=gcc
V_Profile_ZCN1523H28_Config=
V_Profile_AP83_Description=     Package set optimized for the Atheros AP83 reference board.
V_Profile_AP121MINI_Config=
INPUTRC=/etc/inputrc
PWD=/openwrt/toolchain/kernel-headers
V_Profile_A02RBW300N_Description=       Package set optimized for the Atlantis-Land A02-RB-W300N.
V_Profile_UBNTRSPRO_Description=        Package set optimized for the Ubiquiti RouterStation Pro.
V_Profile_TLWA801_Config=
V_Profile_WNDR4300_Description= Package set optimized for the NETGEAR WNDR4300
STAGING_PREFIX=/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2
V_Profile_WRT160NL_Config=
V_Profile_TLMR3020_Config=
V_Profile_ALFANX_Config=
V_Profile_TLWR842_Config=
LANG=C
V_Profile_WHRHPGN_Description=  Package set optimized for the Buffalo WHR-HP-GN.
PKG_CONFIG_LIBDIR=/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/pkgconfig
V_Profile_TLWA701_Description=  Package set optimized for the TP-LINK TL-WA701N/ND.
V_Profile_TLMR3040_Description= Package set optimized for the TP-LINK TL-MR3040.
V_Profile_WLAEAG300N_Config=
V_Profile_DIR825C1_Config=
OPENWRT_BUILD=1
V_Profile_PB42_Description=     Package set optimized for the Atheros PB42 reference board.
V_Profile_OPENMESH_Config=
V_Profile_TLWA7510_Config=
V_Profile_ALL0305_Description=  Package set optimized for the Allnet ALL0305.
V_Profile_OM2P_Config=
V_Profile_PB44_Description=     Package set optimized for the Atheros PB44 reference board.
V_Profile_JA76PF2_Config=
V_Profile_TLWR841_Config=
V_Profile_UBDEV01_Config=
V_Profile_JWAP003_Description=  Package set optimized for the jjPlus JWAP003 board.
V_Profile_TLWR741_Config=
NO_TRACE_MAKE=make V=ss
V_Profile_WPE72_Config=
V_Profile_TLWR743_Config=
V_Profile_AP132_Description=    Package set optimized for the Atheros AP132 reference board.
V_Profile_AP81_Config=
BUILD_VARIANT=
V_Profile_JA76PF_Description=   Package set optimized for the jjPlus JA76PF board.
V_Profile_AP135_Description=    Package set optimized for the Atheros AP135 reference board.
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
MAKE_JOBSERVER=
V_Profile_Minimal_Description=  Minimal package set compatible with most boards.
V_Profile_WP543_Description=    Package set optimized for the Compex WP543/WPJ543 boards.
V_Profile_TLWDR4300_Config=
V_Profile_DIR615E4_Config=
V_Profile_ZCN1523H516_Config=
V_Profile_CAP4200AG_Config=
SHLVL=5
HOME=/openwrt
V_Profile_WRT400N_Description=  Package set optimized for the Linksys WRT400N.
V_Profile_TEW712BR_Config=
V_Profile_TEW673GRU_Config=
V_Profile_TEW652BRP_Description=        Package set optimized for the TRENDNet TEW-652BRP.
V_Profile_UAPPRO_Description=   Package set optimized for the Ubiquiti UniFi AP Pro.
GREP_OPTIONS=
V_Profile_DIR825B1_Description= Package set optimized for the D-Link DIR-825 rev. B1.
V_Profile_ath5k_Description=    Package set compatible with hardware using Atheros 802.11abg cards.
CFLAGS=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely
DYLD_LIBRARY_PATH=/lib
V_Profile_ALL0315N_Config=
V_Profile_DIR601A1_Description= Package set optimized for the D-Link DIR-601 rev. A1.
V_Profile_UBNTUNIFI_Config=
STAGING_DIR=/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2
LOGNAME=openwrt
V_Profile_DIR615C1_Description= Package set optimized for the D-Link DIR-615 rev. C1.
GCC_HONOUR_COPTS=s
V_Profile_TLWR703_Description=  Package set optimized for the TP-LINK TL-WR703N.
V_Profile_MR600_Description=        Package set optimized for the OpenMesh MR600.
V_Profile_TLWR1043_Description= Package set optimized for the TP-LINK TL-WR1043N/ND.
CVS_RSH=ssh
QTLIB=/usr/lib/qt-3.3/lib
TARGET_CXX_NOCACHE=mips-openwrt-linux-uclibc-g++
V_Profile_TEW632BRP_Description=        Package set optimized for the TRENDNet TEW-632BRP.
V_Profile_AP136_Description=    Package set optimized for the Atheros AP136 reference board.
SSH_CONNECTION=202.179.64.99 54802 202.179.64.25 22
V_Profile_ALL0258N_Config=
V_Profile_UBNTRS_Config=
V_Profile_UBNT_Description=     Build images for all Ubiquiti products (including LS-SR71, RouterStation and RouterStation Pro)
PKG_CONFIG_PATH=/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/pkgconfig
V_Profile_WHRHPG300N_Description=       Package set optimized for the Buffalo WHR-HP-G300N
V_Profile_DB120_Description=    Package set optimized for the Atheros DB120 reference board.
OPENWRTVERSION=Barrier Breaker (r35501)
V_Profile_AP121_Config=
LESSOPEN=|/usr/bin/lesspipe.sh %s
PKG_CONFIG=/openwrt/staging_dir/host/bin/pkg-config
V_Profile_DIR600A1_Config=
HOST_EXTRACFLAGS=
FIND=/usr/bin/find
V_Profile_AP121_Description=    Package set optimized for the Atheros AP121 reference board.
V_Profile_UBNTRS_Description=   Package set optimized for the Ubiquiti RouterStation.
V_Profile_ALL0258N_Description= Package set optimized for the Allnet ALL0258N.
V_Profile_ALFAAP96_Config=
V_Profile_MZKW300NH_Config=
V_Profile_TLWR2543_Description= Package set optimized for the TP-LINK TL-WR2543N/ND.
V_Profile_WRT400N_Config=
V_Profile_RW2458N_Description=  Package set optimized for the Redwave RW2458N board.
V_Profile_WHRG301N_Description= Package set optimized for the Buffalo WHR-G301N.
V_Profile_WZRHPAG300H_Description=      Package set optimized for the Buffalo WZR-HP-AG300H
V_Profile_MZKW04NU_Description= Package set optimized for the Planex MZK-W04NU.
V_Profile_TLMR11U_Config=
G_BROKEN_FILENAMES=1
V_Profile_AP113_Config=
V_Profile_TLWA901_Description=  Package set optimized for the TP-LINK TL-WA901N/ND.
V_Profile_TLMR3420_Config=
V_Profile_WZRHPG450H_Description=       Package set optimized for the Buffalo WZR-HP-G450H
V_Profile_A02RBW300N_Config=
V_Profile_UBNTRSPRO_Config=
V_Profile_WNDR3700_Description= Package set optimized for the NETGEAR WNDR3700/WNDR3800/WNDRMAC
yes '' | make -C /openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.6 HOSTCFLAGS="-O2 -I/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" ARCH=mips CC="mips-openwrt-linux-uclibc-gcc" CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" CROSS_COMPILE=mips-openwrt-linux-uclibc- KBUILD_HAVE_NLS=no CONFIG_SHELL=/bin/bash oldconfig
make[4]: Entering directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.6'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
make[4]: Leaving directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.6'
mkdir -p /openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev
make -C /openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.6 HOSTCFLAGS="-O2 -I/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" ARCH=mips CC="mips-openwrt-linux-uclibc-gcc" CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" CROSS_COMPILE=mips-openwrt-linux-uclibc- KBUILD_HAVE_NLS=no CONFIG_SHELL=/bin/bash INSTALL_HDR_PATH="/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev/" headers_install
make[4]: Entering directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.6'
  CHK     include/generated/uapi/linux/version.h
make[6]: execvp: /bin/sh: Argument list too long
make[6]: *** [/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev//include/linux/.install] Error 127
make[5]: *** [linux] Error 2
make[4]: *** [headers_install] Error 2
make[4]: Leaving directory `/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.6'
make[3]: *** [/openwrt/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.7.6/.configured] Error 2
make[3]: Leaving directory `/openwrt/toolchain/kernel-headers'
make[2]: *** [toolchain/kernel-headers/compile] Error 2
make[2]: Leaving directory `/openwrt'
make[1]: *** [/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/openwrt'
make: *** [world] Error 2
-bash-3.1$

Any suggestion.

comment:5 Changed 5 years ago by k@…

I am experiencing the same problems in r35819.

Changed 5 years ago by k@…

Patch for OpenWrt r35953.

comment:6 Changed 5 years ago by k@…

I have attached a patch for this issue that is based on this commit:

http://git.yoctoproject.org/cgit.cgi/poky/diff/?id=53cc748b93e8af584557d6db5309c3e955182c5c&id2=5371d96686718b98e6f006c083b5d1177cb1196b

This patch fixes the problem for me as it uses xargs to make sure that maximum argument size is not exceeded.

comment:7 Changed 5 years ago by drkhosla@…

Thanks k@. It works for me for r35956. I think it should be committed to trunk and ticket should be closed.

comment:8 Changed 5 years ago by amain <lightworker78@…>

Ran into the same issue today in r37035 building TARGET_ar71xx_generic_WNDR3700. Above patch works fine. It be nice if the patch could be committed. Thanks.

Changed 4 years ago by drkhosla@…

Fix for r37729 kernel header install error

Changed 4 years ago by drkhosla@…

Fix for r37729 kernel header install error

comment:9 Changed 4 years ago by drkhosla@…

Kernel Header compilation problem again crop up in r37729. Two attached patches solve the problem.

comment:10 Changed 4 years ago by amain <amain@…>

Thanks again, above 2 patches indeed fix building path lenght problems again.

comment:11 Changed 4 years ago by mail@…

Any updates on this? I ran into the same issues building trunk for brcm47xx, the 2 provided patches fixed the issue.

Any reasons not to merge them to trunk?

comment:12 Changed 4 years ago by 4glitch@…

Strangely I have no problem with r38987 for ar71xx.

comment:13 Changed 4 years ago by amain <amain@…>

r38998 fixes some generic execvp: /bin/sh: Argument list too long issues

comment:14 Changed 4 years ago by anonymous

It depends on the length of the pathname of the openwrt dir, and it is still present in r39000 if the pathname is long enough.
to test:
svn -r39000 export svn://svn.openwrt.org/openwrt/trunk looooooooooooooooong_dir

make the name long enough and the build will fail.
(Unfortunately the auto-build system we use for different architectures is prone to create deep directory hierarchies and thus long names - not unreasonably long ones though)

comment:15 Changed 3 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.