volk icon indicating copy to clipboard operation
volk copied to clipboard

Make Failure after Building target pygen_python_volk_modtoo_79139

Open AstroP25 opened this issue 2 years ago • 3 comments

Failure in the compiling process with the error:

/usr/bin/ld: //usr/local/lib64/libcpu_features.a(impl_x86_linux_or_android.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output

Cmake version 3.20.2 Make version 4.2.1 Red Hat Enterprise Linux 8.5

AstroP25 avatar Apr 29 '22 14:04 AstroP25

Welcome @AstroP25

Could you add some more info to your bug report? Which VOLK version do you try to compile? The error indicates that linking against cpu_features failed. Which options did you use to compile VOLK? Which version of cpu_features do you use? Is it correct to assume that you use GCC 8.2?

jdemel avatar Apr 30 '22 07:04 jdemel

No problem.

VOLK version is 2.5.1 and the version of cpu_features is the submodule included in the git clone --recursive which appears to be 0.7.0. Currently running the default options to compile VOLK.

GCC version is 8.5.0 20210514

AstroP25 avatar May 02 '22 14:05 AstroP25

This sounds like an issue where cpu_features is built without CMAKE_POSITION_INDEPENDENT_CODE ON. It would probably be helpful to see the CMake output and try to find the issue there. One more observation: /usr/local/lib64/libcpu_features.a(impl_x86_linux_or_android.c.o). It looks like there's a cpu_features version installed already. This might be another issue for the linker.

jdemel avatar May 03 '22 08:05 jdemel

@AstroP25 does the latest VOLK version on main fix your issue? Did you find out how to fix it? I suggest we close this issue if it is solved.

jdemel avatar Oct 03 '23 07:10 jdemel

We improved the situation with cpu_features over the last couple of months. I'm closing this issue now. Feel free to re-open it, in case this is still an issue.

jdemel avatar Jan 12 '24 21:01 jdemel