Hi Richard,
thanks a lot for your reply.
On Monday, January 2, 2017 4:51 PM Richard Cochran wrote:
> On Mon, Jan 02, 2017 at 03:15:41PM +0100, Axel Holzinger wrote:
> > I try to cross compile linuxptpt on Xubuntu 16.04 for i686 32 bit with a
> > Linux 4.1.15 cross tool chain for ARM's imx6 and gcc 5.2.0, but I get
some
> > erros and I'm not expert enough to get this resolved, unfortunately.
> >
> ...
>
> Probably you only need to add --sysroot
>
> make EXTRA_CFLAGS=--sysroot=$SDKTARGETSYSROOT
That helped a bit, but then
from ptp4l.c:20:
/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueab
i/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file
or directory
And indeed, this time I can't find stubs-soft.h in the file system. So
either __ARM_PCS_VFP needs to be defined or stubs-soft.h needs to be
existing.
When I define __ARM_PCS_VFP I get the next error
arm-poky-linux-gnueabi-gcc -Wall -DVER=1.8 -D_GNU_SOURCE
-DHAVE_ONESTEP_SYNC
--sysroot=/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-li
nux-gnueabi -D__ARM_PCS_VFP -c -o clock.o clock.c
In file included from clock.c:35:0:
missing.h:66:19: error: static declaration of 'clock_adjtime' follows
non-static declaration
static inline int clock_adjtime(clockid_t id, struct timex *tx)
^
In file included from
/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueab
i/usr/include/time.h:41:0,
from clock.c:24:
/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueab
i/usr/include/bits/time.h:93:12: note: previous declaration of
'clock_adjtime' was here
extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx)
__THROW;
^
<builtin>: recipe for target 'clock.o' failed
make: *** [clock.o] Error 1
So it seems that there is no posix_clock.h available.
Thanks again and best regards
Axel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users