<html><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
@font-face
{font-family:"cambria math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
p.msonormal, li.msonormal, div.msonormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"calibri","sans-serif";}
a:link, span.msohyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.msohyperlinkfollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.emailstyle17
{mso-style-type:personal-compose;
font-family:"calibri","sans-serif";
color:windowtext;}
.msochpdefault
{mso-style-type:export-only;}
@page wordsection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.wordsection1
{page:wordsection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I’m trying to build the ethercat-1.5.2 master for a Xilinx Zynq system (ARM on a Yocto 1.8-based Linux distribution). To do this, I attempted to cross-compile it on another Linux box using the Xilinx-provided ARM cross-compiler. I used the following command: </p><p class=MsoNormal>./configure –host=arm-xilinx-eabi –with-linux-dir=/opt/build/linux/kernel/xlnx-3.19 –enable-8139too=no </p><p class=MsoNormal> </p><p class=MsoNormal>All went well till I tried a make and got: </p><p class=MsoNormal>… </p><p class=MsoNormal>Making all in tool </p><p class=MsoNormal>make[2]: Entering directory `/home/robert/ethercat-hg/ethercat-1.5.2/tool' </p><p class=MsoNormal>arm-xilinx-eabi-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../master -Wall -DREV=`if test -s ../revision; then cat ../revision; else hg id -i .. 2>/dev/null || echo "unknown"; fi` -fno-strict-aliasing -g -O2 -MT ethercat-Command.o -MD -MP -MF .deps/ethercat-Command.Tpo -c -o ethercat-Command.o `test -f 'Command.cpp' || echo './'`Command.cpp </p><p class=MsoNormal>In file included from Command.h:39:0, </p><p class=MsoNormal> from Command.cpp:35: </p><p class=MsoNormal>../master/ioctl.h:40:25: fatal error: linux/ioctl.h: No such file or directory </p><p class=MsoNormal> #include <linux/ioctl.h> </p><p class=MsoNormal> ^ </p><p class=MsoNormal>compilation terminated. </p><p class=MsoNormal>make[2]: *** [ethercat-Command.o] Error 1 </p><p class=MsoNormal>make[2]: Leaving directory `/home/robert/ethercat-hg/ethercat-1.5.2/tool' </p><p class=MsoNormal>make[1]: *** [all-recursive] Error 1 </p><p class=MsoNormal>make[1]: Leaving directory `/home/robert/ethercat-hg/ethercat-1.5.2' </p><p class=MsoNormal>make: *** [all] Error 2 </p><p class=MsoNormal> </p><p class=MsoNormal>Looking in the kernel source, there is indeed no linux/ioctl.h. There is a uapi/linux/ioctl.h, but I’m not sure if that’s what it’s looking for. What I do notice in the compile line is a lack of an include directory for the kernel source (i.e. -I/opt/build/linux/kernel/xlnx-3.19/include). </p><p class=MsoNormal> </p><p class=MsoNormal>Normally kernel builds are pretty much automated, so I haven’t had to dig a lot. Is there something wrong with my configuration or is my use of a Yocto-based or Xilinx-based Linux going to be a problem? </p><p class=MsoNormal> </p><p class=MsoNormal>Thanks for any help. </p><p class=MsoNormal> </p><p class=MsoNormal>Robert Ankeney </p><p class=MsoNormal> </p></div></body></html>