Stil Can't get a good build for WGR614v8 code

10 posts / 0 new
Last post
hrlevy
Stil Can't get a good build for WGR614v8 code

For the 4th time I tried to build this code.

First I did a full clean install of Fedora 8.

Then I added in the additional "compat-8" stuff.

Again down-loaded the 2 modules from the Netget web site.

Again I tried to follow instuctions to the letter.

In step 5 of "build the toolchain" says to

" Please read the "README.TXT" files in each directory, and follow the insctructions to build the target code."

the readme file in "tools-src"  

under  "To make the GNU toolchain" 

says to:

 o cd to ../release/src/router
 o make menuconfig

 this fails with

    .......... 

    gcc  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -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 `/netgear/bcm5354/src/router/config'

the next step

o Get back to the tools-src directory and run
   build_tools.sh
 

fails with

    ............

    Install of binutils succeeded.
    Static library copy succeeded.
    Doing xgcc: Wed Feb 27 20:00:31 EST 2008
    Configure of xgcc succeeded.   
    MAKE OF XGCC FAILED, 2

looking at the ",xgcc-build.log" shows 

      ..................
    /netgear/toolchain/tools-src/gnu/gcc/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
    /netgear/toolchain/tools-src/gnu/gcc/gcc/read-rtl.c:62: warning: traditional C rejects ISO C style function definitions
    /netgear/toolchain/tools-src/gnu/gcc/gcc/read-rtl.c: In function ‘read_rtx’:
    /netgear/toolchain/tools-src/gnu/gcc/gcc/read-rtl.c:662: error: invalid lvalue in increment
    gmake[1]: *** [read-rtl.o] Error 1
    gmake[1]: Leaving directory `/netgear/toolchain/tools-src/obj/xgcc/gcc'
    gmake: *** [all-gcc] Error 2

Continuing on the build process fails at the last step because it can not execute "TRX". to create the final image.

I need some help in trying to get a clean build

It would be nice if Netgear actually tested this out before just dumping it on the web.

I sure that their developers use it succesfully on their platforms, but

How do you install it on a new system????

Thank you

Howad R. Levy 

- input

Nachi
Looks like the trx binary in

Looks like the trx binary in Netgear's source code is an x86_64 executable and possibly the reason why it is failing on many systems. Realized that trx utility from another router is in my path and I guess that's why I don't face this issue. But I have never really tried to build the toolchain source. Using the toolchains on FC8 without a problem so far.

Please download the trx.zip from the project area and unzip it and copy the resulting excutable to bcm5354/tools directory.

I guess this should solve the problem - let me know if there are any more issues.

Nachi

hrlevy
please be more specfic as to

please be more specfic as to where to find the trx.zip file.

I take it from you message that if I use the x86 64 bit ver of fc 8 this should all work.

can you please either post your trx on the site or e-mail it directly to me @[email protected]

thank you

Peter Redmer
Hello hrlevy!

Hello hrlevy!

The download has now been posted and is available in our "Projects" download section, or by clicking here. 

Thanks for coming to the site, we hope you enjoy your stay.

Pete 

Nachi
There is delay between when a

There is delay between when a file is posted on the projects area and the time it appears for download. The file will be available there soon.

Stephen
I got exactly the same

I got exactly the same problem with hrlevy! But has hrlevy already solve this problem? I downloaded trx.zip and copy the resulting excutable to bcm5354/tools directory. But the problem remains the same! Could anybody help me? Or anybody can give me a link of a clean toolchain that can be built successfully?

achilles
I have build the toolchain in

I have build the toolchain in FC6 and there was no problem ...
May be u r using a different version of gcc or there may be some other similar issue ...

Stephen
Could you please tell me your

Could you please tell me your gcc version and linux version? I will try to find another machine to compile the toolchain.

achilles
My gcc version is :

My gcc version is :
gcc (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)
and the linux version that I am using is : 2.6.18-1.2798.fc6
U can try the build in this environment and let me know ...

Stephen
I have tried on gcc 4.3.2 and

I have tried on gcc 4.3.2 and gcc 3.4.6. But the error remains the same.
When I run ./build_tools.sh in tools-src/ directory, the error is:
/home/bo/netgear/org/tools-src/gnu/gcc/gcc/read-rtl.c: In function read_trx()
/home/bo/netgear/org/tools-src/gnu/gcc/gcc/read-rtl.c:662: error: lvalue required as increment operand
gmake[1]: *** [read-rtl.o] Error 1
gmake[1]: Leaving directory `/home/bo/netgear/org/tools-src/obj/xgcc/gcc'
gmake: *** [all-gcc] Error 2

The error in read-rtl.c:662 is because line 426 in the file tools-src/gnu/gcc/include/obstack.h
*((void **)__o->next_free)++ = ((void *)datum);
This line seems OK. I don't know why there is the error: lvalue required as increment operand
Could anyone help?