LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-22-2007, 03:48 PM   #1
The00Dustin
Member
 
Registered: Jan 2006
Posts: 70

Rep: Reputation: 15
Problems Compiling Grub In Fedora 7 (configure error)


I am trying to compile grub 0.97 and getting an error when I run configure. Here is the output from configure (I have sucessfully compiled Xen and a Kernel in testing, so I suspect I'm missing a devel package necessary for grub, but Iam not sure which one):
Code:
[root@fedora7 grub-0.97]# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
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: C compiler cannot create executables
See `config.log' for more details.
Also, here is the output for uname-a:
Code:
Linux fedora7.domain.local 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Finally, here are the contents of config.log:
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.59.  Invocation command line was

  $ ./configure 

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

hostname = fedora7.domain.local
uname -m = x86_64
uname -r = 2.6.22.9-91.fc7
uname -s = Linux
uname -v = #1 SMP Thu Sep 27 20:47:39 EDT 2007

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

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

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:1434: checking for a BSD-compatible install
configure:1489: result: /usr/bin/install -c
configure:1500: checking whether build environment is sane
configure:1543: result: yes
configure:1608: checking for gawk
configure:1624: found /bin/gawk
configure:1634: result: gawk
configure:1644: checking whether make sets $(MAKE)
configure:1664: result: yes
configure:1839: checking build system type
configure:1857: result: x86_64-unknown-linux-gnu
configure:1865: checking host system type
configure:1879: result: x86_64-unknown-linux-gnu
configure:1903: checking whether to enable maintainer-specific portions of Makefiles
configure:1912: result: no
configure:2028: checking for gcc
configure:2044: found /usr/bin/gcc
configure:2054: result: gcc
configure:2112: checking for gcc
configure:2138: result: gcc
configure:2382: checking for C compiler version
configure:2385: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-27)
Copyright (C) 2006 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:2388: $? = 0
configure:2390: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --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 --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)
configure:2393: $? = 0
configure:2395: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2398: $? = 1
configure:2421: checking for C compiler default output file name
configure:2424: gcc -m32    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2427: $? = 1
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 "bug-grub@gnu.org"
| #define PACKAGE "grub"
| #define VERSION "0.97"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2466: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_build_alias=x86_64-unknown-linux-gnu
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_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_host_alias=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /usr/src/grub-0.97/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/src/grub-0.97/missing --run tar'
AUTOCONF='${SHELL} /usr/src/grub-0.97/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/src/grub-0.97/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/src/grub-0.97/missing --run automake-1.9'
AWK='gawk'
BUILD_EXAMPLE_KERNEL_FALSE=''
BUILD_EXAMPLE_KERNEL_TRUE=''
CC='gcc'
CCAS=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-m32 '
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DISKLESS_SUPPORT_FALSE=''
DISKLESS_SUPPORT_TRUE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FSYS_CFLAGS=''
GRUB_CFLAGS=''
GRUB_LIBS=''
HERCULES_SUPPORT_FALSE=''
HERCULES_SUPPORT_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /usr/src/grub-0.97/missing --run makeinfo'
NETBOOT_DRIVERS=''
NETBOOT_SUPPORT_FALSE=''
NETBOOT_SUPPORT_TRUE=''
NET_CFLAGS=''
NET_EXTRAFLAGS=''
OBJCOPY=''
OBJEXT=''
PACKAGE='grub'
PACKAGE_BUGREPORT='bug-grub@gnu.org'
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'
ac_ct_OBJCOPY=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
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='${prefix}/share'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/src/grub-0.97/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE "grub"
#define PACKAGE_BUGREPORT "bug-grub@gnu.org"
#define PACKAGE_NAME "GRUB"
#define PACKAGE_STRING "GRUB 0.97"
#define PACKAGE_TARNAME "grub"
#define PACKAGE_VERSION "0.97"
#define VERSION "0.97"

configure: exit 77
I didn't have automake and autoconf installed when I tried initially, but installing them did not change the error, and this output is for the latest attempt. I also tried without and with the grub-0.97-gcc4.patch (from Fedora 7 src rpm).

I'm guessing this is a simple one, but hopefully someone with a little more experience can spot it since I didn't. Thanks.

Last edited by The00Dustin; 10-23-2007 at 09:01 AM. Reason: Make Domain Generic
 
Old 10-22-2007, 04:25 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Is there some reason for not using grub as installed when you installed Fedora?

You should have the grub rpm on the installation media you used to install Fedora.

You can also get grub fron Fedora repositories.
 
Old 10-22-2007, 08:26 PM   #3
The00Dustin
Member
 
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: 15
The grub installed with Fedora has a bug that doesn't allow Xen to see greater than 3.2GiB of RAM on a system with 4GiB or more.
Bug URLs follow:
xen-users mailing list archive:
http://lists.xensource.com/archives/.../msg00028.html
Bugzilla:
https://bugzilla.redhat.com/bugzilla....cgi?id=250299
I have a system with 8GiB of RAM that appears to have this same problem [I see 7.8 GiB in fedora base (SMP), but I only see 3.2GiB in xen]. URL:
http://www.linuxquestions.org/questi...d.php?t=592832
Theoretically, it could be argued that the BIOS is the problem and not grub, but I think patching grub will be easier and quicker than trying to get the manufacturer to patch their BIOS. Additionally, I will be able to contribute to this bug report if the suggested patch resolves my issue.
That said, I have downloaded the src rpm, and I am trying to patch the source so that I can install a custom grub in hopes of resolving this bug, but I am hitting a wall as illustrated in my original post.
 
Old 10-23-2007, 11:17 AM   #4
The00Dustin
Member
 
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: 15
Resolved

I thought it would be something simple. The 32-bit version of glibc-devel was not installed, only the x86_64 version was. I found gcc -m32 meant make 32-bit, so I determined what headers were installed, and when I noticed the 32-bit version of glibc-devel was missing, I installed it, and then configure worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when I ./configure GRUB (Slackware Linux) Dark Jirachi Linux - Software 4 07-08-2007 11:32 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Compiling Kaffiene ./configure Error elliotfuller Linux - Software 1 04-27-2005 09:46 PM
./configure error while compiling superkaramba .qt-mt required -=|Man0waR|=- Mandriva 2 02-26-2005 04:10 AM
How do I configure GRUB after I install RH Fedora enigma Z Linux - Software 2 04-29-2004 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration