Build of screen with musl toolchain

The build took 00h 01m 04s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
40,140 ansic
1,658 sh
63 perl
41,861 total

The process tree of the build process is here.

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: screen 4.4.0-1 (Wed Apr 5 02:18:43 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# this is screen version 4.4.0
# checking for x86_64-unknown-linux-gcc... clang
# 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 clang accepts -g... yes
# checking for clang option to accept ISO C89... none needed
# checking how to run the C preprocessor... clang -E
# checking for grep that handles long lines and -e... /usr/sbin/grep
# checking for egrep... /usr/sbin/grep -E
# checking whether clang needs -traditional... no
# checking for library containing strerror... none required
# 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
# configure: error: in `/tmp/screen/src/screen-4.4.0':
# configure: error: cannot run test program while cross compiling
# See `config.log' for more details
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/screen/src/screen-4.4.0/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# It was created by configure, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-colors256 --enable-pam --enable-rxvt_osc --enable-telnet --with-pty-group=5 --with-socket-dir=/run/screens --with-sys-screenrc=/etc/screenrc
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = a60f2349dab0
# uname -m = x86_64
# uname -r = 4.10.6-1-ARCH
# uname -s = Linux
# uname -v = #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017
#
# /usr/bin/uname -p = unknown
# /bin/uname -X = unknown
#
# /bin/arch = unknown
# /usr/bin/arch -k = unknown
# /usr/convex/getsysinfo = unknown
# /usr/bin/hostinfo = unknown
# /bin/machine = unknown
# /usr/bin/oslevel = unknown
# /bin/universe = unknown
#
# PATH: /sysroot/bin
# PATH: /usr/local/sbin
# PATH: /usr/local/bin
# PATH: /usr/sbin
# PATH: /usr/bin
# PATH: /sbin
# PATH: /bin
#
#
# ## ----------- ##
# ## Core tests. ##
# ## ----------- ##
#
# configure:2322: checking for x86_64-unknown-linux-gcc
# configure:2349: result: clang
# configure:2618: checking for C compiler version
# configure:2627: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2638: $? = 0
# configure:2627: clang -v >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# Found candidate GCC installation: //../lib/gcc/x86_64-pc-linux-gnu/6.1.1
# Found candidate GCC installation: //../lib64/gcc/x86_64-pc-linux-gnu/6.1.1
# Selected GCC installation: //../lib64/gcc/x86_64-pc-linux-gnu/6.1.1
# Candidate multilib: .;@m64
# Selected multilib: .;@m64
# configure:2638: $? = 0
# configure:2627: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2638: $? = 1
# configure:2627: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2638: $? = 1
# configure:2658: checking whether the C compiler works
# configure:2680: clang conftest.c >&5
# configure:2684: $? = 0
# configure:2732: result: yes
# configure:2735: checking for C compiler default output file name
# configure:2737: result: a.out
# configure:2743: checking for suffix of executables
# configure:2750: clang -o conftest conftest.c >&5
# configure:2754: $? = 0
# configure:2776: result:
# configure:2798: checking whether we are cross compiling
# configure:2806: clang -o conftest conftest.c >&5
# configure:2810: $? = 0
# configure:2817: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:2821: $? = 127
# configure:2836: result: yes
# configure:2841: checking for suffix of object files
# configure:2863: clang -c conftest.c >&5
# configure:2867: $? = 0
# configure:2888: result: o
# configure:2892: checking whether we are using the GNU C compiler
# configure:2911: clang -c conftest.c >&5
# configure:2911: $? = 0
# configure:2920: result: yes
# configure:2929: checking whether clang accepts -g
# configure:2949: clang -c -g conftest.c >&5
# configure:2949: $? = 0
# configure:2990: result: yes
# configure:3007: checking for clang option to accept ISO C89
# configure:3070: clang -c conftest.c >&5
# configure:3070: $? = 0
# configure:3083: result: none needed
# configure:3108: checking how to run the C preprocessor
# configure:3139: clang -E conftest.c
# configure:3139: $? = 0
# configure:3153: clang -E conftest.c
# conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3153: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME ""
# | #define PACKAGE_TARNAME ""
# | #define PACKAGE_VERSION ""
# | #define PACKAGE_STRING ""
# | #define PACKAGE_BUGREPORT ""
# | #define PACKAGE_URL ""
# | /* end confdefs.h. */
# | #include
# configure:3178: result: clang -E
# configure:3198: clang -E conftest.c
# configure:3198: $? = 0
# configure:3212: clang -E conftest.c
# conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3212: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME ""
# | #define PACKAGE_TARNAME ""
# | #define PACKAGE_VERSION ""
# | #define PACKAGE_STRING ""
# | #define PACKAGE_BUGREPORT ""
# | #define PACKAGE_URL ""
# | /* end confdefs.h. */
# | #include
# configure:3242: checking for grep that handles long lines and -e
# configure:3300: result: /usr/sbin/grep
# configure:3305: checking for egrep
# configure:3367: result: /usr/sbin/grep -E
# configure:3373: checking whether clang needs -traditional
# conftest.c:9:10: fatal error: 'sgtty.h' file not found
# #include
# ^
# 1 error generated.
# conftest.c:9:10: fatal error: 'termio.h' file not found
# #include
# ^
# 1 error generated.
# configure:3407: result: no
# configure:3414: checking for library containing strerror
# configure:3445: clang -o conftest conftest.c >&5
# conftest.c:16:6: warning: incompatible redeclaration of library function 'strerror' [-Wincompatible-library-redeclaration]
# char strerror ();
# ^
# conftest.c:16:6: note: 'strerror' is a builtin with type 'char *(int)'
# 1 warning generated.
# configure:3445: $? = 0
# configure:3462: result: none required
# configure:3470: checking for ANSI C header files
# configure:3490: clang -c conftest.c >&5
# configure:3490: $? = 0
# configure:3574: result: yes
# configure:3587: checking for sys/types.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for sys/stat.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for stdlib.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for string.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for memory.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for strings.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for inttypes.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for stdint.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3587: checking for unistd.h
# configure:3587: clang -c conftest.c >&5
# configure:3587: $? = 0
# configure:3587: result: yes
# configure:3600: checking minix/config.h usability
# configure:3600: clang -c conftest.c >&5
# conftest.c:52:10: fatal error: 'minix/config.h' file not found
# #include
# ^
# 1 error generated.
# configure:3600: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME ""
# | #define PACKAGE_TARNAME ""
# | #define PACKAGE_VERSION ""
# | #define PACKAGE_STRING ""
# | #define PACKAGE_BUGREPORT ""
# | #define PACKAGE_URL ""
# | #define STDC_HEADERS 1
# | #define HAVE_SYS_TYPES_H 1
# | #define HAVE_SYS_STAT_H 1
# | #define HAVE_STDLIB_H 1
# | #define HAVE_STRING_H 1
# | #define HAVE_MEMORY_H 1
# | #define HAVE_STRINGS_H 1
# | #define HAVE_INTTYPES_H 1
# | #define HAVE_STDINT_H 1
# | #define HAVE_UNISTD_H 1
# | /* end confdefs.h. */
# | #include
# | #ifdef HAVE_SYS_TYPES_H
# | # include
# | #endif
# | #ifdef HAVE_SYS_STAT_H
# | # include
# | #endif
# | #ifdef STDC_HEADERS
# | # include
# | # include
# | #else
# | # ifdef HAVE_STDLIB_H
# | # include
# | # endif
# | #endif
# | #ifdef HAVE_STRING_H
# | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
# | # include
# | # endif
# | # include
# | #endif
# | #ifdef HAVE_STRINGS_H
# | # include
# | #endif
# | #ifdef HAVE_INTTYPES_H
# | # include
# | #endif
# | #ifdef HAVE_STDINT_H
# | # include
# | #endif
# | #ifdef HAVE_UNISTD_H
# | # include
# | #endif
# | #include
# configure:3600: result: no
# configure:3600: checking minix/config.h presence
# configure:3600: clang -E conftest.c
# conftest.c:19:10: fatal error: 'minix/config.h' file not found
# #include
# ^
# 1 error generated.
# configure:3600: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME ""
# | #define PACKAGE_TARNAME ""
# | #define PACKAGE_VERSION ""
# | #define PACKAGE_STRING ""
# | #define PACKAGE_BUGREPORT ""
# | #define PACKAGE_URL ""
# | #define STDC_HEADERS 1
# | #define HAVE_SYS_TYPES_H 1
# | #define HAVE_SYS_STAT_H 1
# | #define HAVE_STDLIB_H 1
# | #define HAVE_STRING_H 1
# | #define HAVE_MEMORY_H 1
# | #define HAVE_STRINGS_H 1
# | #define HAVE_INTTYPES_H 1
# | #define HAVE_STDINT_H 1
# | #define HAVE_UNISTD_H 1
# | /* end confdefs.h. */
# | #include
# configure:3600: result: no
# configure:3600: checking for minix/config.h
# configure:3600: result: no
# configure:3621: checking whether it is safe to define __EXTENSIONS__
# configure:3639: clang -c conftest.c >&5
# configure:3639: $? = 0
# configure:3646: result: yes
# configure:3662: error: in `/tmp/screen/src/screen-4.4.0':
# configure:3664: error: cannot run test program while cross compiling
# See `config.log' for more details
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_c_compiler_gnu=yes
# ac_cv_env_CC_set=set
# ac_cv_env_CC_value=clang
# ac_cv_env_CFLAGS_set=set
# ac_cv_env_CFLAGS_value=
# ac_cv_env_CPPFLAGS_set=set
# ac_cv_env_CPPFLAGS_value=
# ac_cv_env_CPP_set=
# ac_cv_env_CPP_value=
# ac_cv_env_LDFLAGS_set=set
# ac_cv_env_LDFLAGS_value=
# ac_cv_env_LIBS_set=
# ac_cv_env_LIBS_value=
# ac_cv_env_build_alias_set=
# ac_cv_env_build_alias_value=
# ac_cv_env_host_alias_set=set
# ac_cv_env_host_alias_value=x86_64-unknown-linux
# ac_cv_env_target_alias_set=
# ac_cv_env_target_alias_value=
# ac_cv_header_inttypes_h=yes
# ac_cv_header_memory_h=yes
# ac_cv_header_minix_config_h=no
# ac_cv_header_stdc=yes
# ac_cv_header_stdint_h=yes
# ac_cv_header_stdlib_h=yes
# ac_cv_header_string_h=yes
# ac_cv_header_strings_h=yes
# ac_cv_header_sys_stat_h=yes
# ac_cv_header_sys_types_h=yes
# ac_cv_header_unistd_h=yes
# ac_cv_objext=o
# ac_cv_path_EGREP='/usr/sbin/grep -E'
# ac_cv_path_GREP=/usr/sbin/grep
# ac_cv_prog_CC=clang
# ac_cv_prog_CPP='clang -E'
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
# ac_cv_prog_gcc_traditional=no
# ac_cv_safe_to_define___extensions__=yes
# ac_cv_search_strerror='none required'
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# AWK=''
# CC='clang'
# CFLAGS=''
# CPP='clang -E'
# CPPFLAGS=''
# DEFS=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP='/usr/sbin/grep -E'
# ETCSCREENRC=''
# EXEEXT=''
# GREP='/usr/sbin/grep'
# INSTALL_DATA=''
# INSTALL_PROGRAM=''
# INSTALL_SCRIPT=''
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LTLIBOBJS=''
# OBJEXT='o'
# PACKAGE_BUGREPORT=''
# PACKAGE_NAME=''
# PACKAGE_STRING=''
# PACKAGE_TARNAME=''
# PACKAGE_URL=''
# PACKAGE_VERSION=''
# PATH_SEPARATOR=':'
# SHELL='/bin/sh'
# VERSION='4.4.0'
# WRITEPATH=''
# XTERMPATH=''
# ac_ct_CC=''
# ac_prefix_program=''
# bindir='${exec_prefix}/bin'
# build_alias=''
# datadir='${datarootdir}'
# datarootdir='${prefix}/share'
# docdir='${datarootdir}/doc/${PACKAGE}'
# dvidir='${docdir}'
# exec_prefix='NONE'
# host_alias='x86_64-unknown-linux'
# htmldir='${docdir}'
# includedir='${prefix}/include'
# infodir='/usr/share/info'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='${prefix}/var'
# mandir='/usr/share/man'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# sbindir='${exec_prefix}/sbin'
# sharedstatedir='${prefix}/com'
# sysconfdir='${prefix}/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME ""
# #define PACKAGE_TARNAME ""
# #define PACKAGE_VERSION ""
# #define PACKAGE_STRING ""
# #define PACKAGE_BUGREPORT ""
# #define PACKAGE_URL ""
# #define STDC_HEADERS 1
# #define HAVE_SYS_TYPES_H 1
# #define HAVE_SYS_STAT_H 1
# #define HAVE_STDLIB_H 1
# #define HAVE_STRING_H 1
# #define HAVE_MEMORY_H 1
# #define HAVE_STRINGS_H 1
# #define HAVE_INTTYPES_H 1
# #define HAVE_STDINT_H 1
# #define HAVE_UNISTD_H 1
# #define __EXTENSIONS__ 1
# #define _ALL_SOURCE 1
# #define _GNU_SOURCE 1
# #define _POSIX_PTHREAD_SEMANTICS 1
# #define _TANDEM_SOURCE 1
#
# configure: exit 1