[etherlab-users] Problems building master

Robert Ankeney RAnkeney at Digitaldynamics.com
Tue Dec 8 23:09:26 CET 2015


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:

./configure -host=arm-xilinx-eabi
-with-linux-dir=/opt/build/linux/kernel/xlnx-3.19 -enable-8139too=no

 

All went well till I tried a make and got:

...

Making all in tool

make[2]: Entering directory
`/home/robert/ethercat-hg/ethercat-1.5.2/tool'

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

In file included from Command.h:39:0,

                 from Command.cpp:35:

../master/ioctl.h:40:25: fatal error: linux/ioctl.h: No such file or
directory

#include <linux/ioctl.h>

                         ^

compilation terminated.

make[2]: *** [ethercat-Command.o] Error 1

make[2]: Leaving directory
`/home/robert/ethercat-hg/ethercat-1.5.2/tool'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/robert/ethercat-hg/ethercat-1.5.2'

make: *** [all] Error 2

 

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).

 

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?

 

Thanks for any help.

 

Robert Ankeney

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20151208/0d3bf214/attachment-0002.htm>


More information about the Etherlab-users mailing list