lixuewei / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

Update toolchain gcc to 4.8.2? Is it possible and/or feasible? #1132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Wondering if it would be possible or feasible to update the toolchain to gcc 
4.8.2? There have been some optimizations for mips since 4.4.7, especially in 
4.8.2 http://gcc.gnu.org/gcc-4.8/changes.html

Also, I see 4.5.4 is in the git repository, but all the firmeares come out 
compiled with 4.4.7. What is the reason for this?

Thank you

Original issue reported on code.google.com by moonman...@gmail.com on 22 Jan 2014 at 9:15

GoogleCodeExporter commented 9 years ago
The given changes require long testing because introduced many changes in 
project. You can do it yourself. ;)

Original comment by Dr.Sydorenko.O on 2 Feb 2014 at 4:50

GoogleCodeExporter commented 9 years ago
Been trying to get it to work for the past several days. Patched kernel for the 
new toolchain. 1 error down. But now libdisk won't compile with the following 
error: 

/root/rt-n56u/toolchain-rt3883/toolchain-3.4.x/bin/mipsel-linux-uclibc-ld 
-shared -o libdisk.so usb_info.o disk_io_tools.o disk_initial.o disk_share.o 
disk_swap.o /root/rt-n56u/trunk/user/shared/shutils.o
/root/rt-n56u/toolchain-rt3883/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc 
-mips32r2 -march=mips32r2 -Os -fomit-frame-pointer -pipe  -Dlinux -D__linux__ 
-Dunix -DEMBED -I/root/rt-n56u/trunk/stage/include -Wall -Wno-trigraphs 
-Wno-strict-aliasing -Wno-pointer-sign -DBOARD_N56U -DBOARD_RAM_SIZE=128 -fPIC 
-I. -I/root/rt-n56u/trunk/user/shared -I/root/rt-n56u/trunk/user/shared/include 
  -c -o test_share.o test_share.c
/root/rt-n56u/toolchain-rt3883/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc 
-mips32r2 -march=mips32r2 -Os -fomit-frame-pointer -pipe  -Dlinux -D__linux__ 
-Dunix -DEMBED -I/root/rt-n56u/trunk/stage/include -Wall -Wno-trigraphs 
-Wno-strict-aliasing -Wno-pointer-sign -DBOARD_N56U -DBOARD_RAM_SIZE=128 -fPIC 
-I. -I/root/rt-n56u/trunk/user/shared -I/root/rt-n56u/trunk/user/shared/include 
-L/root/rt-n56u/trunk/user/shared -lshared -o test_share test_share.o libdisk.so
/root/rt-n56u/toolchain-rt3883/toolchain-3.4.x/lib/gcc/mipsel-linux-uclibc/4.8.2
/../../../../mipsel-linux-uclibc/bin/ld: test_share: hidden symbol `__udivdi3' 
in 
/root/rt-n56u/toolchain-rt3883/toolchain-3.4.x/lib/gcc/mipsel-linux-uclibc/4.8.2
/libgcc.a(_udivdi3.o) is referenced by DSO
/root/rt-n56u/toolchain-rt3883/toolchain-3.4.x/lib/gcc/mipsel-linux-uclibc/4.8.2
/../../../../mipsel-linux-uclibc/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [test_share] Error 1
make[2]: Leaving directory `/root/rt-n56u/trunk/user/libdisk'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rt-n56u/trunk/user'
make: *** [user_only] Error 2

If anybody can help, I would appreciate.

Original comment by moonman...@gmail.com on 10 Mar 2014 at 10:50

GoogleCodeExporter commented 9 years ago
Ok, so I couldn't get passt this problem, but gcc 4.7.3 seems to be working 
just fine.

https://github.com/moonman/rt-n56u

Original comment by moonman...@gmail.com on 15 Mar 2014 at 10:59