lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello

The most recent release of the uClinux-dist (2009R1.1-RC4) contains
"lua", so I enabled this option through "make menuconfig", followed by
"make single" (to avoid mixing output from two cores), but it fails
compiling Lua 5.1.4:

=======================
[...]
[ ! -d "lua" ] || ( touch lua/.sgbuilt_user && make -C lua ) || exit
$?
make[4]: Entering directory `/usr/src/uClinux-dist/user/lua'
make \
                -C lua-5.1.4 \
                INSTALL_TOP=/usr \
                PLAT=generic \
                CC=bfin-uclinux-gcc \
                AR="bfin-uclinux-ar rcu" \
                RANLIB=bfin-uclinux-ranlib \
                MYLIBS=""
make[5]: Entering directory `/usr/src/uClinux-dist/user/lua/lua-5.1.4'
cd src && make generic
make[6]: Entering directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
make all MYCFLAGS=
make[7]: Entering directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
bfin-uclinux-gcc -o lua  lua.o liblua.a -lm 
lua.o: In function `_report':
lua.c:(.text+0x80): undefined reference to `_lua_type'
lua.c:(.text+0x8e): undefined reference to `_lua_tolstring'
lua.c:(.text+0xb2): undefined reference to `_lua_settop'
lua.o: In function `_main':
lua.c:(.text+0xcc): undefined reference to `_luaL_newstate'
lua.c:(.text+0xe6): undefined reference to `_lua_cpcall'
lua.c:(.text+0xf6): undefined reference to `_lua_close'
lua.o: In function `_docall':
lua.c:(.text+0x13a): undefined reference to `_lua_gettop'
lua.c:(.text+0x14c): undefined reference to `_lua_pushcclosure'
lua.c:(.text+0x154): undefined reference to `_lua_insert'
lua.c:(.text+0x178): undefined reference to `_lua_pcall'
lua.c:(.text+0x18a): undefined reference to `_lua_remove'
lua.c:(.text+0x198): undefined reference to `_lua_gc'
lua.o: In function `_dostring':
lua.c:(.text+0x1c4): undefined reference to `_luaL_loadbuffer'
lua.o: In function `_laction':
lua.c:(.text+0x218): undefined reference to `_lua_sethook'
lua.o: In function `_lstop':
lua.c:(.text+0x234): undefined reference to `_lua_sethook'
lua.c:(.text+0x248): undefined reference to `_luaL_error'
lua.o: In function `_traceback':
lua.c:(.text+0x258): undefined reference to `_lua_isstring'
lua.c:(.text+0x278): undefined reference to `_lua_getfield'
lua.c:(.text+0x280): undefined reference to `_lua_type'
lua.c:(.text+0x28e): undefined reference to `_lua_settop'
lua.c:(.text+0x2a8): undefined reference to `_lua_getfield'
lua.c:(.text+0x2b0): undefined reference to `_lua_type'
lua.c:(.text+0x2be): undefined reference to `_lua_settop'
lua.c:(.text+0x2c8): undefined reference to `_lua_pushvalue'
lua.c:(.text+0x2d0): undefined reference to `_lua_pushinteger'
lua.c:(.text+0x2da): undefined reference to `_lua_call'
lua.o: In function `_dofile':
lua.c:(.text+0x2ea): undefined reference to `_luaL_loadfile'
lua.o: In function `_pushline':
lua.c:(.text+0x342): undefined reference to `_lua_getfield'
lua.c:(.text+0x34c): undefined reference to `_lua_tolstring'
lua.c:(.text+0x362): undefined reference to `_lua_settop'
lua.c:(.text+0x3b4): undefined reference to `_lua_pushstring'
lua.c:(.text+0x3ea): undefined reference to `_lua_pushfstring'
lua.o: In function `_dotty':
lua.c:(.text+0x42a): undefined reference to `_lua_settop'
lua.c:(.text+0x44a): undefined reference to `_lua_tolstring'
lua.c:(.text+0x468): undefined reference to `_lua_settop'
lua.c:(.text+0x484): undefined reference to `_lua_pushlstring'
lua.c:(.text+0x48c): undefined reference to `_lua_insert'
lua.c:(.text+0x494): undefined reference to `_lua_concat'
lua.c:(.text+0x49e): undefined reference to `_lua_tolstring'
lua.c:(.text+0x4a8): undefined reference to `_lua_objlen'
lua.c:(.text+0x4b8): undefined reference to `_luaL_loadbuffer'
lua.c:(.text+0x4c6): undefined reference to `_lua_remove'
lua.c:(.text+0x4ec): undefined reference to `_lua_gettop'
lua.c:(.text+0x502): undefined reference to `_lua_getfield'
lua.c:(.text+0x50a): undefined reference to `_lua_insert'
lua.c:(.text+0x510): undefined reference to `_lua_gettop'
lua.c:(.text+0x522): undefined reference to `_lua_pcall'
lua.c:(.text+0x536): undefined reference to `_lua_tolstring'
lua.c:(.text+0x546): undefined reference to `_lua_pushfstring'
lua.c:(.text+0x560): undefined reference to `_lua_settop'
lua.c:(.text+0x580): undefined reference to `_lua_remove'
lua.o: In function `_pmain':
lua.c:(.text+0x598): undefined reference to `_lua_touserdata'
lua.c:(.text+0x5c4): undefined reference to `_lua_gc'
lua.c:(.text+0x5ca): undefined reference to `_luaL_openlibs'
lua.c:(.text+0x5d4): undefined reference to `_lua_gc'
lua.c:(.text+0x7c2): undefined reference to `_lua_getfield'
lua.c:(.text+0x7ca): undefined reference to `_lua_pushstring'
lua.c:(.text+0x822): undefined reference to `_luaL_checkstack'
lua.c:(.text+0x83a): undefined reference to `_lua_pushstring'
lua.c:(.text+0x84c): undefined reference to `_lua_createtable'
lua.c:(.text+0x860): undefined reference to `_lua_pushstring'
lua.c:(.text+0x86c): undefined reference to `_lua_rawseti'
lua.c:(.text+0x884): undefined reference to `_lua_setfield'
lua.c:(.text+0x8a6): undefined reference to `_luaL_loadfile'
lua.c:(.text+0x8b8): undefined reference to `_lua_insert'
lua.c:(.text+0x922): undefined reference to `_lua_settop'
collect2: ld returned 1 exit status
make[7]: *** [lua] Error 1
=======================

Has someone successfully compiled Lua 5.1.4 on uClinux-dist for the
Blackfin CPU? Any idea what could be causing this error?

I assume no one has really used Lua on that platform and figured I had
more chance of asking here instead.

Thank you.