From owner-freebsd-emulation@freebsd.org Mon Dec 31 08:05:47 2018 Return-Path: Delivered-To: freebsd-emulation@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 129DC142AD5C for ; Mon, 31 Dec 2018 08:05:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-20.consmr.mail.ne1.yahoo.com (sonic309-20.consmr.mail.ne1.yahoo.com [66.163.184.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 37B098F007 for ; Mon, 31 Dec 2018 08:05:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: oyA5EscVM1mqNZkxzVcgwUqOKvV_U3MMD3PfEZxE_7AieulH4igtebPJaoW6pk8 hK1ONZrFGv8Fx0ncA0cuBJWacJMWD1G7hV0Y0AqB1C2fAD4ztXhFj7ocFQsK9Ne6WEpIFgyExWdW KmCzFjIoUcrt0bGjBCftAzAyOXlkNlseptznyyiodskp2aVZDpVIR2bCswSmxCK_yMEvhYqMkIJP D9jQs4KXG2W756WJvaDhMAPwb.ekLf2XxUEPYUq2TTJL0TzgVULeXcPPwpPu8Piiofi5FcdV90vS 0P2hDfePQJJPjAV0FsSZSKpFGozNPw0GjZggko7PRs8Y3wM7IOdZAu_Vt6Bh0B0pv6moKi9f4Nfq eDdq8QE6iNl1kyhqjZOylUhTXpqjXvzqcUZ63KiZs1ruVFKNDtFcRFyPGjIVl.eK3vpdGQYiP5_q rLf4hq0k6zDPDSOdkXAhZIv53AJpWWcgKWwQiDgrPDvRp7EcSRCL3GWE5a..dGHkXxk0bCXxhbMr aV3Bjj0XOAw4dOxyjYMZ31FU6euUTAblvg8Vhd2ToLDzlQpR3zF3HGnqh9TVW0Jb4nyR7INTSO1g plKKY7L66YOEVkHXPE1ekAe0S0.eahjFXC7Z2va20w_glHUvfDYq6HzqOidIhdK87VVVd3Sdacw_ bnq0vVK46MXBETwCHXHTmCNv.4IqOxtTYRA0ZoPgidpAN0Z1slNo4OHSXAkLKo0IdfxvkQZnXvB_ VGL8c4VFYm.GxUTocR9EiNSNm53GtP9W7p270Nf67NvbjV4iQhU6.QOhmPWtSyvb5iKK8AuZY8k. ZoIm0q3v0iEwLxjR8fxPb.Ebd6UCstE5ZZRk.PVpyLR3CHwjN9eGaU7E2mpJdd.dctz9xHiBwgky E0YLlmYJF0H8jiv63SpL0vg00vTT0I233ZtpMjTvl8yP4NtafXdo0OQK_oOhqPBRfAPAY4WYDnLI SsAJgLEjCP5DTCocGB_VEOx7EL5GmNC4pFbD2zxyiuOSZTnHEPRS37Kqvt0JZAJ6qxnuIXhB1cMP sUEcdez.ZPgMgsrTYQxXkm06kjleBPqrGKoWksaTpySWvZpThuUwLy6H5APtAf3gm4.UoSmAjsoc - Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Mon, 31 Dec 2018 08:05:37 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.109]) ([67.170.167.181]) by smtp417.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9a7d61f623df156aa1a0a58f98273bbf; Mon, 31 Dec 2018 08:05:33 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: A reliable port cross-build failure (hangup) in my context (amd64->armv7 cross build, with native-tool speedup involved) [details of a specific qemu-arm-static source code problem] From: Mark Millard In-Reply-To: Date: Mon, 31 Dec 2018 00:05:31 -0800 Cc: mmel@freebsd.org, freebsd-emulation@freebsd.org, FreeBSD Current , freebsd-arm , ports-list freebsd , FreeBSD Toolchain Content-Transfer-Encoding: 7bit Message-Id: <82478A45-7D15-4995-B333-FC42B39E5345@yahoo.com> References: <865A13C8-9749-486E-9F79-5EEDDECBE621@yahoo.com> <0154C3AC-D85B-4FCF-BA63-454BC26BC1A2@yahoo.com> <13f5e4dd-33fb-2170-e31a-1b5d5f155869@freebsd.org> <2E3F6196-4652-40D2-937F-8860B6005A35@yahoo.com> To: Jonathan Chen X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 37B098F007 X-Spamd-Bar: + X-Spamd-Result: default: False [1.74 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_SEVEN(0.00)[7]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; 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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.54)[-0.544,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.64)[0.642,0]; NEURAL_HAM_LONG(-0.42)[-0.425,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.08)[ip: (3.39), ipnet: 66.163.184.0/21(1.15), asn: 36646(0.92), country: US(-0.08)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[146.184.163.66.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[146.184.163.66.rep.mailspike.net : 127.0.0.17]; SUSPICIOUS_RECIPS(1.50)[] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2018 08:05:47 -0000 On 2018-Dec-30, at 21:01, Jonathan Chen wrote: > On Mon, 31 Dec 2018 at 14:34, Mark Millard via freebsd-ports > wrote: >> >> [Removing __packed did make the size and offsets match armv7 >> and the build worked based on the reconstructed qemu-arm-static.] > > Thanks for the analysis Mark! I've been suffering quite a few hangups > with my ports crossbuilds on amd64->armv7 on 12-STABLE, and I'll be > trying your suggestions to see whether it resolves the issue. If you have something like a kqread state for a hang-up consistently in the same place, then Mikael Urankar 's fix (or any other way of getting the right sizes and field offsets for kevent) has a chance of fixing what you have observed. But if you have a form of hang-up that shows no sign of being tied to kevent or hangs-up only sometimes, I'd be surprised if the __packed change(s) would fix the issue. I've seen such racy hang-ups from lld's creation of (#cpu)+2 threads, as FreeBSD counts cpus. I've selectively forced -Wl,--no-threads at times in specific contexts to avoid that. binutils ld does not tolerate the option. ports does not appear to have an equivalent of: LDFLAGS.lld+= -Wl,--no-threads that would be lld specific. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)