From owner-freebsd-x11@freebsd.org Thu Nov 15 02:21:26 2018 Return-Path: Delivered-To: freebsd-x11@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 E8FBC110B6A7 for ; Thu, 15 Nov 2018 02:21:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-4.consmr.mail.bf2.yahoo.com (sonic306-4.consmr.mail.bf2.yahoo.com [74.6.132.43]) (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 95A047B0CE for ; Thu, 15 Nov 2018 02:21:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: .FUg5pwVM1k3PNZ0jVLarF.eox29r5SpgCKWFUv7ukljGTRc.uFr8fGqFAO0E8k Y8m96G03cUd9tSFU6c.WVhxjgSzF9Sa1UMsh8aXpCwswCcEWMQW0i9BbDtF138gjcijxj.KWgNlk ELCu48vTzwdImMFz4KMUzQddOf8LYBwLBaLypfuMTpvRq0FXxAcHmGQUo1aEVqQypHhFIlLzJ2bQ S_Y_QouDQ9MaXSG.csglXXM.OFsE9dx7pGKvyWRUfAWz5QIeqcNku__tThZHUprKqPZHL3fqgXzk Pm1_HjDcTtcJBHLbJld1.a.PL2EByWRrwgupU6WTYpp8ozUw3M3pdt3THGsa46UPLPRjewIX_djR ZhBR28SBU6wz2Py31XcAsDggjByoAz8SqpIqF_L5dfK_abeiNIotrlcpOPYCbUPcsuxBfT3rjOea esak7SkTcnhAyAfO_vNFjkk9JY7fOnPrqnl2_5keXgAFT3Q9wxqtFIVxLqmVj86iTN9g0NMK6s7n tY15E2pGl7gfDIL7AHpptVeLbaNNTjA86sstT327DADJIFwxNNqZhdBWyHNTyZRXe1MOekDkhYPj Rz3_ifnMT2BBqAuXCYkYNxCK.0R3a8w5g0dGSfB78bEiZm4z15Jb6uHhmB33Bw0EKMuj1ItohtHx iHh5QgYIrHr6znPkrDBH.K.tM71hFiBhTMD2kxt8Steh6DgEt5.uJv2hvTwJXwrQY80ENNubV5Fa 3Boe5fMJJSLq21NNEPr_HTABQ6qzGv0Jzd0E1_YR7pzsIT8dmn_WVmbht6BOof0_JVjN7oh2MqH_ hN0ve1DAYNKybcee4HJNyrlxgAZ4AG.WmBaGSIlvrpKuGjsYSUjJJX8JlVcIdq0hIijHlKv3cAFl 4pd8nQZFITFbDHLE8AU4T9gRYOC8FFvDDqc8AmAQoCP_ngLd9GfBu4HqKoyfjxp4RUDK1aeUQIVM MlrfuRcq5gdPNd4c3VSZdWmbJocpzvikHTFWHbiohy1GBMSzx6yoFiZ3e_gVHpYG.M3Kciz2Fn9B EtSFA5_SwDBvNAPQLThhpnpaqEiMvyeOFM.5hHmxP4GojC3F4I4zi Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Thu, 15 Nov 2018 02:21:18 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp412.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e817131ac13f74c1d602d0057e53691f; Thu, 15 Nov 2018 02:21:14 +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: <9cf37f5d-3aea-390c-e553-42ab3efe1c98@FreeBSD.org> Date: Wed, 14 Nov 2018 18:21:12 -0800 Cc: ports-list freebsd , freebsd-x11@freebsd.org, Jan Beich , Warner Losh , "Simon J. Gerraty" Content-Transfer-Encoding: 7bit Message-Id: 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: 95A047B0CE X-Spamd-Result: default: False [1.24 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com]; NEURAL_HAM_MEDIUM(-0.26)[-0.258,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.71)[-0.710,0]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.92)[0.921,0]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCVD_IN_DNSWL_NONE(0.00)[43.132.6.74.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; IP_SCORE(1.80)[ip: (5.40), ipnet: 74.6.128.0/21(2.04), asn: 26101(1.63), country: US(-0.10)]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 02:21:26 -0000 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. 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)