<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9897</bug_id>
          
          <creation_ts>2016-07-08 07:41:23 +0000</creation_ts>
          <short_desc>[Krogoth] Failed to build pkgconfig-native on Fedora24</short_desc>
          <delta_ts>2016-07-28 15:29:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.1.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>akuster</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63749</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-07-08 07:41:23 +0000</bug_when>
    <thetext>git rev: krogoth/98c57bb512ea6790db8604fcf0b88c81651d2ab4

Steps:
$ . ./oe-init-build-env
$ bitbake pkgconfig-native

Error log:
#####################
../../../git/glib/glib/gdate.c: In function &apos;g_date_strftime&apos;:
../../../git/glib/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &amp;tm);
       ^~~~~~
#####################

I attached the full log.

There is a patch on master to fix the build with gcc6:

commit b83a808fcbd3e7aec3b0757c7180cf83dac44e92
Author: Dan McGregor &lt;dan.mcgregor@usask.ca&gt;
Date:   Wed May 11 10:35:15 2016 -0700

    pkgconfig: Fix build with gcc-6 and upgrade to 0.29.1
    
    glib patch is backported from glib-2.0 upstream
    eventually we will throw it away once pkgconfig
    moves to newer glib
    
    (From OE-Core rev: bad18b8f8954e2cf3f2edb4707f582db5905ccb2)
    
    Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

Maybe we need to backport it ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63786</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-11 10:42:27 +0000</bug_when>
    <thetext>Yes, can you backport just the gdate gcc patch to krogoth and post the patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63829</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-07-12 07:34:36 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Yes, can you backport just the gdate gcc patch to krogoth and post the patch?

Hi Ross,

After backport the patch for pkgconfig-native, I found there are several native packages also build failed with gcc6:
elfutils-natvie, rpm-native, binutils-native, glib-native, docbook-utils-native, gcc-cross.

That means we need to backport a lot of patches and spend more time to test to make sure they work well on Fedora 24 and other distributions. 

How do you think about it? Or we just declare krogoth doesn&apos;t support Fedora 24 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63983</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-07-14 15:00:29 +0000</bug_when>
    <thetext>Verified the failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64017</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-07-15 01:53:19 +0000</bug_when>
    <thetext>poky-contrib timo/krogoth-9897

All packages mentioned above have been fixed with backports and cherry-picked commits.

NEEDS TO BE VERIFIED with world build on Fedora-24.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64086</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-07-17 18:42:46 +0000</bug_when>
    <thetext>Local world build also turned up nss-native. Additional patch sent to ML. Also available on timo/krogoth-nss-native poky-contrib branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64266</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-07-21 15:04:10 +0000</bug_when>
    <thetext>Changes pulled into akuster/krogoth-next. waiting for window to run AB</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64269</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-07-21 15:16:36 +0000</bug_when>
    <thetext>build under way

https://autobuilder.yoctoproject.org/main/builders/nightly/builds/950</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64389</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-07-23 15:54:01 +0000</bug_when>
    <thetext>AB nightly-world-lsb turned up two more failures:
grub-eft-native - http://errors.yoctoproject.org/Errors/Details/72815/
qt4-native - http://errors.yoctoproject.org/Errors/Details/72816/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64391</commentid>
    <comment_count>9</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-07-23 21:53:51 +0000</bug_when>
    <thetext>Patches sent to mailing lists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64596</commentid>
    <comment_count>10</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-07-28 15:29:41 +0000</bug_when>
    <thetext>qt4-native is tracked in YOCTO #10039

Closing this bug since the rest of the patches have been merged.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>