C FreeBSD 14.3: What package(s) do I need to get x86_64 libraries to allow cross building binaries targeting FreeBSD x86_64 on arm64 system?

I have gcc and LLVM installed and I can cross compile code to generate FreeBSD x86_64 objects but my system seems to be missing the necessary x86_64 libraries to allow linking. I;m assuming there is some package(s) that I need to install in order to get these? Can someone please give me a pointer?
 
Just the standard libraries such as C runtime etc. that a C program that uses sockets requires. Nothing fancy. I can't find them anywhere in my fresh 14.3 install. I tried copying /lib and /usr/lib from the x86_64 version to /x8664 and then using --sysroot=/x8664 but that then fails with a bunch of other errors, almost as if the x86_64 libraries have different entry points compared to the ARM64 ones.
 
That guide is for compiling ARM64 on AMD64. The poster needs a guide for AMD64 compiling on ARM64.

I suppose you could reverse the environment settings to start with and see where it fails:

export TARGET=amd64
export TARGET_ARCH=amd64
 
That guide is for compiling ARM64 on AMD64. The poster needs a guide for AMD64 compiling on ARM64.
Yes, I know. I assumed that recommending that guide to cross-build arm64 on amd64 would suggest reversing the environment settings for cross-building amd64 libraries on arm64.
 
It is a question I have never heard asked. Maybe somebody has a Ampere system at their disposal.
Is this a turning point for ARM64? Hardware parity?
 
Back
Top