gcc not found building on fedora15

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
jamesarbrown
Contributor
Posts: 98
Joined: Sat Aug 16, 2008 11:14 am

gcc not found building on fedora15

Post by jamesarbrown » Tue Sep 20, 2011 9:11 pm

Hi,

I am trying to build minimyth and the build is failing whilst compiling make.

When looking into the config.log it reports

Code: Select all

configure:2727: result: gawk
configure:2738: checking whether make sets $(MAKE)
configure:2760: result: yes
configure:2850: checking for i686-redhat-linux-gcc
configure:2877: result: gcc
configure:3146: checking for C compiler version
configure:3155: gcc --version >&5
./configure: line 3157: gcc: command not found
Yet gcc from command line

Code: Select all

[jamesarbrown@jblaptop minimyth]$ gcc
gcc: fatal error: no input files
compilation terminated.
So Gcc is ok.

Any help appreciated.

James


Full Config.log

Code: Select all

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

It was created by GNU make configure 3.82, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure --prefix=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr --exec_prefix=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr --bindir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/bin --sbindir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/sbin --libexecdir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/libexec --datadir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/share --sysconfdir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/etc --sharedstatedir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/share --localstatedir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/var --libdir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/lib --infodir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/info --includedir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/include --oldincludedir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/include --mandir=/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/share/man --build=i686-redhat-linux --host=i686-redhat-linux --disable-rpath

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

hostname = jblaptop.enrogen.org
uname -m = i686
uname -r = 2.6.40.3-0.fc15.i686
uname -s = Linux
uname -v = #1 SMP Tue Aug 16 04:24:09 UTC 2011

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

/bin/arch              = i686
/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/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/bin-config
PATH: //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/sbin
PATH: //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin
PATH: //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/sbin
PATH: //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/bin
PATH: //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system


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

configure:2378: checking for a BSD-compatible install
configure:2446: result: //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system/install -c
configure:2457: checking whether build environment is sane
configure:2507: result: yes
configure:2648: checking for a thread-safe mkdir -p
configure:2687: result: //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system/mkdir -p
configure:2700: checking for gawk
configure:2716: found //home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system/gawk
configure:2727: result: gawk
configure:2738: checking whether make sets $(MAKE)
configure:2760: result: yes
configure:2850: checking for i686-redhat-linux-gcc
configure:2877: result: gcc
configure:3146: checking for C compiler version
configure:3155: gcc --version >&5
./configure: line 3157: gcc: command not found
configure:3166: $? = 127
configure:3155: gcc -v >&5
./configure: line 3157: gcc: command not found
configure:3166: $? = 127
configure:3155: gcc -V >&5
./configure: line 3157: gcc: command not found
configure:3166: $? = 127
configure:3155: gcc -qversion >&5
./configure: line 3157: gcc: command not found
configure:3166: $? = 127
configure:3186: checking whether the C compiler works
configure:3208: gcc    conftest.c  >&5
./configure: line 3210: gcc: command not found
configure:3212: $? = 127
configure:3250: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU make"
| #define PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "3.82"
| #define PACKAGE_STRING "GNU make 3.82"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "http://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "3.82"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3255: error: in `/home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82':
configure:3259: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
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=set
ac_cv_env_CPP_value=cpp
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=i686-redhat-linux
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-redhat-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='//home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system/install -c'
ac_cv_path_mkdir=//home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82/config/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82/config/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82/config/missing --run autoconf'
AUTOHEADER='${SHELL} /home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82/config/missing --run autoheader'
AUTOMAKE='${SHELL} /home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82/config/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP='cpp'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GETLOADAVG_LIBS=''
GLOBINC=''
GLOBLIB=''
GMSGFMT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
KMEM_GROUP=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82/config/missing --run makeinfo'
MAKE_HOST=''
MKDIR_P='//home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system/mkdir -p'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
NEED_SETGID=''
OBJEXT=''
PACKAGE='make'
PACKAGE_BUGREPORT='bug-make@gnu.org'
PACKAGE_NAME='GNU make'
PACKAGE_STRING='GNU make 3.82'
PACKAGE_TARNAME='make'
PACKAGE_URL='http://www.gnu.org/software/make/'
PACKAGE_VERSION='3.82'
PATH_SEPARATOR=':'
PERL=''
POSUB=''
RANLIB='ranlib'
REMOTE=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
USE_CUSTOMS_FALSE=''
USE_CUSTOMS_TRUE=''
USE_LOCAL_GLOB_FALSE=''
USE_LOCAL_GLOB_TRUE=''
USE_NLS=''
VERSION='3.82'
WINDOWSENV_FALSE=''
WINDOWSENV_TRUE=''
XGETTEXT=''
ac_ct_CC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/bin'
build='i686-redhat-linux'
build_alias='i686-redhat-linux'
build_cpu=''
build_os=''
build_vendor=''
datadir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr'
host='i686-redhat-linux'
host_alias='i686-redhat-linux'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/include'
infodir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/info'
install_sh='${SHELL} /home/jamesarbrown/Documents/minimyth/gar-minimyth/script/devel-tainted/make/work/build.d/make-3.82/config/install-sh'
libdir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/lib'
libexecdir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/libexec'
localedir='${datarootdir}/locale'
localstatedir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/var'
mandir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/share/man'
mkdir_p='//home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/bin-build-system/mkdir -p'
oldincludedir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/include'
pdfdir='${docdir}'
prefix='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/sbin'
sharedstatedir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/usr/share'
sysconfdir='/home/jamesarbrown/Documents/minimyth/gar-minimyth/images/build/etc'
target_alias=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

MAINT_MAKEFILE=''

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

/* confdefs.h */
#define PACKAGE_NAME "GNU make"
#define PACKAGE_TARNAME "make"
#define PACKAGE_VERSION "3.82"
#define PACKAGE_STRING "GNU make 3.82"
#define PACKAGE_BUGREPORT "bug-make@gnu.org"
#define PACKAGE_URL "http://www.gnu.org/software/make/"
#define PACKAGE "make"
#define VERSION "3.82"

configure: exit 77

jamesarbrown
Contributor
Posts: 98
Joined: Sat Aug 16, 2008 11:14 am

Re: gcc not found building on fedora15

Post by jamesarbrown » Wed Sep 12, 2012 11:46 am

Hi Pablo,

This is still lurking on some machines, only my own laptop will currently compile MM, three other machines (i686 and a x86_64) will not build.

They are complaining there is no GCC to build make-3.82 in devel-tainted.

In the config.log within make-3.82 after a failed build, the important snippets I guess are these

Code: Select all

PATH: //home/minimyth/gar-minimyth/images/build/usr/bin-config
PATH: //home/minimyth/gar-minimyth/images/build/sbin
PATH: //home/minimyth/gar-minimyth/images/build/bin
PATH: //home/minimyth/gar-minimyth/images/build/usr/sbin
PATH: //home/minimyth/gar-minimyth/images/build/usr/bin
PATH: //home/minimyth/gar-minimyth/images/build/bin-build-system

Code: Select all

configure:3208: gcc    conftest.c  >&5
ccache: FATAL: Could not find compiler "gcc" in PATH
configure:3212: $? = 1
configure:3250: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU make"
| #defi[Bne PACKAGE_TARNAME "make"
| #define PACKAGE_VERSION "3.82"  
| #define PACKAGE_STRING "GNU make 3.82"
| #define PACKAGE_BUGREPORT "bug-make@gnu.org"
| #define PACKAGE_URL "http://www.gnu.org/software/make/"
| #define PACKAGE "make"
| #define VERSION "3.82"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
|  
|   ;
|   return 0;
| }
configure:3255: error: in `/home/minimyth/gar-minimyth-0.25.2-81/script/devel-tainted/make/work/build.d/make-3.82':
configure:3259: error: C compiler cannot create executables
See `config.log' for more details.
I can go into the directly and complile locally ok, but guessing during the cross compile it does not know where GCC is. This is on F15, F16 and F17 boxes.

Its beyond me whats wrong :)

James

jamesarbrown
Contributor
Posts: 98
Joined: Sat Aug 16, 2008 11:14 am

Re: gcc not found building on fedora15

Post by jamesarbrown » Fri Sep 14, 2012 9:41 pm

Ack.... its even in the documents.

Code: Select all

yum remove ccache
But the bit I was failing to do. Goto top level directory of garchive and make clean, make garchive, cd script/meta/minimyth, make build

:wink:

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: gcc not found building on fedora15

Post by Pablo » Sun Dec 16, 2012 11:06 pm

jamesarbrown wrote:Ack.... its even in the documents.

Code: Select all

yum remove ccache
But the bit I was failing to do. Goto top level directory of garchive and make clean, make garchive, cd script/meta/minimyth, make build

:wink:
I am glad you found the problem.

I added a check for ccache to the build system and exit when it is found.

I do not know a reliable to know what the builder wants when they run 'make clean'. Therefore, I do not know of a way to address the problem you ran into with where you ran 'make clean'.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply