From owner-freebsd-ppc@FreeBSD.ORG Sun Nov 2 23:38:27 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EFE4F6D4; Sun, 2 Nov 2014 23:38:26 +0000 (UTC) Received: from fep15.mx.upcmail.net (fep15.mx.upcmail.net [62.179.121.35]) by mx1.freebsd.org (Postfix) with ESMTP id 3EFDE3FF; Sun, 2 Nov 2014 23:38:25 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep15-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20141102233818.YUGZ8041.viefep15-int.chello.at@edge03.upcmail.net>; Mon, 3 Nov 2014 00:38:18 +0100 Received: from [192.168.0.23] ([178.84.134.112]) by edge03.upcmail.net with edge id AneF1p0152Rg3Ey01neF1l; Mon, 03 Nov 2014 00:38:17 +0100 X-SourceIP: 178.84.134.112 Message-ID: <5456C06A.2030904@rainbow-runner.nl> Date: Mon, 03 Nov 2014 00:38:18 +0100 From: Koop Mast User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Mark Millard , FreeBSD PowerPC ML , freebsd-ports@freebsd.org 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 References: <5D05A4D0-ED6B-4153-A133-572FC3E0A56F@dsl-only.net> In-Reply-To: <5D05A4D0-ED6B-4153-A133-572FC3E0A56F@dsl-only.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: =?windows-1252?Q?Jean-S=E9bastien_P=E9dron?= X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2014 23:38:27 -0000 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