Page MenuHomeSolus

Bash build failing with musl-gcc
Closed, ResolvedPublic

Description

While trying to update bash I noticed that the build is always failing. After further investigation it seems like the testfile built with musl-gcc is segfaulting. A rebuild of musl against the new gcc didn't help.

build@eduard-laser ~/YPKG/root/bash/build/bash-4.4/musl-build $ cat 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 bash configure 4.4-release, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../configure --with-curses --enable-history --enable-static-link --disable-rpath --without-bash-malloc --disable-nls --docdir=/usr/share/doc/bash CFLAGS= -static -L/home/build/YPKG/root/bash/build/bash-4.4/musl-build/farm

## --------- ##
## Platform. ##
## --------- ##

hostname = eduard-laser
uname -m = x86_64
uname -r = 4.17.17-87.current
uname -s = Linux
uname -v = #1 SMP PREEMPT Sat Aug 18 14:28:47 UTC 2018

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2768: checking build system type
configure:2782: result: x86_64-unknown-linux-gnu
configure:2802: checking host system type
configure:2815: result: x86_64-unknown-linux-gnu
configure:3434: checking for gcc
configure:3461: result: musl-gcc
configure:3690: checking for C compiler version
configure:3699: musl-gcc --version >&5
x86_64-solus-linux-gcc (Solus) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3710: $? = 0
configure:3699: musl-gcc -v >&5
Using built-in specs.
Reading specs from /usr/lib64/musl/musl-gcc.specs
rename spec cpp_options to old_cpp_options
COLLECT_GCC=x86_64-solus-linux-gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-solus-linux/8.2.0/lto-wrapper
Target: x86_64-solus-linux
Configured with: ../configure --prefix=/usr --with-pkgversion=Solus --libdir=/usr/lib64 --libexecdir=/usr/lib64 --with-system-zlib --enable-shared --enable-threads=posix --enable-gnu-indirect-function --enable-__cxa_atexit --enable-plugin --enable-gold --enable-ld=default --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --enable-lto --with-bugurl=https://dev.solus-project.com/ --with-arch_32=i686 --enable-linker-build-id --with-linker-hash-style=gnu --with-gnu-ld --build=x86_64-solus-linux --target=x86_64-solus-linux --enable-languages=c,c++,fortran
Thread model: posix
gcc version 8.2.0 (Solus) 
configure:3710: $? = 0
configure:3699: musl-gcc -V >&5
x86_64-solus-linux-gcc: error: unrecognized command line option '-V'
x86_64-solus-linux-gcc: fatal error: no input files
compilation terminated.
configure:3710: $? = 1
configure:3699: musl-gcc -qversion >&5
x86_64-solus-linux-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
x86_64-solus-linux-gcc: fatal error: no input files
compilation terminated.
configure:3710: $? = 1
configure:3730: checking whether the C compiler works
configure:3752: musl-gcc  -static -L/home/build/YPKG/root/bash/build/bash-4.4/musl-build/farm   conftest.c  >&5
configure:3756: $? = 0
configure:3804: result: yes
configure:3807: checking for C compiler default output file name
configure:3809: result: a.out
configure:3815: checking for suffix of executables
configure:3822: musl-gcc -o conftest  -static -L/home/build/YPKG/root/bash/build/bash-4.4/musl-build/farm   conftest.c  >&5
configure:3826: $? = 0
configure:3848: result: 
configure:3870: checking whether we are cross compiling
configure:3878: musl-gcc -o conftest  -static -L/home/build/YPKG/root/bash/build/bash-4.4/musl-build/farm   conftest.c  >&5
configure:3882: $? = 0
configure:3889: ./conftest
../configure: line 3891:  6044 Segmentation fault      ./conftest$ac_cv_exeext
configure:3893: $? = 139
configure:3900: error: in `/home/build/YPKG/root/bash/build/bash-4.4/musl-build':
configure:3902: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=musl-gcc
ac_cv_env_CFLAGS_FOR_BUILD_set=
ac_cv_env_CFLAGS_FOR_BUILD_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -static -L/home/build/YPKG/root/bash/build/bash-4.4/musl-build/farm'
ac_cv_env_CPPFLAGS_FOR_BUILD_set=
ac_cv_env_CPPFLAGS_FOR_BUILD_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DEBUGGER_START_FILE_set=
ac_cv_env_DEBUGGER_START_FILE_value=
ac_cv_env_LDFLAGS_FOR_BUILD_set=
ac_cv_env_LDFLAGS_FOR_BUILD_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_prog_ac_ct_CC=musl-gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
AR=''
ARFLAGS=''
BASHVERS='4.4'
BUILD_DIR=''
BUILD_INCLUDED_LIBINTL=''
CATOBJEXT=''
CC='musl-gcc'
CC_FOR_BUILD=''
CFLAGS=' -static -L/home/build/YPKG/root/bash/build/bash-4.4/musl-build/farm'
CFLAGS_FOR_BUILD=''
CPP=''
CPPFLAGS=''
CPPFLAGS_FOR_BUILD=''
CROSS_COMPILE=''
DATADIRNAME=''
DEBUG=''
DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GENCAT=''
GLIBC21=''
GMSGFMT=''
GREP=''
HELPDIR=''
HELPDIRDEFINE=''
HELPFILES_TARGET=''
HELPINSTALL=''
HELPSTRINGS=''
HISTORY_DEP=''
HISTORY_LIB=''
HIST_LIBDIR=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_DEP=''
INTL_INC=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
JOBS_O=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LIBICONV=''
LIBINTL=''
LIBINTL_H=''
LIBOBJS=''
LIBS=''
LIBS_FOR_BUILD=''
LOCAL_CFLAGS=''
LOCAL_DEFS=''
LOCAL_LDFLAGS=''
LOCAL_LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKE_SHELL=''
MALLOC_DEBUG=''
MALLOC_DEP=''
MALLOC_LDFLAGS=''
MALLOC_LIB=''
MALLOC_LIBRARY=''
MALLOC_SRC=''
MALLOC_TARGET=''
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJEXT=''
PACKAGE_BUGREPORT='bug-bash@gnu.org'
PACKAGE_NAME='bash'
PACKAGE_STRING='bash 4.4-release'
PACKAGE_TARNAME='bash'
PACKAGE_URL=''
PACKAGE_VERSION='4.4-release'
PATH_SEPARATOR=':'
POSUB=''
PROFILE_FLAGS=''
PTHREAD_H_DEFINES_STRUCT_TIMESPEC=''
RANLIB=''
READLINE_DEP=''
READLINE_LIB=''
RELSTATUS='release'
RL_INCLUDE=''
RL_INCLUDEDIR=''
RL_LIBDIR=''
RL_MAJOR=''
RL_MINOR=''
RL_VERSION=''
SET_MAKE=''
SHELL='/bin/sh'
SHOBJ_CC=''
SHOBJ_CFLAGS=''
SHOBJ_LD=''
SHOBJ_LDFLAGS=''
SHOBJ_LIBS=''
SHOBJ_STATUS=''
SHOBJ_XLDFLAGS=''
SIGLIST_O=''
SIGNAMES_H=''
SIGNAMES_O=''
SIZE=''
STATIC_LD=''
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=''
TERMCAP_DEP=''
TERMCAP_LIB=''
TESTSCRIPT='run-all'
TILDE_LIB=''
TIME_H_DEFINES_STRUCT_TIMESPEC=''
USE_INCLUDED_LIBINTL=''
USE_NLS=''
XGETTEXT=''
YACC=''
YFLAGS=''
ac_ct_CC='musl-gcc'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='/usr/share/doc/bash'
dvidir='${docdir}'
exec_prefix='NONE'
headersdir=''
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
incdir=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
loadablesdir=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
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 "bash"
#define PACKAGE_TARNAME "bash"
#define PACKAGE_VERSION "4.4-release"
#define PACKAGE_STRING "bash 4.4-release"
#define PACKAGE_BUGREPORT "bug-bash@gnu.org"
#define PACKAGE_URL ""
#define ALIAS 1
#define PUSHD_AND_POPD 1
#define RESTRICTED_SHELL 1
#define PROCESS_SUBSTITUTION 1
#define PROMPT_STRING_DECODE 1
#define SELECT_COMMAND 1
#define HELP_BUILTIN 1
#define ARRAY_VARS 1
#define DPAREN_ARITHMETIC 1
#define BRACE_EXPANSION 1
#define COMMAND_TIMING 1
#define EXTENDED_GLOB 1
#define EXTGLOB_DEFAULT 0
#define COND_COMMAND 1
#define COND_REGEXP 1
#define COPROCESS_SUPPORT 1
#define ARITH_FOR_COMMAND 1
#define NETWORK_REDIRECTIONS 1
#define PROGRAMMABLE_COMPLETION 1
#define DEBUGGER 1
#define CASEMOD_ATTRS 1
#define CASEMOD_EXPANSIONS 1
#define GLOBASCII_DEFAULT 0
#define FUNCTION_IMPORT 1
#define MEMSCRAMBLE 1

configure: exit 1

Revisions and Commits

Related Objects