From owner-freebsd-ports@freebsd.org Tue Nov 13 04:41:47 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 1A58F1103B48 for ; Tue, 13 Nov 2018 04:41:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-15.consmr.mail.bf2.yahoo.com (sonic315-15.consmr.mail.bf2.yahoo.com [74.6.134.125]) (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 67F877255B for ; Tue, 13 Nov 2018 04:41:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: tk.IIMQVM1l_2KNldd48dj9fC_V685Sa7PW16U5px9TizCcrCM.CYbjfL_497Td oNqmaI6W0Mqog2IhFLSVQpoXOvSBh2vnKG4MDmHXLNdB.TPqn8nkvMkpjrfMbByH3UoO3FQAqyWR 4IIQm99c7BmgCz6qqnRsfopN7_M8jb9SDSlsaFtUheGCQ6nANI5uYDVJnvpXzVqEN1yqg9s8HNqx Y9nuudRhbF6Dan7NWG9PB1VCP2anqIGMsmbnYlb4nYdZytdnibGmPRuIvo.Ws.PzjPZahyvoYG1B .nPgIBejgBjOOJm82f8UWO8j_pLR08GRiY_HgxPofhubGA4PApb80joD0yjkNUnI5dWz2cp_zYPe ItazNBVxYmRnlzMFB7xNo09Jch.2yiGJEabG9LX5zWGcaOdNiBAym5Y0iL1hDUBLxE8AeI9XSbkW 7hPV2yWDDk6Dy4PX08naZJC3z7lCxpXpo.x0fnVv1Pi7vVq6JxKMnRM.IQd9.OfvEuzi1O6VxM0W 4xN4nuBulOCYz7bPKBLGXjfviNQaEn2iDmRelB0uLV3fZBMs2m_5BR2Gzp8XQH9J_b2VqXjmMazW 07CWkkcc4ejbdiWSd1If0J3P_zmiUr6Cl2iJ8zovhp0E3NWo83LnqunIPh0E8aD15XCfteMsi4cI H1gEAKs.pBuL92ZINxy3R99JdAH8UulhG4sYF8oOACt0N13Vy1VFNZMHhCtCIljX3PNHofQRJNhk Zaw9.tMw3K_gMwkitIf5YYcToCbaxF1os5ZHiF7c7fKKIP5Lw5LjmvwgLILmqXwj2YDp_zKvN3tN Sz.N4Q1pRGB531xhsK8HO4jZRAiOGUkQc_Z_KTjwI5i8_fPZvl2ZqkgQX5ng_08tOge3DlXpw8vl QE9hox0WvtBlqfaeVJCudYhldWDWF6UVvPjkW4ry5i11XU2j21X3.3IipIM3MKMmYHRP_ouUJJh9 DKeKhRR_fTQrmQP1K5UVT4oKzZtIjNrh0jEOOZjB5zDtEjcl999Tn_6zpoCwmk38JZtgKlcE2Qrm Wzl5C6aa2zrqOujbddeAqpH7igtsFFeRSIqNy4NKb2s_CANCn Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Tue, 13 Nov 2018 04:41:39 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp413.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2ff76de179b3e7f7d32b014efc684b41; Tue, 13 Nov 2018 04:41:34 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: qemu-arm-static: bsd-user/arm/target_syscall.h: #define TARGET_HW_MACHINE_ARCH "armv6" // what of armv7? Message-Id: <3B210EB1-E7A8-4C77-B418-D82C58AE7290@yahoo.com> Date: Mon, 12 Nov 2018 20:41:32 -0800 To: Sean Bruno , Kyle Evans , ports-list freebsd X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: 67F877255B X-Spamd-Result: default: False [1.41 / 200.00]; RCVD_VIA_SMTP_AUTH(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]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; SUBJECT_ENDS_QUESTION(1.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)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.52)[-0.521,0]; R_DKIM_ALLOW(-0.20)[yahoo.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.52)[0.524,0]; NEURAL_HAM_LONG(-0.79)[-0.794,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.72)[ip: (4.96), ipnet: 74.6.128.0/21(2.06), asn: 26101(1.65), country: US(-0.09)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[125.134.6.74.list.dnswl.org : 127.0.5.0] 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: Tue, 13 Nov 2018 04:41:47 -0000 11.x: o 11.2-STABLE armv6 BANANAPI o 11.2-STABLE armv6 BEAGLEBONE o 11.2-STABLE armv6 CUBIEBOARD o 11.2-STABLE armv6 CUBIEBOARD2 o 11.2-STABLE armv6 CUBOX-HUMMINGBOARD o 11.2-STABLE armv6 RPI-B o 11.2-STABLE armv6 RPI2 o 11.2-STABLE armv6 PANDABOARD o 11.2-STABLE armv6 WANDBOARD 12.x+ (I got the list from a 13.0 snapshot announcement): o 13.0-CURRENT armv6 RPI-B o 13.0-CURRENT armv7 BANANAPI o 13.0-CURRENT armv7 BEAGLEBONE o 13.0-CURRENT armv7 CUBIEBOARD o 13.0-CURRENT armv7 CUBIEBOARD2 o 13.0-CURRENT armv7 CUBOX-HUMMINGBOARD o 13.0-CURRENT armv7 RPI2 o 13.0-CURRENT armv7 PANDABOARD o 13.0-CURRENT armv7 WANDBOARD o 13.0-CURRENT armv7 GENERICSD So as of 12.x+ most are armv7 --as are most new ones expected to be. As stands, in my amd64 -> armv7 13.0 cross-build activity, uname -p and the like under the chroot context are returning armv6 instead of armv7 unless I override via a UNAME_p definition. This appears to trace back to: bsd-user/arm/target_syscall.h and its: #define TARGET_HW_MACHINE "arm" #define TARGET_HW_MACHINE_ARCH "armv6" and lack context sensitivity, such as to the FreeBSD version that it is in use under. So it seems that most 12.x+ use needs to define UNAME_p to actually have armv7 in uname output and the like. I noticed this by trying a armv7 buildworld under a chroot and it reported: make[1]: "/usr/src/Makefile.inc1" line 577: To cross-build, set TARGET_ARCH. This was because of Makefile.inc1 and its: .if make(buildworld) BUILD_ARCH!= uname -p .if ${MACHINE_ARCH} != ${BUILD_ARCH} .error To cross-build, set TARGET_ARCH. .endif .endif in which it compared armv7 != armv6 and stopped the build. As it sees things under qemu-arm-static, only armv6 is a native buildworld, the rest are cross-builds. Ports could be choosing inappropriately based on armv6 being reported in/for armv7 contexts. Should ports normally see armv6 instead of armv7 on FreeBSD 12.x+ for some reason? Or would this better be changed to armv7 as the default for such contexts? Should documentation report on the issue and how to handle it when the default is inappropriate? === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)