Bug 878

Summary: x86-64 cross toolchain build project cvs fails
Product: [Yocto Project Subprojects] ADT Reporter: liping Ke <liping.ke>
Component: adtAssignee: Jessica <jessica.zhang>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Low CC: lianhao.lu, liping.ke, poky.adt.watcher, poky.watcher, sgw
Version: 1.0   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description liping Ke 2011-03-15 18:37:23 UTC
When cross compiling cvs project for x86-64, it fails. Error log is pasted below.

Strangely for other archs, it works fine. Also, it could be compiled normally on i686/x86-64 host.

If you don't have the test project, please goto fetch it from

http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/cvs.html


Thanks & Regards,
criping

make  all-recursive
make[1]: Entering directory `/home/lke/test_repo/test_output/0.9+snapshot/x86-64/cvs-1.11.23'
Making all in lib
make[2]: Entering directory `/home/lke/test_repo/test_output/0.9+snapshot/x86-64/cvs-1.11.23/lib'
x86_64-poky-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../src     -m64 --sysroot=/opt/poky/0.9+snapshot/sysroots/x86_64-poky-linux -MT getline.o -MD -MP -MF .deps/getline.Tpo -c -o getline.o getline.c
In file included from getline.c:25:0:
getline.h:15:3: error: conflicting types for 'getline'
/opt/poky/0.9+snapshot/sysroots/x86_64-poky-linux/usr/include/stdio.h:671:20: note: previous declaration of 'getline' was here
getline.c:158:1: error: conflicting types for 'getline'
/opt/poky/0.9+snapshot/sysroots/x86_64-poky-linux/usr/include/stdio.h:671:20: note: previous declaration of 'getline' was here
make[2]: *** [getline.o] Error 1
make[2]: Leaving directory `/home/lke/test_repo/test_output/0.9+snapshot/x86-64/cvs-1.11.23/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lke/test_repo/test_output/0.9+snapshot/x86-64/cvs-1.11.23'
make: *** [all] Error 2
Comment 1 liping Ke 2011-03-15 18:49:27 UTC
An update:

It can't be compiled on x86-64 host also.

So, it should not be poky bug. 

It's well possible that the cvs code isn't not well written.

Thanks& Regards,
criping
Comment 2 Jessica 2011-04-04 10:55:28 UTC
Seems a CVS issue instead of Yocto issue, probably time to update the test programs