Hi:
I basically have two question about grub. I'm running linux mint maya 13 on my system.
1) how to compile grub (version 0.95) source code got from
ftp://alpha.gnu.org/gnu/grub/ ?
Here's what i tried to do:
bash# cd /usr/src/grub-0.95
bash# export CC="gcc -mcpu=i386"
bash# ./configure --host=i386-pc-linux-gnu --without-curses
bash# make
but sadly i got some error,
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
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 for i386-pc-linux-gnu-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... i386-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i386-pc-linux-gnu-gcc... gcc -mcpu=i386
checking for i386-pc-linux-gnu-gcc... (cached) gcc -mcpu=i386
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -mcpu=i386 accepts -g... yes
checking for gcc -mcpu=i386 option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc -mcpu=i386... gcc3
checking dependency style of gcc -mcpu=i386... (cached) gcc3
checking for i386-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking whether optimization for size works... yes
checking whether gcc has -fno-stack-protector... yes
checking whether -Wundef works... yes
checking whether -falign-loops works... yes
checking for i386-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking if C symbols get an underscore after compilation... no
checking whether objcopy works for absolute addresses... no
configure: error: GRUB requires a working absolute objcopy; upgrade your binutils
how to fix this line? Does it mean i have to install someother version of objcopy?
2) How do i create an iso image from grub binaries (stage1 and stage2) ? Only grub UI with dummy entries no real kernel to load.
Thanks,
-Sunil