Skip to content

Instantly share code, notes, and snippets.

@joergre
Created March 5, 2020 12:57
Show Gist options
  • Save joergre/d8cb0b4ec41a0472e0d662c81bcf617e to your computer and use it in GitHub Desktop.
Save joergre/d8cb0b4ec41a0472e0d662c81bcf617e to your computer and use it in GitHub Desktop.
brew install ruby -> C compiler cannot create executables
debian@proxy:~$ brew update
Updated 1 tap (homebrew/core).
==> Updated Formulae
sdl2
debian@proxy:~$ brew doctor
Your system is ready to brew.
debian@proxy:~$ brew install ruby
Updating Homebrew...
==> Installing dependencies for ruby: pkg-config, m4, libbsd, expat, gdbm, openssl@1.1, berkeley-db, perl, autoconf, automake, libtool, libyaml, gpatch, ncurses, readline and zlib
==> Installing ruby dependency: pkg-config
==> Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar
Already downloaded: /home/debian/.cache/Homebrew/downloads/5bdbf3b3fdadaf72744884b98b74a2ff887bd63a20b246f811a222a146ad7b64--pkg-config-0.29.2.tar.gz
==> ./configure --prefix=/home/linuxbrew/.linuxbrew/Cellar/pkg-config/0.29.2_1 -
Last 15 lines from /home/debian/.cache/Homebrew/Logs/pkg-config/01.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... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc-8
checking whether the C compiler works... no
configure: error: in `/tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
READ THIS: https://docs.brew.sh/Troubleshooting
debian@proxy:~$ cat /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2
cat: /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2: No such file or directory
debian@proxy:~$ sudo apt install gcc-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-8 is already the newest version (8.3.0-6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
debian@proxy:~$ gcc -v
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='Debian 8.3.0-6' --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 --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --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 (Debian 8.3.0-6)
debian@proxy:~$
Linux proxy 4.19.0-8-armmp-lpae #1 SMP Debian 4.19.98-1 (2020-01-26) armv7l GNU/Linux
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by pkg-config configure 0.29.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-debug --prefix=/home/linuxbrew/.linuxbrew/Cellar/pkg-config/0.29.2_1 --disable-host-tool --with-internal-glib --with-pc-path=/home/linuxbrew/.linuxbrew/lib/pkgconfig:/home/linuxbrew/.linuxbrew/share/pkgconfig:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/pkgconfig
## --------- ##
## Platform. ##
## --------- ##
hostname = proxy
uname -m = armv7l
uname -r = 4.19.0-8-armmp-lpae
uname -s = Linux
uname -v = #1 SMP Debian 4.19.98-1 (2020-01-26)
/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: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2324: checking for a BSD-compatible install
configure:2392: result: /usr/bin/install -c
configure:2403: checking whether build environment is sane
configure:2458: result: yes
configure:2607: checking for a thread-safe mkdir -p
configure:2646: result: /bin/mkdir -p
configure:2653: checking for gawk
configure:2669: found /usr/bin/gawk
configure:2680: result: gawk
configure:2691: checking whether make sets $(MAKE)
configure:2713: result: yes
configure:2742: checking whether make supports nested variables
configure:2759: result: yes
configure:2916: checking build system type
configure:2930: result: armv7l-unknown-linux-gnueabihf
configure:2950: checking host system type
configure:2963: result: armv7l-unknown-linux-gnueabihf
configure:3004: checking how to print strings
configure:3031: result: printf
configure:3064: checking for style of include used by make
configure:3092: result: GNU
configure:3163: checking for gcc
configure:3190: result: gcc-8
configure:3419: checking for C compiler version
configure:3428: gcc-8 --version >&5
gcc-8 (Debian 8.3.0-6) 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:3439: $? = 0
configure:3428: gcc-8 -v >&5
Using built-in specs.
COLLECT_GCC=gcc-8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --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 --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --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 (Debian 8.3.0-6)
configure:3439: $? = 0
configure:3428: gcc-8 -V >&5
gcc-8: error: unrecognized command line option '-V'
configure:3439: $? = 1
configure:3428: gcc-8 -qversion >&5
gcc-8: error: unrecognized command line option '-qversion'; did you mean '--version'?
configure:3439: $? = 1
configure:3459: checking whether the C compiler works
configure:3481: gcc-8 conftest.c >&5
as: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libbfd-2.31.1-system.so: invalid ELF header
configure:3485: $? = 2
configure:3523: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pkg-config"
| #define PACKAGE_TARNAME "pkg-config"
| #define PACKAGE_VERSION "0.29.2"
| #define PACKAGE_STRING "pkg-config 0.29.2"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=pkg-config"
| #define PACKAGE_URL ""
| #define PACKAGE "pkg-config"
| #define VERSION "0.29.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3528: error: in `/tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2':
configure:3530: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=armv7l-unknown-linux-gnueabihf
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc-8
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_GLIB_CFLAGS_set=
ac_cv_env_GLIB_CFLAGS_value=
ac_cv_env_GLIB_LIBS_set=
ac_cv_env_GLIB_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_TESTS_SHELL_set=
ac_cv_env_TESTS_SHELL_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=armv7l-unknown-linux-gnueabihf
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc-8
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2/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)'
AR=''
AUTOCONF='${SHELL} /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2/missing autoconf'
AUTOHEADER='${SHELL} /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2/missing autoheader'
AUTOMAKE='${SHELL} /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2/missing automake-1.15'
AWK='gawk'
CC='gcc-8'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GCOV=''
GCOV_CFLAGS=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GREP=''
HOST_TOOL_FALSE=''
HOST_TOOL_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTERNAL_GLIB_FALSE=''
INTERNAL_GLIB_TRUE=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NATIVE_WIN32_FALSE=''
NATIVE_WIN32_TRUE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='pkg-config'
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=pkg-config'
PACKAGE_NAME='pkg-config'
PACKAGE_STRING='pkg-config 0.29.2'
PACKAGE_TARNAME='pkg-config'
PACKAGE_URL=''
PACKAGE_VERSION='0.29.2'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
TESTS_PKG_CONFIG=''
TESTS_SHELL=''
VERSION='0.29.2'
WARN_CFLAGS=''
WINE=''
ac_ct_AR=''
ac_ct_CC='gcc-8'
ac_ct_DUMPBIN=''
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='armv7l-unknown-linux-gnueabihf'
build_alias=''
build_cpu='armv7l'
build_os='linux-gnueabihf'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='armv7l-unknown-linux-gnueabihf'
host_alias=''
host_cpu='armv7l'
host_os='linux-gnueabihf'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/pkg-config-20200305-6604-177hlkp/pkg-config-0.29.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
native_win32=''
oldincludedir='/usr/include'
pc_path=''
pdfdir='${docdir}'
prefix='/home/linuxbrew/.linuxbrew/Cellar/pkg-config/0.29.2_1'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
system_include_path=''
system_library_path=''
target_alias=''
use_indirect_deps=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "pkg-config"
#define PACKAGE_TARNAME "pkg-config"
#define PACKAGE_VERSION "0.29.2"
#define PACKAGE_STRING "pkg-config 0.29.2"
#define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=pkg-config"
#define PACKAGE_URL ""
#define PACKAGE "pkg-config"
#define VERSION "0.29.2"
configure: exit 77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment