<?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>12839</bug_id>
          
          <creation_ts>2018-07-02 10:19:05 +0000</creation_ts>
          <short_desc>[2.2.4 rc1] gcc compiler not found leads to test_install_libraries_headers and test_image_generation_binary_feeds failed on Fedora 26/27</short_desc>
          <delta_ts>2018-08-05 19:07:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://centaurus02.png.intel.com:8010/#/builders/35/builds/25/steps/6/logs/stdio</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mohamad Noor Alim">mohamad.noor.alim.hussin</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>richard.purdie</cc>
          
          <qa_contact name="Mohamad Noor Alim">mohamad.noor.alim.hussin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80995</commentid>
    <comment_count>0</comment_count>
    <who name="Mohamad Noor Alim">mohamad.noor.alim.hussin</who>
    <bug_when>2018-07-02 10:19:05 +0000</bug_when>
    <thetext>Could not find compiler &quot;gcc&quot; in PATH. 
When use $ which gcc in host server, it show /usr/lib64/ccache/gcc, &amp; gcc --version is 7.3.1.


======================================================================
FAIL [1.713s]: test_image_generation_binary_feeds (oeqa.selftest.eSDK.oeSDKExtSelfTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py&quot;, line 109, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/eSDK.py&quot;, line 111, in test_image_generation_binary_feeds
    oeSDKExtSelfTest.run_esdk_cmd(self.env_eSDK, self.tmpdir_eSDKQA, cmd)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/eSDK.py&quot;, line 38, in run_esdk_cmd
    runCmd(&quot;cd %s; . %s; %s&quot; % (tmpdir_eSDKQA, env_eSDK, cmd), **options)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 114, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;cd /tmp/eSDKQA33n8r6zf; . /tmp/eSDKQA33n8r6zf/environment-setup-core2-64-poky-linux; devtool build-image core-image-minimal&apos; returned non-zero exit status 1:
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.
WARNING: attempting to use the extensible SDK in an environment set up to run bitbake - this may lead to unexpected results. Please source this script in a new shell session instead.
Parsing recipes..ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/wic-image-minimal.bb
ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/test-empty-image.bb
ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/oe-selftest-image.bb
ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/error-image.bb
Traceback (most recent call last):
  File &quot;/tmp/eSDKQA33n8r6zf/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 344, in &lt;module&gt;
    ret = main()
  File &quot;/tmp/eSDKQA33n8r6zf/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 331, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/scripts/lib/devtool/build_image.py&quot;, line 63, in build_image
    result, outputdir = build_image_task(config, basepath, workspace, image, add_packages)
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/scripts/lib/devtool/build_image.py&quot;, line 88, in build_image_task
    tinfoil = setup_tinfoil(basepath=basepath)
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/scripts/lib/devtool/__init__.py&quot;, line 116, in setup_tinfoil
    tinfoil.prepare(config_only)
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/bitbake/lib/bb/tinfoil.py&quot;, line 94, in prepare
    self.parseRecipes()
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/bitbake/lib/bb/tinfoil.py&quot;, line 77, in parseRecipes
    self.cooker.updateCache()
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/bitbake/lib/bb/cooker.py&quot;, line 1647, in updateCache
    raise bb.BBHandledException()
bb.BBHandledException

======================================================================
FAIL [11.177s]: test_install_libraries_headers (oeqa.selftest.eSDK.oeSDKExtSelfTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py&quot;, line 109, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/eSDK.py&quot;, line 105, in test_install_libraries_headers
    oeSDKExtSelfTest.run_esdk_cmd(self.env_eSDK, self.tmpdir_eSDKQA, cmd)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/eSDK.py&quot;, line 38, in run_esdk_cmd
    runCmd(&quot;cd %s; . %s; %s&quot; % (tmpdir_eSDKQA, env_eSDK, cmd), **options)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 114, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;cd /tmp/eSDKQA33n8r6zf; . /tmp/eSDKQA33n8r6zf/environment-setup-core2-64-poky-linux; devtool sdk-install bc &apos; returned non-zero exit status 1:
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.
WARNING: attempting to use the extensible SDK in an environment set up to run bitbake - this may lead to unexpected results. Please source this script in a new shell session instead.
Parsing recipes..ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/wic-image-minimal.bb
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/oe-selftest-image.bb
ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/error-image.bb
ccache: error: Could not find compiler &quot;gcc&quot; in PATH
ERROR: Error running gcc  --version: 
WARNING: Exception during build_dependencies for create_shar
WARNING: Error during finalise of /tmp/eSDKQA33n8r6zf/layers/build/meta-selftest/recipes-test/images/test-empty-image.bb
Traceback (most recent call last):
  File &quot;/tmp/eSDKQA33n8r6zf/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 344, in &lt;module&gt;
    ret = main()
  File &quot;/tmp/eSDKQA33n8r6zf/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 331, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/scripts/lib/devtool/sdk.py&quot;, line 270, in sdk_install
    tinfoil = setup_tinfoil(config_only=False, basepath=basepath)
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/scripts/lib/devtool/__init__.py&quot;, line 116, in setup_tinfoil
    tinfoil.prepare(config_only)
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/bitbake/lib/bb/tinfoil.py&quot;, line 94, in prepare
    self.parseRecipes()
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/bitbake/lib/bb/tinfoil.py&quot;, line 77, in parseRecipes
    self.cooker.updateCache()
  File &quot;/tmp/eSDKQA33n8r6zf/layers/build/bitbake/lib/bb/cooker.py&quot;, line 1647, in updateCache
    raise bb.BBHandledException()
bb.BBHandledException</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81017</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-07-05 14:50:57 +0000</bug_when>
    <thetext>I think this patch addressed this kind of issues in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/toolchain-scripts.bbclass?id=00302da3991ea7dea298f475091b35b6d73cefe1

We may want to try a version without the oe-init-build-env?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81240</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-05 19:03:00 +0000</bug_when>
    <thetext>The changes proposed by Richard are evasive and will not be back ported for this release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81241</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-05 19:03:25 +0000</bug_when>
    <thetext>We do not plan on fixing this issue at this time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81242</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-05 19:07:33 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>