[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub2 bzr mainline make error
From: |
Colin Watson |
Subject: |
Re: grub2 bzr mainline make error |
Date: |
Tue, 21 Sep 2010 11:06:25 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Tue, Sep 21, 2010 at 02:08:58PM +0530, KESHAV P.R. wrote:
> Grub2 bzr mainline rev 2830 does not compile for both x86_64-efi and
> i386-pc. Seems like some error due to gnulib. I have attached the
> output while compiling for x86_64-efi.
[...]
> make[2]: Entering directory
> `/home/keshav_pr/Desktop/New/Source/grub2_BZR/GRUB2_EFI_BUILD_DIR_x86_64/grub-core/gnulib'
> rm -f alloca.h-t alloca.h && \
> { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
> cat ../../../grub-core/gnulib/alloca.in.h; \
> } > alloca.h-t && \
> mv -f alloca.h-t alloca.h
[...]
> make[3]: Entering directory
> `/home/keshav_pr/Desktop/New/Source/grub2_BZR/GRUB2_EFI_BUILD_DIR_x86_64/grub-core'
> gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W -I../../include
> -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=X86_64_EFI -nostdinc
> -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include
> -DGRUB_FILE=\"gnulib/regex.c\" -I. -I../../grub-core -I.. -I../..
> -I../../include -I../include -I../../grub-core/lib/posix_wrap
> -I../../grub-core/gnulib -Os -Wall -W -Wshadow -Wpointer-arith
> -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -fno-dwarf2-cfi-asm -m64
> -mcmodel=large -mno-red-zone -fno-stack-protector -mno-stack-arg-probe
> -Werror -fno-builtin -fno-builtin -Wno-undef -Wno-sign-compare
> -Wno-unused -MT gnulib/libgnulib_a-regex.o -MD -MP -MF
> gnulib/.deps-core/libgnulib_a-regex.Tpo -c -o gnulib/libgnulib_a-regex.o
> `test -f 'gnulib/regex.c' || echo '../../grub-core/'`gnulib/regex.c
> In file included from ../../grub-core/gnulib/regex.c:59:0:
> ../../grub-core/gnulib/regex_internal.h:458:20: fatal error: alloca.h: No
> such file or directory
So what's going on here? The gcc command line includes
-I../../grub-core/gnulib, which is correct given your build tree layout,
and there's no -iquote or -I- funniness going on. The build log shows
that alloca.h was created earlier. Could you check whether this file
still exists after that failure?
/home/keshav_pr/Desktop/New/Source/grub2_BZR/GRUB2_EFI_BUILD_DIR_x86_64/grub-core/gnulib/alloca.h
Failing that, try repeating that gcc command in the stated directory
under strace, and see where it's looking for alloca.h.
--
Colin Watson address@hidden