I'm trying to follow "OpenWrt Wiki » Documentation » HOWTOs » Using the SDK" tutorial for build metarrouter ipk package of nano and test it in RB450G.
Tutorial is here:
http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk
1- download and uncompress the openwrt SDK for metarouter architecture: OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32
Download from URL: http://rnd.rajven.net/openwrt/mikrotik/ ... r/mr-mips/
Uncompress in /home/leo/Documentos/openwrt/
Next I type: cd /home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32
2- download package definitions for nano ->OK:
Code: Select all
svn export svn://svn.openwrt.org/openwrt/packages/utils/nano package/nano
Code: Select all
svn export svn://svn.openwrt.org/openwrt/trunk/package/libs/ncurses package/ncurses
Code: Select all
make package/ncurses/compile
Collecting package info: done
Collecting target info: done
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'flex'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'git'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
make[1] package/ncurses/compile
make[2] -C package/ncurses compile
make -r package/ncurses/compile: build failed. Please re-run make with V=99 to see what's going on
make: *** [package/ncurses/compile] Error 1
Code: Select all
make package/ncurses/compile V=99
make[1]: Entering directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32'
make[2]: Entering directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/package/ncurses'
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -msoft-float -fpic -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/include " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -msoft-float -fpic -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/include " LDFLAGS="-L/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/usr/lib -L/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/lib -L/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/usr/lib -L/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/lib " make -j2 -C /home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9/. AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -msoft-float -fpic" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" BUILD_CC="gcc" HOSTCC="gcc" HOSTCCFLAGS="" libs ;
make[3]: Entering directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9'
cd include && make -w --jobserver-fds=3,4 -j -- HOSTCCFLAGS= HOSTCC=gcc BUILD_CC=gcc ARCH=mips CROSS=mips-openwrt-linux-uclibc- SIZE=mips-openwrt-linux-uclibc-size OBJDUMP=mips-openwrt-linux-uclibc-objdump OBJCOPY=mips-openwrt-linux-uclibc-objcopy STRIP=mips-openwrt-linux-uclibc-strip RANLIB=mips-openwrt-linux-uclibc-ranlib CXX=mips-openwrt-linux-uclibc-g++ GCC=mips-openwrt-linux-uclibc-gcc CC=mips-openwrt-linux-uclibc-gcc NM=mips-openwrt-linux-uclibc-nm LD=mips-openwrt-linux-uclibc-ld AS=mips-openwrt-linux-uclibc-gcc\ -c\ -Os\ -pipe\ -mips32\ -mtune=mips32\ -fno-caller-saves\ -fhonour-copts\ -msoft-float\ -fpic AR=mips-openwrt-linux-uclibc-ar DESTDIR="" libs
make[4]: Entering directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9/include'
make[4]: Nothing to be done for `libs'.
make[4]: Leaving directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9/include'
cd ncurses && make -w --jobserver-fds=3,4 -j -- HOSTCCFLAGS= HOSTCC=gcc BUILD_CC=gcc ARCH=mips CROSS=mips-openwrt-linux-uclibc- SIZE=mips-openwrt-linux-uclibc-size OBJDUMP=mips-openwrt-linux-uclibc-objdump OBJCOPY=mips-openwrt-linux-uclibc-objcopy STRIP=mips-openwrt-linux-uclibc-strip RANLIB=mips-openwrt-linux-uclibc-ranlib CXX=mips-openwrt-linux-uclibc-g++ GCC=mips-openwrt-linux-uclibc-gcc CC=mips-openwrt-linux-uclibc-gcc NM=mips-openwrt-linux-uclibc-nm LD=mips-openwrt-linux-uclibc-ld AS=mips-openwrt-linux-uclibc-gcc\ -c\ -Os\ -pipe\ -mips32\ -mtune=mips32\ -fno-caller-saves\ -fhonour-copts\ -msoft-float\ -fpic AR=mips-openwrt-linux-uclibc-ar DESTDIR="" libs
make[4]: Entering directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9/ncurses'
mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I../ncurses -I. -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -I. -I../include -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -msoft-float -fpic --param max-inline-insns-single=1200 -fPIC -c ../ncurses/./tty/hardscroll.c -o ../obj_s/hardscroll.o
mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I../ncurses -I. -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/target-mips_uClibc-0.9.32/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/staging_dir/toolchain-mips_gcc-4.5-linaro_uClibc-0.9.32/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -I. -I../include -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -msoft-float -fpic --param max-inline-insns-single=1200 -fPIC -c ../ncurses/./tty/hashmap.c -o ../obj_s/hashmap.o
In file included from ../ncurses/./tty/hardscroll.c:148:0:
../ncurses/curses.priv.h:886:2: error: expected specifier-qualifier-list before 'NCURSES_SP_OUTC'
../ncurses/curses.priv.h:1129:2: error: expected specifier-qualifier-list before 'NCURSES_SP_OUTC'
In file included from ../ncurses/./tty/hardscroll.c:148:0:
../ncurses/curses.priv.h:1892:63: error: expected declaration specifiers or '...' before 'NCURSES_OUTC'
../ncurses/./tty/hardscroll.c:185:1: error: 'NCURSES_SP_NAME' declared as function returning a function
../ncurses/./tty/hardscroll.c: In function 'NCURSES_SP_NAME':
../ncurses/./tty/hardscroll.c:206:35: error: called object 'NCURSES_SP_NAME(&_nc_hash_map)' is not a function
../ncurses/./tty/hardscroll.c:237:35: error: called object 'NCURSES_SP_NAME(&_nc_scrolln)' is not a function
../ncurses/./tty/hardscroll.c:271:35: error: called object 'NCURSES_SP_NAME(&_nc_scrolln)' is not a function
make[4]: *** [../obj_s/hardscroll.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from ../ncurses/./tty/hashmap.c:70:0:
../ncurses/curses.priv.h:886:2: error: expected specifier-qualifier-list before 'NCURSES_SP_OUTC'
../ncurses/curses.priv.h:1129:2: error: expected specifier-qualifier-list before 'NCURSES_SP_OUTC'
In file included from ../ncurses/./tty/hashmap.c:70:0:
../ncurses/curses.priv.h:1892:63: error: expected declaration specifiers or '...' before 'NCURSES_OUTC'
../ncurses/./tty/hashmap.c:276:1: error: 'NCURSES_SP_NAME' declared as function returning a function
../ncurses/./tty/hashmap.c:415:1: error: 'NCURSES_SP_NAME' declared as function returning a function
../ncurses/./tty/hashmap.c:415:1: error: redefinition of 'NCURSES_SP_NAME'
../ncurses/./tty/hashmap.c:276:1: note: previous definition of 'NCURSES_SP_NAME' was here
../ncurses/./tty/hashmap.c: In function 'NCURSES_SP_NAME':
../ncurses/./tty/hashmap.c:418:19: error: 'i' undeclared (first use in this function)
../ncurses/./tty/hashmap.c:418:19: note: each undeclared identifier is reported only once for each function it appears in
../ncurses/./tty/hashmap.c: At top level:
../ncurses/./tty/hashmap.c:430:1: error: 'NCURSES_SP_NAME' declared as function returning a function
../ncurses/./tty/hashmap.c:430:1: error: redefinition of 'NCURSES_SP_NAME'
../ncurses/./tty/hashmap.c:276:1: note: previous definition of 'NCURSES_SP_NAME' was here
../ncurses/./tty/hashmap.c: In function 'NCURSES_SP_NAME':
../ncurses/./tty/hashmap.c:438:52: error: 'bot' undeclared (first use in this function)
../ncurses/./tty/hashmap.c:438:58: error: 'top' undeclared (first use in this function)
../ncurses/./tty/hashmap.c:438:72: error: 'n' undeclared (first use in this function)
make[4]: *** [../obj_s/hashmap.o] Error 1
make[4]: Leaving directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9/ncurses'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9'
make[2]: *** [/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/build_dir/target-mips_uClibc-0.9.32/libncurses/ncurses-5.9/.built] Error 2
make[2]: Leaving directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32/package/ncurses'
make[1]: *** [package/ncurses/compile] Error 2
make[1]: Leaving directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-mr-mips-for-Linux-i686-gcc-4.5-linaro_uClibc-0.9.32'
make: *** [package/ncurses/compile] Error 2
Only for test, I downloaded ar71xx version of SDK and I repeat the same steps for this.
URL: http://downloads.openwrt.org/attitude_a ... 71xx/nand/
FILE: OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
After uncompress SDK, download the package definitions of nano and ncurses, I tried to compile with "make package/ncurses/compile V=99" and fail in other way:
Code: Select all
leo@leo ~/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2 $ make package/ncurses/compile V=99
Collecting package info: done
Collecting target info: done
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'git'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
make[1]: Entering directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2'
make[2]: Entering directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/package/ncurses'
mkdir -p /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/dl
/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/scripts/download.pl "/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/dl" "ncurses-5.9.tar.gz" "8cb9c412e5f2d96bc6f459aa8c6282a1" "@GNU/ncurses"
--2013-10-08 11:52:44-- ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
=> `-'
Resolving ftp.gnu.org (ftp.gnu.org)... 208.118.235.20, 2001:4830:134:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|208.118.235.20|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /gnu/ncurses ... done.
==> SIZE ncurses-5.9.tar.gz ... 2826473
==> PASV ... done. ==> RETR ncurses-5.9.tar.gz ... done.
Length: 2826473 (2.7M) (unauthoritative)
0K .......... .......... .......... .......... .......... 1% 90.0K 30s
50K .......... .......... .......... .......... .......... 3% 167K 23s
100K .......... .......... .......... .......... .......... 5% 286K 18s
150K .......... .......... .......... .......... .......... 7% 277K 15s
200K .......... .......... .......... .......... .......... 9% 302K 14s
250K .......... .......... .......... .......... .......... 10% 309K 13s
300K .......... .......... .......... .......... .......... 12% 655K 11s
350K .......... .......... .......... .......... .......... 14% 411K 10s
400K .......... .......... .......... .......... .......... 16% 766K 9s
450K .......... .......... .......... .......... .......... 18% 333K 9s
500K .......... .......... .......... .......... .......... 19% 816K 8s
550K .......... .......... .......... .......... .......... 21% 887K 7s
600K .......... .......... .......... .......... .......... 23% 407K 7s
650K .......... .......... .......... .......... .......... 25% 941K 7s
700K .......... .......... .......... .......... .......... 27% 475K 6s
750K .......... .......... .......... .......... .......... 28% 1.18M 6s
800K .......... .......... .......... .......... .......... 30% 642K 6s
850K .......... .......... .......... .......... .......... 32% 708K 5s
900K .......... .......... .......... .......... .......... 34% 1.44M 5s
950K .......... .......... .......... .......... .......... 36% 236K 5s
1000K .......... .......... .......... .......... .......... 38% 140M 5s
1050K .......... .......... .......... .......... .......... 39% 263M 4s
1100K .......... .......... .......... .......... .......... 41% 613K 4s
1150K .......... .......... .......... .......... .......... 43% 1.12M 4s
1200K .......... .......... .......... .......... .......... 45% 316K 4s
1250K .......... .......... .......... .......... .......... 47% 188K 4s
1300K .......... .......... .......... .......... .......... 48% 292K 4s
1350K .......... .......... .......... .......... .......... 50% 277K 4s
1400K .......... .......... .......... .......... .......... 52% 321K 3s
1450K .......... .......... .......... .......... .......... 54% 515K 3s
1500K .......... .......... .......... .......... .......... 56% 560K 3s
1550K .......... .......... .......... .......... .......... 57% 331K 3s
1600K .......... .......... .......... .......... .......... 59% 379K 3s
1650K .......... .......... .......... .......... .......... 61% 475K 3s
1700K .......... .......... .......... .......... .......... 63% 552K 3s
1750K .......... .......... .......... .......... .......... 65% 675K 2s
1800K .......... .......... .......... .......... .......... 67% 718K 2s
1850K .......... .......... .......... .......... .......... 68% 337K 2s
1900K .......... .......... .......... .......... .......... 70% 826K 2s
1950K .......... .......... .......... .......... .......... 72% 1004K 2s
2000K .......... .......... .......... .......... .......... 74% 681K 2s
2050K .......... .......... .......... .......... .......... 76% 481K 2s
2100K .......... .......... .......... .......... .......... 77% 660K 1s
2150K .......... .......... .......... .......... .......... 79% 573K 1s
2200K .......... .......... .......... .......... .......... 81% 1.67M 1s
2250K .......... .......... .......... .......... .......... 83% 487K 1s
2300K .......... .......... .......... .......... .......... 85% 660K 1s
2350K .......... .......... .......... .......... .......... 86% 912K 1s
2400K .......... .......... .......... .......... .......... 88% 737K 1s
2450K .......... .......... .......... .......... .......... 90% 608K 1s
2500K .......... .......... .......... .......... .......... 92% 685K 0s
2550K .......... .......... .......... .......... .......... 94% 543K 0s
2600K .......... .......... .......... .......... .......... 96% 960K 0s
2650K .......... .......... .......... .......... .......... 97% 677K 0s
2700K .......... .......... .......... .......... .......... 99% 1.09M 0s
2750K .......... 100% 2.80M=6.0s
2013-10-08 11:52:53 (460 KB/s) - written to stdout [2826473]
. /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/include/shell.sh; gzip -dc /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/dl/ncurses-5.9.tar.gz | /bin/tar -C /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/.. -xf -
Applying ./patches/100-ncurses-5.6-20080112-urxvt.patch using plaintext:
patching file misc/terminfo.src
Applying ./patches/101-ncurses-5.6-20080628-kbs.patch using plaintext:
patching file misc/terminfo.src
Applying ./patches/200-fix_missing_include.patch using plaintext:
patching file ncurses/curses.priv.h
Hunk #1 succeeded at 55 (offset 1 line).
Applying ./patches/500-cross.patch using plaintext:
patching file aclocal.m4
Hunk #1 succeeded at 5137 with fuzz 2 (offset 839 lines).
Applying ./patches/900-terminfo.patch using plaintext:
patching file misc/terminfo.src
Hunk #1 succeeded at 3947 (offset 240 lines).
touch /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/.prepared_3ff29d8390877387f3ae465f1d81f5e4
(cd /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/./; if [ -x ./configure ]; then /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/host/bin/find /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/ -name config.guess | xargs -r chmod u+w; /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/host/bin/find /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/ -name config.guess | xargs -r -n1 cp /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/scripts/config.guess; /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/host/bin/find /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/ -name config.sub | xargs -r chmod u+w; /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/host/bin/find /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/ -name config.sub | xargs -r -n1 cp /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/scripts/config.sub; AR=mips-openwrt-linux-uclibc-ar AS="ccache_cc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fpic" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="ccache_cc" GCC="ccache_cc" CXX="ccache_cxx" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fpic " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fpic " CPPFLAGS="-I/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib " ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --enable-echo --enable-const --enable-overwrite --disable-rpath --without-ada --without-debug --without-profile --without-progs --disable-big-core --disable-home-terminfo --with-normal --with-shared --with-terminfo-dirs=/usr/share/terminfo --with-default-terminfo-dir=/usr/share/terminfo ; fi; )
configure: loading site script /home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/include/site/mips-openwrt-linux-uclibc
checking for egrep... grep -E
Configuring NCURSES 5.9 ABI 5 (Tue Oct 8 11:52:54 ART 2013)
checking build system type... x86_64-pc-linux-gnu
checking host system type... mips-openwrt-linux-gnu
checking target system type... mips-openwrt-linux-gnu
Configuring for linux-gnu
checking for prefix... /usr
checking for mips-openwrt-linux-gcc... ccache_cc
checking for C compiler default output... configure: error: C compiler cannot create executables
make[2]: *** [/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_r2_uClibc-0.9.33.2/libncurses/ncurses-5.9/.configured_] Error 77
make[2]: Leaving directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/package/ncurses'
make[1]: *** [package/ncurses/compile] Error 2
make[1]: Leaving directory `/home/leo/Documentos/openwrt/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2'
make: *** [package/ncurses/compile] Error 2
Am I doing something wrong?
Any help will be appreciated.