Need help to build toolchain

5 posts / 0 new
Last post
Stephen
Stephen's picture
Need help to build toolchain

I am using FC10, linux kernel 2.6.18 & gcc version 4.1.2

I followed the instructions in README.txt. But when I run ./build_tools.sh in the directory org/tools-src/, I faced the following problem. Can anyone help me to fix it? Thanks!

BUILD_DIR=/home/bo/netgear/org/tools-src
LINUX_DIR=/home/bo/netgear/org/tools-src/../release/src/linux/linux
INSTALL_DIR=/opt/brcm/hndtools-mipsel-linux-3.2.3
GNU=/home/bo/netgear/org/tools-src/gnu
Building gnutools: Tue Jul  7 01:13:52 PDT 2009
Doing binutils: Tue Jul  7 01:13:52 PDT 2009
Configure of binutils succeeded.
Build of binutils succeeded.
Install of binutils succeeded.
Static library copy succeeded.
Doing xgcc: Tue Jul  7 01:16:05 PDT 2009
Configure of xgcc succeeded.
MAKE OF XGCC FAILED, 2

 

achilles
achilles's picture
Please have a look at the

Please have a look at the following thread :
http://www.myopenrouter.com/forum/thread/10208/Stil-Can-t-get-a-good-bui...

Please take the steps as specified in the above mentioned thread ...

Stephen
Stephen's picture
I follow the steps in the

I follow the steps in the thread http://www.myopenrouter.com/forum/thread/10208/Stil-Can-t-get-a-good-bui...
But I still got exactly the same problem with the thread opener. How should I figure this out?

Stephen
Stephen's picture
I am compiling wgr614v8-v1.1

I am compiling wgr614v8-v1.1.1_1.0.20. But I compiled toolchain first and met this problem. I am using FC10, linux kernel 2.6.18 & gcc version 4.1.2.
The README.txt in tools-src said:
To make the GNU toolchain
o cd to ../release/src/router
o make menuconfig
save defaults and return
o Get back to the tools-src directory and run
build_tools.sh

When I run make menuconfig in ../org/src/router
I got:
make -C config
make[1]: Entering directory `/home/bo/netgear/org/src/router/config'
gcc -I/usr/include/ncurses -DCURSES_LOC="" -I. -c mconf.c -o mconf.o
mconf.c:93: error: static declaration of ‘current_menu’ follows non-static declaration
lkc.h:59: error: previous declaration of ‘current_menu’ was here
make[1]: *** [mconf.o] Error 1
make[1]: Leaving directory `/home/bo/netgear/org/src/router/config'
make: *** [mconf] Error 2

And when I run ./build_tools.sh, the log ',xgcc-build.log' shows:
........
/home/bo/netgear/org/tools-src/gnu/gcc/gcc/read-rtl.c: In function ‘fatal_withile_and_line’:
/home/bo/netgear/org/tools-src/gnu/gcc/gcc/read-rtl.c:62: warning: traditional C rejects ISO C style function definitions
/home/bo/netgear/org/tools-src/gnu/gcc/gcc/read-rtl.c: In function ‘read_rtx’:
d as increment operandools-src/gnu/gcc/gcc/read-rtl.c:662: error: lvalue requiregmake[1]: *** [read-rtl.o] Error 1
gmake[1]: Leaving directory `/home/bo/netgear/org/tools-src/obj/xgcc/gcc'
gmake: *** [all-gcc] Error 2

So I got exactly the same problem with hrlevy in the link above, but he didn't say whether he has figure it out.

Stephen
Stephen's picture
Why should I config ..

Why should I config ../release/src/router/ first? Is the toolchain stand-alone? I wanna build toolchain first. Besides, is there any obligation of how to put the codes together? Actually, tools-src/../release/ doesn't exist.
My codes are put like this:
wgr614 code: netgear/org/src/router
toolchain code: netgear/org/tools netgear/org/tools-src

To make the GNU toolchain
o cd to ../release/src/router
o make menuconfig
save defaults and return
o Get back to the tools-src directory and run
build_tools.sh