grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* error.h missing on mingw (grub-core/kern/emu/misc.c fails to compile)
@ 2013-12-26 19:54 Andrey Borzenkov
  2013-12-27 18:25 ` Andrey Borzenkov
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Borzenkov @ 2013-12-26 19:54 UTC (permalink / raw)
  To: grub-devel

I'm not sure how to fix it. It is pulled in by build-grub-pep2elf and
build-grub-pe2elf. Those are build time programs and so use
BUILD_CPPFLAGS; adding CPPFLAGS_GNULIB is probably not appropriate. It
compiles just fine with error.h commented out. May be something like

#if !defined(GRUB_BUILD) || defined(HAVE_ERROR_H)



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

* Re: error.h missing on mingw (grub-core/kern/emu/misc.c fails to compile)
  2013-12-26 19:54 error.h missing on mingw (grub-core/kern/emu/misc.c fails to compile) Andrey Borzenkov
@ 2013-12-27 18:25 ` Andrey Borzenkov
  2013-12-27 19:34   ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Borzenkov @ 2013-12-27 18:25 UTC (permalink / raw)
  To: grub-devel

В Чт, 26/12/2013 в 23:54 +0400, Andrey Borzenkov пишет:
> I'm not sure how to fix it. It is pulled in by build-grub-pep2elf and
> build-grub-pe2elf. Those are build time programs and so use
> BUILD_CPPFLAGS; adding CPPFLAGS_GNULIB is probably not appropriate. It
> compiles just fine with error.h commented out. May be something like
> 
> #if !defined(GRUB_BUILD) || defined(HAVE_ERROR_H)
> 

On the second glance - why is <error.h> needed at all? Nothing defined
there is used in misc.c and on Linux it compiles just fine with error.h
as well.

May be we could simply drop it?



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

* Re: error.h missing on mingw (grub-core/kern/emu/misc.c fails to compile)
  2013-12-27 18:25 ` Andrey Borzenkov
@ 2013-12-27 19:34   ` Vladimir 'φ-coder/phcoder' Serbinenko
  2013-12-28  5:11     ` Andrey Borzenkov
  0 siblings, 1 reply; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-12-27 19:34 UTC (permalink / raw)
  To: The development of GNU GRUB

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

On 27.12.2013 19:25, Andrey Borzenkov wrote:
> В Чт, 26/12/2013 в 23:54 +0400, Andrey Borzenkov пишет:
>> I'm not sure how to fix it. It is pulled in by build-grub-pep2elf and
>> build-grub-pe2elf. Those are build time programs and so use
>> BUILD_CPPFLAGS; adding CPPFLAGS_GNULIB is probably not appropriate. It
>> compiles just fine with error.h commented out. May be something like
>>
>> #if !defined(GRUB_BUILD) || defined(HAVE_ERROR_H)
>>
> 
> On the second glance - why is <error.h> needed at all? Nothing defined
> there is used in misc.c and on Linux it compiles just fine with error.h
> as well.
> 
> May be we could simply drop it?
> 
Yes. I was going to answer with this. Many of includes are inherited by
copying of include parts.
error.h there can simply be removed
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 



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

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

* Re: error.h missing on mingw (grub-core/kern/emu/misc.c fails to compile)
  2013-12-27 19:34   ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-12-28  5:11     ` Andrey Borzenkov
  0 siblings, 0 replies; 4+ messages in thread
From: Andrey Borzenkov @ 2013-12-28  5:11 UTC (permalink / raw)
  To: grub-devel

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

В Пт, 27/12/2013 в 20:34 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
пишет:
> On 27.12.2013 19:25, Andrey Borzenkov wrote:
> > В Чт, 26/12/2013 в 23:54 +0400, Andrey Borzenkov пишет:
> >> I'm not sure how to fix it. It is pulled in by build-grub-pep2elf and
> >> build-grub-pe2elf. Those are build time programs and so use
> >> BUILD_CPPFLAGS; adding CPPFLAGS_GNULIB is probably not appropriate. It
> >> compiles just fine with error.h commented out. May be something like
> >>
> >> #if !defined(GRUB_BUILD) || defined(HAVE_ERROR_H)
> >>
> > 
> > On the second glance - why is <error.h> needed at all? Nothing defined
> > there is used in misc.c and on Linux it compiles just fine with error.h
> > as well.
> > 
> > May be we could simply drop it?
> > 
> Yes. I was going to answer with this. Many of includes are inherited by
> copying of include parts.
> error.h there can simply be removed

done

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2013-12-28  5:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-26 19:54 error.h missing on mingw (grub-core/kern/emu/misc.c fails to compile) Andrey Borzenkov
2013-12-27 18:25 ` Andrey Borzenkov
2013-12-27 19:34   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-28  5:11     ` Andrey 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).