grub2 failure with gcc-4.9
A message that is not in the archive (sent off-list or not yet received): [email protected]
Oops, hit reply instead of reply-all
Quoted 11 lines · Thomas Petazzoni
Dear Thierry Bultel,
Quoted 7 lines · Thierry Bultel
With gcc-4.9 from Ubuntu
(in grub2.mk, I set TARGET_CC="/usr/bin/gcc" \
TARGET_CFLAGS="-m32" \
)... grub hangs.
I'm not sure if it's related but I think we are mixing host and target grub2. When you run ~output/host/usr/sbin/grub-install any scripts it runs such as grub-mkimage are run from the build hosts /usr/... and not buildroot HOSTDIR or TARGETDIR I have been getting elf header mismatches which I think are differences between grub 2.00 and grub 2.01-beta
Steve Kenton
Quoted 13 lines
Seems like you're good for a bug report to the upstream project. I checked their Git repo, there is a gcc 4.9 fix but specific for ARM issues. I haven't seen any other commit mentioning "4.9".
You may want to try with their latest Git version first, though, just in case the problem was fixed but not mentioned explicitly in a commit log.
Best regards,
Thomas
Le 05/02/2015 19:44, Steve Kenton a ?crit :
Quoted 13 lines
Oops, hit reply instead of reply-all
Quoted 10 lines · Thomas Petazzoni
Dear Thierry Bultel,
Quoted 6 lines · Thierry Bultel
With gcc-4.9 from Ubuntu
(in grub2.mk, I set TARGET_CC="/usr/bin/gcc" \ TARGET_CFLAGS="-m32" \)
Quoted 7 lines
Quoted 1 line
Quoted 1 line
... grub hangs.
I'm not sure if it's related but I think we are mixing host and target grub2. When you run ~output/host/usr/sbin/grub-install any scripts it runs such as grub-mkimage are run from the build hosts
/usr/... and not buildroot HOSTDIR or TARGETDIR I have been getting elf header mismatches which I think are differences between grub 2.00 and grub 2.01-beta
Thanks Steve,
FYI,
I am not using grub-install, but instead:
sudo ./host/usr/sbin/grub-bios-setup \
-b ./host/usr/lib/grub/i386-pc/boot.img \
-c ./images/grub.img -d . /dev/sde
I have notified the grub mailing list, this seems to be an unknown issue and I need to fill a bug report. (and first try with 2.01-beta ...)
Thierry
Quoted 19 lines
Steve Kenton
Quoted 13 lines
Seems like you're good for a bug report to the upstream project. I checked their Git repo, there is a gcc 4.9 fix but specific for ARM issues. I haven't seen any other commit mentioning "4.9".
You may want to try with their latest Git version first, though, just in case the problem was fixed but not mentioned explicitly in a commit log.
Best regards,
Thomas
Quoted 17 lines · Thierry Bultel
Quoted 7 lines
Quoted 1 line
Quoted 1 line
... grub hangs.
I'm not sure if it's related but I think we are mixing host and target grub2. When you run ~output/host/usr/sbin/grub-install any scripts it runs such as grub-mkimage are run from the build hosts
/usr/... and not buildroot HOSTDIR or TARGETDIR I have been getting elf header mismatches which I think are differences between grub 2.00 and grub 2.01-betaThanks Steve,
FYI,
I am not using grub-install, but instead:sudo ./host/usr/sbin/grub-bios-setup \
(quoted diff) +0
-2-b ./host/usr/lib/grub/i386-pc/boot.img \ -c ./images/grub.img -d . /dev/sde
Quoted 4 lines
I have notified the grub mailing list, this seems to be an unknown issue and I need to fill a bug report. (and first try with 2.01-beta ...)
Thierry
Yep, that's the correct way, I just wanted to mention that grub-install is an easy trap to fall into if you let your fingers run on auto-pilot. And it can produce subtle and hard to recognize problems which sounded familiar :-)
Steve
----- Mail original -----
Quoted 29 lines
De: "Steve Kenton" <[email protected]>
?: "Thierry Bultel" <[email protected]>, buildroot at busybox.net, "Thomas Petazzoni" <[email protected]>
Envoy?: Jeudi 19 F?vrier 2015 17:03:24
Objet: Re: Fwd: Re: [Buildroot] grub2 failure with gcc-4.9Quoted 21 lines · Thierry Bultel
Quoted 7 lines
Quoted 1 line
Quoted 1 line
... grub hangs.
I'm not sure if it's related but I think we are mixing host and target grub2. When you run ~output/host/usr/sbin/grub-install any scripts it runs such as grub-mkimage are run from the build hosts
/usr/... and not buildroot HOSTDIR or TARGETDIR I have been getting elf header mismatches which I think are differences between grub 2.00 and grub 2.01-betaThanks Steve,
FYI,
I am not using grub-install, but instead:sudo ./host/usr/sbin/grub-bios-setup \
(quoted diff) +0
-2-b ./host/usr/lib/grub/i386-pc/boot.img \ -c ./images/grub.img -d . /dev/sdeI have notified the grub mailing list, this seems to be an unknown issue and I need to fill a bug report. (and first try with 2.01-beta ...)
Quoted 10 lines
Quoted 2 lines
Thierry
Yep, that's the correct way, I just wanted to mention that grub-install
is an easy trap to fall into if you let your fingers run on auto-pilot.
And it can produce subtle and hard to recognize problems which sounded
familiar :-)
FYI, the bug is not reproducible with the master branch of grub.
I will have to submit a patch anyway, because due to the poor usb hid implementation, grub thinks my touchscreen and my joystick are keyboards .. and goes in infinite loop due to unknown keys (I also had it on the 2.0 version).
But everything else works fine.
Thierry
Quoted 3 lines
Steve