<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: Unable to build ELDK 4.0 </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>-----Original Message-----<BR>
From: Wolfgang Denk [<A HREF="mailto:wd@denx.de">mailto:wd@denx.de</A>]<BR>
Sent: Thu 8/31/2006 11:58 AM<BR>
To: Mathews, Phil<BR>
Cc: Linuxppc-embedded@ozlabs.org<BR>
Subject: Re: Unable to build ELDK 4.0<BR>
<BR>
Dear Phil,<BR>
<BR>
in message &lt;3E8081396F6B524BA2854E7FA3F16438042EB1DB@mail.innocon.com&gt; you wrote:<BR>
&gt;<BR>
&gt; I am attempting to build the ELDK kernel using the directions in<BR>
&gt; /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/README.&nbsp; The makefile is<BR>
<BR>
Please also RTFM: <A HREF="http://www.denx.de/wiki/DULG/Manual?stickboard=yosemite">http://www.denx.de/wiki/DULG/Manual?stickboard=yosemite</A> ,<BR>
especially section &quot;6.2. Kernel Configuration and Compilation&quot;:<BR>
<A HREF="http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2">http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2</A>.<BR>
<BR>
Note that I selected the DULG-version&nbsp; for&nbsp; a&nbsp; board&nbsp; for&nbsp; which&nbsp; 2.6<BR>
kernel support is available.<BR>
<BR>
&gt; trying to execute powerPC code (fixdep) on my Pentium box.&nbsp; Where can I<BR>
&gt; get a X86 version of this program?<BR>
<BR>
This is a consequence of wrong make commands.<BR>
<BR>
&gt; ##### Make attempt:<BR>
&gt; mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15&gt; make<BR>
&gt; O=/home/name/build/kernel menuconfig<BR>
<BR>
You must pass correct ARCH= and CROSS_COMPILE= arguments when running<BR>
make, i. e.<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make ARCH=ppc CROSS_COMPILE=ppc_6xx- ... menuconfig<BR>
<BR>
etc. Also make sure to start from a clean&nbsp; source&nbsp; tree,&nbsp; i.&nbsp; e.&nbsp; run<BR>
&quot;make mrproper&quot; to clean up before configuring your board.<BR>
<BR>
Best regards,<BR>
<BR>
Wolfgang Denk<BR>
<BR>
--<BR>
Software Engineering:&nbsp; Embedded and Realtime Systems,&nbsp; Embedded Linux<BR>
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de<BR>
A modem is a baudy house.<BR>
<BR>
====================<BR>
------Follow Up-----<BR>
====================<BR>
<BR>
After doing &quot;make mrproper&quot; and again following the README file that came with ELDK:<BR>
<BR>
env | grep -e ARCH -e COMPILE<BR>
ARCH=ppc<BR>
CROSS_COMPILE=ppc_6xx-<BR>
<BR>
mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15&gt; make O=/home/name/build/kernel menuconfig<BR>
&nbsp; HOSTCC&nbsp; scripts/basic/fixdep<BR>
In file included from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/sys/socket.h:35,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/netinet/in.h:24,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/arpa/inet.h:23,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/scripts/basic/fixdep.c:115:<BR>
/home/mathews/ELDK/usr/../ppc_6xx/usr/include/bits/socket.h:304:24: error: asm/socket.h: No such file or directory<BR>
make[2]: *** [scripts/basic/fixdep] Error 1<BR>
make[1]: *** [scripts_basic] Error 2<BR>
make: *** [menuconfig] Error 2<BR>
</FONT>
</P>

</BODY>
</HTML>