On Wed, 17 May 2023, Edgar Fuß wrote:
And another weird problem:Using a lang/gcc8 compiler patched to use gas and gld from devel/binutils 2.26.1 (see other thread), when building pkgtools/pkg_install, I get /usr/pkg/bin/gld: /var/work/pkgsrc/pkgtools/pkg_install/work/libfetch/libfetch.a(common.o)(.text+0x1e5): unresolvable R_X86_64_NONE relocation against symbol `__sF' /usr/pkg/bin/gld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status *** [pkg_add] Error code 1 What the hell does that mean?
This looks like a binutils issue. You should never see a relocation type of `R_X86_64_NONE' assigned to `__sF' (the internal libc variable holding the first 3 `FILE' objects-stdin, stdout, stderr). Can you post the build log for this and the /var/work/pkgsrc/pkgtools/pkg_install/work/libfetch/libfetch.a file itself? -RVP
