From owner-freebsd-ports@freebsd.org Tue Jul 21 08:51:50 2020 Return-Path: Delivered-To: freebsd-ports@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 0700637B9F6 for ; Tue, 21 Jul 2020 08:51:50 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.84]) (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 4B9slk31Sbz4LLP for ; Tue, 21 Jul 2020 08:51:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 2FmLQCAVM1lZ9tTOxLjghWuTxh09xnKTR6S0GtaA1lsXMAZdLJpFeKWmjAmxbro fr0PL91T3AfIJREfzeCHS.4m81njBgxOI2vY8SlWLkUP8pQZTGbO.a.14Y5uGCTxB1NCKtr2WrW0 bKwyvg0vUm7yTFPuktJ2t1.fD2jPaFpZtmOxRnQU1NI_c.qA0A6bywWN88sxkW5BoWY1l2IHSIhB DnlA2b6UD.B9TmSDB4OiZaF4rOVo5R3tfKYsioM8cKZlhIQvSeVQSP9n0_FHxs29crmH_Xi3rt.g veMhSOPFgP01YH_yUaFY76pPiOhnb88jivs03CNTyegl8KTNJKP_yG_FvMlAi0WT_M8wYeh1HKIO hmhdquqnOWDaQw9cEvgfFIWbNUJnDYHBwzfjgeRjXnftUpWx0qGSvdSjHzI2Gic7Ngl6_07y_OMx 8xfbNqQMyOU1Qn2trMIFe1vdZKo5TS0zKnDjE4I.yx3tn4_dfpS43XE4Q7zCS56CaK3r2aZE7fDw 0XgR98DcX75MxJiM7rLZNp7IYvCFI.OYL.OghUC7nnvWEq_ksiJ1HJRAz.fX6FTSbkoVv0.C9Qdw T8ljRX9qYVWCJj3wrTbaBllUYp0f926VjPJAaBjq_l4p99rZX0FANAAnLNoiR3LFbqsb9npiIsx6 CKBEgtPOfZX5Luzk_HNx.VJiFNCGgHhvyyVSvxs69QVBHyEEztGn.2o1dVX8kOGPBkFQllZ6xGIy zKscweA4CjRmK4idKF99SCf7a6zeOooizUn.qs1QyNQw66A.Y6ZLfzmeFqnN..LlvW7hzlSdkI2j .YgfA8J3Le9mjRL9DDMLNmhKaO0_5zjULLbtUKRz1FrMx5mZJP8Fm.8NpTGXMEVZEK6n40mDsAim Y3afvy6uzH6MXQItKZrCW.1bBQfK6HkXK8j3znsptrsx127mquU3yqR5THMCa_KZzV019v21KOcu 0lu.EY3bnxPZxfTBGUV8xI7OIzZBNi9l1u9zwXfe9qYGslWl6FMsshgXFGgjTflQxwNXtinrTpDP EI2tZeaQgjMvedNQxtRz20ILIji2q1S1QltKCGb2U2FH354ou311F7nzFyzxx7lYnR2PnSCoPZzN WRZsKKpEv9vAGpISFDDFVHwL5HLUrTzJQbv6wawnRo232_pU7hAHDupOui4DBM_rHfES7YJK0.PG VcFGh4BmPza7Qrw1IwLvRNc6QWSyp576G0idvUIWWu0rgqIeP_hS0A8VjdJJG7QMCg81Au5bLyiC qRrgCC6ycA2zYTvwXO5FspgXU6SI8sA4LMQjVYgkRVMbJY7gSoNgi5OFx_3yxlw5BKrOcc2JFXzN SM12CUMqwVz1pUZWRDeTgJOKz2Qj8zjbxENjfM._avwqoOoeWsT0Ur7c77hZO7_xNEY0vpCnb0kb 7O3L_g1fB88q81kDrFsz2qpIEk2dV_5oOVEFtvUK1Fo5pSg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Tue, 21 Jul 2020 08:51:44 +0000 Received: by smtp401.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e59d5712c6017917dd2edc85ba3ed84d; Tue, 21 Jul 2020 08:51:42 +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.4 \(3608.80.23.2.2\)) Subject: Re: Why lang/gcc9 depends native-binutils ? Message-Id: <6B21B9C0-62D5-4ED7-94EE-7715B002F160@yahoo.com> Date: Tue, 21 Jul 2020 01:51:41 -0700 To: FreeBSD ports X-Mailer: Apple Mail (2.3608.80.23.2.2) References: <6B21B9C0-62D5-4ED7-94EE-7715B002F160.ref@yahoo.com> X-Rspamd-Queue-Id: 4B9slk31Sbz4LLP X-Spamd-Bar: - X-Spamd-Result: default: False [-1.84 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.38)[-0.380]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.964]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.992]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.84:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.84:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 08:51:50 -0000 KIRIYAMA Kazuhiko kiri at truefc.org wrote on Tue Jul 21 02:33:25 UTC 2020 : > checking for iconv declaration...=20 > extern size_t iconv (iconv_t cd, char * *inbuf, size_t = *inbytesleft, char * *outbuf, size_t *outbytesleft); > *** BFD does not support target native-unknown-freebsd13.0. > *** Look in bfd/config.bfd for supported targets. > gmake[3]: *** [Makefile:3563: configure-binutils] Error 1 > gmake[3]: Leaving directory = '/var/ports/work/usr/ports/devel/binutils/work-native/binutils-2.33.1' > gmake[2]: *** [Makefile:851: all] Error 2 > gmake[2]: Leaving directory = '/var/ports/work/usr/ports/devel/binutils/work-native/binutils-2.33.1' > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to > the maintainer. > *** Error code 1 lang/gcc9/Makefile references binutils via: BUILD_DEPENDS+=3D ${LOCALBASE}/bin/as:devel/binutils RUN_DEPENDS+=3D ${LOCALBASE}/bin/as:devel/binutils . . . USE_BINUTILS=3D yes The BUILD_DEPENDS and RUN_DEPENDS references to binutils are to the assembler that binutils generates and installs. So gcc9 needs to be able to use that assembler at both gcc9 build-time and gcc9 run-time. The notation leaves the FLAVOR implicit/empty and so should lead to devel/binutils/Makefile using its line: FLAVOR?=3D native to assign the "native" for its own internal logic to use. Hmm. The "target native-unknown-freebsd13.0" looks very odd to me. The only lines in the devel/binutils Makefile to deal with "unknown-" text directly are: # grep -r unknown- /usr/ports/devel/binutils/ /usr/ports/devel/binutils/Makefile:BUTARGET?=3D = ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} /usr/ports/devel/binutils/Makefile:BUTARGET=3D = x86_64-unknown-${OPSYS:tl}${OSREL} (I'll later deal with an indirection where "_" is replaced by "-".) Only the 1st line of that pair would potentially form "native-unknown-" text. So looking at the context of the first line I find (". . ." for omitted lines): FLAVOR?=3D native . . . .if ${FLAVOR} !=3D native PKGNAMEPREFIX=3D ${FLAVOR:C/_/-/g}- PLIST=3D ${PKGDIR}/pkg-plist-${FLAVOR:C/_/-/g} .if ${PKGNAMEPREFIX:M*-*-} BUTARGET?=3D ${PKGNAMEPREFIX}${OPSYS:tl}${OSREL} .else BUTARGET?=3D ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} .endif . . . CONFIGURE_ARGS+=3D --disable-shared \ --target=3D${BUTARGET} .endif (That is also the only instance of "--target=3D" in the Makefile.) The ${FLAVOR} !=3D native test should mean that the code is not used for FLAVOR being exactly "native". There is a separate code block for: .if ${FLAVOR} =3D=3D native BUREMOVE=3D coffdump \ dlltool \ dllwrap \ nlmconv \ srconv \ sysdump \ windmc \ windres USES+=3D localbase CONFIGURE_ARGS+=3D --with-system-zlib \ --with-gmp=3D${LOCALBASE} \ --with-mpfr=3D${LOCALBASE} \ --enable-targets=3Dall \ --enable-threads=3Dyes INFO=3D as \ binutils \ gprof \ bfd \ ld .endif But that code does not specify a specific target (instead: "--enable-targets=3Dall"). There is the FLAVOR value "riscv32_unknown_elf" that could produce target "riscv32-unknown-elf-freebsd13.0" but that is not what was reported as involved. I've ignored CROSS_TOOLCHAIN infrastructure as it was not mentioned as being in use. I do not see how devel/binutils/Makefile would generate "native-unknown-freebsd13.0" text on its own. Sorry I've not been able to identify anything for the error. I'll note that I build ports with poudriere (-devel variant) and have not had the problem in that context. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)