Comments (5)
I've tried to add -DLUAJIT_ENABLE_LUA52COMPAT
, as sugested in #87, but result is the same.
from luajit2.
@amdei I copied your shell commands and ran them on a relatively clean Debian buster x86_64 system on my side and could not reproduce the test failure you are seeing:
$ /opt/luajit21/bin/luajit test/ffi/ffi_bit64.lua; echo $?
0
Will you run that ffi_bit64.lua
file separately like above on your side?
I also tried your build flags and the same git tag (v2.1-20200102
) on my Fedora 28 x86_64 sysetm and could not reproduce any test failures at all.
BTW, you need to set LUA52=1
env when running ./run-tests
. But it should be irrelevant to the ffi_bit64.lua
failure you are seeing.
I guess there may be something strange in your system environment. Not sure. You'll need to dig into that assertion failure with tools like gdb on your side. Too little information is currently known.
from luajit2.
BTW, i'm also using the default gcc in Debian 10:
$ gcc --version
gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
from luajit2.
@agentzh Thanks a lot for a prompt reply!
Seems you're right - something was wrong with my system...
Tried with other two different fresh and clean Debian 9&10 VMs.
Unable to reproduce issue on them with the script from my initial message either.
At the same time, when I try to specify LUA52
on tests run:
LUA52=1 ./run-tests -j 1 /opt/luajit21
it fails 7 other tests.
Tried to specify LUA52=1
on compile time too:
export LUAJIT_XCFLAGS="$LUAJIT_COMMON_XCFLAGS" LUA52=1
with much better result - all test has passed!
So, one need to specify LUA52=1
on compile time, and everything will be Ok. :-)
from luajit2.
BTW, after adding of LUA52=1
to my initial sript:
export LUAJIT_XCFLAGS="$LUAJIT_COMMON_XCFLAGS" LUA52=1
all test has passed on machine, where they failed in the first place.
So, complete "working for me" example is the following:
export LUAJIT_COMMON_XCFLAGS="-DLUAJIT_ENABLE_LUA52COMPAT -DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_NUMMODE=2 -msse4.2 -O1"
export LUAJIT_XCFLAGS="$LUAJIT_COMMON_XCFLAGS" LUA52=1
make -j `nproc` PREFIX=$LUAJIT_PREFIX XCFLAGS="$LUAJIT_XCFLAGS"
make install PREFIX=$LUAJIT_PREFIX
from luajit2.
Related Issues (20)
- iterate over non-empty table got empty HOT 3
- loongarch64, lj_arch.h:73:2: error: #error "No support for this architecture (yet)" HOT 3
- Tests failing for ppc64le HOT 4
- unexpected index -1 comes up when copy a table with only one element HOT 9
- hash_128_above can only cover half string for hash compute HOT 1
- Failed to start The OpenResty Application Platform. HOT 1
- fails to build for iOS simulator
- Versioning info confusion.
- error: “bad light userdata pointer” On AArch64 when Enable Memory Tagging Extension feature
- arm64 luajit loop cpu nearly 100% in lua_resume function,same code run in x86 is ok HOT 3
- 编译后静态库体积大 HOT 2
- please, when will the latest luajit repository be merged?
- openresty CPU single core 100% ( profiling luajit table rehash) HOT 1
- lj_ccall.c:1192:5: error: use of undeclared identifier 'CCALL_MAXSTACK'
- nogc bggc feature for luajit2 HOT 1
- ppc64le support HOT 4
- cmake support HOT 1
- Can OpenResty1. 25.3.1 support compilation and installation of LoongArch? HOT 1
- Shared dictionary cannot retrieve stale data HOT 4
- luajit default allocator does not respect alignment requirements in all cases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luajit2.