0 Replies Latest reply on Oct 23, 2015 7:32 AM by egorf

    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
      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/binutils-2.24/binutils-2.24-i386-logical-not.patch
      3. glibc cross-localedef-native: add -fgnu89-inline to CFLAGS like here: 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


             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): poky - Poky Build Tool and Metadata
            example how it should be done here: openembedded-core - OpenEmbedded Core layer



      Sincerely hope it will help somebody!