Tree/Branch: Poky/1.1_M1 Poky Commit: fc55b224caa3eeac4abda099ec9ed505db59fb28 Meta Branch: 1.1_M1 Meta Commit: 1b227f8ed2df529cc13f7169b0c08ff3d0f8c812 Image Location: emenlow: http://autobuilder02.pokylinux.org/emenlow/nightly/20110521-1/machines/emenlow/x86_32/core-image-sato-sdk-live-emenlow-20110521070906.hddimg.bz2 crownbay: http://autobuilder02.pokylinux.org/crownbay-noemgd/nightly/20110520-1/machines/crownbay/x86_32/core-image-sato-sdk-live-crownbay-noemgd-20110521035553.hddimg.bz2 With Yocto 1.1 M1 RC1 build, some BSP images could not install successfully on target platform. Installer fails when grub install. The error message is as below: ########## ...... Ext3-fs: barriers noet enableed ...... grub> checking if "boot/grub/stage 1" exists ....yes grub> checking if "boot/grub/stage 2" exists ....yes grub> checking if "boot/grub/stage e2fs_stage1_5" exists ....yes Running "ember /boot/grub/e2fs_stage1_5(hd0,0)" .... failed (this is not fatal) Running "ember /boot/grub/e2fs_stage1_5(hd0,0)" .... failed (this is not fatal) Running "install --stage2=/ssd/boot/grub/stage2 /boot/grub/stage1(hd0) /boot/grub/stage2 p /boot/grub/menu list" failed ............. Error 6: Mismatched or corrupt version of stage1/stage2 ##########
blacksand also has such issue.
This appears at first glance to be a buggy grub build. Perhaps gcc 4.6 + tune-atom.inc ?
Tom, if you're the owner of grub can you accept?
(In reply to comment #3) > Tom, if you're the owner of grub can you accept? I'm not the owner of grub.
Any idea what the fs-type is for the partition where grub is installing ?
Dexuan is kind to help on this bug.
I got the root cause: this is due to a known gcc-4.6-related optimization bug. will send out patch soon: --- grub-0.97/stage2/Makefile.am.orig +++ grub-0.97/stage2/Makefile.am @@ -79,7 +79,7 @@ HERCULES_FLAGS = endif -STAGE2_COMPILE = $(STAGE2_CFLAGS) -fno-builtin -nostdinc \ +STAGE2_COMPILE = $(STAGE2_CFLAGS) -fno-reorder-functions -fno-builtin -nostdinc \ $(NETBOOT_FLAGS) $(SERIAL_FLAGS) $(HERCULES_FLAGS) STAGE1_5_LINK = -nostdlib -Wl,-N -Wl,-Ttext -Wl,2000
(In reply to comment #7) > I got the root cause: > this is due to a known gcc-4.6-related optimization bug. will send out patch > soon: > --- grub-0.97/stage2/Makefile.am.orig > +++ grub-0.97/stage2/Makefile.am > @@ -79,7 +79,7 @@ > HERCULES_FLAGS = > endif > -STAGE2_COMPILE = $(STAGE2_CFLAGS) -fno-builtin -nostdinc \ > +STAGE2_COMPILE = $(STAGE2_CFLAGS) -fno-reorder-functions -fno-builtin > -nostdinc \ > $(NETBOOT_FLAGS) $(SERIAL_FLAGS) $(HERCULES_FLAGS) > STAGE1_5_LINK = -nostdlib -Wl,-N -Wl,-Ttext -Wl,2000 After the commit "tcmode-default: switch to gcc 4.6.0 for x86, x86-64 & arm", we got this bug. This turned out to be a gcc's bug. See https://bugs.gentoo.org/show_bug.cgi?id=360513 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39333 Upstream gcc seems uninterested in the bug, so at present we can disable the option as a workaround. Thanks Ryan Hill for the investigation and the workaround patch.
Fixed by http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=776da950e880fbbc490b0c810565dbcbc9e539cf
Verify this bug in Yocto1.1 M2 RC2 20110708 testing. Tree/Branch: Poky/1.1_M2 Poky Commit id: 8df2a558b4d61778a669705b867969abe3514846 Meta Branch : 1.1_M2 Meta Commit id : 92fc07a5f1b98779806cdcc2341487ff5ea5a238 Image lacation: Emenlow: http://autobuilder02.yoctoproject.org/emenlow-1.1_M2/nightly/20110708-1/machines/emenlow/x86_32/core-image-sato-sdk-live-emenlow-20110709065339.hddimg.bz2 Blacksand: http://autobuilder02.yoctoproject.org/n450-1.1_M2/nightly/20110708-1/machines/n450/x86_32/core-image-sato-sdk-live-n450-20110709045049.hddimg.bz2 Crownbay: http://autobuilder02.yoctoproject.org/crownbay-noemgd-1.1_M2/nightly/20110709-1/machines/crownbay/x86_32/core-image-sato-sdk-live-crownbay-noemgd-20110709091053.hddimg.bz2