[ECOS] Redboot compilation for mips

Philippe De Swert philippedeswert@scarlet.be
Fri Dec 17 10:24:00 GMT 2004


Hello,

I do not manage to compile redboot for one of the demo platforms (I do not
need specific support for that target however, as I am trying to find out how
easily it compiles, size etc... before eventually porting it to a new board).

After the configuration with ecosconfig I get the following error during the
build. (same for atlas_mips32_4kc and malta_mips32_4kc, I tried those two configs)

make -r -C hal/mips/arch/v2_0 build
make[1]: Entering directory `/home/fille/bootloader/build/hal/mips/arch/v2_0'
mipsel-linux-gcc -c -I/home/fille/bootloader/build/install/include
-I/usr/src/ecos/packages/hal/mips/arch/v2_0
-I/usr/src/ecos/packages/hal/mips/arch/v2_0/src
-I/usr/src/ecos/packages/hal/mips/arch/v2_0/tests -I.
-I/usr/src/ecos/packages/hal/mips/arch/v2_0/src/ -mips32 -msoft-float -Wall
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g
-O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority -G0 -Wp,-MD,src/redboot_linux_exec.tmp -o
src/hal_mips_arch_redboot_linux_exec.o
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c
cc1: warning: "-Woverloaded-virtual" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fvtable-gc" is valid for C++ but not for C/ObjC
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c: In
function `do_exec':
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c:98: error:
parse error before numeric constant
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c:104:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c:106:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c:108:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c:114: error:
invalid lvalue in assignment
/usr/src/ecos/packages/hal/mips/arch/v2_0/src/redboot_linux_exec.c:175: error:
called object is not a function
make[1]: *** [src/redboot_linux_exec.o.d] Error 1
make[1]: Leaving directory `/home/fille/bootloader/build/hal/mips/arch/v2_0'
make: *** [build] Error 2

I looked through the bug database but I cannot find a related bug/error
report. The only thing I could dig up out on the mailing list, which could
probabely cause this is the toolchain. Do I really need an mips-elf toolchain
for this (instead of a general mips-linux- one)? The used toolchain compiles
kernel and userland (uClibc, busybox, gdb) fine.

Thank you for helping,

Philippe

| Philippe De Swert -GNU/linux - uClinux freak-
|
| Stag developer http://stag.mind.be/
| Emdebian developer: http://www.emdebian.org
|
| Please do not send me documents in a closed format. (*.doc,*.xls,*.ppt)
| Use the open alternatives. (*.pdf,*.ps,*.html,*.txt)
| Why? http://pallieter.is-a-geek.org:7832/~johan/word/english/    

-------------------------------------------------------
NOTE! My email address is changing to ... @scarlet.be
Please make the necessary changes in your address book. 




--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list