lua-users home
lua-l archive

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


On Sun, 27 Jun 2010 23:26:27 +0200, Gilles Ganault
<gilles.ganault@free.fr> wrote:
>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:

I noticed something else: When running "make" directly in
/usr/src/uClinux-dist/user/lua/, it fails the first time, but
apparenty compiles OK if I re-run "make" a second time:

============
/usr/src/uClinux-dist/user/lua# make
make \
                -C lua-5.1.4 \
                INSTALL_TOP=/usr \
                PLAT=generic \
                CC=cc \
                AR="ar rcu" \
                RANLIB= \
                MYLIBS=""
make[1]: Entering directory `/usr/src/uClinux-dist/user/lua/lua-5.1.4'
cd src && make generic
make[2]: Entering directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
make all MYCFLAGS=
make[3]: Entering directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
cc -O2 -Wall    -c -o lapi.o lapi.c
cc -O2 -Wall    -c -o lcode.o lcode.c
cc -O2 -Wall    -c -o ldebug.o ldebug.c
cc -O2 -Wall    -c -o ldo.o ldo.c
cc -O2 -Wall    -c -o ldump.o ldump.c
cc -O2 -Wall    -c -o lfunc.o lfunc.c
cc -O2 -Wall    -c -o lgc.o lgc.c
cc -O2 -Wall    -c -o llex.o llex.c
cc -O2 -Wall    -c -o lmem.o lmem.c
cc -O2 -Wall    -c -o lobject.o lobject.c
cc -O2 -Wall    -c -o lopcodes.o lopcodes.c
cc -O2 -Wall    -c -o lparser.o lparser.c
cc -O2 -Wall    -c -o lstate.o lstate.c
cc -O2 -Wall    -c -o lstring.o lstring.c
cc -O2 -Wall    -c -o ltable.o ltable.c
cc -O2 -Wall    -c -o ltm.o ltm.c
cc -O2 -Wall    -c -o lundump.o lundump.c
cc -O2 -Wall    -c -o lvm.o lvm.c
cc -O2 -Wall    -c -o lzio.o lzio.c
cc -O2 -Wall    -c -o lauxlib.o lauxlib.c
cc -O2 -Wall    -c -o lbaselib.o lbaselib.c
cc -O2 -Wall    -c -o ldblib.o ldblib.c
cc -O2 -Wall    -c -o liolib.o liolib.c
cc -O2 -Wall    -c -o lmathlib.o lmathlib.c
cc -O2 -Wall    -c -o loslib.o loslib.c
cc -O2 -Wall    -c -o ltablib.o ltablib.c
cc -O2 -Wall    -c -o lstrlib.o lstrlib.c
cc -O2 -Wall    -c -o loadlib.o loadlib.c
cc -O2 -Wall    -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
liblua.a
make[3]: liblua.a: Command not found
make[3]: *** [liblua.a] Error 127
make[3]: Leaving directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
make[2]: *** [generic] Error 2
make[2]: Leaving directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
make[1]: *** [generic] Error 2
make[1]: Leaving directory `/usr/src/uClinux-dist/user/lua/lua-5.1.4'
make: *** [all] Error 2

============

/usr/src/uClinux-dist/user/lua# make
make \
                -C lua-5.1.4 \
                INSTALL_TOP=/usr \
                PLAT=generic \
                CC=cc \
                AR="ar rcu" \
                RANLIB= \
                MYLIBS=""
make[1]: Entering directory `/usr/src/uClinux-dist/user/lua/lua-5.1.4'
cd src && make generic
make[2]: Entering directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
make all MYCFLAGS=
make[3]: Entering directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
cc -O2 -Wall    -c -o lua.o lua.c
cc -o lua  lua.o liblua.a -lm 
liblua.a(loslib.o): In function `os_tmpname':
loslib.c:(.text+0x51): warning: the use of `tmpnam' is dangerous,
better use `mkstemp'
cc -O2 -Wall    -c -o luac.o luac.c
cc -O2 -Wall    -c -o print.o print.c
cc -o luac  luac.o print.o liblua.a -lm 
make[3]: Leaving directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
make[2]: Leaving directory
`/usr/src/uClinux-dist/user/lua/lua-5.1.4/src'
make[1]: Leaving directory `/usr/src/uClinux-dist/user/lua/lua-5.1.4'
/usr/src/uClinux-dist/user/lua# 
============

Weird :-/