Built compiler cannot create executables during GCC 8.2.0 "make" from repository clone.

Bryan Dunphy b.dunphy.342@gmail.com
Sun Sep 16 15:46:00 GMT 2018


This is the contents of config.log with the same substitution as before. It APPEARS that the problem is invalid command line options being passed to GCC! How do I fix this?

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

It was created by GNU Offloading and Multi Processing Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ $HOME/Development/gcc-source/gcc-8.2.0/libgomp/configure --srcdir=$HOME/Development/gcc-source/gcc-8.2.0/libgomp --cache-file=./config.cache --enable-multilib --prefix=$HOME/gcc-built --disable-shared --disable-assembly --enable-languages=c,c++,fortran,lto,objc,obj-c++ --program-transform-name=s,y,y, --disable-option-checking --with-target-subdir=x86_64-apple-darwin17.7.0 --build=x86_64-apple-darwin17.7.0 --host=x86_64-apple-darwin17.7.0 --target=x86_64-apple-darwin17.7.0 --disable-intermodule --enable-checking=yes,types --disable-coverage --enable-languages=c,c++,lto --disable-build-format-warnings

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

hostname = Bryans-iMac.local
uname -m = x86_64
uname -r = 17.7.0
uname -s = Darwin
uname -v = Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
4 processors are physically available.
4 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 316 tasks, 1092 threads, 4 processors
Load average: 1.95, Mach factor: 2.04
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Library/Developer/CommandLineTools/usr/bin
PATH: /opt/gcc-8.1.0/bin
PATH: $HOME/.local/bin
PATH: $HOME/Library/Haskell/bin
PATH: /Library/Frameworks/Python.framework/Versions/3.7/bin
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin


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

configure:2513: loading cache ./config.cache
configure:2611: checking for --enable-version-specific-runtime-libs
configure:2626: result: no
configure:2634: checking for --enable-generated-files-in-srcdir
configure:2649: result: no
configure:2706: checking build system type
configure:2720: result: x86_64-apple-darwin17.7.0
configure:2740: checking host system type
configure:2753: result: x86_64-apple-darwin17.7.0
configure:2773: checking target system type
configure:2786: result: x86_64-apple-darwin17.7.0
configure:2843: checking for a BSD-compatible install
configure:2911: result: /usr/bin/install -c
configure:2922: checking whether build environment is sane
configure:2972: result: yes
configure:3113: checking for a thread-safe mkdir -p
configure:3152: result: $HOME/Development/gcc-source/gcc-8.2.0/libgomp/../install-sh -c -d
configure:3165: checking for gawk
configure:3192: result: awk
configure:3203: checking whether MAKE sets $(MAKE)
configure:3225: result: yes
configure:3389: checking for x86_64-apple-darwin17.7.0-gcc
configure:3416: result: $HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include   
configure:3685: checking for C compiler version
configure:3694: $HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include    --version >&5
xgcc (GCC) 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:3705: $? = 0
configure:3694: $HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include    -v >&5
Reading specs from $HOME/Development/gcc-obj/./gcc/specs
COLLECT_GCC=$HOME/Development/gcc-obj/./gcc/xgcc
COLLECT_LTO_WRAPPER=$HOME/Development/gcc-obj/./gcc/lto-wrapper
Target: x86_64-apple-darwin17.7.0
Configured with: $HOME/Development/gcc-source/gcc-8.2.0/configure --prefix=$HOME/gcc-built --disable-shared --disable-assembly --enable-languages=all INCLUDE_PATH=/Library/Developer/CommandLineTools/usr/include:/opt/gcc-8.1.0/include LIBRARY_PATH=/Library/Developer/CommandLineTools/usr/lib:/opt/gcc-8.1.0/lib
Thread model: posix
gcc version 8.2.0 (GCC) 
configure:3705: $? = 0
configure:3694: $HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include    -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3705: $? = 1
configure:3694: $HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include    -qversion >&5
xgcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
xgcc: fatal error: no input files
compilation terminated.
configure:3705: $? = 1
configure:3725: checking for C compiler default output file name
configure:3747: $HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include    -g -O2   conftest.c  >&5
ld: library not found for -lgcc_ext.10.5
collect2: error: ld returned 1 exit status
configure:3751: $? = 1
configure:3788: result: 
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Offloading and Multi Processing Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU Offloading and Multi Processing Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3794: error: in `$HOME/Development/gcc-obj/x86_64-apple-darwin17.7.0/libgomp':
configure:3798: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=x86_64-apple-darwin17.7.0
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=
ac_cv_env_FC_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=set
ac_cv_env_build_alias_value=x86_64-apple-darwin17.7.0
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-apple-darwin17.7.0
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=x86_64-apple-darwin17.7.0
ac_cv_host=x86_64-apple-darwin17.7.0
ac_cv_prog_AWK=awk
ac_cv_prog_CC='$HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include   '
ac_cv_prog_make_MAKE_set=yes
ac_cv_target=x86_64-apple-darwin17.7.0

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

ACLOCAL='${SHELL} $HOME/Development/gcc-source/gcc-8.2.0/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='ar'
AUTOCONF='${SHELL} $HOME/Development/gcc-source/gcc-8.2.0/missing --run autoconf'
AUTOHEADER='${SHELL} $HOME/Development/gcc-source/gcc-8.2.0/missing --run autoheader'
AUTOMAKE='${SHELL} $HOME/Development/gcc-source/gcc-8.2.0/missing --run automake-1.11'
AWK='awk'
BUILD_INFO_FALSE=''
BUILD_INFO_TRUE=''
CC='$HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include   '
CCDEPMODE=''
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
CUDA_DRIVER_INCLUDE=''
CUDA_DRIVER_LIB=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FC=''
FCFLAGS=''
FGREP=''
GENINSRC_FALSE=''
GENINSRC_TRUE='#'
GREP=''
HSA_RUNTIME_INCLUDE=''
HSA_RUNTIME_LIB=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='$HOME/Development/gcc-obj/./gcc/collect-ld'
LDFLAGS=''
LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=''
LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=''
LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=''
LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=''
LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=''
LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO='lipo'
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='makeinfo --split-size=5000000 --split-size=5000000'
MKDIR_P='$HOME/Development/gcc-source/gcc-8.2.0/libgomp/../install-sh -c -d'
NM='$HOME/Development/gcc-obj/./gcc/nm'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT=''
OMP_LOCK_25_ALIGN=''
OMP_LOCK_25_KIND=''
OMP_LOCK_25_SIZE=''
OMP_LOCK_ALIGN=''
OMP_LOCK_KIND=''
OMP_LOCK_SIZE=''
OMP_NEST_LOCK_25_ALIGN=''
OMP_NEST_LOCK_25_KIND=''
OMP_NEST_LOCK_25_SIZE=''
OMP_NEST_LOCK_ALIGN=''
OMP_NEST_LOCK_KIND=''
OMP_NEST_LOCK_SIZE=''
OPT_LDFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='libgomp'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
PACKAGE_TARNAME='libgomp'
PACKAGE_URL='http://www.gnu.org/software/libgomp/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PERL=''
PLUGIN_HSA=''
PLUGIN_HSA_CPPFLAGS=''
PLUGIN_HSA_FALSE=''
PLUGIN_HSA_LDFLAGS=''
PLUGIN_HSA_LIBS=''
PLUGIN_HSA_TRUE=''
PLUGIN_NVPTX=''
PLUGIN_NVPTX_CPPFLAGS=''
PLUGIN_NVPTX_FALSE=''
PLUGIN_NVPTX_LDFLAGS=''
PLUGIN_NVPTX_LIBS=''
PLUGIN_NVPTX_TRUE=''
RANLIB='ranlib'
SECTION_LDFLAGS=''
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
USE_FORTRAN_FALSE=''
USE_FORTRAN_TRUE=''
VERSION='1.0'
XCFLAGS=''
XLDFLAGS=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
ac_ct_FC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin17.7.0'
build_alias='x86_64-apple-darwin17.7.0'
build_cpu='x86_64'
build_os='darwin17.7.0'
build_vendor='apple'
config_path=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_shared='no'
enable_static=''
exec_prefix='NONE'
get_gcc_base_ver=''
host='x86_64-apple-darwin17.7.0'
host_alias='x86_64-apple-darwin17.7.0'
host_cpu='x86_64'
host_os='darwin17.7.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} $HOME/Development/gcc-source/gcc-8.2.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libtool_VERSION=''
link_gomp=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_host_flags=''
mandir='${datarootdir}/man'
mkdir_p='$HOME/Development/gcc-source/gcc-8.2.0/libgomp/../install-sh -c -d'
multi_basedir='$HOME/Development/gcc-source/gcc-8.2.0/libgomp/..'
offload_additional_lib_paths=''
offload_additional_options=''
offload_targets=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='$HOME/gcc-built'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin17.7.0'
target_alias='x86_64-apple-darwin17.7.0'
target_cpu='x86_64'
target_os='darwin17.7.0'
target_vendor='apple'
toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
toolexeclibdir='$(libdir)'

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

/* confdefs.h */
#define PACKAGE_NAME "GNU Offloading and Multi Processing Runtime Library"
#define PACKAGE_TARNAME "libgomp"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU Offloading and Multi Processing Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
#define PACKAGE "libgomp"
#define VERSION "1.0"

configure: exit 77


> On Sep 7, 2018, at 02:56:39, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> 
> On Thu, 6 Sep 2018 at 15:47, Bryan Dunphy <b.dunphy.342@gmail.com <mailto:b.dunphy.342@gmail.com>> wrote:
>> 
>>> The “tail” of the make output is: “/Users/<account name>” replaced with “$HOME"
>>> 
>>> checking for gawk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for x86_64-apple-darwin17.7.0-gcc... $HOME/Development/gcc-obj/./gcc/xgcc -B$HOME/Development/gcc-obj/./gcc/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/bin/ -B$HOME/gcc-built/x86_64-apple-darwin17.7.0/lib/ -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/include -isystem $HOME/gcc-built/x86_64-apple-darwin17.7.0/sys-include
>>> checking for C compiler default output file name...
>>> configure: error: in `$HOME/Development/gcc-obj/x86_64-apple-darwin17.7.0/libgomp':
>>> configure: error: C compiler cannot create executables
>>> See `config.log' for more details.
>>> make[2]: *** [configure-stage1-target-libgomp] Error 77
>>> make[1]: *** [stage1-bubble] Error 2
>>> make: *** [all] Error 2
>>> 
>>> I am not aware of the location of `config.log’ in this case.
> 
> It's still in $HOME/Development/gcc-obj/x86_64-apple-darwin17.7.0/libgomp



More information about the Gcc-help mailing list