From owner-freebsd-toolchain@freebsd.org Sat Oct 13 01:43:10 2018 Return-Path: Delivered-To: freebsd-toolchain@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 5EDAD10D38B3 for ; Sat, 13 Oct 2018 01:43:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-22.consmr.mail.ne1.yahoo.com (sonic305-22.consmr.mail.ne1.yahoo.com [66.163.185.148]) (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 EA7CD81122 for ; Sat, 13 Oct 2018 01:43:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: ZJ8WTaUVM1l.pzbseOmHDKhMpm8YasS_NMbaoqO0Paq8BiRa7bFOmHPuJMjNwIp kY5aZmLJ3KkNMzavWlvdBioyk3tPr77Mg0Ybz.C.15p2o7azDaP05mGf5UW0d5cwSWsiA6BSuTQO WmZYkP9L24ytdIGraXAoPdEjL.BTDSYSKLlkZQiLsfUOzMhfAedZpDsrIlWQXvyxwhXrM9qXoKjs NHYp5lH14tGRnC4pvXZokpgfjVWguzl66hViVTX1A2GaGT2Ieow9Z.0s.NA5wXD3db3PcAGzY7BN U1ehnjFGwDSmceTLPXwV7lMNAuTi8BI9KLX_VBehzYdvJNCWcUJDiG0b6ZA6itfJiOG0PvpQtJ13 kCiy90FrGyw3yDBXB_qG8Ygxh7amIIOIJeWP1HhZ3z.G0TXpIancUpMBAfBoeqq.EjqqJdhsbKlv XrR0558rpOUrb4UY1rckUABR12N4PLsIvQ8_Mjz63hgm7HddhEEFMEy3M6OmRvZt4YFIeu7R64Og sNP.a0hj0_mUWxXWeDB280TQWsWiT.OWc8vmdnfv.JmALjmF0gwBUI3xH00dnlLbBlCk4SCf8sGl K2DSl9JGOeUiHIbfaNY106mmYj6n8o17gyeugiBZoJ6c5_gfUassjhtAYCVwmn5QYh0lVGQhAPoA G.M4XZokv0FfTCFn.kgdOUqq4SszV9NekFHFdUbWTe55Ok1H2mPGqwRbJGEUkl4uPQnUNXhm4X4z d4k4zmcs_1OCaEAVfyA_FcYmHGgc2DhI5iMvSaTi7TMraMgA8elf45trfJYb4HLxmM49gVvfL_tx v39gfwrZiHiLPKB_wti3bOX.V3BIUQZ.RH22x7pFXLLJ2UkdjUL_WqdLG3DRP_0SC8Mw_7b7ptdd Y6BSNp6_B4QtI1QCie5B.yP_f8qBrEdrT4T6IJ46puDInvLkw41P.FoOYi6JpPWRDLFlTLbWiX6t 6KzJMYnYb.3Iyh7twrnaw82dR3XbHQQNREzxRsnyb6JyDMWJdm5JKqGhH.Gr4_IVif1oeameW..c WCF4.5VqX2zWVxg1QXw_pU5tlWfEiu0oVa2HCbSqekzFB9GnsoAj2j7YANHBDQasqqyELYpB6d3e l.xCO4TCwow-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sat, 13 Oct 2018 01:43:02 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp430.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID dd16601c3225be0f153d316a3f2b0b83; Sat, 13 Oct 2018 01:32:51 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: "base/binutils should not be pulling in any other ports at all"? (That confuses me.) From: Mark Millard In-Reply-To: Date: Fri, 12 Oct 2018 18:32:49 -0700 Cc: FreeBSD Toolchain Content-Transfer-Encoding: quoted-printable Message-Id: <7FDF7A77-D40F-4BE0-8440-9F3DC4C8E21D@yahoo.com> References: <4C338B84-1179-4569-A964-CA18A22AF1D7@yahoo.com> <3c10995e-2c84-a140-ed4d-449ce61d3d05@FreeBSD.org> To: John Baldwin X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Oct 2018 01:43:10 -0000 [Top post going in a somewhat different direction. Plus I listed the wrong version for bintils, not 6.4, but 2.30 .] I probably should have referenced the line in base/binutils/Makefile : MASTERDIR=3D ${.CURDIR}/../../devel/binutils which in turn brings in references for all the direct dependencies that devel/binutils normally has, such as seen via freshports. This is how things that are missing up front end up with an attempt to build them. I do not see anything that effectively would say "disable the dependencies that devel/binutils indicates". On 2018-Oct-12, at 5:48 PM, Mark Millard wrote: > On 2018-Oct-10, at 3:13 PM, John Baldwin wrote: >=20 >> On 10/6/18 12:22 PM, Mark Millard via freebsd-toolchain wrote: >>> [Actually devel/gettext-tools is a build time dependency: it should = not be using >>> libtool: link: /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc = --sysroot=3D. . . >>> It looks like the /usr/local/lib references are correct but the = wrong linker was >>> being used. About 5 other ports have a similar status for making = base/binutils >>> as a cross build.] >>=20 >> base/binutils should not be pulling in any other ports at all. >=20 > That last quote confuses me still. May be it means > it is all to be manually managed instead of automatic? > (The actual build using things link devel/bison on > the host if base/binutils is to build at all.) >=20 > All versions of binutils have direct build dependencies on: >=20 > math/gmp > math/mpfr > devel/bison > devel/gmake >=20 > as far as I know. Some of those in turn have more > build dependencies. Some of all that have Runtime > dependencies and/or library dependencies as well. > (Host context of usage.) >=20 > The following may not be complete but is suggestive. >=20 >=20 > Build dependencies: >=20 > math/gmp: print/texinfo > devel/bison: devel/m4 print/texinfo devel/gettext-tools lang/perl5.* > devel/m4: print/texinfo > misc/help2man: devel/p5-Locale-gettext devel/gmake devel/gettext-tools = lang/perl5.* > devel/p5-Locale-gettext: devel/gettext-tools lang/perl5.* > print/texinfo: misc/help2man devel/gmake devel/gettext-tools = lang/perl5.* >=20 > So removing multiple listings: > (some runtime and library dependencies not covered yet) >=20 > math/gmp > math/mpfr > devel/bison > devel/gmake > devel/m4 > misc/help2man > devel/p5-Locale-gettext > devel/gettext-tools > print/texinfo > lang/perl5.* >=20 > (I'm not explicit about which perl5 version.) >=20 > Runtime dependencies: >=20 > math/gmp: print/indexinfo > math/mpfr: print/indexinfo > devel/gmake: print/indexinfo > devel/m4: print/indexinfo > misc/help2man: devel/p5-Locale-gettext lang/perl5.* print/indexinfo > devel/p5-Locale-gettext: lang/perl5.* > devel/gettext-tools: print/indexinfo > print/texinfo: lang/perl5.* print/indexinfo >=20 > So this adds, removing multiple listings: >=20 > print/indexinfo >=20 >=20 > Library dependencies: >=20 > math/mpfr: math/gmp > devel/bison: devel/m4 print/indexinfo > devel/gmake: devel/gettext-runtime > misc/help2man: devel/gettext-runtime > devel/p5-Locale-gettext: devel/gettext-runtime > devel/gettext-tools: devel/gettext-runtime converters/libiconv > print/texinfo: converters/libiconv devel/gettext-runtime > devel/gettext-runtime: converters/libiconv >=20 > So this adds, removing multiple listings: >=20 > devel/gettext-runtime > converters/libiconv >=20 >=20 > Putting the 3 lists together I get that all the following > are used in building any 6.4 or so version of binutils > that is in ports: That "6.4" should have been: 2.30 (I inappropriately thought of the gcc version number originally.) > math/gmp > math/mpfr > devel/bison > devel/gmake > devel/m4 > misc/help2man > devel/p5-Locale-gettext > devel/gettext-tools > print/texinfo > lang/perl5.* > print/indexinfo > devel/gettext-runtime > converters/libiconv >=20 >=20 >> Everytime I've >> built it it has had no other dependencies beyond pkg. >=20 > I expect the dependencies were already satisfied at > the time of the attempted build of make/binutils > and so caused no additional build activity at the > time. >=20 > My environment tends to have somewhat less than normal > installed for development-environment type ports. The > ones that I listed above that I did not have trouble > with are exactly the ones that were in place beforehand. > The ones I had trouble with are exactly the ones that > were not in place beforehand. >=20 >> As far as I'm aware,=20 >> the only ports which work with CROSS_TOOLCHAIN and CROSS_SYSROOT are >> ports-mgmt/pkg, base/gcc, and base/binutils. >=20 > Good to know. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)