Giter Site home page Giter Site logo

Comments (5)

amdei avatar amdei commented on July 4, 2024

I've tried to add -DLUAJIT_ENABLE_LUA52COMPAT, as sugested in #87, but result is the same.

from luajit2.

agentzh avatar agentzh commented on July 4, 2024

@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.

agentzh avatar agentzh commented on July 4, 2024

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.

amdei avatar amdei commented on July 4, 2024

@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.

amdei avatar amdei commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.