Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2018 17:48:41 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   "base/binutils should not be pulling in any other ports at all"? (That confuses me.)
Message-ID:  <A61C053F-721E-45E3-AA12-DCF0773E2DB8@yahoo.com>
In-Reply-To: <3c10995e-2c84-a140-ed4d-449ce61d3d05@FreeBSD.org>
References:  <4C338B84-1179-4569-A964-CA18A22AF1D7@yahoo.com> <F71D7FCC-801E-498C-8B68-2D25FA55A36A@yahoo.com> <3c10995e-2c84-a140-ed4d-449ce61d3d05@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-Oct-10, at 3:13 PM, John Baldwin <jhb at FreeBSD.org> wrote:

> 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.

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.)

All versions of binutils have direct build dependencies on:

math/gmp
math/mpfr
devel/bison
devel/gmake

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.)

The following may not be complete but is suggestive.


Build dependencies:

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.*

So removing multiple listings:
(some runtime and library dependencies not covered yet)

math/gmp
math/mpfr
devel/bison
devel/gmake
devel/m4
misc/help2man
devel/p5-Locale-gettext
devel/gettext-tools
print/texinfo
lang/perl5.*

(I'm not explicit about which perl5 version.)

Runtime dependencies:

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

So this adds, removing multiple listings:

print/indexinfo


Library dependencies:

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

So this adds, removing multiple listings:

devel/gettext-runtime
converters/libiconv


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:

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


>   Everytime I've
> built it it has had no other dependencies beyond pkg.

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.

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.

>   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.

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?A61C053F-721E-45E3-AA12-DCF0773E2DB8>