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'"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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'"

freebsd-toolchain mailing list
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=powerpc64-gcc CROSS_SYSROOT=/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld package
===>  License GPLv3 GPLv3RLE accepted by the user
===>   freebsd-gcc-6.4.0_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by freebsd-gcc-6.4.0_2 for building
===>  Extracting for freebsd-gcc-6.4.0_2
=> SHA256 Checksum OK for gcc-6.4.0.tar.xz.
=> SHA256 Checksum OK for mpfr-3.1.6.tar.xz.
=> SHA256 Checksum OK for gmp-6.1.2.tar.xz.
=> 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
===>  Patching for freebsd-gcc-6.4.0_2
===>  Applying extra patch /usr/ports/base/gcc/../../devel/powerpc64-gcc/files/freebsd-format-extensions
===>  Applying extra patch /usr/ports/base/gcc/../../devel/powerpc64-gcc/files/freebsd-libdir
===>  Applying extra patch /usr/ports/base/gcc/../../devel/powerpc64-gcc/files/patch-gcc-freebsd-mips
===>  Applying FreeBSD patches for freebsd-gcc-6.4.0_2
===>   freebsd-gcc-6.4.0_2 depends on executable: gmake - found
===>   freebsd-gcc-6.4.0_2 depends on executable: makeinfo - found
===>  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=/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.
===>  Script "configure" failed unexpectedly.
Please report the problem to [hidden email] [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=/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld -O2 -pipe  -g -fno-strict-aliasing     conftest.c  >&5
configure:4439: $? = 0
configure:4476: result: a.out
configure:4492: checking whether the C compiler works
configure:4501: ./a.out
configure:4505: $? = 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.
. . .

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "[hidden email]"