The failure [1] message is:
[ 58%] Linking C shared library libbcc_bpf.so cd /builddir/build/BUILD/bcc/src/cc && /usr/bin/cmake -E cmake_link_script CMakeFiles/bpf-shared.dir/link.txt --verbose=1 /usr/bin/cc -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wall -fPIC -Wno-unused-result -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--exclude-libs=libclangFrontend.so -Wl,--exclude-libs=libclangSerialization.so -Wl,--exclude-libs=libclangDriver.so -Wl,--exclude-libs=libclangASTMatchers.so -Wl,--exclude-libs=libclangParse.so -Wl,--exclude-libs=libclangSema.so -Wl,--exclude-libs=libclangCodeGen.so -Wl,--exclude-libs=libclangAnalysis.so -Wl,--exclude-libs=libclangRewrite.so -Wl,--exclude-libs=libclangEdit.so -Wl,--exclude-libs=libclangAST.so -Wl,--exclude-libs=libclangLex.so -Wl,--exclude-libs=libclangBasic.so -Wl,--exclude-libs=libLLVMBPFDisassembler.a -Wl,--exclude-libs=libLLVMBPFAsmParser.a -Wl,--exclude-libs=libLLVMCoroutines.a -Wl,--exclude-libs=libLLVMCoverage.a -Wl,--exclude-libs=libLLVMX86CodeGen.a -Wl,--exclude-libs=libLLVMX86Desc.a -Wl,--exclude-libs=libLLVMX86Utils.a -Wl,--exclude-libs=libLLVMX86Info.a -Wl,--exclude-libs=libLLVMMCDisassembler.a -Wl,--exclude-libs=libLLVMGlobalISel.a -Wl,--exclude-libs=libLLVMLTO.a -Wl,--exclude-libs=libLLVMPasses.a -Wl,--exclude-libs=libLLVMipo.a -Wl,--exclude-libs=libLLVMVectorize.a -Wl,--exclude-libs=libLLVMInstrumentation.a -Wl,--exclude-libs=libLLVMOption.a -Wl,--exclude-libs=libLLVMObjCARCOpts.a -Wl,--exclude-libs=libLLVMMCJIT.a -Wl,--exclude-libs=libLLVMExecutionEngine.a -Wl,--exclude-libs=libLLVMRuntimeDyld.a -Wl,--exclude-libs=libLLVMLinker.a -Wl,--exclude-libs=libLLVMIRReader.a -Wl,--exclude-libs=libLLVMAsmParser.a -Wl,--exclude-libs=libLLVMBPFCodeGen.a -Wl,--exclude-libs=libLLVMSelectionDAG.a -Wl,--exclude-libs=libLLVMBPFDesc.a -Wl,--exclude-libs=libLLVMBPFInfo.a -Wl,--exclude-libs=libLLVMAsmPrinter.a -Wl,--exclude-libs=libLLVMDebugInfoDWARF.a -Wl,--exclude-libs=libLLVMCodeGen.a -Wl,--exclude-libs=libLLVMTarget.a -Wl,--exclude-libs=libLLVMScalarOpts.a -Wl,--exclude-libs=libLLVMInstCombine.a -Wl,--exclude-libs=libLLVMAggressiveInstCombine.a -Wl,--exclude-libs=libLLVMTransformUtils.a -Wl,--exclude-libs=libLLVMBitWriter.a -Wl,--exclude-libs=libLLVMAnalysis.a -Wl,--exclude-libs=libLLVMProfileData.a -Wl,--exclude-libs=libLLVMObject.a -Wl,--exclude-libs=libLLVMMCParser.a -Wl,--exclude-libs=libLLVMMC.a -Wl,--exclude-libs=libLLVMDebugInfoCodeView.a -Wl,--exclude-libs=libLLVMDebugInfoMSF.a -Wl,--exclude-libs=libLLVMBitReader.a -Wl,--exclude-libs=libLLVMBitstreamReader.a -Wl,--exclude-libs=libLLVMCore.a -Wl,--exclude-libs=libLLVMRemarks.a -Wl,--exclude-libs=libLLVMBinaryFormat.a -Wl,--exclude-libs=libLLVMSupport.a -Wl,--exclude-libs=libLLVMDemangle.a -shared -Wl,-soname,libbcc_bpf.so.0 -o libbcc_bpf.so.0.13.0 CMakeFiles/bpf-shared.dir/libbpf.c.o CMakeFiles/bpf-shared.dir/perf_reader.c.o libbpf_a_extract/bpf.o libbpf_a_extract/bpf_prog_linfo.o libbpf_a_extract/btf.o libbpf_a_extract/btf_dump.o libbpf_a_extract/hashmap.o libbpf_a_extract/libbpf.o libbpf_a_extract/libbpf_errno.o libbpf_a_extract/libbpf_probes.o libbpf_a_extract/netlink.o libbpf_a_extract/nlattr.o libbpf_a_extract/str_error.o libbpf_a_extract/xsk.o make[2]: Leaving directory '/builddir/build/BUILD/bcc' /usr/bin/ld: libbpf_a_extract/libbpf.o: relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
The same version was compiled successfully in Rawhide and in all other arches in f31 [2].
Afaik, it's using the fedora flags, so `-fPIC` should already be present.
Can anyone help me understand the problem?
Att.
--
Rafael Fonseca
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx