[linux-yocto] [yocto] [meta-raspberry] Compile error with libssh‏

Karim ATIKI karim_atiki at hotmail.com
Fri Oct 2 01:11:47 PDT 2015


Hi all,I'm currently experiencing an issue with Yocto while building an image for Raspberry-Pi2.I'm using a Debian 7.9 and I just installed Yocto 1.8 (fido).My gcc version on my system is:gcc (Debian 4.7.2-5) 4.7.2I launched the build of a Raspberry-Pi2 image (following a regular working tutorial) after having downloaded meta-raspberry etc.During the build, a recipe is compiling the libssh in a do_compile() process and it failed with the following error: /home/kai/poky/build-rpi/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/libssh/0.6.4+gitAUTOINC+3880a8ed80-r0/git/src/channels.c:2396:7: note: in expansion of macro 'ssh_set_error_invalid'|        ssh_set_error_invalid(channel->session);|        ^| /home/kai/poky/build-rpi/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/libssh/0.6.4+gitAUTOINC+3880a8ed80-r0/git/include/libssh/priv.h:207:31: error: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]|      _ssh_set_error_oom(error, __FUNCTION__)|                                ^| /home/kai/poky/build-rpi/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/libssh/0.6.4+gitAUTOINC+3880a8ed80-r0/git/src/channels.c:2407:5: note: in expansion of macro 'ssh_set_error_oom'|      ssh_set_error_oom(channel->session);|      ^| /home/kai/poky/build-rpi/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/libssh/0.6.4+gitAUTOINC+3880a8ed80-r0/git/include/libssh/priv.h:207:31: error: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]|      _ssh_set_error_oom(error, __FUNCTION__)I understand the error, but I don't understand why it occured and how to fix it properly within the Yocto recipe files etc.Should I upgrade my gcc compiler ?Should I override any CFLAGS (or other) variable ? And how and where to override them ?Should I ugly-hack the source-code files? ...though I do not wish to do that...Please note that I'm a newbie in the world of Yocto and I don't masterize yet all of its components :)Any suggestion is welcome.Thanks for your answers and patience.K. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/linux-yocto/attachments/20151002/3c6b7b24/attachment.html>


More information about the linux-yocto mailing list