On domenica 8 ottobre 2023 21:49:30 CEST Albert Astals Cid wrote: > El diumenge, 8 d=E2=80=99octubre de 2023, a les 18:20:00 (CEST), Stefano = Crocco va >=20 > escriure: > > Hello to everyone, > > I successfully ported Konqueror to KF6, at least to the point that, on = my > > system, it compiles correctly. However, when the CI tries to build it on >=20 > > linux, it fails with the following error: > Which branch is that? >=20 > Cheers, > Albert It's MR 237 for the kf6 branch: https://invent.kde.org/network/konqueror/-/ merge_requests/237 Stefano >=20 > > /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/l= d: > > ../../lib/libkcm_konqhtml_static.a(mocs_compilation.cpp.o): relocation > > R_X86_64_32S against `.rodata' can not be used when making a shared > > object; > > recompile with -fPIC > >=20 > > The full build log is in the attachment; the error is on line 1674. > >=20 > > This error doesn't happen when I try to compile Konqueror on my system, > > which seems to have the same gcc version as the CI and doesn't happen on > > the CI with freebsd and with the KF5 version, despite the fact that the, > > as > > far as I can tell, involved code hasn't changed. > >=20 > > It seems that the error comes from the attempt to link several plugins > > (actually KCMs) to a static library (kcm_konqhtml_static). > >=20 > > Searching on Google, I found that the suggested solution for this kind = of > > error is to add the -fPIC compilation flag when building the static > > library. I tried to do so and it worked but I'd like to understand > > whether this actually is the correct solution and why the issue only > > happens on the CI linux build for KF6 and not on the CI builds for KF5, > > on the CI freebsd build for KF6 and on my system. Can anyone give me so= me > > hints about this? > >=20 > > Thanks in advance > >=20 > > Stefano