From owner-freebsd-toolchain@freebsd.org Mon Feb 3 02:33:09 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EB9222408B6 for ; Mon, 3 Feb 2020 02:33:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 489sLs0FqRz3x75 for ; Mon, 3 Feb 2020 02:33:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 1ANV4GQVM1nAt_0A_cfhelvG9j6EPi6_EEsJ4qANH38sGEeyErJyjCjLl3xFK.i lvbCzJkctACjNd_7ZQ_ir3GUhupTcVW2qsVRrTGeBxbsSr2r6STZqpeI1GTkKg5S24o_PR5hEQB0 9owI_kp2VDnnmm21mlOFzhOmS8TqY6eXT2bIsfWGeMvmbglYU1cZRZe4S_8iq2XfuqSnhWnqNIRk ZNd.x5E0ilL2AkniPO8j2X0kLbt8.3vWRQQEGTBROR4e2qGL18moTZes19SKIibmxWNwI3ywwYap l.MXRpMf.1d3jJcgN_39_Cu6E7EoghoZD5QqhY.tWsgCqSm3GDoSu4OblV7wyhfXZfFoFrtfnACv 3ajS1lNowHGKQgKI2uSFThEqX1rlYFWq5bDqbX9oRB6DF8McNwDUfW8fl2XIA1U1M6gKAaahIPYT jBQPj3LdNOksEHAcG4pHUlm.cMm0ycwUNi2_edgG_ZjwmBkUkwEC87nOvTh2czCVWbOwN9Vc8JSX dOCm.fbj7_10.lirv4zg785bJQinnnxKOTK3cYJ82LjqP6c6HhuR.Yfe7Ei90OgZyYRdsDV22JAI mlcvNwBBMqdPBxFmPDzPepnWfvn6UJqqJ33WDs9MkocnptQqFNO1yQK6JioRv_zXTvqtxnKgBvDR GhqyF3sMQ31UCnwcoSaGeS8U6UNmAGPzastXHjJpGg.cfIELrCT_vM8xEvYOwHYCENRA0Q04.N.H CZo9nBWq9XCjl4zraulDrWZIBCjwbOlirbXLEniTBtBYCfuINyXju2IiS7DObrecAk71PgtDdA7H ZxggDc_73QiBnmSTrPk0oBSyuLzAT1y2LLKJ1uT0LdbXlCP8cW5YR.BrmV7v6rtKAkDdkiwtLPoG tsh93zWC.zymiasphoJPwx3jDLjvw0CUyzO5KCO6dIZOb6nFgc4dWpabMRBavbJYJRpct6IPYRkR plOuHf2gmEc41z2GnxxYHO9NI4ueHyoHvzu.ix8tI2xrDrq52FaibR7ZEOvSJuKa7OTT4HriPPy9 .4eegdaPWXRvSmfNcItMHFZ1rjhYSBUJTkgAT2JOmE5NUm.wr1kgfZN8ObU4gMvswmlBvh3.tnPW KW6uv46lre6D71UhqqWXP2xxqjN7fONNapRqC0S5chXq1RPMpJLnWeQZRCPaqcU.jogskrWXThI8 P_YYxOj9e3i8zmODAywQB7OTMGgP1tYzkwOSzpaXXlJfteYj.WR7fbSNjOsGJb92EM0vvv2VzV1Q nkDRyTXIpJf_Dhud8hwHNbWLUa4ErUhDTUGg5dRsLS_FqRHccZ6liGdHkGShnXZnHfLKfv8BvIA8 IN2lcvL4vyKjSLgqmtPJk_SLj6HziP.vVcUCRrZaw0lhKFP.zEwLWYPl7eDwFyPPog2QcPJQvZJe iNUjD6y5lcOOLwZ23yH.8AS5gU._LhCUDrSsCG_zfOM8o78OuCpmjhj0pdhIeITG6neGX7eA_sQ- - Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 3 Feb 2020 02:33:06 +0000 Received: by smtp412.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 01b851a0553596a226165359319131c5; Mon, 03 Feb 2020 02:33:00 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: head -r357401 broke my powerpc/powerpc64 builds: I build with sc present [the added "static" caused the failures] Date: Sun, 2 Feb 2020 18:33:00 -0800 References: <1EDB31B4-7372-4D8C-AF81-685E53BE4810@yahoo.com> <13FEBAFC-8D69-4BE4-9558-97617639A0B4@yahoo.com> To: Warner Losh , FreeBSD Toolchain , FreeBSD PowerPC ML In-Reply-To: <13FEBAFC-8D69-4BE4-9558-97617639A0B4@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 489sLs0FqRz3x75 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.49 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[148.69.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (-1.68), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2020 02:33:10 -0000 [Turns out to be the added "static".] On 2020-Feb-2, at 15:10, Mark Millard wrote: > [I forgot to send some context.] >=20 > On 2020-Feb-2, at 14:51, Mark Millard wrote: >=20 >> --- kernel.full --- >> ld: error: undefined symbol: dflt_font_8 >>>>> referenced by ofw_syscons.c >>>>> ofw_syscons.o:(.toc+0x10) >> ld: error: undefined symbol: dflt_font_14 >>>>> referenced by ofw_syscons.c >>>>> ofw_syscons.o:(.toc+0x18) >> ld: error: undefined symbol: dflt_font_16 >>>>> referenced by ofw_syscons.c >>>>> ofw_syscons.o:(.toc+0x20) >>=20 >> This is from loss of: >>=20 >>=20 >>=20 >> font.h optional sc = \ =20 >> compile-with "uudecode < = /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'u_char = dflt_font_16[16*256] =3D {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && = uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c = 'u_char dflt_font_14[14*256] =3D {' '};' < ${SC_DFLT_FONT}-8x14 >> = font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && = file2c 'u_char dflt_font_8[8*256] =3D {' '};' < ${SC_DFLT_FONT}-8x8 >> = font.h" \ =20 >> no-obj no-implicit-rule before-depend = \ =20 >> clean "font.h ${SC_DFLT_FONT}-8x14 ${SC_DFLT_FONT}-8x16 = ${SC_DFLT_FONT}-8x8" =20 >>=20 >>=20 >> in /head/sys/conf/files.powerpc . >>=20 >>=20 >> FYI for why I have sc present: >>=20 >> Historically, I've had two PowerMac contexts, one of which >> worked with sc but not vt and another of which worked with >> vt but not sc. >>=20 >> I build with both sc and vt present and change which is >> used as I move the media between machines. >=20 > FYI: my powerpc* kernel config files have (using a powerpc64 > example): >=20 > include "GENERIC64" >=20 > . . . >=20 > nooptions PS3 # Sony Playstation 3 = HACK!!! to allow sc >=20 > . . . >=20 > # HACK!!! to allow sc for 2560x1440 display on Radeon X1950 that vt = historically mishandled during booting > 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 >=20 >=20 > I'm exploring rebuilding from scratch, but it > may be that this change could use some form > of UPDATING note about how to deal with the > changes. The following enabled my powerpc* builds: I dropped "static " from each declaration that is generated. (In this form some whitespace might not be preserved below.) # svnlite diff /usr/src/sys/conf/files Index: /usr/src/sys/conf/files =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/conf/files (revision 357419) +++ /usr/src/sys/conf/files (working copy) @@ -35,7 +35,7 @@ no-obj no-implicit-rule before-depend = \ clean "feeder_rate_gen.h" font.h optional sc_dflt_font = \ - compile-with "uudecode < = ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'static = u_char dflt_font_16[16*256] =3D {' '};' < ${SC_DFLT_FONT}-8x16 > font.h = && uudecode < ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && = file2c 'static u_char dflt_font_14[14*256] =3D {' '};' < = ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < = ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'static = u_char dflt_font_8[8*256] =3D {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" = \ + compile-with "uudecode < = ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'u_char = dflt_font_16[16*256] =3D {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && = uudecode < ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && = file2c 'u_char dflt_font_14[14*256] =3D {' '};' < ${SC_DFLT_FONT}-8x14 = >> font.h && uudecode < = ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'u_char = dflt_font_8[8*256] =3D {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" = \ no-obj no-implicit-rule before-depend = \ clean "font.h ${SC_DFLT_FONT}-8x14 = ${SC_DFLT_FONT}-8x16 ${SC_DFLT_FONT}-8x8" snd_fxdiv_gen.h optional sound = \ If the "static"s are strongly wanted, then the powerpc* families need to be reworked to allow for such. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)