Skip to contentSkip to conversation

Build fails with missing save-cwd.h header

DISCUSSION John Paul Adrian Glaubitz 3 participants 4 messages Mar 25, 2019

lore
Share & tools
lore
#0 lore raw

Hi!

I'm currently test-building GRUB on various architectures to make sure it builds fine when 2.04 is released. Currently, I am always running into an issue with the "save-cwd.h" header missing:

grub-core/osdep/unix/getroot.c:117:10: fatal error: save-cwd.h: No such file or directory

 #include "save-cwd.h"
          ^~~~~~~~~~~~

I'm building with:

$ make clean && ./autogen.sh && ./configure && make -j16

Before digging through code myself, I was wondering whether I am missing something obvious, although it looks like we're missing the include path being passed to the compiler where save-cwd.h is sitting in the source tree.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#1 lore raw
Quoted 10 lines · John Paul Adrian Glaubitz

Hi!

I'm currently test-building GRUB on various architectures to make sure it builds fine when 2.04 is released. Currently, I am always running into an issue with the "save-cwd.h" header missing:

grub-core/osdep/unix/getroot.c:117:10: fatal error: save-cwd.h: No such file or directory

 #include "save-cwd.h"
          ^~~~~~~~~~~~
Quoted 7 lines

I'm building with:

$ make clean && ./autogen.sh && ./configure && make -j16

Before digging through code myself, I was wondering whether I am missing something obvious, although it looks like we're missing the include path being passed to the compiler where save-cwd.h is sitting in the source tree.

Could you clone clean GRUB git repo and run ./bootstrap instead of ./autogen.sh?

Daniel

#2 lore raw
Quoted 7 lines · Daniel Kiper
Quoted 6 lines · John Paul Adrian Glaubitz

grub-core/osdep/unix/getroot.c:117:10: fatal error: save-cwd.h: No such file or directory

 #include "save-cwd.h"
          ^~~~~~~~~~~~

I'm building with:

Quoted 7 lines
Quoted 5 lines
$ make clean && ./autogen.sh && ./configure && make -j16

Before digging through code myself, I was wondering whether I am missing something obvious, although it looks like we're missing the include path being passed to the compiler where save-cwd.h is sitting in the source tree.

Could you clone clean GRUB git repo and run ./bootstrap instead of ./autogen.sh?

Right, Adrian, you just need to change your habits to run ./bootstrap instead of ./autogen.sh as of a few weeks ago. See:

https://git.savannah.gnu.org/cgit/grub.git/commit/?id=35b909062e7b334eb4af372be3260d0f62d85375

Signature · 1 line
Colin Watson                                       [[email protected]]
#3 lore raw
In reply to Daniel Kiper
Quoted 5 lines · Daniel Kiper
Quoted 3 lines

Before digging through code myself, I was wondering whether I am missing something obvious, although it looks like we're missing the include path being passed to the compiler where save-cwd.h is sitting in the source tree.

Could you clone clean GRUB git repo and run ./bootstrap instead of ./autogen.sh?

Right, for some reason I forgot about that. Builds fine with my patch on sparc64 on Debian unstable now.

Now for some testing on various PowerPC targets.

Thanks,
Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913