luajit build error on mipsel?

  • From: pulleyzzz_gmail <pulleyzzz@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 30 Aug 2012 12:26:57 +0800

use the git version:
system is openwrt.

info:

pulleyzzz@pulleyzzzwrt:~/luajit-2.0$ make HOST_CC="gcc -m32" 
CROSS=/home/pulleyzzz/openwrt/openwrt-dreambox/staging_dir/toolchain-mipsel_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin/mipsel-openwrt-linux-
==== Building LuaJIT 2.0.0-beta10 ====
make -C src
make[1]: Entering directory `/home/pulleyzzz/luajit-2.0/src'
CC        lj_dispatch.o
lj_dispatch.c:43: error: 'trunc' undeclared here (not in a function)
make[1]: *** [lj_dispatch.o] Error 1
make[1]: Leaving directory `/home/pulleyzzz/luajit-2.0/src'
make: *** [default] Error 2
pulleyzzz@pulleyzzzwrt:~/luajit-2.0$ 


gcc version info :

pulleyzzz@pulleyzzzwrt:~/luajit-2.0$ 
/home/pulleyzzz/openwrt/openwrt-dreambox/staging_dir/toolchain-mipsel_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin/mipsel-openwrt-linux-gcc
 -v
Using built-in specs.
Target: mipsel-openwrt-linux-uclibc
Configured with: 
/home/pulleyzzz/openwrt/openwrt-dreambox/build_dir/toolchain-mipsel_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3/configure
 
--prefix=/home/pulleyzzz/openwrt/openwrt-dreambox/staging_dir/toolchain-mipsel_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr
 --build=i686-linux-gnu --host=i686-linux-gnu 
--target=mipsel-openwrt-linux-uclibc --with-gnu-ld --enable-target-optspace 
--disable-libgomp --disable-libmudflap --disable-multilib --disable-nls 
--with-float=soft --enable-poison-system-directories 
--with-gmp=/home/pulleyzzz/openwrt/openwrt-dreambox/staging_dir/host 
--with-mpfr=/home/pulleyzzz/openwrt/openwrt-dreambox/staging_dir/host 
--disable-decimal-float --disable-libssp --disable-__cxa_atexit 
--enable-languages=c,c++ --enable-shared --enable-threads 
--with-slibdir=/home/pulleyzzz/openwrt/openwrt-dreambox/staging_dir/toolchain-mipsel_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib
 --disable-tls
Thread model: posix
gcc version 4.3.3 (GCC) 

Other related posts: