cross-compile problems

Bryan Murdock bryan.murdock at
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 and then ran into a few others
like it.  Here's the full list:


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

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
ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically
linked, interpreter /lib/, 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


More information about the Freeradius-Devel mailing list