Date: Fri, 12 Oct 2018 18:32:49 -0700 From: Mark Millard <marklmi@yahoo.com> To: John Baldwin <jhb@FreeBSD.org> Cc: FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: Re: "base/binutils should not be pulling in any other ports at all"? (That confuses me.) Message-ID: <7FDF7A77-D40F-4BE0-8440-9F3DC4C8E21D@yahoo.com> In-Reply-To: <A61C053F-721E-45E3-AA12-DCF0773E2DB8@yahoo.com> References: <4C338B84-1179-4569-A964-CA18A22AF1D7@yahoo.com> <F71D7FCC-801E-498C-8B68-2D25FA55A36A@yahoo.com> <3c10995e-2c84-a140-ed4d-449ce61d3d05@FreeBSD.org> <A61C053F-721E-45E3-AA12-DCF0773E2DB8@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[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 <marklmi at yahoo.com> wrote: > On 2018-Oct-10, at 3:13 PM, John Baldwin <jhb at FreeBSD.org> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7FDF7A77-D40F-4BE0-8440-9F3DC4C8E21D>