[U-Boot] start.S compile error for qemu-mips

Utpal Parrikar utpal.parrikar at gmail.com
Fri Jun 5 23:03:18 CEST 2009


After downloading latest u-boot, I did


make qemu_mips_config
make


after setting CROSS_COMPILE=mipsel-linux-

I get following error: Can someone tell me what I am doing wrong

mipsel-linux-ld -g  -Ttext 0x80200000 -T mips.lds \
                        -o hello_world -e hello_world hello_world.o
libstubs.a \
                        -L/usr/lib/gcc-lib/mipsel-
linux/egcs-2.91.66 -lgcc
mipsel-linux-objcopy -O srec hello_world hello_world.srec 2>/dev/null
mipsel-linux-objcopy -O binary hello_world hello_world.bin 2>/dev/null
make[1]: Leaving directory
`/home/utpal/Desktop/u-boot-2009.03/examples'
make -C api_examples all
make[1]: Entering directory
`/home/utpal/Desktop/u-boot-2009.03/api_examples'
mipsel-linux-ar crv libglue.a
make[1]: Leaving directory
`/home/utpal/Desktop/u-boot-2009.03/api_examples'
make -C cpu/mips start.o
make[1]: Entering directory
`/home/utpal/Desktop/u-boot-2009.03/cpu/mips'
mipsel-linux-gcc: start.o: No such file or directory
mipsel-linux-gcc: unrecognized option `-MQ'
mipsel-linux-gcc: cache.o: No such file or directory
mipsel-linux-gcc: unrecognized option `-MQ'
mipsel-linux-gcc: cpu.o: No such file or directory
mipsel-linux-gcc: unrecognized option `-MQ'
mipsel-linux-gcc: interrupts.o: No such file or directory
mipsel-linux-gcc: unrecognized option `-MQ'
mipsel-linux-gcc  -D__ASSEMBLY__ -g  -Os   -D__KERNEL__
-DTEXT_BASE=0xbfc00000 -I/home/utpal/Desktop/u-boot-2009.03/include
-fno-builtin -ffreestanding -nostdinc -isystem
/usr/lib/gcc-lib/mipsel-linux/egcs-2.91.66/include -pipe
-DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float  -EL -c -o
start.o start.S
start.S: Assembler messages:
start.S:136: Error: illegal operands `li'
start.S:152: Error: illegal operands `li'
start.S:168: Error: illegal operands `li'
start.S:184: Error: illegal operands `li'
start.S:234: Error: illegal operands `mtc0'
start.S:235: Error: illegal operands `mtc0'
start.S:238: Error: illegal operands `mtc0'
start.S:240: Error: illegal operands `mfc0'
start.S:240: Error: illegal operands `or'
start.S:240: Error: illegal operands `xor'
start.S:240: Error: illegal operands `mtc0'
start.S:240: Error: illegal operands `sll'
start.S:243: Error: illegal operands `mtc0'
start.S:244: Error: illegal operands `mtc0'
start.S:248: Error: illegal operands `li'
start.S:249: Error: illegal operands `mtc0'
start.S:258: Error: illegal operands `lw'
start.S:263: Error: illegal operands `la'
start.S:264: Error: illegal operands `jalr'
start.S:269: Error: illegal operands `la'
start.S:270: Error: illegal operands `jalr'
start.S:275: Error: illegal operands `li'
start.S:276: Error: illegal operands `mtc0'
start.S:288: Error: illegal operands `li'
start.S:289: Error: illegal operands `la'
start.S:291: Error: illegal operands `la'
start.S:292: Error: illegal operands `jr'
start.S:308: Error: illegal operands `move'
start.S:310: Error: illegal operands `li'
start.S:311: Error: illegal operands `la'
start.S:312: Error: illegal operands `lw'
start.S:313: Error: illegal operands `move'
start.S:314: Error: illegal operands `move'
start.S:321: Error: illegal operands `move'
start.S:322: Error: illegal operands `sub'
start.S:323: Error: illegal operands `add'
start.S:324: Error: illegal operands `sub'
start.S:335: Error: illegal operands `move'
start.S:336: Error: illegal operands `move'
start.S:337: Error: illegal operands `sub'
start.S:344: Error: illegal operands `lw'
start.S:345: Error: illegal operands `sw'
start.S:346: Error: illegal operands `addu'
start.S:347: Error: illegal operands `ble'
start.S:348: Error: illegal operands `addu'
start.S:355: Error: illegal operands `la'
start.S:356: Error: illegal operands `jalr'
start.S:361: Error: illegal operands `addi'
start.S:362: Error: illegal operands `jr'
start.S:378: Error: illegal operands `lw'
start.S:379: Error: illegal operands `lw'
start.S:380: Error: illegal operands `lw'
start.S:381: Error: illegal operands `sub'
start.S:382: Error: illegal operands `add'
start.S:383: Error: illegal operands `addi'
start.S:384: Error: illegal operands `li'
start.S:386: Error: illegal operands `lw'
start.S:387: Error: illegal operands `beqz'
start.S:388: Error: illegal operands `add'
start.S:389: Error: illegal operands `sw'
start.S:391: Error: illegal operands `addi'
start.S:392: Error: illegal operands `blt'
start.S:393: Error: illegal operands `addi'
start.S:397: Error: illegal operands `lw'
start.S:398: Error: illegal operands `lw'
start.S:399: Error: illegal operands `add'
start.S:400: Error: illegal operands `add'
start.S:402: Error: illegal operands `sub'
start.S:404: Error: illegal operands `addi'
start.S:405: Error: opcode requires -mips2 or greater `bltl'
start.S:406: Error: illegal operands `sw'
start.S:408: Error: illegal operands `move'
start.S:409: Error: illegal operands `la'
start.S:410: Error: illegal operands `jr'
start.S:411: Error: illegal operands `move'
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/home/utpal/Desktop/u-boot-2009.03/cpu/mips'
make: *** [cpu/mips/start.o] Error 2
utpal at linux-nwyv:~/Desktop/u-boot-2009.03>


More information about the U-Boot mailing list