From owner-freebsd-ports@freebsd.org Thu Nov 15 03:42:09 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E46D2110F8ED for ; Thu, 15 Nov 2018 03:42:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.ne1.yahoo.com (sonic302-20.consmr.mail.ne1.yahoo.com [66.163.186.146]) (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 C4BAE7EAB6 for ; Thu, 15 Nov 2018 03:42:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: .IhoFhMVM1lv.xe7ct8d5kHKjNlV7QXdPcOKYU_DXc05sSNgpElj0t7IcKjjLl6 GcG31Z0RDwfrhmJDqrKCkV.hAfmKLpycIZsF57ImtaHE93iM3MV2a187XIjSKtkw_nJHDRf6ZNQu SQJx7n7XrSfyECBFKPl3SLVGIHxfEL3VwPK0eTbnN8Pev0DgX9QBMgGEuwnnkZRPWSgr3ADqJkmi E1ohNGa0AQoM2iqMEpkrZf3xvyJwEcjH8_x8sBsfr2Oz9aaz1hGLlKCPS9NqEMjKB9Cxgezk5eU3 5nnj2Kh_jPxTxYUvmndjMkaMduTgTebRKu7xFVqSnZS9u5Aw3uWH1j9H2Hjow.VDHware4ZwFsit 7MwsMXEnTg_JGo_IyuPpYh1j8X2VkKNjtgXlEemlyOWgoBzyxFdActSA5vwCvpneSA5IfVT.mqDn 2kpbHLYz.zKg3nnDA6ujWYXY9S8qtzfLjrNX0N_.tbs0s6yE9vN7Hr__rQN35Vm67pFk4OHVFUEM k1X0ofmtCE2bIluJnANYDqBCoCKpMmPETTrI55joo0iAOYH4ZD1RT5nqvYQGUg9Gmg.riCdzuBrC NPn9Bl5jtmVeyDZ4OvE.fQOtpAghb94.swwCC42l22wmQ9.QbTJS7izX1h7RN76E8r3DpTSnrXGe hDvuv_JFWNw4ImQkky04jdFaqvNJiRVd0MKddCoQ1J6Q3gceLahtSFCOM7rtRRCj2BLyY.TCpRAY h4Pmj6dvXilba7jCW__NAyR8BIKOFT1hOrQNgBnpgIKWyCqGcnMSzM4YU37n4evO0cJeAi4EHg_l K19em3wW7iBLhNVIzNlyt1xsWg3vYeOoA8yeWFtWnBJVF4Px7H0o4NiHt6Y0_I80gBbG8wdEFNZJ v8uY_wC_52F4ZeG0xq.0WjUAG3fi9QHKzF9hVDLIe04aryYxbAq5L9BTDLuV64ReGazhsYXWa7vF MtM5RS02xvAy6uYU26kOCGM51uXaeSYvoYHLjibBaXP9en9BjD1u40u1jDR392c8xhXocmA6AIbj 3J5rAto6qdkEAGpm_XvaSoVc8GCrdEjC2TZ2ZOk2zvRhmb6hhZA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Thu, 15 Nov 2018 03:42:01 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp404.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID b71ab79ff41f30a990668a1c34c2a10d; Thu, 15 Nov 2018 03:41:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: ports head -r487783: on armv7 x11/pixman fails to build: /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against local symbol in readonly segment; recompile object files with -fPIC From: Mark Millard In-Reply-To: Date: Wed, 14 Nov 2018 19:41:54 -0800 Cc: ports-list freebsd , freebsd-x11@freebsd.org, Jan Beich , Warner Losh , "Simon J. Gerraty" Content-Transfer-Encoding: 7bit Message-Id: <8C7A2ACE-2786-4D31-B516-22F1EB3372F6@yahoo.com> References: <56BE95DD-61E5-43CB-923D-10E968003FE3@yahoo.com> <5FF705ED-B019-4CB1-B516-796C2E7A6FF9@yahoo.com> <51a82f62-13df-a485-4d5a-7dbfa3d1107f@FreeBSD.org> <12EFB5C5-4BC6-4083-B51D-26D1D3150C35@yahoo.com> <9cf37f5d-3aea-390c-e553-42ab3efe1c98@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: C4BAE7EAB6 X-Spamd-Result: default: False [1.01 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com]; NEURAL_HAM_MEDIUM(-0.29)[-0.291,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_FROM(0.00)[yahoo.com]; NEURAL_HAM_LONG(-0.74)[-0.742,0]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.95)[0.950,0]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCVD_IN_DNSWL_NONE(0.00)[146.186.163.66.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; IP_SCORE(1.61)[ip: (4.74), ipnet: 66.163.184.0/21(1.88), asn: 36646(1.51), country: US(-0.10)]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 03:42:09 -0000 [My wording presumed some context not presented.] On 2018-Nov-14, at 18:21, Mark Millard wrote: > On 2018-Nov-14, at 17:45, Bryan Drewery wrote: > >> I think the real problem here is that Poudriere is setting MACHINE_ARCH >> in make.conf and sys.mk loads make.conf *after* checking MACHINE_CPUARCH >> (derived from MACHINE_ARCH) to determine CFLAGS; The .if is expanding >> MACHINE_CPUARCH before make.conf is included. >> >> We probably need a make-env.conf thing like src-env.conf to allow >> modifying sys.mk earlier. > > Cool. > > > We still get the result that arm[67], and possibly some mips, > have had a lot of -O2 use based on what has historically been > done by the qemu-user-static based official-build servers. The reference to qemu-user-static was meant to be for with /nxb-bin/. . . (or some form of native tools). It is the native tools that initially have MACHINE_ARCH being amd64 by default for the example contexts. Absent that, qemu-arm-static would likely report armv6 for all arm's until the explicit assignment. (The "armv6" is a single compile-time constant in the qemu-arm-static source at this time.) So this likely would behave as on a native build: -O . > And that leads to questioning the need for -O instead of -O2 > for armv[67] and possibly some mips contexts. > > Or, going the other way: Should -O be forced and have an > exp run for, say armv7 ? An example of what would be found is > what I ran into for x11/pixman when its build used -O (native) > instead of -O2 (cross-build via qemu-user-static) and a link > command failed for -O use. (It was the failure that started my > looking for what was different from my prior cross-build that > had worked.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)