Comments (7)
hi there! :)
just wild guesses, but i'd try 1st "make clean" (you will know if thats unreasonable), try it wothout "-C src" or maybe the math lib cant be found ... but it can be anything, just these came into my mind in the hope of getting a fast solution... maybe u could try the very same sources on a debian based distro or other luajit versions to close out some possibilities, otherwise i dont think that an old host will be an issue as luajit is c99, so i think its not running forward to break any compatibility...
good luck! :)
from luajit2.
gcc on CentOS 5.x IIRC does not default to c99, so you might need to add -std=c99 or -std=gnu99 to XCFLAGS.
from luajit2.
@szbnwer @siddhesh
Thank everyone very much.
I succeed after added XCFLAGS+= -std=gnu99
in luajit2-2.1-20190302/src/Makefile
.
But, it had warning messages.
Is this ok?
...
lj_snap.c: In function ‘snap_restoredata’:
lj_snap.c:695: warning: dereferencing type-punned pointer will break strict-aliasing rules
lj_snap.c:706: warning: dereferencing type-punned pointer will break strict-aliasing rules
lj_snap.c: In function ‘snap_restoredata’:
lj_snap.c:695: warning: dereferencing type-punned pointer will break strict-aliasing rules
lj_snap.c:706: warning: dereferencing type-punned pointer will break strict-aliasing rules
...
from luajit2.
i think thats like a missing casting. actually i havent gone so far now that deep in reading the sources of luajit, and (currently) i only use the official 2.0.4. if others on the same branch have the same warning, then probably u can ignore it, but it can even trigger rare bugs or whatever (not as that would be special to warnings actually... :D ) in the one hand u can run the tests (dunno if theres an openresty fork for it, but if not, then ull find them in the official repo of luajit); on the other hand, u can look around where the warnings say so, and try to find mistakes in the source or find a way to trigger that function, and see if it works...
i think its purely beneficial to know more about the internals, once cuz the great knowledge in it, and cuz there are only a few ppl around luajit who have really good understanding about it, and some of them already taking it to their own directions. so whenever the world would burn in flames, its best to be able to rely on urself. :D luajit already having hard times, but hopefully far from being lost in time and space, just as well, i dont think that openresty will become abandonware any time soon... :)
from luajit2.
btw whats ur reason to use make -C src
instead of make
in the root directory? otherwise u can set variables from command line like make XCFLAGS= -std=gnu99
(if i write it correctly) so u wont make a legacy installer for urself :) (and dont forget about make clean
before compiling it again, if you would like to play with it...)
from luajit2.
CentOS 5 reached its end of life more than 2 years ago:
https://www.centosblog.com/centos-eol-dates/
We have no reason to support it on our side either.
from luajit2.
If one insists, he can still use a newer version of the gcc toolchain on such old systems to build without upgrading glibc.
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.