Found the problem;  It had to do with the depth of the path I was trying to
build in.
Moving the tree to a shallower depth and builds complie with no problem.

So, looking at the log again- I should have looked higher in the log:
149 c-4.6-linaro_uClibc-0.9.33.2/linux-dev//include/linux/.install] Error
127
    150 make[5]: *** [linux] Error 2
    151 make[4]: *** [headers_install] Error 2
    152 make[3]: ***
[/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/build_dir/toolchain-mips_r2_gc
   152 c-4.6-linaro_uClibc-0.9.33.2/linux-3.8.12/.configured] Error 2
    153 make[2]: *** [toolchain/kernel-headers/compile] Error 2


Looking more carefully around there..
camdenl@camdenl:~/Downloads$ grep "too long" build.log  -C 10
checking whether to use NLS... no
checking for aclocal... aclocal
checking for autoconf... autoconf
  INSTALL include/linux/usb (10 files)
checking for autoheader... autoheader
checking for gettimeofday... configure: updating cache ./config.cache
configure: creating ./config.status
yes
yes
checking for memchr...   INSTALL include/linux/wimax (1 file)
checking for index... make[6]: execvp: /bin/sh: Argument list too long
make[6]: ***
[/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/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
`/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.8.12'
make[3]: ***
[/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/linux-3.8.12/.configured]
Error 2
make[3]: Leaving directory
`/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/toolchain/kernel-headers'
make[2]: *** [toolchain/kernel-headers/compile] Error 2
make[2]: *** Waiting for unfinished jobs....
Configuring in ./intl
yes


This was on line :24820 out of 29951 of the log.

Found it because of finding the 'Error 2' in
https://dev.openwrt.org/ticket/12907
and just guessing that it had to do with the length of the path.





On Mon, May 20, 2013 at 3:37 PM, camden lindsay <
[email protected]> wrote:

> Thank you Jonas-
> I sent another email including the full build log, but i _think_ it was
> never ok'd by administrators due to its length.
>
> Just to be sure, my script for cleaning does this;  perhaps something is
> wrong here?
> #!/bin/bash
> svn co svn://svn.openwrt.org/openwrt/trunk/ && cd trunk
> scripts/feeds update -a
> scripts/feeds install -a
> make clean
> make target/linux/clean
> make dirclean
> make toolchain/kernel-headers/clean
>
> During the same build i followed the 'Spotting build errors' instructions
> in the wiki, redirecting stderr to stdout and teeing into a file.
>
> I don't see anything other than what I originally posted that looks like
> an error, but perhaps it is my unskilled eyes?
>
> Here are the last 50 lines containing 'error'
>  camdenl@xenbuntu:~$ grep -i ERROR build.log | tail -30
> x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -O2  -I. -I./../include  -W
> -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
>  ./xstrerror.c -o xstrerror.o
> echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o
> ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dwarfnames.o
> ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o
> ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o
> ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o
> ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o
> ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o
> ./pex-unix.o ./safe-ctype.o ./simple-object.o ./simple-object-coff.o
> ./simple-object-elf.o ./simple-object-mach-o.o ./sort.o ./spaces.o
> ./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o
> ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o
> ./xstrdup.o ./xstrerror.o ./xstrndup.o > required-list
> checking for library containing strerror... if [ x"" != x ]; then \
>   ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o
> ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dwarfnames.o
> ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o
> ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o
> ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o
> ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o
> ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o
> ./pex-unix.o ./safe-ctype.o ./simple-object.o ./simple-object-coff.o
> ./simple-object-elf.o ./simple-object-mach-o.o ./sort.o ./spaces.o
> ./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o
> ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o
> ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./setproctitle.o
>     ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o
> ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dwarfnames.o
> ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o
> ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o
> ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o
> ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o
> ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o
> ./pex-unix.o ./safe-ctype.o ./simple-object.o ./simple-object-coff.o
> ./simple-object-elf.o ./simple-object-mach-o.o ./sort.o ./spaces.o
> ./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o
> ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o
> ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./setproctitle.o; \
> checking for library containing strerror... checking sys/param.h
> usability... none required
>   x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H   -I. -I./../include  -W
> -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
> ./strerror.c -o pic/strerror.o; \
> x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H   -I. -I./../include  -W -Wall
> -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./strerror.c -o
> strerror.o
>   x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H   -I. -I./../include  -W
> -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
> ./xstrerror.c -o pic/xstrerror.o; \
> x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H   -I. -I./../include  -W -Wall
> -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./xstrerror.c
> -o xstrerror.o
> checking for lseek... echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o
> ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o
> ./crc32.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o
> ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o
> ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o
> ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o
> ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o
> ./pex-unix.o ./safe-ctype.o ./simple-object.o ./simple-object-coff.o
> ./simple-object-elf.o ./simple-object-mach-o.o ./sort.o ./spaces.o
> ./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o
> ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o
> ./xstrdup.o ./xstrerror.o ./xstrndup.o > required-list
> checking for library containing strerror... yes
>   ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o
> ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dyn-string.o
> ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o
> ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o
> ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o
> ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o
> ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o
> ./simple-object.o ./simple-object-coff.o ./simple-object-elf.o
> ./simple-object-mach-o.o ./sort.o ./spaces.o ./splay-tree.o ./stack-limit.o
> ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o
> ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o
>  ./setproctitle.o
>     ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o
> ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dyn-string.o
> ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o
> ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o
> ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o
> ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o
> ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o
> ./simple-object.o ./simple-object-coff.o ./simple-object-elf.o
> ./simple-object-mach-o.o ./sort.o ./spaces.o ./splay-tree.o ./stack-limit.o
> ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o
> ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o
>  ./setproctitle.o; \
> configure: running /bin/sh ./configure --disable-option-checking
> '--prefix=/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2'
>  '--with-system-zlib' '--disable-werror' '--disable-nls' '--without-uiout'
> '--disable-tui' '--disable-gdbtk' '--without-x'
> '--without-included-gettext' '--enable-threads'
> '--program-transform-name=s&^&mips-openwrt-linux-uclibc-&'
> '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
> '--target=mips-openwrt-linux-uclibc' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'target_alias=mips-openwrt-linux-uclibc'
> 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-O2' 'LDFLAGS= '
> --cache-file=.././config.cache --srcdir=.
> configure: running /bin/sh ./configure --disable-option-checking
> '--prefix=/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2'
>  '--with-system-zlib' '--disable-werror' '--disable-nls' '--without-uiout'
> '--disable-tui' '--disable-gdbtk' '--without-x'
> '--without-included-gettext' '--enable-threads'
> '--program-transform-name=s&^&mips-openwrt-linux-uclibc-&'
> '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
> '--target=mips-openwrt-linux-uclibc' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'target_alias=mips-openwrt-linux-uclibc'
> 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-O2' 'LDFLAGS= '
> --cache-file=.././config.cache --srcdir=.
> configure: running /bin/sh ./configure --disable-option-checking
> '--prefix=/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2'
>  '--with-system-zlib' '--disable-werror' '--disable-nls' '--without-uiout'
> '--disable-tui' '--disable-gdbtk' '--without-x'
> '--without-included-gettext' '--enable-threads'
> '--program-transform-name=s&^&mips-openwrt-linux-uclibc-&'
> '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
> '--target=mips-openwrt-linux-uclibc' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'target_alias=mips-openwrt-linux-uclibc'
> 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-O2' 'LDFLAGS= '
> --cache-file=.././config.cache --srcdir=.
> configure: running /bin/sh ./configure --disable-option-checking
> '--prefix=/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2'
>  '--with-system-zlib' '--disable-werror' '--disable-nls' '--without-uiout'
> '--disable-tui' '--disable-gdbtk' '--without-x'
> '--without-included-gettext' '--enable-threads'
> '--program-transform-name=s&^&mips-openwrt-linux-uclibc-&'
> '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
> '--target=mips-openwrt-linux-uclibc' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'target_alias=mips-openwrt-linux-uclibc'
> 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-O2' 'LDFLAGS= '
> --cache-file=.././config.cache --srcdir=.
> configure: running /bin/sh .././gnulib/configure --disable-option-checking
> '--prefix=/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2'
>  '--with-system-zlib' '--disable-werror' '--disable-nls' '--without-uiout'
> '--disable-tui' '--disable-gdbtk' '--without-x'
> '--without-included-gettext' '--enable-threads'
> '--program-transform-name=s&^&mips-openwrt-linux-uclibc-&'
> '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
> '--target=mips-openwrt-linux-uclibc' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'target_alias=mips-openwrt-linux-uclibc'
> 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-O2' 'LDFLAGS= ' 'MAKEINFO=makeinfo
> --split-size=5000000' 'YACC=bison -y' --cache-file=./config.cache
> --srcdir=.././gnulib
> checking whether strerror_r is declared without a macro... yes
> checking whether strerror is declared... yes
> -Werror \
>   -W error \
>       -e 's/@''GNULIB_STRERROR''@/0/g' \
>       -e 's/@''GNULIB_STRERROR_R''@/0/g' \
>       -e 's|@''HAVE_DECL_STRERROR_R''@|1|g' \
>       -e 's|@''REPLACE_STRERROR''@|0|g' \
>       -e 's|@''REPLACE_STRERROR_R''@|0|g' \
> make[1]: ***
> [/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/stamp/.toolchain_install]
> Error 2
> make: *** [world] Error 2
>
> Suggestions how else to find an error in 4 megs of text?  I don't see
> anything striking directly before the Error 2.
> Thank you!
>
>
> On Tue, May 14, 2013 at 2:00 AM, Jonas Gorski <[email protected]> wrote:
>
>> On Tue, May 14, 2013 at 8:26 AM, camden lindsay
>> <[email protected]> wrote:
>> > Hello-
>> > I am having build issues.  toolchain_install errors out with 'Error 2'.
>> >
>> > make[3]: Leaving directory
>> >
>> `/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/toolchain/gcc/minimal'
>> > make[2]: Leaving directory
>> >
>> `/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk'
>> > make[1]: ***
>> >
>> [/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/stamp/.toolchain_install]
>> > Error 2
>> > make[1]: Leaving directory
>> >
>> `/mnt/store/public/cjs/Computers_Electronics_Tools/Software/Networking/Routers/openWRT_source/trunk'
>> > make: *** [world] Error 2
>>
>> This error log is meaningless (as well as the error number); you are
>> missing the actual error messages, which should above the lines you
>> posted.
>>
>>
>> Jonas
>> _______________________________________________
>> openwrt-users mailing list
>> [email protected]
>> https://lists.openwrt.org/mailman/listinfo/openwrt-users
>>
>
>
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to