Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Sun, 13 Aug 2023 17:10:16 UTC
Mark,

> On 13 Aug 2023, at 19:04, Mark Millard <marklmi@yahoo.com> wrote:
> 
> No arm64.aarch64/tmp/ SYSTEM_COMPILER or SYSTEM_LINKER bootstrap compiler/linker were built.
> 
> From what I can tell, this leads to:
> 
> cc -march=armv7 -m32 -target armv7-unknown-freebsd14.0-gnueabihf  -DCOMPAT_LIBCOMPAT=\"32\"  -DCOMPAT_libcompat=\"32\"  -DCOMPAT_LIB32  --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp  -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib32  -O2 -pipe -fno-common -fPIC  -g -gz=zlib -MD  -MF.depend.libssp_nonshared.o -MTlibssp_nonshared.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter  -Qunused-arguments    -c /usr/src/lib/libssp_nonshared/libssp_nonshared.c -o libssp_nonshared.o
> 
> using the pre-existing system compiler that, in your context, gets:
> 
> error: unable to create target: 'No available targets are compatible with triple "armv7-unknown-freebsd14.0-gnueabihf"'
> 1 error generated.
> 

True, exactly the same error I’m getting.

> 
> I doubt that "make package" was tested for being able to handle
> the lib32 addition to aarch64 builds for SYSTEM_COMPILER or
> SYSTEM_LINKER bootstrap cases.
> 

I’m getting it in buildworld, not in packages (it does not come to packages target)

otis

—
Juraj Lutter
otis@FreeBSD.org