cross-compiling screen 4.2.1 fails
John Spencer <[email protected]>
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <[email protected]> |
$ CC="mips-linux-musl-gcc -L/media/3T/mips-prefix//lib -I/media/3T/mips-prefix//include" ./configure -C --prefix= --host=mips-linux-musl configure: loading cache config.cache this is screen version 4.2.1 checking for mips-linux-musl-gcc... mips-linux-musl-gcc -L/media/3T/mips-prefix//lib -I/media/3T/mips-prefix//include 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... (cached) o checking whether we are using the GNU C compiler... (cached) yes checking whether mips-linux-musl-gcc -L/media/3T/mips-prefix//lib -I/media/3T/mips-prefix//include accepts -g... (cached) yes checking for mips-linux-musl-gcc -L/media/3T/mips-prefix//lib -I/media/3T/mips-prefix//include option to accept ISO C89... (cached) none needed checking how to run the C preprocessor... mips-linux-musl-gcc -L/media/3T/mips-prefix//lib -I/media/3T/mips-prefix//include -E checking for grep that handles long lines and -e... (cached) grep checking for egrep... (cached) grep -E checking whether mips-linux-musl-gcc -L/media/3T/mips-prefix//lib -I/media/3T/mips-prefix//include needs -traditional... (cached) no checking for library containing strerror... (cached) none required checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for minix/config.h... (cached) no checking whether it is safe to define __EXTENSIONS__... (cached) yes configure: error: in `/media/3T/mips-prefix/src/build/screen/screen-4.2.1': configure: error: cannot run test program while cross compiling See `config.log' for more details and config.log says: configure:3620: checking whether it is safe to define __EXTENSIONS__ configure:3645: result: yes configure:3661: error: in `/media/3T/mips-prefix/src/build/screen/screen-4.2.1': configure:3663: error: cannot run test program while cross compiling See `config.log' for more details the used cross-compiler is from the musl-cross project[0]. (built from tip/master as of june 9, 2014) it seems that configure was instructed to run some tests that require execution of the test binary; those tests should either be rewritten to not require execution, or skipped when cross compilation was detected. regards, --JS [0] https://bitbucket.org/GregorR/musl-cross/