LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2013, 11:18 AM   #1
thegreatstudio
LQ Newbie
 
Registered: Aug 2013
Posts: 7

Rep: Reputation: Disabled
Exclamation Problem in compiling GRUB


Hello guys!! I am a new user and I read about linux I studied in California

Here is the error when I do this: ./configure --host=i386-pc-linux-gnu --without-curses

the the error shows up like this:

C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.


here is my 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.95, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --host=i386-pc-linux-gnu --without-curses

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

hostname = sofia
uname -m = i686
uname -r = 3.2.0-4-486
uname -s = Linux
uname -v = #1 Debian 3.2.46-1

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

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

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /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:1600: checking for gawk
configure:1616: found /usr/bin/gawk
configure:1626: result: gawk
configure:1636: checking whether make sets $(MAKE)
configure:1656: result: yes
configure:1735: checking for i386-pc-linux-gnu-strip
configure:1764: result: no
configure:1773: checking for strip
configure:1789: found /usr/local/bin/strip
configure:1800: result: strip
configure:1827: checking build system type
configure:1845: result: i686-pc-linux-gnu
configure:1853: checking host system type
configure:1867: result: i386-pc-linux-gnu
configure:1891: checking whether to enable maintainer-specific portions of Makefiles
configure:1900: result: no
configure:1978: checking for i386-pc-linux-gnu-gcc
configure:2007: result: no
configure:2016: checking for gcc
configure:2032: found /usr/bin/gcc
configure:2042: result: gcc
configure:2062: checking for i386-pc-linux-gnu-gcc
configure:2088: result: gcc
configure:2370: checking for C compiler version
configure:2373: gcc --version </dev/null >&5
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 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:2376: $? = 0
configure:2378: gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.7/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5) 
configure:2381: $? = 0
configure:2383: gcc -V </dev/null >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2386: $? = 4
configure:2409: checking for C compiler default output file name
configure:2412: gcc    conftest.c  >&5
/usr/local/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status
configure:2415: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "GRUB"
| #define PACKAGE_TARNAME "grub"
| #define PACKAGE_VERSION "0.95"
| #define PACKAGE_STRING "GRUB 0.95"
| #define PACKAGE_BUGREPORT "bug-grub@gnu.org"
| #define PACKAGE "grub"
| #define VERSION "0.95"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2454: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-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=set
ac_cv_env_host_alias_value=i386-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i386-pc-linux-gnu
ac_cv_host_alias=i386-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=gcc
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /usr/src/grub-0.95/missing --run aclocal-1.8'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/src/grub-0.95/missing --run tar'
AUTOCONF='${SHELL} /usr/src/grub-0.95/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/src/grub-0.95/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/src/grub-0.95/missing --run automake-1.8'
AWK='gawk'
BUILD_EXAMPLE_KERNEL_FALSE=''
BUILD_EXAMPLE_KERNEL_TRUE=''
CC='gcc'
CCAS=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS=''
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.95/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.95'
PACKAGE_TARNAME='grub'
PACKAGE_VERSION='0.95'
PATH_SEPARATOR=':'
PERL=''
RANLIB=''
SERIAL_SPEED_SIMULATION_FALSE=''
SERIAL_SPEED_SIMULATION_TRUE=''
SERIAL_SUPPORT_FALSE=''
SERIAL_SUPPORT_TRUE=''
SET_MAKE=''
SHELL='/bin/bash'
STAGE1_CFLAGS=''
STAGE2_CFLAGS=''
STRIP='strip'
VERSION='0.95'
ac_ct_CC='gcc'
ac_ct_OBJCOPY=''
ac_ct_RANLIB=''
ac_ct_STRIP='strip'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i386-pc-linux-gnu'
host_alias='i386-pc-linux-gnu'
host_cpu='i386'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/src/grub-0.95/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.95"
#define PACKAGE_TARNAME "grub"
#define PACKAGE_VERSION "0.95"
#define VERSION "0.95"

configure: exit 77
Please help me. and By the way I already installed binutils to up to date

Last edited by thegreatstudio; 08-24-2013 at 11:21 AM. Reason: I need help for my new embedded linux distro
 
Old 08-24-2013, 11:19 AM   #2
thegreatstudio
LQ Newbie
 
Registered: Aug 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
I saw this website for searching Please Help me guys
 
Old 08-25-2013, 08:19 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
I think you have an old grub source file that hasn't been updated in a while. Grub 0.95 isn't being maintained anymore.

Part of the problem is that -V is no longer used to identify the version - it is --version, and no source file is required.

I'm not sure about the link error, but suspect it is an out of date link option (or library reference).

As for additional problems, relinking the grub boot loader will depend on the system you expect to use it. It can only be used on legacy BIOS systems, UEFI (with secure boot) will fail as you would have to get the binary signed before it will work (and grub 0.99 isn't supported - you need a newer one anyway).
 
Old 08-28-2013, 09:02 AM   #4
thegreatstudio
LQ Newbie
 
Registered: Aug 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Well I'm making a embedded Operating System for my phone..

I want to make operating system though. I studied all Languages, My professor wants me to try the Linux Kernel
to start off.
 
Old 08-28-2013, 09:44 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Quote:
Originally Posted by thegreatstudio View Post
Well I'm making a embedded Operating System for my phone..
Phones don't use Grub. Grub legacy is pretty much limited to Intel architectures and the PC/BIOS specifically. It cannot use UEFI, and for secure boot, you have to pay to get the binary signed BEFORE it can even be tested.
Quote:
I want to make operating system though. I studied all Languages, My professor wants me to try the Linux Kernel
to start off.
ALL languages??? not a chance - there are too many different languages. Major languages maybe - C, C++, Perl, Python... Though C++ is not used for kernel programming. Applications for doing things (such as configuring) can be done in Perl/Python/C...
 
  


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
12.4 new install grub 2 boot problem with grub put on it's own partition not on MBR james2b Ubuntu 14 12-07-2012 09:34 AM
Installing GRUB in another disk problem, GRUB Hangs in boot caosxxi Linux - General 7 08-26-2009 01:55 PM
Getting an error while compiling grub Couling Linux - Newbie 5 12-01-2007 03:41 PM
Problems Compiling Grub In Fedora 7 (configure error) The00Dustin Linux - Software 3 10-23-2007 11:17 AM
Compiling a new Kernel with GRUB rioch Linux - Newbie 3 12-09-2003 08:43 AM


All times are GMT -5. The time now is 10:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration