Skip to content

gcarena: compile errors on linux #2

Description

@CapsAdmin

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions