grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* building grub2 on a Mac, possible bug
@ 2014-10-27  3:00 Chris Murphy
  2014-10-27  3:24 ` Andrei Borzenkov
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Murphy @ 2014-10-27  3:00 UTC (permalink / raw)
  To: The development of GNU GRUB

This is on a macbookpro9,2, running Fedora 20, and I've git cloned from git://git.savannah.gnu.org/grub.git and I'm in master branch.

$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu

The unknown seems suspicious. And at the end I see "GRUB2 will be compiled with following components:
Platform: i386-pc" which is also wrong. 

If I use --with-platform=efi, then at the end I get "GRUB2 will be compiled with following components:
Platform: x86_64-efi" which is correct.

In the configure file I see this:
# Guess the platform if not specified.
if test "x$with_platform" = x; then
  case "$target_cpu"-"$target_vendor" in
    i386-apple) platform=efi ;;
    i386-*) platform=pc ;;
    x86_64-apple) platform=efi ;;

I guess $target_vendor isn't getting set to apple and therefore platform doesn't get set to efi.


Chris Murphy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building grub2 on a Mac, possible bug
  2014-10-27  3:00 building grub2 on a Mac, possible bug Chris Murphy
@ 2014-10-27  3:24 ` Andrei Borzenkov
  2014-10-27 17:46   ` Mike Gilbert
  2014-11-28 19:28   ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 2 replies; 6+ messages in thread
From: Andrei Borzenkov @ 2014-10-27  3:24 UTC (permalink / raw)
  To: Chris Murphy; +Cc: The development of GNU GRUB

В Sun, 26 Oct 2014 21:00:18 -0600
Chris Murphy <lists@colorremedies.com> пишет:

> This is on a macbookpro9,2, running Fedora 20, and I've git cloned from git://git.savannah.gnu.org/grub.git and I'm in master branch.
> 
> $ ./configure
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type… x86_64-unknown-linux-gnu
> 

This is normal; I get the same on openSUSE and IIRC it had always been
the case.

> The unknown seems suspicious. And at the end I see "GRUB2 will be compiled with following components:
> Platform: i386-pc" which is also wrong. 
> 

Well ... short of checking for /sys/firmware/efi, how can we know we
may need efi build?

> If I use --with-platform=efi, then at the end I get "GRUB2 will be compiled with following components:
> Platform: x86_64-efi" which is correct.
> 
> In the configure file I see this:
> # Guess the platform if not specified.
> if test "x$with_platform" = x; then
>   case "$target_cpu"-"$target_vendor" in
>     i386-apple) platform=efi ;;
>     i386-*) platform=pc ;;
>     x86_64-apple) platform=efi ;;
> 
> I guess $target_vendor isn't getting set to apple and therefore platform doesn't get set to efi.

You are running Linux, not OS X here, so $target_vendore cannot be
apple. It refers to OS vendor, not underlying hardware vendor.

> 
> 
> Chris Murphy
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building grub2 on a Mac, possible bug
  2014-10-27  3:24 ` Andrei Borzenkov
@ 2014-10-27 17:46   ` Mike Gilbert
  2014-10-27 18:35     ` Chris Murphy
  2014-11-28 19:28   ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 1 reply; 6+ messages in thread
From: Mike Gilbert @ 2014-10-27 17:46 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: Chris Murphy

On Sun, Oct 26, 2014 at 11:24 PM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
> В Sun, 26 Oct 2014 21:00:18 -0600
> Chris Murphy <lists@colorremedies.com> пишет:
>
>> This is on a macbookpro9,2, running Fedora 20, and I've git cloned from git://git.savannah.gnu.org/grub.git and I'm in master branch.
>>
>> $ ./configure
>> checking build system type... x86_64-unknown-linux-gnu
>> checking host system type... x86_64-unknown-linux-gnu
>> checking target system type… x86_64-unknown-linux-gnu
>>
>
> This is normal; I get the same on openSUSE and IIRC it had always been
> the case.
>

autoconf does not attempt to guess the vendor on Linux.

Pass --build to configure with your toolchain's vendor tuple to
resolve this quirk. For example:

./configure --build=x86_64-pc-linux-gnu

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu


This probably will not help with the efi auto-selection issue as
Fedora probably does not use 'apple' in the vendor field.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building grub2 on a Mac, possible bug
  2014-10-27 17:46   ` Mike Gilbert
@ 2014-10-27 18:35     ` Chris Murphy
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Murphy @ 2014-10-27 18:35 UTC (permalink / raw)
  To: Mike Gilbert; +Cc: The development of GNU GRUB


On Oct 27, 2014, at 11:46 AM, Mike Gilbert <floppym@gentoo.org> wrote:

> ./configure --build=x86_64-pc-linux-gnu

OK so do ./configure --build=x86_64-pc-linux-gnu --platform=efi

?

Passing only --platform=efi did seem to work: it compiled and grub-install works.

Chris Murphy



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building grub2 on a Mac, possible bug
  2014-10-27  3:24 ` Andrei Borzenkov
  2014-10-27 17:46   ` Mike Gilbert
@ 2014-11-28 19:28   ` Vladimir 'φ-coder/phcoder' Serbinenko
  2014-11-29  5:30     ` Andrei Borzenkov
  1 sibling, 1 reply; 6+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2014-11-28 19:28 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

On 27.10.2014 05:24, Andrei Borzenkov wrote:
> В Sun, 26 Oct 2014 21:00:18 -0600
> Chris Murphy <lists@colorremedies.com> пишет:
> 
>> This is on a macbookpro9,2, running Fedora 20, and I've git cloned from git://git.savannah.gnu.org/grub.git and I'm in master branch.
>>
>> $ ./configure
>> checking build system type... x86_64-unknown-linux-gnu
>> checking host system type... x86_64-unknown-linux-gnu
>> checking target system type… x86_64-unknown-linux-gnu
>>
> 
> This is normal; I get the same on openSUSE and IIRC it had always been
> the case.
> 
>> The unknown seems suspicious. And at the end I see "GRUB2 will be compiled with following components:
>> Platform: i386-pc" which is also wrong. 
>>
> 
> Well ... short of checking for /sys/firmware/efi, how can we know we
> may need efi build?
Checking fiwmware on install is ok. But not on build. Imagine a park of
x86 machines used for building. Build result should not depend on which
firmware they're running.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building grub2 on a Mac, possible bug
  2014-11-28 19:28   ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2014-11-29  5:30     ` Andrei Borzenkov
  0 siblings, 0 replies; 6+ messages in thread
From: Andrei Borzenkov @ 2014-11-29  5:30 UTC (permalink / raw)
  To: Vladimir 'φ-coder/phcoder' Serbinenko
  Cc: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]

В Fri, 28 Nov 2014 21:28:35 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> пишет:

> On 27.10.2014 05:24, Andrei Borzenkov wrote:
> > В Sun, 26 Oct 2014 21:00:18 -0600
> > Chris Murphy <lists@colorremedies.com> пишет:
> > 
> >> This is on a macbookpro9,2, running Fedora 20, and I've git cloned from git://git.savannah.gnu.org/grub.git and I'm in master branch.
> >>
> >> $ ./configure
> >> checking build system type... x86_64-unknown-linux-gnu
> >> checking host system type... x86_64-unknown-linux-gnu
> >> checking target system type… x86_64-unknown-linux-gnu
> >>
> > 
> > This is normal; I get the same on openSUSE and IIRC it had always been
> > the case.
> > 
> >> The unknown seems suspicious. And at the end I see "GRUB2 will be compiled with following components:
> >> Platform: i386-pc" which is also wrong. 
> >>
> > 
> > Well ... short of checking for /sys/firmware/efi, how can we know we
> > may need efi build?
> Checking fiwmware on install is ok. But not on build. Imagine a park of
> x86 machines used for building. Build result should not depend on which
> firmware they're running.
> 
> 

Actually I think defaulting to platform on which build is running makes
sense. If user needs reproducible build, user should specify platform
explicitly anyway.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-29  5:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27  3:00 building grub2 on a Mac, possible bug Chris Murphy
2014-10-27  3:24 ` Andrei Borzenkov
2014-10-27 17:46   ` Mike Gilbert
2014-10-27 18:35     ` Chris Murphy
2014-11-28 19:28   ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-11-29  5:30     ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).