[yocto] what is the proper way to build with fedora rawhide/gcc-5.0?

Khem Raj raj.khem at gmail.com
Thu Apr 2 09:17:47 PDT 2015


On Thu, Apr 2, 2015 at 6:12 AM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
> On Tue, 31 Mar 2015, Khem Raj wrote:
>
>>
>> > On Mar 31, 2015, at 12:54 PM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
>> >
>> >
>> >  i asked about this a few weeks ago, finally getting back to it ...
>> > for better or worse, i'm running fedora rawhide, updated to the point
>> > where i have gcc-5.0.0:
>> >
>> > $ gcc --version
>> > gcc (GCC) 5.0.0 20150208 (Red Hat 5.0.0-0.10)
>> > Copyright (C) 2015 Free Software Foundation, Inc.
>> > This is free software; see the source for copying conditions.  There is NO
>> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> > $
>> >
>> > which causes a number of build issues trying to build for something as
>> > simple as qemux86.
>> >
>> >  first, there is a linemarkers issue with gcc-5.0 that i got around
>> > by adding to local.conf:
>> >
>> >  CPPFLAGS_append= " -P”
>>
>> This should not be required. Can you post the failing package with error details
>> it should be fixed.
>>
>> >
>> > and there were two native build issues due to gcc-5.0 being far
>> > pickier with warnings that i sidestepped with the cheap hack:
>> >
>> >  ASSUME_PROVIDED += "elfutils-native"
>> >  ASSUME_PROVIDED += "binutils-native”
>>
>> There is 2.25 update available on my contrib tree.
>> http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/master
>> should help with binutils.
>
>   ok, i finally have a full build for qemux86/core-image-minimal.
> things i did:
>
> * wiped the old kernel tarball from my local source mirror -- not
>   sure why that fixed the kernel issue but a fresh download seems
>   to have done the trick.
> * removed the above CPPFLAGS_append line from local.conf
> * used khem's ncurses recipe
> * left the two ASSUME_PROVIDED lines where they were, out of sheer
>   laziness since they seem to work.

my branch will have more fixes for packages that are specifically
originating from gcc5 work. Some has already been merged some more are
to come


>
>   enough excitement for one day ...
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                         http://crashcourse.ca
>
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================



More information about the yocto mailing list