(In reply to C.M.Chang[:chunmin] from comment #18) > Not sure if it's due to the libvpx versions. I am tweaking some settings and see if I can reproduce it. I downgraded the libvpx in my system to v1.13 bb5edbd8417277b6fdb45867b4cbdb7ac6300d4f, and it failed at compiling. ``` 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_encodeframe_decision) in archive /usr/local/lib/libvpx.a 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_frame_rdmult) in archive /usr/local/lib/libvpx.a 4:18.88 clang++: error: linker command failed with exit code 1 (use -v to see invocation) ``` I'll check other version to see if I can pass. Or, maybe libvpx should be loaded by a shared library instead of being built as a static library.
Bug 1875201 Comment 22 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to C.M.Chang[:chunmin] from comment #18) > Not sure if it's due to the libvpx versions. I am tweaking some settings and see if I can reproduce it. I downgraded the libvpx in my system to v1.13 bb5edbd8417277b6fdb45867b4cbdb7ac6300d4f, and it failed at compiling. (if it's built by shared library, maybe it's why we have this bug?) ``` 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_encodeframe_decision) in archive /usr/local/lib/libvpx.a 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_frame_rdmult) in archive /usr/local/lib/libvpx.a 4:18.88 clang++: error: linker command failed with exit code 1 (use -v to see invocation) ``` I'll check other version to see if I can pass. Or, maybe libvpx should be loaded by a shared library instead of being built as a static library.
(In reply to C.M.Chang[:chunmin] from comment #18) > Not sure if it's due to the libvpx versions. I am tweaking some settings and see if I can reproduce it. I downgraded the libvpx in my system to v1.13 bb5edbd8417277b6fdb45867b4cbdb7ac6300d4f, and it failed at compiling. (if it's built by shared library, maybe it's why we have this bug?) ``` 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_encodeframe_decision) in archive /usr/local/lib/libvpx.a 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_frame_rdmult) in archive /usr/local/lib/libvpx.a 4:18.88 clang++: error: linker command failed with exit code 1 (use -v to see invocation) ``` I'll check other version to see if I can pass. Or, maybe libvpx should be loaded by a shared library instead of being built as a static library (need to run `./configure` in libvpx repo with `--enable-shared --disable-static`).
(In reply to C.M.Chang[:chunmin] from comment #18) > Not sure if it's due to the libvpx versions. I am tweaking some settings and see if I can reproduce it. I downgraded the libvpx in my system to v1.13 ([bb5edbd8417277b6fdb45867b4cbdb7ac6300d4f](https://chromium.googlesource.com/webm/libvpx/+/refs/tags/v1.13.0)), but the build failed at compiling. (if it's built by shared library, maybe it's why we have this bug?) ``` 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_encodeframe_decision) in archive /usr/local/lib/libvpx.a 4:18.86 ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'stderr'; recompile with -fPIC 4:18.86 >>> defined in /lib/x86_64-linux-gnu/libc.so.6 4:18.86 >>> referenced by vp9_ext_ratectrl.c.o:(vp9_extrc_get_frame_rdmult) in archive /usr/local/lib/libvpx.a 4:18.88 clang++: error: linker command failed with exit code 1 (use -v to see invocation) ``` I'll check other version to see if I can pass. Or, maybe libvpx should be loaded by a shared library instead of being built as a static library (need to run `./configure` in libvpx repo with `--enable-shared --disable-static`).