Messages in this thread | | | Date | Wed, 21 Jul 2004 17:43:33 +0200 (MEST) | From | Geert Uytterhoeven <> | Subject | RE: Re: missing elf.h (for mk_elfconfig.c) while building zIma ge for PPC on Intel platform (windows XP) using cygwin |
| |
On Wed, 21 Jul 2004, Povolotsky, Alexander wrote: > You are correct. It looks for /usr/include/elf.h. It is not a case of > missing (altogether) elf.h - it is just misconfiguration issue (files are > looked in a wrong directories - another menuconfig problem ?)
/usr/include is the correct location, though. Did you install libelf-dev under Cygwin?
> As a proof of that - I copied existent elf.h include file from > \linux-2.6.7\include\linux
That's the kernel elf.h, which is not the correct one...
> to /usr/include/elf.h (there was no elf.h there originally ...) - and > compilation moved forward for one step - > now it can not find linux/types.h, the one which "lives" (I think) in > \linux-2.6.7\include\linux, and asm/elf.h, the one which "lives" (I think) > in \linux-2.6.7\include\asm-ppc > > $ make zImage > HOSTCC scripts/basic/fixdep > HOSTCC scripts/basic/split-include > HOSTCC scripts/basic/docproc > HOSTCC scripts/conmakehash > HOSTCC scripts/kallsyms > HOSTCC scripts/mk_elfconfig > In file included from scripts/mk_elfconfig.c:4: > /usr/include/elf.h:4:25: linux/types.h: No such file or directory
... hence these error messages.
> Povolotsky, Alexander wrote: > > I have made changes in linux-2.6/scripts/kconfig/Makefile as advised and > it > > did fix menuconfig problem - thank you very much for being kind and > patient > > helping - much appreciated ! > > > > Now I am facing the next problem: missing elf.h (for mk_elfconfig.c) while > > building zImage for PPC on Intel platform (windows XP) using cygwin. > > ... > > scripts/mk_elfconfig.c:4:17: elf.h: No such file or directory > > > > From where I could pick-up this include file ? > > In other words, download and install > http://www.gnu.org/directory/libs/misc/libelf.html > which will I think provide <gelf.h>; > you can then make an elf.h that just does > #include <gelf.h> > and you should be good to go. (I haven't tried it myself.) > - Dan
Yep, these are the files you need.
Gr{oetje,eeting}s,
Geert
-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |