Open
Description
Attempting to cross-compile for Android/AArch64 fails with the message:
configure: error: cannot check setpgrp when cross compiling
Full log:
$ mkdir build install
$ cd build
$ env "PATH=<toolchain-path>/bin:$PATH" ../configure --host=aarch64-linux-android --prefix=$(realpath ../install)
checking for aarch64-linux-android-gcc... aarch64-linux-android-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether aarch64-linux-android-gcc accepts -g... yes
checking for aarch64-linux-android-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... aarch64-linux-android-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /bin/install -c
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for 'sig_t' typedef... yes
checking for 'struct passwd'... yes
checking for 'pw_comment' field... no
checking for 'pw_gecos' field... yes
checking for predefined 'bool' type... no
checking for TRUE constant in standard headers... no
checking for FALSE constant in standard headers... no
checking for initgroups... yes
checking for getpgrp... yes
checking for setpgrp... yes
checking for setsid... yes
checking whether getpgrp requires zero arguments... yes
checking whether setpgrp takes no argument... configure: error: cannot check setpgrp when cross compiling
Metadata
Metadata
Assignees
Labels
No labels