<?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>9228</bug_id>
          
          <creation_ts>2016-03-08 12:18:28 +0000</creation_ts>
          <short_desc>libgomp license is misrepresented in gcc-runtime recipes</short_desc>
          <delta_ts>2016-05-05 14:36:40 +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>devtools / tool chain</component>
          <version>2.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Clemens Lang">clemens.lang</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>joe.slater</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>59791</commentid>
    <comment_count>0</comment_count>
    <who name="Clemens Lang">clemens.lang</who>
    <bug_when>2016-03-08 12:18:28 +0000</bug_when>
    <thetext>Preconditions/Environment
-------------------------
Tested against jethro, still present in master. Bug introduced in http://git.openembedded.org/openembedded-core/commit/meta/recipes-devtools/gcc/gcc-runtime.inc?id=5db535a91edea439c14e75726acd23e64bb1e2ea.


Triggering Action/Cause
-----------------------
GPLv3 is set as incompatible license. This causes the gcc-runtime recipe to be built, but libgomp* to be excluded from packaging:

WARNING: QA Issue: libgomp has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: QA Issue: libgomp-dev has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: QA Issue: libgomp-staticdev has an incompatible license. Excluding from packaging. [incompatible-license]

However, the compiler still supports -fopenmp, so software that detects OpenMP support will try to use it and fail.


Expectation
-----------
libgomp shouldn&apos;t declare its license to be GPLv3, because it seems it is covered by the same GCC Runtime Exception as the rest of the GCC runtime libraries. For example, the libgomp.h header explicitly mentions the exception at https://github.com/gcc-mirror/gcc/blob/master/libgomp/libgomp.h#L17. Debian also thinks libgomp is covered by the runtime exception according to http://metadata.ftp-master.debian.org/changelogs/main/g/gcc-6/gcc-6_6-20160228-1_copyright.

It isn&apos;t clear to me how 5db535a91edea439c14e75726acd23e64bb1e2ea came to the conclusion that libgomp isn&apos;t covered by the runtime exception.

Actual Result
-------------
libgomp should not be excluded from packaging, making -fopenmp work.

Reproducibility
---------------
always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60028</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-03-16 17:49:02 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=681a45200a3d48173918e8dc880ef1be293ac9c7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61984</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-05-05 14:36:40 +0000</bug_when>
    <thetext>Verified on master f7b520878babbaa7527151f22c031ae160512753</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>