recompile with -fPIC

#1

/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_icf.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_memory.o): requires dynamic R_X86_64_PC32 reloc against ‘free’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_resample.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_scd.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_util.o): requires dynamic R_X86_64_PC32 reloc against ‘__isnan’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fftr.o): requires dynamic R_X86_64_PC32 reloc against ‘sincos’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(sha1.o): requires dynamic R_X86_64_PC32 reloc against ‘memcpy’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(sqlite3.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(sqlite3.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_algebra.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_basic.o): requires dynamic R_X86_64_PC32 reloc against ‘memcpy’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_cache.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fft.o): requires dynamic R_X86_64_PC32 reloc against ‘malloc’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cblas_dgemm.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cblas_sgemm.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cblas_xerbla.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(xerbla.o): requires dynamic R_X86_64_PC32 reloc against ‘__ctype_tolower_loc’ which may overflow at runtime; recompile with -fPIC
collect2: error: ld returned 1 exit status
/home/sagar/Documents/of_v20190324_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:397: recipe for target ‘bin/ConvnetViewer’ failed
make[1]: *** [bin/ConvnetViewer] Error 1
make[1]: Leaving directory ‘/home/sagar/Documents/of_v20190324_linux64gcc6_release/apps/myApps/ConvnetViewer’
/home/sagar/Documents/of_v20190324_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target ‘Release’ failed
make: *** [Release] Error 2

#2

This error usually happens when you are linking against the wrong kind of static library, but may be if you state your problem in a more detailed way we’ll be able to help you better.

regards
Davide