Date: Mon, 03 Nov 2014 00:38:18 +0100 From: Koop Mast <kwm@rainbow-runner.nl> To: Mark Millard <markmi@dsl-only.net>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, freebsd-ports@freebsd.org Cc: =?windows-1252?Q?Jean-S=E9bastien_P=E9dron?= <jean-sebastien.pedron@dumbbell.fr> Subject: Re: powerpc64 vs. Mesa-10.3.2: .libs/libmesa.a(builtin_functions.o)(.text+???): sibling call optimization to `_???' (various) does not allow automatic multiple TOCs Message-ID: <5456C06A.2030904@rainbow-runner.nl> In-Reply-To: <5D05A4D0-ED6B-4153-A133-572FC3E0A56F@dsl-only.net> References: <5D05A4D0-ED6B-4153-A133-572FC3E0A56F@dsl-only.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2-11-2014 21:09, Mark Millard wrote: > Context: powerpc64/GENERIC64 variant. I list the details at the end of this note, including for "svnlite info /usr/ports" but it is recently svnlite update'd. > > graphics/dri complained a lot about "automatic multiple TOCs" and reported needing to recompile with -minimal-toc or -fno-optimize-sibling-calls or to declare such things extern in work/Mesa-10.3.2/src/mesa/drivers/dri/ : > > CXXLD mesa_dri_drivers.la > /usr/bin/ld: ../../.libs/libmesa.a(builtin_functions.o)(.text+0x18e0): sibling call optimization to `_ZN9exec_nodenwEmPv' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN9exec_nodenwEmPv' extern > /usr/bin/ld: ../../.libs/libmesa.a(builtin_functions.o)(.text+0x195c): sibling call optimization to `_ZN9exec_nodenwEmPv' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN9exec_nodenwEmPv' extern > ... (It is a long list of these.) > /usr/bin/ld: ../../.libs/libmesa.a(builtin_functions.o)(.text+0x175b0): sibling call optimization to `_ZN9exec_nodenwEmPv' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN9exec_nodenwEmPv' extern > /usr/bin/ld: ../../.libs/libmesa.a(builtin_functions.o)(.text+0x17600): sibling call optimization to `_ZN11ir_function13add_signatureEP21ir_function_signature' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN11ir_function13add_signatureEP21ir_function_signature' extern > /usr/bin/ld: ../../.libs/libmesa.a(builtin_functions.o)(.text+0x26c14): sibling call optimization to `_ZN9exec_nodenwEmPv' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN9exec_nodenwEmPv' extern > /usr/bin/ld: final link failed: Bad value > Makefile:632: recipe for target 'mesa_dri_drivers.la' failed > gmake[7]: *** [mesa_dri_drivers.la] Error 1 > gmake[7]: Leaving directory '/usr/obj/portswork/usr/ports/graphics/dri/work/Mesa-10.3.2/src/mesa/drivers/dri' > Makefile:718: recipe for target 'all-recursive' failed > gmake[6]: *** [all-recursive] Error 1 > gmake[6]: Leaving directory '/usr/obj/portswork/usr/ports/graphics/dri/work/Mesa-10.3.2/src/mesa/drivers/dri' > Makefile:3967: recipe for target 'all-recursive' failed > gmake[5]: *** [all-recursive] Error 1 > gmake[5]: Leaving directory '/usr/obj/portswork/usr/ports/graphics/dri/work/Mesa-10.3.2/src/mesa' > Makefile:1401: recipe for target 'all' failed > gmake[4]: *** [all] Error 2 > gmake[4]: Leaving directory '/usr/obj/portswork/usr/ports/graphics/dri/work/Mesa-10.3.2/src/mesa' > Makefile:518: recipe for target 'all-recursive' failed > gmake[3]: *** [all-recursive] Error 1 > gmake[3]: Leaving directory '/usr/obj/portswork/usr/ports/graphics/dri/work/Mesa-10.3.2/src' > Makefile:585: recipe for target 'all-recursive' failed > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory '/usr/obj/portswork/usr/ports/graphics/dri/work/Mesa-10.3.2' > ===> Compilation failed unexpectedly. > > Can you try the following patch? We have the same fix in webkit-gtk3, so this might work for you. https://people.freebsd.org/~kwm/mesa-powerpc64.diff -Koop
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5456C06A.2030904>