infdahai commented on issue #1413:
URL: 
https://github.com/apache/incubator-kvrocks/issues/1413#issuecomment-1532954146

   This problem still exists👎  When I execute the command `./x.py build 
-DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENSSL=ON -DDISABLE_JEMALLOC=ON --ghproxy 
-j24 `.
   
   ```sh
   ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_prng.o)
   >>> referenced by lj_prng.c
   >>>               lj_prng.o:(lj_prng_seed_secure) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(gc_sweep) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(gc_onestep) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_64 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(.rodata+0x0) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_64 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(.rodata+0x8) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_64 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(.rodata+0x10) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_64 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(.rodata+0x18) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_64 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(.rodata+0x20) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_64 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_gc.o)
   >>> referenced by lj_gc.c
   >>>               lj_gc.o:(.rodata+0x28) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_state.o)
   >>> referenced by lj_state.c
   >>>               lj_state.o:(lua_newstate) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_state.o)
   >>> referenced by lj_state.c
   >>>               lj_state.o:(lua_close) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_err.o)
   >>> referenced by lj_err.c
   >>>               lj_err.o:(err_unwind) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_err.o)
   >>> referenced by lj_err.c
   >>>               lj_err.o:(lj_err_register_mcode) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_err.o)
   >>> referenced by lj_err.c
   >>>               lj_err.o:(lj_err_run) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_err.o)
   >>> referenced by lj_err.c
   >>>               lj_err.o:(lj_err_lex) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_meta.o)
   >>> referenced by lj_meta.c
   >>>               lj_meta.o:(lj_meta_init) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_strfmt.o)
   >>> referenced by lj_strfmt.c
   >>>               lj_strfmt.o:(lj_strfmt_parse) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_strfmt.o)
   >>> referenced by lj_strfmt.c
   >>>               lj_strfmt.o:(lj_strfmt_parse) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_strfmt.o)
   >>> referenced by lj_strfmt.c
   >>>               lj_strfmt.o:(lj_strfmt_wptr) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; 
recompile with -fPIC
   >>> defined in _deps/luajit-src/src/libluajit.a(lj_strfmt.o)
   >>> referenced by lj_strfmt.c
   >>>               lj_strfmt.o:(lj_strfmt_putfxint) in archive 
_deps/luajit-src/src/libluajit.a
   
   ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to 
see all errors)
   clang-16: error: linker command failed with exit code 1 (use -v to see 
invocation)
   ```
   
   I execute the command `./x.py build -DCMAKE_BUILD_TYPE=Debug 
-DENABLE_OPENSSL=ON -DUSE_LUAJIT=OFF --ghproxy -j24 ` when I add `-fPIC -fPIE` 
to the 190-line. It also makes a similar error.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to