Re: eLua-dev Digest, Vol 26, Issue 14

classic Classic list List threaded Threaded
2 messages Options
Paul Verbeke Paul Verbeke
Reply | Threaded
Open this post in threaded view
|

Re: eLua-dev Digest, Vol 26, Issue 14

Hi Pedro,

Well, after re-installing everything it seems it was a syntax error in one of the files, shell.c, sorry for the bother. I seemed to think it was a scons problem since I had un-installed and cleaned up a bunch of programs. The second issue is still there:

 C:\elua0.7>scons -f cross-lua.py
>
> scons: *** An executable should have exactly one target with the suffix:
> .exe
> File "C:\elua0.7\cross-lua.py", line 22, in <module>

If I am able to use scons to build an image do I need the coss-lua.py??


Thanks,

Paul

On Sun, Sep 12, 2010 at 7:00 AM, <[hidden email]> wrote:
Send eLua-dev mailing list submissions to
       [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.berlios.de/mailman/listinfo/elua-dev
or, via email, send a message with subject or body 'help' to
       [hidden email]

You can reach the person managing the list at
       [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of eLua-dev digest..."


Today's Topics:

  1. Building eLua under windows (Paul Verbeke)
  2. Re: Building eLua under windows (Pedro Bittencourt)


----------------------------------------------------------------------

Message: 1
Date: Sat, 11 Sep 2010 18:54:58 -0300
From: Paul Verbeke <[hidden email]>
To: [hidden email]
Subject: [eLua-dev] Building eLua under windows
Message-ID:
       <[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I was able to build eLua under windows last week. Seems something has
happened since then, and when I try to build now I get the following:

C:\elua0.7>scons board=ek-lm3s6965 toolchain=codesourcery prog
scons: Reading SConscript files ...

*********************************
Compiling eLua ...
CPU:             LM3S6965
Board:           EK-LM3S6965
Platform:        lm3s
Allocator:       newlib
Boot Mode:       standard
Target:          fplua
Toolchain:       codesourcery
ROMFS mode:      verbatim
*********************************

Building ROM File System...
Encoded file bisect.lua (646 bytes)
Encoded file hangman.lua (3378 bytes)
Encoded file pong.lua (10729 bytes)
Encoded file led.lua (1198 bytes)
Encoded file piano.lua (3080 bytes)
Encoded file pwmled.lua (917 bytes)
Encoded file hello.lua (23 bytes)
Encoded file info.lua (134 bytes)
Encoded file morse.lua (3560 bytes)
Encoded file adcscope.lua (2055 bytes)
Encoded file adcpoll.lua (1414 bytes)
Encoded file logo.lua (2679 bytes)
Encoded file logo.bin (2048 bytes)
Encoded file HelloLua.lua (51 bytes)
Encoded file LuaTest.lua (437 bytes)
Encoded file EK-LM3S6965.lua (1276 bytes)
Done, total size is 33832 bytes

scons: done reading SConscript files.
scons: Building targets ...
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc
-Iinc\n
ewlib -Isrc\lua -Isrc\modules -Isrc\platform\lm3s -Isrc\uip -Isrc\fatfs
-ffuncti
on-sections -fdata-sections -DELUA_CPU=LM3S6965 -DELUA_BOARD=EK-LM3S6965
-DELUA_
PLATFORM=LM3S -D__BUFSIZ__=128 -DELUA_CPU_LM3S6965 -DELUA_BOARD_EKLM3S6965
-DELU
A_PLATFORM_LM3S -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S6965 -Dgcc
-Wall
-c src\shell.c -o src\shell.o
src\shell.c:274: error: 'shell_env' undeclared here (not in a function)
scons: *** [src\shell.o] Error 1
scons: building terminated because of errors.

C:\elua0.7>
Also, when I try to build the cross compiler I get:


C:\elua0.7>scons -f cross-lua.py

scons: *** An executable should have exactly one target with the suffix:
.exe
File "C:\elua0.7\cross-lua.py", line 22, in <module>

Any help would be appreciated.

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/elua-dev/attachments/20100911/26f9613c/attachment-0001.html>

------------------------------

Message: 2
Date: Sat, 11 Sep 2010 19:08:55 -0300
From: Pedro Bittencourt <[hidden email]>
To: "eLua Users and Development List (www.eluaproject.net)"
       <[hidden email]>
Subject: Re: [eLua-dev] Building eLua under windows
Message-ID:
       <[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi Paul,

Are using Cygwin or the mingw version of GCC? (don't know if this really
matters to the problem, just to reconstruct the environment here to check it
out).

--Pedro Bittencourt


On Sat, Sep 11, 2010 at 6:54 PM, Paul Verbeke <[hidden email]> wrote:

> Hi,
>
> I was able to build eLua under windows last week. Seems something has
> happened since then, and when I try to build now I get the following:
>
> C:\elua0.7>scons board=ek-lm3s6965 toolchain=codesourcery prog
> scons: Reading SConscript files ...
>
> *********************************
> Compiling eLua ...
> CPU:             LM3S6965
> Board:           EK-LM3S6965
> Platform:        lm3s
> Allocator:       newlib
> Boot Mode:       standard
> Target:          fplua
> Toolchain:       codesourcery
> ROMFS mode:      verbatim
> *********************************
>
> Building ROM File System...
> Encoded file bisect.lua (646 bytes)
> Encoded file hangman.lua (3378 bytes)
> Encoded file pong.lua (10729 bytes)
> Encoded file led.lua (1198 bytes)
> Encoded file piano.lua (3080 bytes)
> Encoded file pwmled.lua (917 bytes)
> Encoded file hello.lua (23 bytes)
> Encoded file info.lua (134 bytes)
> Encoded file morse.lua (3560 bytes)
> Encoded file adcscope.lua (2055 bytes)
> Encoded file adcpoll.lua (1414 bytes)
> Encoded file logo.lua (2679 bytes)
> Encoded file logo.bin (2048 bytes)
> Encoded file HelloLua.lua (51 bytes)
> Encoded file LuaTest.lua (437 bytes)
> Encoded file EK-LM3S6965.lua (1276 bytes)
> Done, total size is 33832 bytes
>
> scons: done reading SConscript files.
> scons: Building targets ...
> arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc
> -Iinc\n
> ewlib -Isrc\lua -Isrc\modules -Isrc\platform\lm3s -Isrc\uip -Isrc\fatfs
> -ffuncti
> on-sections -fdata-sections -DELUA_CPU=LM3S6965 -DELUA_BOARD=EK-LM3S6965
> -DELUA_
> PLATFORM=LM3S -D__BUFSIZ__=128 -DELUA_CPU_LM3S6965 -DELUA_BOARD_EKLM3S6965
> -DELU
> A_PLATFORM_LM3S -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S6965 -Dgcc
> -Wall
> -c src\shell.c -o src\shell.o
> src\shell.c:274: error: 'shell_env' undeclared here (not in a function)
> scons: *** [src\shell.o] Error 1
> scons: building terminated because of errors.
>
> C:\elua0.7>
> Also, when I try to build the cross compiler I get:
>
>
> C:\elua0.7>scons -f cross-lua.py
>
> scons: *** An executable should have exactly one target with the suffix:
> .exe
> File "C:\elua0.7\cross-lua.py", line 22, in <module>
>
> Any help would be appreciated.
>
> Paul
>
>
>
> _______________________________________________
> eLua-dev mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/elua-dev/attachments/20100911/3b6bf466/attachment-0001.html>

------------------------------

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev


End of eLua-dev Digest, Vol 26, Issue 14
****************************************


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: eLua-dev Digest, Vol 26, Issue 14

> The second issue is still there:
>  C:\elua0.7>scons -f cross-lua.py

I just committed a fix for this. Weird, I don't remember it happening
in the past. Anyway, it seems to work now (you still need GCC to
build, of course; I only tested MinGW gcc).

> If I am able to use scons to build an image do I need the coss-lua.py??

No, not really. You just need it if you want to cross-compile your Lua files:

http://www.eluaproject.net/en_arch_romfs.html#mode

Best,
Bogdan

>
> Thanks,
> Paul
>
> On Sun, Sep 12, 2010 at 7:00 AM, <[hidden email]> wrote:
>>
>> Send eLua-dev mailing list submissions to
>>        [hidden email]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        https://lists.berlios.de/mailman/listinfo/elua-dev
>> or, via email, send a message with subject or body 'help' to
>>        [hidden email]
>>
>> You can reach the person managing the list at
>>        [hidden email]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of eLua-dev digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Building eLua under windows (Paul Verbeke)
>>   2. Re: Building eLua under windows (Pedro Bittencourt)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sat, 11 Sep 2010 18:54:58 -0300
>> From: Paul Verbeke <[hidden email]>
>> To: [hidden email]
>> Subject: [eLua-dev] Building eLua under windows
>> Message-ID:
>>        <[hidden email]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi,
>>
>> I was able to build eLua under windows last week. Seems something has
>> happened since then, and when I try to build now I get the following:
>>
>> C:\elua0.7>scons board=ek-lm3s6965 toolchain=codesourcery prog
>> scons: Reading SConscript files ...
>>
>> *********************************
>> Compiling eLua ...
>> CPU:             LM3S6965
>> Board:           EK-LM3S6965
>> Platform:        lm3s
>> Allocator:       newlib
>> Boot Mode:       standard
>> Target:          fplua
>> Toolchain:       codesourcery
>> ROMFS mode:      verbatim
>> *********************************
>>
>> Building ROM File System...
>> Encoded file bisect.lua (646 bytes)
>> Encoded file hangman.lua (3378 bytes)
>> Encoded file pong.lua (10729 bytes)
>> Encoded file led.lua (1198 bytes)
>> Encoded file piano.lua (3080 bytes)
>> Encoded file pwmled.lua (917 bytes)
>> Encoded file hello.lua (23 bytes)
>> Encoded file info.lua (134 bytes)
>> Encoded file morse.lua (3560 bytes)
>> Encoded file adcscope.lua (2055 bytes)
>> Encoded file adcpoll.lua (1414 bytes)
>> Encoded file logo.lua (2679 bytes)
>> Encoded file logo.bin (2048 bytes)
>> Encoded file HelloLua.lua (51 bytes)
>> Encoded file LuaTest.lua (437 bytes)
>> Encoded file EK-LM3S6965.lua (1276 bytes)
>> Done, total size is 33832 bytes
>>
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc
>> -Iinc\n
>> ewlib -Isrc\lua -Isrc\modules -Isrc\platform\lm3s -Isrc\uip -Isrc\fatfs
>> -ffuncti
>> on-sections -fdata-sections -DELUA_CPU=LM3S6965 -DELUA_BOARD=EK-LM3S6965
>> -DELUA_
>> PLATFORM=LM3S -D__BUFSIZ__=128 -DELUA_CPU_LM3S6965 -DELUA_BOARD_EKLM3S6965
>> -DELU
>> A_PLATFORM_LM3S -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S6965 -Dgcc
>> -Wall
>> -c src\shell.c -o src\shell.o
>> src\shell.c:274: error: 'shell_env' undeclared here (not in a function)
>> scons: *** [src\shell.o] Error 1
>> scons: building terminated because of errors.
>>
>> C:\elua0.7>
>> Also, when I try to build the cross compiler I get:
>>
>>
>> C:\elua0.7>scons -f cross-lua.py
>>
>> scons: *** An executable should have exactly one target with the suffix:
>> .exe
>> File "C:\elua0.7\cross-lua.py", line 22, in <module>
>>
>> Any help would be appreciated.
>>
>> Paul
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <https://lists.berlios.de/pipermail/elua-dev/attachments/20100911/26f9613c/attachment-0001.html>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Sat, 11 Sep 2010 19:08:55 -0300
>> From: Pedro Bittencourt <[hidden email]>
>> To: "eLua Users and Development List (www.eluaproject.net)"
>>        <[hidden email]>
>> Subject: Re: [eLua-dev] Building eLua under windows
>> Message-ID:
>>        <[hidden email]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi Paul,
>>
>> Are using Cygwin or the mingw version of GCC? (don't know if this really
>> matters to the problem, just to reconstruct the environment here to check
>> it
>> out).
>>
>> --Pedro Bittencourt
>>
>>
>> On Sat, Sep 11, 2010 at 6:54 PM, Paul Verbeke <[hidden email]> wrote:
>>
>> > Hi,
>> >
>> > I was able to build eLua under windows last week. Seems something has
>> > happened since then, and when I try to build now I get the following:
>> >
>> > C:\elua0.7>scons board=ek-lm3s6965 toolchain=codesourcery prog
>> > scons: Reading SConscript files ...
>> >
>> > *********************************
>> > Compiling eLua ...
>> > CPU:             LM3S6965
>> > Board:           EK-LM3S6965
>> > Platform:        lm3s
>> > Allocator:       newlib
>> > Boot Mode:       standard
>> > Target:          fplua
>> > Toolchain:       codesourcery
>> > ROMFS mode:      verbatim
>> > *********************************
>> >
>> > Building ROM File System...
>> > Encoded file bisect.lua (646 bytes)
>> > Encoded file hangman.lua (3378 bytes)
>> > Encoded file pong.lua (10729 bytes)
>> > Encoded file led.lua (1198 bytes)
>> > Encoded file piano.lua (3080 bytes)
>> > Encoded file pwmled.lua (917 bytes)
>> > Encoded file hello.lua (23 bytes)
>> > Encoded file info.lua (134 bytes)
>> > Encoded file morse.lua (3560 bytes)
>> > Encoded file adcscope.lua (2055 bytes)
>> > Encoded file adcpoll.lua (1414 bytes)
>> > Encoded file logo.lua (2679 bytes)
>> > Encoded file logo.bin (2048 bytes)
>> > Encoded file HelloLua.lua (51 bytes)
>> > Encoded file LuaTest.lua (437 bytes)
>> > Encoded file EK-LM3S6965.lua (1276 bytes)
>> > Done, total size is 33832 bytes
>> >
>> > scons: done reading SConscript files.
>> > scons: Building targets ...
>> > arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Os -fomit-frame-pointer -Iinc
>> > -Iinc\n
>> > ewlib -Isrc\lua -Isrc\modules -Isrc\platform\lm3s -Isrc\uip -Isrc\fatfs
>> > -ffuncti
>> > on-sections -fdata-sections -DELUA_CPU=LM3S6965 -DELUA_BOARD=EK-LM3S6965
>> > -DELUA_
>> > PLATFORM=LM3S -D__BUFSIZ__=128 -DELUA_CPU_LM3S6965
>> > -DELUA_BOARD_EKLM3S6965
>> > -DELU
>> > A_PLATFORM_LM3S -DLUA_OPTIMIZE_MEMORY=2 -DENABLE_DISP -DFORLM3S6965
>> > -Dgcc
>> > -Wall
>> > -c src\shell.c -o src\shell.o
>> > src\shell.c:274: error: 'shell_env' undeclared here (not in a function)
>> > scons: *** [src\shell.o] Error 1
>> > scons: building terminated because of errors.
>> >
>> > C:\elua0.7>
>> > Also, when I try to build the cross compiler I get:
>> >
>> >
>> > C:\elua0.7>scons -f cross-lua.py
>> >
>> > scons: *** An executable should have exactly one target with the suffix:
>> > .exe
>> > File "C:\elua0.7\cross-lua.py", line 22, in <module>
>> >
>> > Any help would be appreciated.
>> >
>> > Paul
>> >
>> >
>> >
>> > _______________________________________________
>> > eLua-dev mailing list
>> > [hidden email]
>> > https://lists.berlios.de/mailman/listinfo/elua-dev
>> >
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <https://lists.berlios.de/pipermail/elua-dev/attachments/20100911/3b6bf466/attachment-0001.html>
>>
>> ------------------------------
>>
>> _______________________________________________
>> eLua-dev mailing list
>> [hidden email]
>> https://lists.berlios.de/mailman/listinfo/elua-dev
>>
>>
>> End of eLua-dev Digest, Vol 26, Issue 14
>> ****************************************
>
>
> _______________________________________________
> eLua-dev mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev