Hi,

I am trying to build gpsd-2.95 for ARM 32-bit using Yocto on a Ubuntu 12.04.4 
64-Bit machine
I got the following compilation error

| arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard 
-mfpu=neon -mtune=cortex-a15 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
-L/home/user/project/build/tmp/sysroots/machine/usr/lib -lm 
--sysroot=/home/user/project/build/tmp/sysroots/machine -fno-strict-aliasing 
-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -O2 -pipe -g 
-feliminate-unused-debug-types -Wall -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type 
-D_GNU_SOURCE -fPIC 
-I/home/user/project/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gpsd/2.95-r10.0/gpsd-2.95
 -I/usr/include/python2.7 -c gpspacket.c -o 
build/temp.linux-x86_64-2.7/gpspacket.o
| In file included from /usr/include/python2.7/Python.h:58:0,
|                  from gpspacket.c:8:
| /usr/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition 
appears wrong for platform (bad gcc/glibc config?)."
| In file included from gpspacket.c:11:0:
| gpsd.h:327:0: warning: "SIZEOF_LONG" redefined [enabled by default]
| In file included from /usr/include/python2.7/Python.h:8:0,
|                  from gpspacket.c:8:
| /usr/include/python2.7/pyconfig.h:992:0: note: this is the location of the 
previous definition
| gpspacket.c:244:1: warning: no previous prototype for 'initpacket' 
[-Wmissing-prototypes]
| error: command 'arm-poky-linux-gnueabi-gcc' failed with exit status 1

In the tmp/.../gpsd-2.95 folder, I just executed directly the 
arm-poky-linux-gnueabi-gcc command with the same arguments except I replaced 
-I/usr/include/python2.7 with 
-I/home/user/project/build/tmp/sysroots/machine/usr/include/python2.7
Now the compilation command was successful.

But now the problem is, how do I change the -I/usr/include/python2.7 with 
-I/home/user/project/build/tmp/sysroots/machine/usr/include/python2.7 which is 
passed as an argument for the arm-poky-linux-gnueabi-gcc using the recipe files 
?


Thanks,
B.Sathish Kumar


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information 
could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in 
transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on 
the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the 
author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, 
dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written 
consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please 
delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and 
other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to