Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2019 20:19:45 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        John Baldwin <jhb@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   amd64 -> powerpc64 port base/gcc use: "checking whether the C compiler works... Unable to load interpreter" and "If you meant to cross compile, use `--host'"
Message-ID:  <71E6ECD7-76B4-4C5A-9071-3CA0A20B4F24@yahoo.com>

next in thread | raw e-mail | index | archive | help
In trying to update powerpc64 from head -r344018 based to -r344825 based
context via amd64->powerpc64 cross builds: base/binutils worked okay
but base/gcc failed. This reports for base/gcc .

(I actually only use base/binutils normally but I try base/gcc in case =
it
turns out that I need it.)

# svnlite info /usr/ports | grep "Re[plv]"
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 494751
Last Changed Rev: 494751


# pwd
/usr/ports/base/gcc

# make CROSS_TOOLCHAIN=3Dpowerpc64-gcc =
CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld package
=3D=3D=3D>  License GPLv3 GPLv3RLE accepted by the user
=3D=3D=3D>   freebsd-gcc-6.4.0_2 depends on file: /usr/local/sbin/pkg - =
found
=3D=3D=3D> Fetching all distfiles required by freebsd-gcc-6.4.0_2 for =
building
=3D=3D=3D>  Extracting for freebsd-gcc-6.4.0_2
=3D> SHA256 Checksum OK for gcc-6.4.0.tar.xz.
=3D> SHA256 Checksum OK for mpfr-3.1.6.tar.xz.
=3D> SHA256 Checksum OK for gmp-6.1.2.tar.xz.
=3D> SHA256 Checksum OK for mpc-1.0.3.tar.gz.
cd /wrkdirs/usr/ports/base/gcc/work/gcc-6.4.0; /bin/ln -sf ../mpfr-3.1.6 =
mpfr ;  /bin/ln -sf ../gmp-6.1.2 gmp ;  /bin/ln -sf ../mpc-1.0.3 mpc
=3D=3D=3D>  Patching for freebsd-gcc-6.4.0_2
=3D=3D=3D>  Applying extra patch =
/usr/ports/base/gcc/../../devel/powerpc64-gcc/files/freebsd-format-extensi=
ons
=3D=3D=3D>  Applying extra patch =
/usr/ports/base/gcc/../../devel/powerpc64-gcc/files/freebsd-libdir
=3D=3D=3D>  Applying extra patch =
/usr/ports/base/gcc/../../devel/powerpc64-gcc/files/patch-gcc-freebsd-mips=

=3D=3D=3D>  Applying FreeBSD patches for freebsd-gcc-6.4.0_2
=3D=3D=3D>   freebsd-gcc-6.4.0_2 depends on executable: gmake - found
=3D=3D=3D>   freebsd-gcc-6.4.0_2 depends on executable: makeinfo - found
=3D=3D=3D>  Configuring for freebsd-gcc-6.4.0_2
configure: loading site script /usr/ports/Templates/config.site
checking build system type... powerpc64-unknown-freebsd13.0
checking host system type... powerpc64-unknown-freebsd13.0
checking target system type... powerpc64-unknown-freebsd13.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... (cached) =
/usr/bin/sed
checking for gawk... (cached) /usr/bin/awk
checking for libatomic support... yes
checking for libcilkrts support... no
checking for libitm support... yes
checking for libsanitizer support... no
checking for libvtv support... no
checking for libmpx support... no
checking for powerpc64-unknown-freebsd13.0-gcc... =
/usr/local/bin/powerpc64-unknown-freebsd13.0-gcc =
--sysroot=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld
checking for C compiler default output file name... a.out
checking whether the C compiler works... Unable to load interpreter
configure: error: in `/wrkdirs/usr/ports/base/gcc/work/.build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
=3D=3D=3D>  Script "configure" failed unexpectedly.
Please report the problem to bapt@FreeBSD.org [maintainer] and attach =
the
"/wrkdirs/usr/ports/base/gcc/work/.build/config.log" including the =
output of
the failure of your make command. Also, it might be a good idea to =
provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/base/gcc


The config.log has:

. . .
configure:4413: checking for C compiler default output file name
configure:4435: /usr/local/bin/powerpc64-unknown-freebsd13.0-gcc =
--sysroot=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld -O2 -pipe  =
-g -fno-strict-aliasing     conftest.c  >&5
configure:4439: $? =3D 0
configure:4476: result: a.out
configure:4492: checking whether the C compiler works
configure:4501: ./a.out
configure:4505: $? =3D 255
configure:4512: error: in `/wrkdirs/usr/ports/base/gcc/work/.build':
configure:4516: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
. . .

=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?71E6ECD7-76B4-4C5A-9071-3CA0A20B4F24>