Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcarena: compile errors on linux #2

Open
CapsAdmin opened this issue Oct 11, 2016 · 0 comments
Open

gcarena: compile errors on linux #2

CapsAdmin opened this issue Oct 11, 2016 · 0 comments

Comments

@CapsAdmin
Copy link

CapsAdmin commented Oct 11, 2016

in lj_gc.c:963 the function sweep_arena is forward declared as void sweep_arena(global_State *g, MSize i); but is later declared as static void sweep_arena(global_State *g, MSize i, MSize celltop)

I changed the forward declaration to the latter and passing 0 as the argument for MSize celltop in lj_gc.c:975

Now I get a bunch of errors in enablelargepages at lj_alloc.c:412 where windows specific functions are being used.

Just commenting that out the contents of the function and returning 0 I get a linker error:

/usr/bin/ld: lj_vm_dyn.o: relocation R_X86_64_PC32 against symbol `lj_gc_emptygrayssb' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

There are also many warnings
https://gist.github.com/CapsAdmin/c5cab3e28f9cad5af1d15811e3c097f2

fsfod pushed a commit that referenced this issue Jun 9, 2019
…ility from lhmwzy in #2."

The mainstream LuaJIT already has the support just recently.

This reverts commit e74374d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant