César Raúl Mamani Choquehuanca |
Hello all !
I'm trying to build eLua for LM3S8962 but i have error, the all result is this: cesar@cesar-laptop:~/elua/trunk$ scons board=EK-LM3S8962 prog scons: Reading SConscript files ... ********************************* Compiling eLua ... CPU: LM3S8962 Board: EK-LM3S8962 Platform: lm3s Allocator: newlib Target: fplua Toolchain: arm-gcc ********************************* Building filesystem... Encoded file bisect.lua (646 bytes) Encoded file hangman.lua (3750 bytes) Encoded file index.pht (1654 bytes) Encoded file lhttpd.lua (3911 bytes) Encoded file test.lua (137 bytes) Encoded file pong.lua (2605 bytes) Encoded file LM3S.lua (357 bytes) Encoded file led.lua (997 bytes) Encoded file piano.lua (2948 bytes) Encoded file pwmled.lua (634 bytes) Encoded file tvbgone.lua (1739 bytes) Encoded file codes.bin (7780 bytes) Encoded file hello.lua (23 bytes) Encoded file info.lua (134 bytes) Encoded file morse.lua (3449 bytes) Encoded file adcscope.lua (1308 bytes) Encoded file adcpoll.lua (1090 bytes) Done, total size is 33373 bytes scons: done reading SConscript files. scons: Building targets ... arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/main.c -o src/main.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/romfs.c -o src/romfs.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/xmodem.c -o src/xmodem.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/shell.c -o src/shell.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/term.c -o src/term.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/common.c -o src/common.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/buf.c -o src/buf.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/elua_adc.c -o src/elua_adc.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/dlmalloc.c -o src/dlmalloc.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/salloc.c -o src/salloc.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/startup_gcc.c -o src/platform/lm3s/startup_gcc.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/platform.c -o src/platform/lm3s/platform.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/usart.c -o src/platform/lm3s/usart.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/sysctl.c -o src/platform/lm3s/sysctl.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/gpio.c -o src/platform/lm3s/gpio.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/ssi.c -o src/platform/lm3s/ssi.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/timer.c -o src/platform/lm3s/timer.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/pwm.c -o src/platform/lm3s/pwm.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/ethernet.c -o src/platform/lm3s/ethernet.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/systick.c -o src/platform/lm3s/systick.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/flash.c -o src/platform/lm3s/flash.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/interrupt.c -o src/platform/lm3s/interrupt.o arm-elf-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc -Iinc/newlib -Isrc/lua -Isrc/modules -Isrc/platform/lm3s -Isrc/uip -ffunction-sections -fdata-sections -DELUA_CPU=LM3S8962 -DELUA_BOARD=EK-LM3S8962 -DELUA_PLATFORM=LM3S -D__BUFSIZ__=128 -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S8962 -Dgcc -Wall -c src/platform/lm3s/cpu.c -o src/platform/lm3s/cpu.o /tmp/ccFk0R3v.s: Assembler messages: /tmp/ccFk0R3v.s:15: Error: syntax error -- `mrs r0,PRIMASK' /tmp/ccFk0R3v.s:33: Error: syntax error -- `mrs r0,PRIMASK' scons: *** [src/platform/lm3s/cpu.o] Error 1 scons: building terminated because of errors. cesar@cesar-laptop:~/elua/trunk$ Can u help me? plz Best regards -- César R. Mamani Ch. Estudante da Mestrado Pontificia Universidade Catolica Rio da Janeiro - Gavea _______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Hi,
What version of binutils are you using? In other words, what's the output of this command: $ arm-elf-ld --version Best, Bogdan On Thu, Apr 2, 2009 at 11:48 PM, César Raúl Mamani Choquehuanca <[hidden email]> wrote: Hello all ! _______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Dado Sutter |
As César could not build the toolchain from the site instructions (I think it was before the last update), his toolchains are "transplants" of mine :) meaning that I've sent him a tar from my /usr/local/cross-arm and /usr/local/cross-cortex.
He has installed build-essential and the other receipt packages (scons, python, .......). /bin from both toolchan folders are in his PATH. So, his bin utils must be the same as mine (which may be a previous version but builds flawlesly) dado@laptop:~$ arm-elf-ld --version GNU ld (GNU Binutils) 2.19.50.20081007 Copyright 2007 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. dado@laptop:~$ Best Dado On Fri, Apr 3, 2009 at 05:03, Bogdan Marinescu <[hidden email]> wrote: Hi, _______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
That's certainly weird. Let's wait for his report though. 2.19.50 should be able to assemble M3 code just fine.
Best, Bogdan On Fri, Apr 3, 2009 at 1:22 PM, Dado Sutter <[hidden email]> wrote: As César could not build the toolchain from the site instructions (I think it was before the last update), his toolchains are "transplants" of mine :) meaning that I've sent him a tar from my /usr/local/cross-arm and /usr/local/cross-cortex. _______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Dado Sutter |
My guess is that there is some other package missing but I can't figure out which.
Some obviously required packages were not in our receipt (like build-essential) and I don't know if the build scripts put something elsewhere of /usr/local/....... But the reported error doesn't seem to be related to this neither. Best Dado On Fri, Apr 3, 2009 at 07:29, Bogdan Marinescu <[hidden email]> wrote: That's certainly weird. Let's wait for his report though. 2.19.50 should be able to assemble M3 code just fine. _______________________________________________ Elua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |