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

------------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to