[Clfs-dev] grub-2.0 on x86_64-64

Martin Ward macros_the_black at ntlworld.com
Sat Oct 19 12:11:00 PDT 2013


On 19/10/13 18:53, Maurice Kinal wrote:
> Hey William!
>
> On Sat, Oct 19, 2013 at 08:49:21AM -0500, William Harrington wrote:
>> This looks like what is required when using an EFI platform. We
>> could add a note, maybe.
> I have efi turned off in the bios.  Stinkin' efi.  ;-)
>
>> Was target necessary, or is it default to x86 target when using efi?
> I am now not 100% positive which, if not all of the switches are
> critical.  After some checking it appears to be stubs.h that is the
> culprit.  If I *don't* do this; mv -v /usr/include/gnu/stubs{-64,}.h,
> when building glibc-2.18 on the x86_64-64 then grub builds fine as
> stated in the book.  I refer to;
>
> http://cross-lfs.org/view/svn/x86_64-64/final-system/eglibc.html
agreed didn't need to do this my stubs.h has this

/* This file is automatically generated.
    This file selects the right generated file of `__stub_FUNCTION' macros
    based on the architecture being compiled for.  */


#if !defined __x86_64__
# include <gnu/stubs-32.h>
#endif
#if defined __x86_64__ && defined __LP64__
# include <gnu/stubs-64.h>
#endif
#if defined __x86_64__ && defined __ILP32__
# include <gnu/stubs-x32.h>
#endif


ls -al /usr/include/gnu

gives

-rw-r--r--   1 root root   604 Sep  4 08:53 stubs-64.h
-rw-r--r--   1 root root   384 Sep  4 08:52 stubs.h

>
> I am going to do some more experimenting but it seems to me that not
> overwriting stubs.h might be the better solution.
>
> Life is good,
> Maurice
>
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
>
regards

martin



More information about the Clfs-dev mailing list