Hi,

I was doing some compilations on OpenBSD 6.8 i386 using gcc 8.4 available from pkg.

When compiling gnustep-gui current GIT (tests before release), I get this error:

ld: error: NSPrintOperation.m:(.debug_info+0x2FE631): has non-ABS relocation R_386_GOTOFF against symbol '_OBJC_INSTANCE_7.23243'

I tried both using ld and ld.bfd . In the past it used to compile link & run on OpenBSD with gcc, with 6.7 thouhg, i updated to 6.8 relatively late.

A common suggestion I found would be using ld.gold, but I couldn't find it for OpenBSD! is it in a separate package to install?

At first, I thought an issue specific to GNUstep when build with gcc, but then I tried building ArcticFox browser with the same gcc. There I get these:

 1:28.82 cd mangle; /usr/local/bin/gmake export
 1:28.82 ld: error: prprf.c:(.debug_info+0x193FD): has non-ABS relocation R_386_GOTOFF against symbol '.LC5'  1:28.82 ld: error: prdtoa.c:(.debug_info+0x3865E): has non-ABS relocation R_386_GOTOFF against symbol '.LSSH2'  1:28.82 ld: error: ptio.c:(.debug_info+0x5FB43): has non-ABS relocation R_386_GOTOFF against symbol '.LSSH22'  1:28.82 ld: error: praton.c:(.debug_info+0x4A112): has non-ABS relocation R_386_GOTOFF against symbol '.LSSH0'

I see a pattern here then!


I was able to compile ArcticFox - same code base, using system clang however. I did not try GNustep with clang, because it requires libobjc2 and that has other issues for the moment. Also both software compile with gcc equivalent version on NetBSD, FreeBSD and different Linux.

Any suggestions with these linking issues?

Riccardo

Reply via email to