Fedora Linux Support Community & Resources Center
  #1  
Old 5th December 2009, 12:05 AM
BigDragon Offline
Registered User
 
Join Date: Dec 2009
Posts: 5
linuxfedorafirefox
Grub: C compiler cannot create executables (resolved)

I'm currently running Fedora 11 64-bit and am trying to compile Grub. I've been following the install directions and upon running configure I receive the following output with error message:

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 build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for gcc... (cached) gcc
checking for C compiler default output file name...
configure: error: in `/home/BigDragon/Download/GRUB/GRUB':
configure: error: C compiler cannot create executables
See `config.log' for more details.

I've checked to make sure automake, autoconf, gcc, gcc-c++, binutils-devel, and glibc-devel are up to date. Posts on Ubuntu forums led me to check those specific packages. However, the problem persists. Any ideas what's wrong? Maybe I'm missing a package?

Yes, I know I could download the package, but this is really supposed to be an education experience. I'm still new to Linux. At home I've had success with Ubuntu, but at college they use Fedora. I haven't encountered this before so any help is appreciated. Thanks!

Last edited by BigDragon; 7th December 2009 at 08:16 PM. Reason: error resolved
Reply With Quote
  #2  
Old 5th December 2009, 12:10 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
linuxfedorafirefox
Quote:
configure: error: in `/home/BigDragon/Download/GRUB/GRUB':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Can you share that with us?
Reply With Quote
  #3  
Old 7th December 2009, 08:16 PM
BigDragon Offline
Registered User
 
Join Date: Dec 2009
Posts: 5
linuxfedorafirefox
Quote:
Originally Posted by marcrblevins View Post
Can you share that with us?
Yes. The output is below.

I got some free time over the weekend (between snow-related stuff) and started experimenting with Fedora 12. Installing automake, autoconf, gcc, and then trying to run the configure command for Grub results in a clean compile without errors. That's rather confusing. I don't understand why it works fine in Fedora 12 but reports it cannot create executables in Fedora 11.

Thanks for any help!

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

It was created by GRUB configure 0.97, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure 

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

hostname = localhost.localdomain
uname -m = x86_64
uname -r = 2.6.29.4-167.fc11.x86_64
uname -s = Linux
uname -v = #1 SMP Wed May 27 17:27:08 EDT 2009

/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: /usr/lib64/qt-3.3/bin
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin


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

configure:2064: checking for a BSD-compatible install
configure:2132: result: /usr/bin/install -c
configure:2143: checking whether build environment is sane
configure:2203: result: yes
configure:2344: checking for a thread-safe mkdir -p
configure:2383: result: /bin/mkdir -p
configure:2396: checking for gawk
configure:2412: found /bin/gawk
configure:2423: result: gawk
configure:2434: checking whether make sets $(MAKE)
configure:2456: result: yes
configure:2545: checking build system type
configure:2563: result: x86_64-unknown-linux-gnu
configure:2585: checking host system type
configure:2600: result: x86_64-unknown-linux-gnu
configure:2639: checking whether to enable maintainer-specific portions of Makefiles
configure:2648: result: no
configure:2767: checking for gcc
configure:2783: found /usr/bin/gcc
configure:2794: result: gcc
configure:2864: checking for gcc
configure:2891: result: gcc
configure:3123: checking for C compiler version
configure:3131: gcc --version >&5
gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)
Copyright (C) 2009 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:3135: $? = 0
configure:3142: gcc -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i586 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC) 
configure:3146: $? = 0
configure:3153: gcc -V >&5
gcc: '-V' option must have argument
configure:3157: $? = 1
configure:3180: checking for C compiler default output file name
configure:3202: gcc -m32  -fno-stack-protector   conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3206: $? = 1
configure:3244: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GRUB"
| #define PACKAGE_TARNAME "grub"
| #define PACKAGE_VERSION "0.97"
| #define PACKAGE_STRING "GRUB 0.97"
| #define PACKAGE_BUGREPORT "m.selhorst@sirrix.com"
| #define PACKAGE "grub"
| #define VERSION "0.97"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3250: error: in `/home/BigDragon/Download/GRUB/GRUB':
configure:3253: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
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_CPP_set=
ac_cv_env_CPP_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_host=x86_64-unknown-linux-gnu
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
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/BigDragon/Download/GRUB/GRUB/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/BigDragon/Download/GRUB/GRUB/missing --run tar'
AUTOCONF='${SHELL} /home/BigDragon/Download/GRUB/GRUB/missing --run autoconf'
AUTOHEADER='${SHELL} /home/BigDragon/Download/GRUB/GRUB/missing --run autoheader'
AUTOMAKE='${SHELL} /home/BigDragon/Download/GRUB/GRUB/missing --run automake-1.11'
AWK='gawk'
BUILD_EXAMPLE_KERNEL_FALSE=''
BUILD_EXAMPLE_KERNEL_TRUE=''
CC='gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-m32  -fno-stack-protector'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DISKLESS_SUPPORT_FALSE=''
DISKLESS_SUPPORT_TRUE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FSYS_CFLAGS=''
GREP=''
GRUB_CFLAGS=''
GRUB_LIBS=''
HERCULES_SUPPORT_FALSE=''
HERCULES_SUPPORT_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/BigDragon/Download/GRUB/GRUB/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NETBOOT_DRIVERS=''
NETBOOT_SUPPORT_FALSE=''
NETBOOT_SUPPORT_TRUE=''
NET_CFLAGS=''
NET_EXTRAFLAGS=''
OBJCOPY=''
OBJEXT=''
PACKAGE='grub'
PACKAGE_BUGREPORT='m.selhorst@sirrix.com'
PACKAGE_NAME='GRUB'
PACKAGE_STRING='GRUB 0.97'
PACKAGE_TARNAME='grub'
PACKAGE_VERSION='0.97'
PATH_SEPARATOR=':'
PERL=''
RANLIB=''
SERIAL_SPEED_SIMULATION_FALSE=''
SERIAL_SPEED_SIMULATION_TRUE=''
SERIAL_SUPPORT_FALSE=''
SERIAL_SUPPORT_TRUE=''
SET_MAKE=''
SHELL='/bin/sh'
STAGE1_CFLAGS=''
STAGE2_CFLAGS=''
STRIP=''
VERSION='0.97'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_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='${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='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/BigDragon/Download/GRUB/GRUB/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
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. ##
## ----------- ##

#define PACKAGE_NAME "GRUB"
#define PACKAGE_TARNAME "grub"
#define PACKAGE_VERSION "0.97"
#define PACKAGE_STRING "GRUB 0.97"
#define PACKAGE_BUGREPORT "m.selhorst@sirrix.com"
#define PACKAGE "grub"
#define VERSION "0.97"

configure: exit 77


---------- Post added at 03:16 PM CST ---------- Previous post was at 11:12 AM CST ----------

I met with a linux expert on campus today and found a resolution to this issue. It seems that the 64-bit GCC has a broken link and missing files in which the compilation script was expecting. Installing 32-bit GCC and libraries solved the problem and restored the missing files.

I'm not sure if that's normal for 64-bit, an intentional incompatibility, or some sort of package error. I will remember to check whether or not things are compiling in 64-bit or 32-bit mode next time. I figured I'd post the solution here since I've seen this issue come up elsewhere without resolution.
Reply With Quote
Reply

Tags
compiler, create, executables, grub

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C compiler cannot create executables knoppix21 Using Fedora 4 19th June 2009 06:59 AM
C compiler cannot create executables.... zacharysturgeon Using Fedora 1 8th June 2008 12:11 AM
Compiler cannot create executables darkhut Using Fedora 26 28th June 2007 10:45 PM
error: C compiler cannot create executables Omega430 Using Fedora 8 15th December 2004 05:26 PM
C compiler cannot create executables ypswes Using Fedora 3 17th March 2004 01:21 PM


Current GMT-time: 20:42 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat