Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2018 06:51:54 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        John Baldwin <jhb@FreeBSD.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   powerpc64 example, base/binutils presence vs. devel/powerpc64-gcc build  failure: "phase: build-depends" confused then gcc config aborts build
Message-ID:  <925D3E9A-4EF0-4B49-83D4-C9574170EB66@yahoo.com>

next in thread | raw e-mail | index | archive | help
The following is from attempting to build devel/powerpc-gcc
via poudriere-devel on the powerpc64 system after having
bootstrapped via (in part) base/binutils and the .txz
produced on the host (amd64).

Looks like having both:

/usr/bin/powerpc64-unknown-freebsd12.0-*
and:
/usr/local/bin/powerpc64-unknown-freebsd12.0-*

in a powerpc64 environment confuses "phase: build-depends"
in poudriere for the devel/powerpc64-gcc build:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phas=
e: build-depends  >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D>   powerpc64-gcc-6.4.0_2 depends on executable: =
powerpc64-unknown-freebsd12.0-as - found

I.e., poudriere finds /usr/bin/powerpc64-unknown-freebsd12.0-as
and concludes that devel/powerpc64-binutils does not need to be
installed for the devel/powerpc64-gcc to build.

Eventually this leads to aborting based on gcc's config noticing
an oddity:

. . .
checking for ld used by GCC... /usr/bin/powerpc64-unknown-freebsd12.0-ld
checking if the linker (/usr/bin/powerpc64-unknown-freebsd12.0-ld) is =
GNU ld... yes
configure: error: cannot execute: =
/usr/local/bin/powerpc64-unknown-freebsd12.0-ld: check --with-ld or env. =
var. DEFAULT_LINKER


This is associated with:

CONFIGURE_ARGS+=3D--target=3D${GCC_TARGET} --disable-nls =
--enable-languages=3Dc,c++ \
                --enable-gnu-indirect-function \
                --without-headers \
                --with-gmp=3D${LOCALBASE} \
                --with-pkgversion=3D"FreeBSD Ports Collection for =
${PKGNAMEPREFIX:C/-//g}" \
                --with-system-zlib \
                --with-gxx-include-dir=3D/usr/include/c++/v1/ \
                --with-sysroot=3D"/" \
                --with-as=3D${LOCALBASE}/bin/${BU_PREFIX}-as \
                --with-ld=3D${LOCALBASE}/bin/${BU_PREFIX}-ld

having the --with-ld not list the */bin/${BU_PREFIX}-ld it actually
finds and tests in config ( /usr used instead of ${LOCALBASE} ).


If any other port binds to devel/powerpc64-binutils it probably
has the same sort of issue. (Unlikely?)

This is not likely to be specific to powerpc64 as a base/binutils
target: powerpc64 is likely just an example.

=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?925D3E9A-4EF0-4B49-83D4-C9574170EB66>