Error on ./configure

212 views
Skip to first unread message

Sam Watts

unread,
Aug 25, 2021, 4:26:32 AM8/25/21
to bcm2835

Hi there - trying to install on raspberry pi zero w

pi@raspberrypi:~/bcm2835-1.56 $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... 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... configure: error: in `/home/pi/bcm2835-1.56':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


dump of config.log below:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by bcm2835 configure 1.56, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure

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

hostname = raspberrypi
uname -m = armv6l
uname -r = 5.10.17+
uname -s = Linux
uname -v = #1403 Mon Feb 22 11:26:13 GMT 2021

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

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

PATH: /home/pi/.local/bin
PATH: /home/pi/.cargo/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games


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

configure:1892: checking for a BSD-compatible install
configure:1960: result: /usr/bin/install -c
configure:1971: checking whether build environment is sane
configure:2026: result: yes
configure:2175: checking for a thread-safe mkdir -p
configure:2214: result: /usr/bin/mkdir -p
configure:2221: checking for gawk
configure:2251: result: no
configure:2221: checking for mawk
configure:2237: found /usr/bin/mawk
configure:2248: result: mawk
configure:2259: checking whether make sets $(MAKE)
configure:2281: result: yes
configure:2310: checking whether make supports nested variables
configure:2327: result: yes
configure:2465: checking for style of include used by make
configure:2493: result: GNU
configure:2564: checking for gcc
configure:2580: found /usr/bin/gcc
configure:2591: result: gcc
configure:2820: checking for C compiler version
configure:2829: gcc --version >&5
gcc (Raspbian 8.3.0-6+rpi1) 8.3.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:2840: $? = 0
configure:2829: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 8.3.0-6+rpi1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
configure:2840: $? = 0
configure:2829: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2840: $? = 1
configure:2829: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2840: $? = 1
configure:2860: checking whether the C compiler works
configure:2882: gcc    conftest.c  >&5
configure:2886: $? = 0
configure:2934: result: yes
configure:2937: checking for C compiler default output file name
configure:2939: result: a.out
configure:2945: checking for suffix of executables
configure:2952: gcc -o conftest    conftest.c  >&5
configure:2956: $? = 0
configure:2978: result:
configure:3000: checking whether we are cross compiling
configure:3008: gcc -o conftest    conftest.c  >&5
configure:3012: $? = 0
configure:3019: ./conftest
./configure: line 3021:  4085 Segmentation fault      ./conftest$ac_cv_exeext
configure:3023: $? = 139
configure:3030: error: in `/home/pi/bcm2835-1.56':
configure:3032: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

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

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_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=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /home/pi/bcm2835-1.56/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /home/pi/bcm2835-1.56/missing autoconf'
AUTOHEADER='${SHELL} /home/pi/bcm2835-1.56/missing autoheader'
AUTOMAKE='${SHELL} /home/pi/bcm2835-1.56/missing automake-1.15'
AWK='mawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DOXYGEN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
HAVE_DOXYGEN_FALSE=''
HAVE_DOXYGEN_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/pi/bcm2835-1.56/missing makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
OBJEXT=''
PACKAGE='bcm2835'
PACKAGE_BUGREPORT='mi...@airspayce.com'
PACKAGE_NAME='bcm2835'
PACKAGE_STRING='bcm2835 1.56'
PACKAGE_TARNAME='bcm2835'
PACKAGE_URL=''
PACKAGE_VERSION='1.56'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='1.56'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/pi/bcm2835-1.56/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "bcm2835"
#define PACKAGE_TARNAME "bcm2835"
#define PACKAGE_VERSION "1.56"
#define PACKAGE_STRING "bcm2835 1.56"
#define PACKAGE_BUGREPORT "mi...@airspayce.com"
#define PACKAGE_URL ""
#define PACKAGE "bcm2835"
#define VERSION "1.56"

configure: exit 1



Mike McCauley

unread,
Aug 25, 2021, 8:21:33 PM8/25/21
to bcm...@googlegroups.com
Hmmm, looks like the configure script is failing because the conftest program
it makes crashes:

...
configure:3012: $? = 0
configure:3019: ./conftest
./configure: line 3021: 4085 Segmentation fault
./conftest$ac_cv_exeext
configure:3023: $? = 139

You might try running
autoreconf
and then rerunning
./configure

Cheers.
--
Mike McCauley VK4AMM mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com 5R3MRFM2+X6
Phone +61 7 5598-7474



Sam Watts

unread,
Aug 27, 2021, 6:07:36 AM8/27/21
to bcm2835
Thanks for the speedy response Mike! That still throws the same error for me after autoreconf

I can get it to run using
./configure --host=arm

But then I get a failing test after sudo make check:

Making check in src
make[1]: Entering directory '/home/pi/bcm2835-1.68/src'
make  test
make[2]: Entering directory '/home/pi/bcm2835-1.68/src'
make[2]: 'test' is up to date.
make[2]: Leaving directory '/home/pi/bcm2835-1.68/src'
make  check-TESTS
make[2]: Entering directory '/home/pi/bcm2835-1.68/src'
make[3]: Entering directory '/home/pi/bcm2835-1.68/src'
../test-driver: line 107:  7546 Segmentation fault      "$@" > $log_file 2>&1
FAIL: test
============================================================================
Testsuite summary for bcm2835 1.68
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See src/test-suite.log
Please report to mi...@airspayce.com
============================================================================
make[3]: *** [Makefile:669: test-suite.log] Error 1
make[3]: Leaving directory '/home/pi/bcm2835-1.68/src'
make[2]: *** [Makefile:777: check-TESTS] Error 2
make[2]: Leaving directory '/home/pi/bcm2835-1.68/src'
make[1]: *** [Makefile:851: check-am] Error 2
make[1]: Leaving directory '/home/pi/bcm2835-1.68/src'
make: *** [Makefile:365: check-recursive] Error 1

Reply all
Reply to author
Forward
0 new messages