Re: Compilation error on lj_ir.c. Cannot understand it.

  • From: Nelson Lombardo <nelson.lombardo@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 12 Nov 2014 19:34:59 -0300

I had the same problem, solution:

make CFLAGS=-DLUAJIT_NO_EXP2 CFLAGS+=-DLUAJIT_NO_LOG2

Regards


On Wed, Nov 12, 2014 at 3:17 PM, marcelo nicolet <marcelo.nicolet@xxxxxxxxx>
wrote:

> I'm compiling in a Debian 7 32 bits environment, with an ARM toolchain.
> All went ok (except some warnings regarding log2 and exp2 declarations)
> until it stopped with
>
> lj_ir.c:62: error: 'exp2' undeclared here (not in a function)
> lj_ir.c:62: error: 'log2' undeclared here (not in a function)
> make: *** [lj_ir.o] Error 1
>
> The lines surrounding the 62th are
>
> /* C call info for CALL* instructions. */
> LJ_DATADEF const CCallInfo lj_ir_callinfo[] = {
> #define IRCALLCI(cond, name, nargs, kind, type, flags) \
> { (ASMFunction)IRCALLCOND_##cond(name), \
> (nargs)|(CCI_CALL_##kind)|(IRT_##type<<CCI_OTSHIFT)|(flags) },
> IRCALLDEF(IRCALLCI)
> #undef IRCALLCI
> { NULL, 0 }
> };
>
> Cannot find some relation between the compiler error and the offending
> line.
>
> TIA
>
> Marcelo
>
>
>


-- 
Best Regards / Saludos cordiales,
Nelson G. Lombardo

CEL: +542994165177

Other related posts: