bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble compiling GRUB


From: Farid Hajji
Subject: Trouble compiling GRUB
Date: Sat, 25 Nov 2000 02:00:10 +0100

Hi,

I'm trying to compile grub (snapshot from today's CVS) on FreeBSD.
The following error message occurs:

gmake[2]: Entering directory `/tmp/grub/stage2'
source='boot.c' object='libgrub_a-boot.o' libtool=no \
depfile='.deps/libgrub_a-boot.Po' tmpdepfile='.deps/libgrub_a-boot.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes 
-Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 
-malign-functions=1 -Wundef -O2 -I../lib -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 
-DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DSUPPORT_SERIAL 
-fwritable-strings -B/usr/local/bin/ -g -DUSE_MD5_PASSWORDS=1 -c -o 
libgrub_a-boot.o `test -f boot.c || echo './'`boot.c
cpp: too many input files

What's going on? I was able to compile an earlier version of grub
(grub-0.5.96 from CVS) without problems.

This is my setup:

System  : FreeBSD-5.0 CURRENT
gcc     : 2.95.2
binutils: 2.10, installed additionally to the native 2.9.1 binutils
                under /usr/local/bin
make    : gmake-3.79
grub    : CVS version of today Sat Nov 25 01:51:12 CET 2000

This is how to reproduce the bug:

cd $MYCVSDIR
find grub -print | cpio -pmdvu /tmp
cd /tmp/grub
# this was needed to use binutils-2.10 instead of native 2.9.1
# this as exactly the configure command I used successfully
# with grub 0.5.96.
./configure --with-binutils=/usr/local/bin
# O_SYNC in grub/asmstub.c not recognized on my system.
# removed O_SYNC flag in line 1032 of grub/asmstub.c.
# this worked with grub 0.5.96
emacsclient grub/asmstub.c
gmake

# next followed the error message stated above.

Thanks,

-Farid.

-- 
Farid Hajji -- Unix Systems and Network Admin | Phone: +49-2131-67-555
Broicherdorfstr. 83, D-41564 Kaarst, Germany  | address@hidden
- - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - -
Murphy's Law fails only when you try to demonstrate it, and thus succeeds.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]