1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
(guyzmo@kaya)-[15:42] % make rtems RTEMS_MAKEFILE_PATH=/opt/rtems-4.11/lm32-rtems4.11/milkymist
make all MYCFLAGS=-DLUA_RTEMS MYLIBS="-lm -B/opt/rtems-4.11/lm32-rtems4.11/milkymist/lib -specs bsp_specs -qrtems"
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lapi.o lapi.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lcode.o lcode.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o ldebug.o ldebug.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o ldo.o ldo.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o ldump.o ldump.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lfunc.o lfunc.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lgc.o lgc.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o llex.o llex.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lmem.o lmem.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lobject.o lobject.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lopcodes.o lopcodes.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lparser.o lparser.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lstate.o lstate.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lstring.o lstring.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o ltable.o ltable.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o ltm.o ltm.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lundump.o lundump.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lvm.o lvm.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lzio.o lzio.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lauxlib.o lauxlib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lbaselib.o lbaselib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o ldblib.o ldblib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o liolib.o liolib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lmathlib.o lmathlib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o loslib.o loslib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o ltablib.o ltablib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lstrlib.o lstrlib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o loadlib.o loadlib.c
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
ranlib: warning for library: liblua.a the table of contents is empty (no object file members in the library define global symbols)
lm32-rtems4.11-gcc -O2 -Wall -DLUA_RTEMS   -c -o lua.o lua.c
lm32-rtems4.11-gcc -o lua  lua.o liblua.a -lm -lm -B/opt/rtems-4.11/lm32-rtems4.11/milkymist/lib -specs bsp_specs -qrtems
lua.o: In function `report':
lua.c:(.text+0xd4): undefined reference to `lua_type'
lua.c:(.text+0xd4): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_type'
lua.c:(.text+0xe8): undefined reference to `lua_tolstring'
lua.c:(.text+0xe8): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_tolstring'
lua.c:(.text+0x10c): undefined reference to `lua_settop'
lua.c:(.text+0x10c): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_settop'
lua.o: In function `docall':
lua.c:(.text+0x158): undefined reference to `lua_gettop'
lua.c:(.text+0x158): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_gettop'
lua.c:(.text+0x170): undefined reference to `lua_pushcclosure'
lua.c:(.text+0x170): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_pushcclosure'
lua.c:(.text+0x17c): undefined reference to `lua_insert'
lua.c:(.text+0x17c): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_insert'
lua.c:(.text+0x1a4): undefined reference to `lua_pcall'
lua.c:(.text+0x1a4): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_pcall'
lua.c:(.text+0x1c0): undefined reference to `lua_remove'
lua.c:(.text+0x1c0): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_remove'
lua.c:(.text+0x1d4): undefined reference to `lua_gc'
lua.c:(.text+0x1d4): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_gc'
lua.o: In function `laction':
lua.c:(.text+0x224): undefined reference to `lua_sethook'
lua.c:(.text+0x224): relocation truncated to fit: R_LM32_CALL against undefined symbol `lua_sethook'
lua.o: In function `lstop':
lua.c:(.text+0x250): undefined reference to `lua_sethook'
lua.c:(.text+0x250): additional relocation overflows omitted from the output
lua.c:(.text+0x260): undefined reference to `luaL_error'
lua.o: In function `traceback':
lua.c:(.text+0x288): undefined reference to `lua_isstring'
lua.c:(.text+0x2b4): undefined reference to `lua_getfield'
lua.c:(.text+0x2c0): undefined reference to `lua_type'
lua.c:(.text+0x2d4): undefined reference to `lua_settop'
lua.c:(.text+0x2fc): undefined reference to `lua_getfield'
lua.c:(.text+0x308): undefined reference to `lua_type'
lua.c:(.text+0x31c): undefined reference to `lua_settop'
lua.c:(.text+0x32c): undefined reference to `lua_pushvalue'
lua.c:(.text+0x338): undefined reference to `lua_pushinteger'
lua.c:(.text+0x348): undefined reference to `lua_call'
lua.o: In function `dostring':
lua.c:(.text+0x384): undefined reference to `luaL_loadbuffer'
lua.o: In function `pushline':
lua.c:(.text+0x400): undefined reference to `lua_getfield'
lua.c:(.text+0x410): undefined reference to `lua_tolstring'
lua.c:(.text+0x428): undefined reference to `lua_settop'
lua.c:(.text+0x490): undefined reference to `lua_pushstring'
lua.c:(.text+0x500): undefined reference to `lua_pushfstring'
lua.o: In function `dotty':
lua.c:(.text+0x590): undefined reference to `lua_settop'
lua.c:(.text+0x5b0): undefined reference to `lua_tolstring'
lua.c:(.text+0x5c0): undefined reference to `lua_objlen'
lua.c:(.text+0x5d4): undefined reference to `luaL_loadbuffer'
lua.c:(.text+0x5e8): undefined reference to `lua_remove'
lua.c:(.text+0x61c): undefined reference to `lua_gettop'
lua.c:(.text+0x630): undefined reference to `lua_getfield'
lua.c:(.text+0x63c): undefined reference to `lua_insert'
lua.c:(.text+0x644): undefined reference to `lua_gettop'
lua.c:(.text+0x658): undefined reference to `lua_pcall'
lua.c:(.text+0x670): undefined reference to `lua_tolstring'
lua.c:(.text+0x680): undefined reference to `lua_pushfstring'
lua.c:(.text+0x6a0): undefined reference to `lua_tolstring'
lua.c:(.text+0x6c8): undefined reference to `lua_remove'
lua.c:(.text+0x6e0): undefined reference to `lua_settop'
lua.c:(.text+0x700): undefined reference to `lua_settop'
lua.c:(.text+0x76c): undefined reference to `lua_settop'
lua.c:(.text+0x78c): undefined reference to `lua_pushlstring'
lua.c:(.text+0x798): undefined reference to `lua_insert'
lua.c:(.text+0x7a4): undefined reference to `lua_concat'
lua.o: In function `pmain':
lua.c:(.text+0x7f4): undefined reference to `lua_touserdata'
lua.c:(.text+0x828): undefined reference to `lua_gc'
lua.c:(.text+0x830): undefined reference to `luaL_openlibs'
lua.c:(.text+0x840): undefined reference to `lua_gc'
lua.c:(.text+0x998): undefined reference to `luaL_loadfile'
lua.c:(.text+0xafc): undefined reference to `luaL_checkstack'
lua.c:(.text+0xb20): undefined reference to `lua_pushstring'
lua.c:(.text+0xb38): undefined reference to `lua_createtable'
lua.c:(.text+0xb58): undefined reference to `lua_pushstring'
lua.c:(.text+0xb68): undefined reference to `lua_rawseti'
lua.c:(.text+0xb88): undefined reference to `lua_setfield'
lua.c:(.text+0xbe4): undefined reference to `luaL_loadfile'
lua.c:(.text+0xbf8): undefined reference to `lua_insert'
lua.c:(.text+0xc08): undefined reference to `lua_settop'
lua.c:(.text+0xc50): undefined reference to `lua_getfield'
lua.c:(.text+0xc5c): undefined reference to `lua_pushstring'
lua.c:(.text+0xd24): undefined reference to `luaL_checkstack'
lua.c:(.text+0xd34): undefined reference to `lua_createtable'
lua.o: In function `main':
lua.c:(.text+0xd5c): undefined reference to `luaL_newstate'
lua.c:(.text+0xd80): undefined reference to `lua_cpcall'
lua.c:(.text+0xd98): undefined reference to `lua_close'
collect2: ld returned 1 exit status
make[1]: *** [lua] Error 1
make: *** [rtems] Error 2
[1]    45454 exit 2     make rtems RTEMS_MAKEFILE_PATH=/opt/rtems-4.11/lm32-rtems4.11/milkymist