This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Re: missing elf.h (for mk_elfconfig.c) while building zImage 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

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]