[Top][All Lists]

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

Re: 64-bit UEFI build is broken

From: Seth Goldberg
Subject: Re: 64-bit UEFI build is broken
Date: Tue, 8 Nov 2011 22:17:12 -0800 (PST)
User-agent: Alpine 2.00 (GSO 1167 2008-08-23)


Just a followup -- it appears that the root cause is a missing "-m64" -- since the compilation for this platform should be done with -m64, the preprocessing done for .lst generation should also be done with that cflag, otherwise (at least in this case), the library gets confused.

Adding 'TARGET_CPPFLAGS=-m64" to the configure line allowed the build to finish without errors (though I'm not sure if that's the proper fix).


Quoting Seth Goldberg, who wrote the following on Tue, 8 Nov 2011:

Latest trunk (Linux host, configured with "--target=x86_64 --with-platform=efi") stops while building btrfs:

gcc -E -DGRUB_LST_GENERATOR -Dgrub_fs_register=FS_LIST_MARKER -Dgrub_video_register=VIDEO_LIST_MARKER -Dgrub_parttool_register=PARTTOOL_LIST_MARKER -Dgrub_partition_map_register=PARTMAP_LIST_MARKER '-Dgrub_term_register_input(...)=INPUT_TERMINAL_LIST_MARKER(__VA_ARGS__)' '-Dgrub_term_register_output(...)=OUTPUT_TERMINAL_LIST_MARKER(__VA_ARGS__)' '-Dgrub_register_command(...)=COMMAND_LIST_MARKER(__VA_ARGS__)' '-Dgrub_register_extcmd(...)=EXTCOMMAND_LIST_MARKER(__VA_ARGS__)' '-Dgrub_register_command_p1(...)=P1COMMAND_LIST_MARKER(__VA_ARGS__)' -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/i686-linux-gnu/4.6.1/include -DGRUB_FILE=\"fs/btrfs.c\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/posix_wrap -I../../grub-core/lib/minilzo -DMINILZO_HAVE_CONFIG_H ../../grub-core/fs/btrfs.c ../../grub-core/lib/crc.c || (rm -f btrfs.marker; exit 1)
In file included from ../../grub-core/lib/minilzo/lzoconf.h:75:0,
                from ../../grub-core/lib/minilzo/minilzo.h:60,
                from ../../grub-core/fs/btrfs.c:29:
../../grub-core/lib/minilzo/lzodefs.h:849:6: error: #error "this should not happen"
make[3]: *** [btrfs.marker] Error 1

 It's not expecting sizeof(ulong_t) to exceed 32-bits.


Grub-devel mailing list

reply via email to

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