cross-compile problems

Bryan Murdock bryan.murdock at ubnt.com
Mon Oct 8 22:01:51 CEST 2018


I'm trying to cross-compile freeradius (using buildroot) and it's
failing in the configure stage:

checking for __builtin_choose_expr support in compiler... configure:
error: in `/home/bmurdock/work/os/output/build/freeradius-server-75d51694ad51865b41a3cf5a006c9968386c5bb1':
configure: error: cannot run test program while cross compiling

I removed that check from configure.ac and then ran into a few others
like it.  Here's the full list:

AX_CC_BUILTIN_CHOOSE_EXPR
AX_CC_BUILTIN_TYPES_COMPATIBLE_P
AX_CC_HAVE_BUILTIN_BSWAP64
AX_CC_HAVE_BOUNDED_ATTRIBUTE
AX_CC_HAVE_C11_GENERIC

After removing all of those, I still run into this error:

/home/bmurdock/work/os/output/build/freeradius-server-75d51694ad51865b41a3cf5a006c9968386c5bb1/build/make/jlibtool:
1: /home/bmurdock/work/os/output/build/freeradius-server-75d51694ad51865b41a3cf5a006c9968386c5bb1/build/make/jlibtool:
ELF    � � @@h�@@   @@@@@� �    @ @    @@�m�m   �m�mA�mA� �   nnA� �      @  @:
not found

The jlibtool file it's trying to execute is an arm binary (what I'm
cross compiling for):

$ file /home/bmurdock/work/os/output/build/freeradius-server-75d51694ad51865b41a3cf5a006c9968386c5bb1/build/make/jlibtool
/home/bmurdock/work/ubios/output/build/freeradius-server-75d51694ad51865b41a3cf5a006c9968386c5bb1/build/make/jlibtool:
ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically
linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 4.1.0,
not stripped

I haven't dug into that too deeply yet.  I'm aware of non amd64
platforms that run freeradius, I assume freeradius was cross-compiled
in those cases.  I wondered if anyone here had any ideas/pointers for
me.

Bryan



More information about the Freeradius-Devel mailing list