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
This email address is no longer monitored. Please see Altitude Endeavors website for contact information.
On Mon, Oct 8, 2018 at 2:01 PM Bryan Murdock <bryan.murdock@ubnt.com> wrote:
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...
This patch fixes the above: --- a/scripts/libtool.mk 2018-10-08 09:22:59.032031858 -0600 +++ b/scripts/libtool.mk 2018-10-08 15:04:18.406661484 -0600 @@ -43,8 +43,8 @@ ifeq "${LIBTOOL}" "JLIBTOOL" # binary! ${JLIBTOOL}: ${top_makedir}/jlibtool.c $(Q)mkdir -p $(dir $@) - $(Q)echo CC jlibtool.c - $(Q)${CC} $< -o $@ + $(Q)echo HOSTCC jlibtool.c + $(Q)${HOSTCC} $< -o $@ clean: jlibtool_clean
This email address is no longer monitored. Please see Altitude Endeavors website for contact information.
participants (3)
-
Alan DeKok -
Bryan Murdock -
phil@altitudeendeavors.com