Git Product home page Git Product logo

nelua-decl's People

Contributors

andre-la avatar codehz avatar edubart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nelua-decl's Issues

Compiling gcc-lua in this repository works, but not from the official site. Why?

Compiling gcc-lua in this repository works, but not from the official site. Why? When I make the clone from https://peter.colberg.org/gcc-lua/install I get:

myuser@myuser-HP-EliteBook-8470p:~/dev/gcclua/gcc-lua> make
make[1]: Entering directory '/home/myuser/dev/gcclua/gcc-lua/gcc'
gcc -c -o gcclua.o -I/usr/lib64/gcc/x86_64-suse-linux/11/plugin/include -fPIC -xc++ -O2 -Wall -Wformat-security -I/usr/include/lua5.3 gcclua.c
gcclua.c:62:12: error: ‘namespace_binding’ was not declared in this scope; did you mean ‘namespace_bindings_p’?
62 | __typeof__(namespace_binding) namespace_binding __attribute__((weak));
| ^~~~~~~~~~~~~~~~~
| namespace_bindings_p
gcclua.c: In function ‘int gcclua_tree_get_decl_source_location(lua_State*)’:
gcclua.c:417:7: error: ‘DECL_IS_BUILTIN’ was not declared in this scope; did you mean ‘DEF_LIB_BUILTIN’?
417 | if (DECL_IS_BUILTIN(*t)) {
| ^~~~~~~~~~~~~~~
| DEF_LIB_BUILTIN
gcclua.c: In function ‘int gcclua_tree_get_type_anonymous(lua_State*)’:
gcclua.c:636:22: error: ‘TYPE_ANONYMOUS_P’ was not declared in this scope; did you mean ‘TYPE_ANON_P’?
636 | lua_pushboolean(L, TYPE_ANONYMOUS_P(*t));
| ^~~~~~~~~~~~~~~~
| TYPE_ANON_P
gcclua.c: In function ‘int gcclua_tree_get_type_vector_subparts(lua_State*)’:
gcclua.c:883:41: error: cannot convert ‘poly_uint64’ {aka ‘poly_int<1, long unsigned int>’} to ‘lua_Number’ {aka ‘double’}
883 | lua_pushnumber(L, TYPE_VECTOR_SUBPARTS(*t));
| ~~~~~~~~~~~~~~~~~~~~^~~~
| |
| poly_uint64 {aka poly_int<1, long unsigned int>}
In file included from gcclua.c:33:
/usr/include/lua5.3/lua.h:224:64: note: initializing argument 2 of ‘void lua_pushnumber(lua_State*, lua_Number)’
224 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
| ~~~~~~~~~~~^
make[1]: *** [Makefile:29: gcclua.o] Error 1
make[1]: Leaving directory '/home/myuser/dev/gcclua/gcc-lua/gcc'
make: *** [Makefile:38: gcc] Error 2 

But when I follow the instructions in:

https://github.com/edubart/nelua-decl#how-to-generate-bindings

then everything works.

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.