Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2018 13:07:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 230239] graphics/mesa-libs: fails to build on i386 with lld as /usr/bin/ld
Message-ID:  <bug-230239-7141-3UUa8nsYMH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230239-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230239-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 mailing li=
st
<x11@FreeBSD.org> for maintainer-feedback:
Bug 230239: graphics/mesa-libs: fails to build on i386 with lld as /usr/bin=
/ld
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230239



--- Description ---
The migration to the LLVM project's lld linker as the system linker
(/usr/bin/ld) for FreeBSD is in progress - it is the case for arm64 and amd=
64
today, and i386 will switch once ports issues are addressed - see exp-run in
PR214864.

Attempting to link mesa-libs on i386 with lld fails with:

/usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol:
_glapi_Dispatch in readonly segment; recompile object files with -fPIC
>>> defined in .libs/shared_glapi_libglapi_la-u_current.o
>>> referenced by entry.c
>>>		  .libs/shared_glapi_libglapi_la-entry.o:(.text+0x1)

/usr/bin/ld: error: can't create dynamic relocation R_386_PC32 against symb=
ol:
_glapi_get_dispatch in readonly segment; recompile object files with -fPIC
>>> defined in .libs/shared_glapi_libglapi_la-u_current.o
>>> referenced by entry.c
>>>		  .libs/shared_glapi_libglapi_la-entry.o:(.text+0xC)

/usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol:
_glapi_Dispatch in readonly segment; recompile object files with -fPIC
>>> defined in .libs/shared_glapi_libglapi_la-u_current.o
>>> referenced by entry.c
>>>		  .libs/shared_glapi_libglapi_la-entry.o:(.text+0x21)

...

http://package18.nyi.freebsd.org/data/headi386PR214864-default/2018-07-30_1=
8h09
m59s/logs/errors/mesa-libs-18.1.4.log



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230239-7141-3UUa8nsYMH>