From owner-freebsd-ports@FreeBSD.ORG Sun Nov 2 20:09:23 2014 Return-Path: Delivered-To: freebsd-ports@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 1EE6A993 for ; Sun, 2 Nov 2014 20:09:23 +0000 (UTC) Received: from asp.reflexion.net (outbound-243.asp.reflexion.net [69.84.129.243]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 88064E55 for ; Sun, 2 Nov 2014 20:09:22 +0000 (UTC) Received: (qmail 1440 invoked from network); 2 Nov 2014 20:09:15 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 2 Nov 2014 20:09:15 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.30.7) with SMTP; Sun, 02 Nov 2014 15:09:15 -0500 (EST) Received: (qmail 23645 invoked from network); 2 Nov 2014 20:09:15 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (DHE-RSA-AES256-SHA encrypted) SMTP; 2 Nov 2014 20:09:15 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-98-246-178-138.hsd1.or.comcast.net [98.246.178.138]) by iron2.pdx.net (Postfix) with ESMTPSA id 992671C4061; Sun, 2 Nov 2014 12:09:10 -0800 (PST) From: Mark Millard Subject: powerpc64 vs. Mesa-10.3.2: .libs/libmesa.a(builtin_functions.o)(.text+???): sibling call optimization to `_???' (various) does not allow automatic multiple TOCs Date: Sun, 2 Nov 2014 12:09:13 -0800 Message-Id: <5D05A4D0-ED6B-4153-A133-572FC3E0A56F@dsl-only.net> To: FreeBSD PowerPC ML , freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: =?iso-8859-1?Q?Jean-S=E9bastien_P=E9dron?= X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2014 20:09:23 -0000 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/drive= rs/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/drive= rs/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' =3D=3D=3D> Compilation failed unexpectedly. Context details: root@FBSDG5M1:~/fbsd_rebuild_materials # uname -a FreeBSD FBSDG5M1 10.1-RC4 FreeBSD 10.1-RC4 #101 r273955M: Sat Nov 1 = 19:50:42 PDT 2014 root@FBSDG5M1:/usr/obj/usr/src/sys/GENERIC64 = powerpc root@FBSDG5M1:~/fbsd_rebuild_materials # svnlite info /usr/src Path: /usr/src Working Copy Root Path: /usr/src URL: https://svn0.us-west.freebsd.org/base/releng/10.1 Relative URL: ^/releng/10.1 Repository Root: https://svn0.us-west.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 273955 Node Kind: directory Schedule: normal Last Changed Author: gjb Last Changed Rev: 273874 Last Changed Date: 2014-10-30 15:21:12 -0700 (Thu, 30 Oct 2014) root@FBSDG5M1:~/fbsd_rebuild_materials # svnlite info /usr/ports Path: /usr/ports Working Copy Root Path: /usr/ports URL: https://svn0.us-west.freebsd.org/ports/head Relative URL: ^/head Repository Root: https://svn0.us-west.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 372060 Node Kind: directory Schedule: normal Last Changed Author: madpilot Last Changed Rev: 372060 Last Changed Date: 2014-11-02 01:44:01 -0800 (Sun, 02 Nov 2014) root@FBSDG5M1:~/fbsd_rebuild_materials # svnlite status /usr/src/sys M /usr/src/sys/ddb/db_main.c M /usr/src/sys/ddb/db_script.c M /usr/src/sys/powerpc/conf/GENERIC64 M /usr/src/sys/powerpc/ofw/ofw_machdep.c M /usr/src/sys/powerpc/ofw/ofwcall64.S /usr/src/sys/powerpc/conf/GENERIC64 root@FBSDG5M1:~/fbsd_rebuild_materials # svnlite diff = /usr/src/sys/powerpc/conf/GENERIC64 Index: /usr/src/sys/powerpc/conf/GENERIC64 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/sys/powerpc/conf/GENERIC64 (revision 273955) +++ /usr/src/sys/powerpc/conf/GENERIC64 (working copy) @@ -28,7 +28,7 @@ =20 # Platform support options POWERMAC #NewWorld Apple PowerMacs -options PS3 #Sony Playstation 3 +#options PS3 #Sony Playstation 3 = HACK!!! to allow sc options MAMBO #IBM Mambo Full System Simulator options PSERIES #PAPR-compliant systems (e.g. = IBM p) =20 @@ -76,6 +76,12 @@ # Debugging support. Always need this: options KDB # Enable kernel debugger = support. options KDB_TRACE # Print a stack trace for a = panic. +options DDB # HACK!!! to dump early crash = info +options GDB # HACK!!! ... +#options KTR +#options KTR_MASK=3DKTR_TRAP +#options KTR_CPUMASK=3D0xF +#options KTR_VERBOSE =20 # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor = Kernel @@ -115,6 +121,14 @@ device vt # Core console driver device kbdmux =20 +# HACK!!! to allow sc for 2560x1440 display on Radeon X1950 that vt = mishandled +# syscons is a console driver, resembling an SCO console +device sc +#device kbdmux # HACK: already listed by vt +options SC_OFWFB # OFW frame buffer +options SC_DFLT_FONT # compile font in +makeoptions SC_DFLT_FONT=3Dcp437 + # Serial (COM) ports device scc device uart root@FBSDG5M1:~/fbsd_rebuild_materials # more /etc/make.conf WITH_DEBUG_FILES=3D WITHOUT_CLANG=3D WRKDIRPREFIX=3D/usr/obj/portswork WITH_DEBUG=3D (Note: WITHOUT_CLANG is just because last I tried clang would not build = for WITH_DEBUG. And powerpc64/GENERIC64 does not use clang for = buildworld/buildkernel yet.) =3D=3D=3D Mark Millard markmi at dsl-only.net