Re: [Linuxptp-users] [Linuxptp-devel] ptp4l build fail
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2013-11-22 16:03:34
|
Common Email List Rules: 1. Don't reply to an old message when starting a new thread. 2. Post to the correct group. This is a user issue, not a development issue. I have put linuxptp-users on CC instead of -devel. On Fri, Nov 22, 2013 at 10:37:16AM +0000, Fugang Duan wrote: > 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) It looks like you are trying to cross compile linuxptp. Did you cross compile your kernel? > 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 It looks like your toolchain search path is messed up. Can you compile the following simple program with it? --- #include <limits.h> int main() { return INT_MAX; } --- Thanks, Richard |