Compiling grub-1.98 fails

Karthik Bhuvanagiri karthik.bhuvanagiri at gmail.com
Sun Feb 6 23:02:07 PST 2011


Hi,

I'm following LFS-Book-6.7. I followed everything in the book successfully
until section 6.44.1-Installation of Grub. Compiling grub-1.98 fails after
issuing "make" command.
Please suggest me in resolving the issue.

*Output of ./configure --prefix=/usr --sysconfdir=/etc
--disable-grub-emu-usb --disable-grub-fstest --disable-efiemu:*
*
*
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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for cmp... cmp
checking for bison... bison
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for ruby... no
checking for makeinfo... /tools/bin/makeinfo
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether byte ordering is bigendian... no
checking size of void *... 4
checking size of long... 4
checking whether our compiler is apple cc... no
checking for help2man... no
checking for posix_memalign... yes
checking for memalign... yes
checking for asprintf... yes
checking for vasprintf... yes
checking whether sys/types.h defines makedev... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for memmove... yes
checking for sbrk... yes
checking for strdup... yes
checking for lstat... yes
checking for getuid... yes
checking for getgid... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for objcopy... objcopy
checking for strip... strip
checking for nm... nm
checking whether -falign-loops works... yes
checking whether -fno-dwarf2-cfi-asm works... yes
checking whether our target compiler is apple cc... no
checking for command to convert module to ELF format...
checking whether `gcc' generates calls to `__enable_execute_stack()'... no
checking whether `gcc' has `-fPIE' as default... no
checking whether `gcc' accepts `-fstack-protector'... yes
checking whether `gcc' accepts `-mstack-arg-probe'... yes
checking for __bswapsi2... yes
checking for __bswapdi2... yes
checking for __ashldi3... yes
checking for __ashrdi3... yes
checking for __lshrdi3... yes
checking for __trampoline_setup... no
checking for __ucmpdi2... yes
checking for _restgpr_14_x... no
checking whether target compiler is working... yes
checking whether objcopy works for absolute addresses... yes
checking whether linker accepts --build-id=none... yes
checking if C symbols get an underscore after compilation... no
checking if __bss_start is defined by the compiler... yes
checking if edata is defined by the compiler... yes
checking if _edata is defined by the compiler... yes
checking if end is defined by the compiler... yes
checking if _end is defined by the compiler... yes
checking whether addr32 must be in the same line as the instruction... yes
checking for .code16 addr32 assembler support... yes
checking whether an absolute indirect call/jump must not be prefixed with an
asterisk... no
checking whether -nostdinc -isystem works... yes
checking for freetype-config... no
./configure: line 9823: freetype-config: command not found
./configure: line 9824: freetype-config: command not found
checking whether ln can handle directories properly... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gensymlist.sh
config.status: creating genkernsyms.sh
config.status: creating stamp-h
config.status: creating config.h
config.status: linking include/grub/i386 to include/grub/cpu
config.status: linking include/grub/i386/pc to include/grub/machine
config.status: executing depfiles commands
config.status: executing po-directories commands
*******************************************************
GRUB2 will be compiled with following components:
Platform: i386-pc
With memory debugging: No
efiemu runtime: No (explicitly disabled)
grub-fstest: No (explicitly disabled)
grub-mkfont: No (need freetype2 library)
*******************************************************


*Following is the output of "make" command at which it seems to be failed:*
*
*
*...*
*...*
*
gcc -o grub-mkelfimage grub_mkelfimage-gnulib_progname.o
grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o
grub_mkelfimage-util_resolve.o grub_mkelfimage-gnulib_progname.o
grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o
grub_mkelfimage-util_resolve.o
grub_mkelfimage-gnulib_progname.o:(.bss+0x0): multiple definition of
`program_name'
grub_mkelfimage-gnulib_progname.o:(.bss+0x0): first defined here
grub_mkelfimage-gnulib_progname.o: In function `set_program_name':
progname.c:(.text+0x0): multiple definition of `set_program_name'
grub_mkelfimage-gnulib_progname.o:progname.c:(.text+0x0): first defined here
grub_mkelfimage-util_elf_grub_mkimage.o: In function `load_note':
grub-mkimage.c:(.text+0x0): multiple definition of `load_note'
grub_mkelfimage-util_elf_grub_mkimage.o:grub-mkimage.c:(.text+0x0): first
defined here
grub_mkelfimage-util_elf_grub_mkimage.o: In function `load_modules':
grub-mkimage.c:(.text+0xed): multiple definition of `load_modules'
grub_mkelfimage-util_elf_grub_mkimage.o:grub-mkimage.c:(.text+0xed): first
defined here
grub_mkelfimage-util_elf_grub_mkimage.o: In function `add_segments':
grub-mkimage.c:(.text+0x393): multiple definition of `add_segments'
grub_mkelfimage-util_elf_grub_mkimage.o:grub-mkimage.c:(.text+0x393): first
defined here
grub_mkelfimage-util_elf_grub_mkimage.o: In function `main':
grub-mkimage.c:(.text+0x7fe): multiple definition of `main'
grub_mkelfimage-util_elf_grub_mkimage.o:grub-mkimage.c:(.text+0x7fe): first
defined here
grub_mkelfimage-util_misc.o:(.bss+0x0): multiple definition of `verbosity'
grub_mkelfimage-util_misc.o:(.bss+0x0): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_warn':
misc.c:(.text+0x0): multiple definition of `grub_util_warn'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x0): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_info':
misc.c:(.text+0xa1): multiple definition of `grub_util_info'
grub_mkelfimage-util_misc.o:misc.c:(.text+0xa1): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_error':
misc.c:(.text+0x14f): multiple definition of `grub_util_error'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x14f): first defined here
grub_mkelfimage-util_misc.o: In function `grub_err_printf':
misc.c:(.text+0x1e9): multiple definition of `grub_err_printf'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x1e9): first defined here
grub_mkelfimage-util_misc.o: In function `xmalloc':
misc.c:(.text+0x218): multiple definition of `xmalloc'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x218): first defined here
grub_mkelfimage-util_misc.o: In function `xrealloc':
misc.c:(.text+0x243): multiple definition of `xrealloc'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x243): first defined here
grub_mkelfimage-util_misc.o: In function `xstrdup':
misc.c:(.text+0x275): multiple definition of `xstrdup'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x275): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_get_path':
misc.c:(.text+0x2bb): multiple definition of `grub_util_get_path'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x2bb): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_get_fp_size':
misc.c:(.text+0x316): multiple definition of `grub_util_get_fp_size'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x316): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_get_image_size':
misc.c:(.text+0x36b): multiple definition of `grub_util_get_image_size'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x36b): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_read_at':
misc.c:(.text+0x3b6): multiple definition of `grub_util_read_at'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x3b6): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_read_image':
misc.c:(.text+0x42e): multiple definition of `grub_util_read_image'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x42e): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_load_image':
misc.c:(.text+0x4cc): multiple definition of `grub_util_load_image'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x4cc): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_write_image_at':
misc.c:(.text+0x569): multiple definition of `grub_util_write_image_at'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x569): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_write_image':
misc.c:(.text+0x602): multiple definition of `grub_util_write_image'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x602): first defined here
grub_mkelfimage-util_misc.o: In function `grub_malloc':
misc.c:(.text+0x64f): multiple definition of `grub_malloc'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x64f): first defined here
grub_mkelfimage-util_misc.o: In function `grub_zalloc':
misc.c:(.text+0x662): multiple definition of `grub_zalloc'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x662): first defined here
grub_mkelfimage-util_misc.o: In function `grub_free':
misc.c:(.text+0x695): multiple definition of `grub_free'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x695): first defined here
grub_mkelfimage-util_misc.o: In function `grub_realloc':
misc.c:(.text+0x6a8): multiple definition of `grub_realloc'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x6a8): first defined here
grub_mkelfimage-util_misc.o: In function `grub_memalign':
misc.c:(.text+0x6c2): multiple definition of `grub_memalign'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x6c2): first defined here
grub_mkelfimage-util_misc.o: In function `grub_mm_init_region':
misc.c:(.text+0x704): multiple definition of `grub_mm_init_region'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x704): first defined here
grub_mkelfimage-util_misc.o: In function `grub_register_exported_symbols':
misc.c:(.text+0x709): multiple definition of
`grub_register_exported_symbols'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x709): first defined here
grub_mkelfimage-util_misc.o: In function `grub_exit':
misc.c:(.text+0x70e): multiple definition of `grub_exit'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x70e): first defined here
grub_mkelfimage-util_misc.o: In function `grub_get_rtc':
misc.c:(.text+0x720): multiple definition of `grub_get_rtc'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x720): first defined here
grub_mkelfimage-util_misc.o: In function `grub_get_time_ms':
misc.c:(.text+0x79d): multiple definition of `grub_get_time_ms'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x79d): first defined here
grub_mkelfimage-util_misc.o: In function `grub_millisleep':
misc.c:(.text+0x7e8): multiple definition of `grub_millisleep'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x7e8): first defined here
grub_mkelfimage-util_misc.o: In function `xasprintf':
misc.c:(.text+0x841): multiple definition of `xasprintf'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x841): first defined here
grub_mkelfimage-util_misc.o: In function `canonicalize_file_name':
misc.c:(.text+0x88e): multiple definition of `canonicalize_file_name'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x88e): first defined here
grub_mkelfimage-util_misc.o: In function
`make_system_path_relative_to_its_root':
misc.c:(.text+0x8ba): multiple definition of
`make_system_path_relative_to_its_root'
grub_mkelfimage-util_misc.o:misc.c:(.text+0x8ba): first defined here
grub_mkelfimage-util_misc.o: In function `grub_util_init_nls':
misc.c:(.text+0xb2b): multiple definition of `grub_util_init_nls'
grub_mkelfimage-util_misc.o:misc.c:(.text+0xb2b): first defined here
grub_mkelfimage-util_resolve.o: In function
`grub_util_resolve_dependencies':
resolve.c:(.text+0x4ad): multiple definition of
`grub_util_resolve_dependencies'
grub_mkelfimage-util_resolve.o:resolve.c:(.text+0x4ad): first defined here
collect2: ld returned 1 exit status
make: *** [grub-mkelfimage] Error 1
*

-- 
Thanks and Regards,
Karthik Bhuvanagiri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20110207/9b45f226/attachment.html>


More information about the lfs-support mailing list