Community
cancel
Showing results for 
Search instead for 
Did you mean: 
EFedo2
New Contributor I
924 Views

Building Yocto image on Ubuntu 15 with GCC5

Hello everyone!

Wanted to share a chain of patches and fixes that make building the default Edison Yocto image possible with the new GCC versions

I encountered problems building ncurses, binutils, glibc, and subversion

Here are the required patches:

  1. Ncurses: add -P flag like here: https://dev.openwrt.org/ticket/19749 https://dev.openwrt.org/ticket/19749
  2. binutils: fix if statement in out/build/tmp directory displayed during compilation like here: https://github.com/resin-io/meta-resin/blob/master/meta-resin-common/recipes-devtools/binutils/binut... https://github.com/resin-io/meta-resin/blob/master/meta-resin-common/recipes-devtools/binutils/binut...
  3. glibc cross-localedef-native: add -fgnu89-inline to CFLAGS like here: http://patchwork.openembedded.org/patch/96873/ http://patchwork.openembedded.org/patch/96873/
  4. Subversion configure fail: modify subversion_1.8.9.bb to have the following lines:

Instead of inherit gettext

Put inherit gettext pythonnative

Under

export LDFLAGS += " -L${STAGING_LIBDIR} "

Add following flags

CPPFLAGS += "-P"

BUILD_CPPFLAGS += "-P

 

incomplete patch for this issue here(build cpp flags is not added and therefore build fails): http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=9b19d6548a345009a6de79a6820c07a72054d961 poky - Poky Build Tool and Metadata

 

example how it should be done here: http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-devtools/subversion/subver... openembedded-core - OpenEmbedded Core layer

Sincerely hope it will help somebody!

0 Replies
Reply