Re: [Linuxptp-users] [Linuxptp-devel] ptp4l build fail
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Fugang D. <fug...@fr...> - 2013-11-23 01:44:36
|
From: Richard Cochran [mailto:ric...@gm...] Data: Saturday, November 23, 2013 12:03 AM >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 I have solve the issue which caused by cross compiler issue. And I change the makefile as below that can pass the compiling. diff --git a/makefile b/makefile index 37cbaf9..f410c07 100644 --- a/makefile +++ b/makefile @@ -17,10 +17,12 @@ KBUILD_OUTPUT = +INCLUDES := -I /opt/freescale/usr/local/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include + DEBUG = -CC = $(CROSS_COMPILE)gcc +#CC = $(CROSS_COMPILE)gcc VER = -DVER=$(version) -CFLAGS = -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS) +CFLAGS = -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS) $(INCLUDES) LDLIBS = -lm -lrt $(EXTRA_LDFLAGS) PRG = ptp4l pmc phc2sys hwstamp_ctl OBJ = bmc.o clock.o clockadj.o clockcheck.o config.o fault.o \ @@ -79,7 +81,7 @@ distclean: clean %.d: %.c @echo DEPEND $<; \ rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ + $(CC) -MM -static $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$ Thanks, Richard |