[tlbuild] 2014 builds

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed Mar 19 10:37:51 CET 2014


On Wed, Mar 19, 2014 at 10:14 AM, Peter Breitenlohner wrote:
> On Wed, 19 Mar 2014, Norbert Preining wrote:
>
>> linux-alpha
>> gcc 4.1.2
>> configure: error: Sorry, can not preprocess <lj_arch.h>
>> === configuring in luajit failed
>> make[2]: *** [recurse] Error 1
>
>
>> Checking config.log down there in luajit dir I see:
>> ../../../libs/luajit/LuaJIT-2.0.3/src/lj_arch.h:55:2: error: #error "No
>> support for this architecture (yet)"
>
>
> Hi Norbert,
>
> There is no LuaJIT for alpha.
>
>> Why was this message not sent to stdout or stderr?
>
> Because I don't know how to achieve that.

What about trying to compile the following chunk of code from
lj_arch.h (possibly simplified or possibly trying to compile the whole
file since there are other tests further on) as a test in ./configure
script?

#if defined(__i386) || defined(__i386__) || defined(_M_IX86)
#define LUAJIT_TARGET LUAJIT_ARCH_X86
#elif defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) ||
defined(_M_AMD64)
#define LUAJIT_TARGET LUAJIT_ARCH_X64
#elif defined(__arm__) || defined(__arm) || defined(__ARM__) || defined(__ARM)
#define LUAJIT_TARGET LUAJIT_ARCH_ARM
#elif defined(__ppc__) || defined(__ppc) || defined(__PPC__) ||
defined(__PPC) || defined(__powerpc__) || defined(__powerpc) ||
defined(__POWERPC__) || defined(__POWERPC) || defined(_M_PPC)
#ifdef __NO_FPRS__
#define LUAJIT_TARGET LUAJIT_ARCH_PPCSPE
#else
#define LUAJIT_TARGET LUAJIT_ARCH_PPC
#endif
#elif defined(__mips__) || defined(__mips) || defined(__MIPS__) ||
defined(__MIPS)
#define LUAJIT_TARGET LUAJIT_ARCH_MIPS
#else
#error "No support for this architecture (yet)" #endif

If the compilation fails, simply --disable-luajittex. There are
zillions of attempts to compile different chunks of code as part of
./configure, so why not testing for additional one and spare people
some pain?

That change would make me really happy: people wouldn't need to
bother/remember to switch luajittex compilation off.

Mojca



More information about the tlbuild mailing list