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

link fail on memcpy_jart.S if with address sanitize and enable utils build. #719

Open
yokofly opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yokofly
Copy link
Collaborator

yokofly commented May 14, 2024

Describe what's wrong

How to reproduce

mkdir build_deb
cd build_deb
../build.sh Debug
ninja

introduce in #664
Error message and/or stacktrace

Additional context

@yokofly yokofly added the bug Something isn't working label May 14, 2024
@yokofly
Copy link
Collaborator Author

yokofly commented May 14, 2024

ld.lld-16: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
>>> defined in utils/memcpy-bench/CMakeFiles/memcpy-bench.dir/memcpy_jart.S.o
>>> referenced by memcpy_jart.S:47 (/home/haohang/tp/proton-enterprise/utils/memcpy-bench/memcpy_jart.S:47)
>>>               utils/memcpy-bench/CMakeFiles/memcpy-bench.dir/memcpy_jart.S.o:(MemCpy)

ld.lld-16: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC
>>> defined in utils/memcpy-bench/CMakeFiles/memcpy-bench.dir/memcpy_jart.S.o
>>> referenced by utils/memcpy-bench/CMakeFiles/memcpy-bench.dir/memcpy_jart.S.o:(.rodata+0x0)

@yokofly yokofly changed the title build fail if with address sanitize and enable utils build. link fail on memcpy_jart.S if with address sanitize and enable utils build. May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant