Hi, all,

I build the ptp4l for the first time, but it build fail as below log.
I follow linuxptp doc step to build. (6.1 Linux kernel and 6.2 PTP stack)

linuxtest/ptpd/code$ make clean
rm -f bmc.o clock.o clockadj.o clockcheck.o config.o fault.o filter.o fsm.o 
mave.o mmedian.o msg.o phc.o pi.o port.o print.o ptp4l.o raw.o servo.o sk.o 
stats.o tlv.o tmtab.o transport.o udp.o udp6.o uds.o util.o version.o 
hwstamp_ctl.o phc2sys.o pmc.o pmc_common.o sysoff.o bmc.d clock.d clockadj.d 
clockcheck.d config.d fault.d filter.d fsm.d mave.d mmedian.d msg.d phc.d pi.d 
port.d print.d ptp4l.d raw.d servo.d sk.d stats.d tlv.d tmtab.d transport.d 
udp.d udp6.d uds.d util.d version.d hwstamp_ctl.d phc2sys.d pmc.d pmc_common.d 
sysoff.d
b38611@shlinux2:~/linuxtest/ptpd/code$ make
DEPEND sysoff.c
DEPEND pmc_common.c
DEPEND pmc.c
DEPEND phc2sys.c
In file included from 
/u/home/b38611/fsl-linux/toolchain/arm-toolchain-yacto/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/../../lib/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed/syslimits.h:7:0,
                 from 
/u/home/b38611/fsl-linux/toolchain/arm-toolchain-yacto/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/../../lib/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed/limits.h:34,
                 from phc2sys.c:24:
/u/home/b38611/fsl-linux/toolchain/arm-toolchain-yacto/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/../../lib/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed/limits.h:169:61:
 error: no include path in which to search for limits.h
DEPEND hwstamp_ctl.c
DEPEND version.c
DEPEND util.c
DEPEND uds.c
DEPEND udp6.c
DEPEND udp.c
DEPEND transport.c
DEPEND tmtab.c
DEPEND tlv.c
DEPEND stats.c
DEPEND sk.c
DEPEND servo.c
DEPEND raw.c
DEPEND ptp4l.c
DEPEND print.c
DEPEND port.c
DEPEND pi.c
DEPEND phc.c
DEPEND msg.c
DEPEND mmedian.c
DEPEND mave.c
DEPEND fsm.c
DEPEND filter.c
DEPEND fault.c
DEPEND config.c
In file included from 
/u/home/b38611/fsl-linux/toolchain/arm-toolchain-yacto/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/../../lib/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed/syslimits.h:7:0,
                 from 
/u/home/b38611/fsl-linux/toolchain/arm-toolchain-yacto/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/../../lib/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed/limits.h:34,
                 from config.c:21:
/u/home/b38611/fsl-linux/toolchain/arm-toolchain-yacto/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/../../lib/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/include-fixed/limits.h:169:61:
 error: no include path in which to search for limits.h
DEPEND clockcheck.c
DEPEND clockadj.c
DEPEND clock.c
DEPEND bmc.c
arm-poky-linux-gnueabi-gcc -Wall -DVER=1.3-00032-g85a1bcf  
-I/home/b38611/linuxtest/ptpd/code/ptp_debian/usr/include -DHAVE_ONESTEP_SYNC   
  -c -o ptp4l.o ptp4l.c
ptp4l.c:20:20: fatal error: signal.h: No such file or directory
compilation terminated.
make: *** [ptp4l.o] Error 1


And then I search the "KBUILD_OUTPUT" directory, it can find the signal.h.
linuxtest/ptpd/code$ find . -name "signal.h"
./ptp_debian/usr/include/asm-generic/signal.h
./ptp_debian/usr/include/asm/signal.h
./ptp_debian/usr/include/linux/signal.h


Thanks,
Andy


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to