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)
- 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
- luajit vs luajit2 HOT 2
- Cmake support like tarantools and github action for auto testing?
- How do I use the tests in the t directory?
- Illegal instruction (core dumped) error when running LuaJIT on qemu-system-s390x HOT 1
- which version is stable version? HOT 1
- Cannot compile luajit while using ISO C standards. HOT 1
- make
- How to correctly install luajit2 for ubuntu? Is there an installation document provided
- Some test fails on Linux Debian 12 (amd64|arm64) with v2.1-20240626
- errors durring building HOT 3
- luaL_ref() has risks to allocate duplicated id
- bug: Strings in luajit are infinitely bloated, even if they are not rereferenced in the lua vm
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.