Problems building on Centos 5

2 posts / 0 new
Last post
TheGuru
TheGuru's picture
Problems building on Centos 5

I have been trying to build the WGR14L Source Code on Centos 5 and have been running into a few problems.

I have followed the documentation as best as I can tell.  The readme files in the toolchain build get a little confusing, but I think I have them straight now.  I was going through the steps to build the toolchain and ran the build-tools.sh script.  Binutils built ok by xgcc failed at

/root/netgear/tools/TOOLSOURCE_2004_03_31/org/tools-src/gnu/gcc/gcc/read-rtl.c: In function ‘read_rtx’:
/root/netgear/tools/TOOLSOURCE_2004_03_31/org/tools-src/gnu/gcc/gcc/read-rtl.c:662: error: invalid lvalue in increment
gmake[1]: *** [read-rtl.o] Error 1

Googling this led me to discussion about this being a problem compiling GCC with later version of GCC, especially V4.  Which is what Centos 5 has, 4.1.2.  But I booted up a copy of Fedora Core 8 and it has 4.1.2 also, a slightly earlier version.  I have read elsewhere on the forums that Fedora 8 works.

So has anyone built on Centos 5 or know how to overcome this error?

Interstingly enough, when I continue through the build steps, I can actually build a firmware successfullly.  The problem being it won't boot after it is loaded on the router.  I get the following error:

802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 68k freed
Algorithmics/MIPS FPU Emulator v1.5
initKernel panic: Attempted to kill init!
: relocation err or: /lib/libc.so<0>Rebooting in 3 seconds...6: undefined symbol: __register_frame_info
Please stand by while rebooting the system...
Decompressing..........done

Could the undefined symbol be the result of an improperly built toolchain, but with an image file still being produced?

Any help you could provide would be appreciated.

TheGuru
TheGuru's picture
I attemtped a build on Fedora

I attemtped a build on Fedora Core 7 and got the same result. Can anyone describe the process they used to successfully build the Netgear code?