Giter Site home page Giter Site logo

Comments (7)

hippi777 avatar hippi777 commented on July 23, 2024

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.

siddhesh avatar siddhesh commented on July 23, 2024

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.

hongpaging avatar hongpaging commented on July 23, 2024

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

hippi777 avatar hippi777 commented on July 23, 2024

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.

hippi777 avatar hippi777 commented on July 23, 2024

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.

agentzh avatar agentzh commented on July 23, 2024

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.

agentzh avatar agentzh commented on July 23, 2024

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)

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.