<?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>14091</bug_id>
          
          <creation_ts>2020-10-16 01:28:13 +0000</creation_ts>
          <short_desc>3.1.2 (not an option above) gcc: not found</short_desc>
          <delta_ts>2020-10-29 07:13:50 +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>3.1.4</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>akuster808</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <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>88401</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2020-10-16 01:28:13 +0000</bug_when>
    <thetext>When I install a 3.1.2 &quot;classic&quot; SDK I get this:

--&gt;

+ cd /home/student/yocto-download/20201015-1
+ cd toolchain/x86_64
+ ./resy-glibc-x86_64-core-image-sato-sdk-armv7at2hf-vfp-multi-v7-ml-toolchain-3.1.2.sh -d /opt/resy/3.1.2/multi-v7-ml/imx6q-phytec-mira-rdk-nand -y
./resy-glibc-x86_64-core-image-sato-sdk-armv7at2hf-vfp-multi-v7-ml-toolchain-3.1.2.sh: 29: gcc: not found
Resy (Reliable Embedded Systems Reference Distro) SDK installer version 3.1.2
=============================================================================
You are about to install the SDK to &quot;/datastore/opt/resy/3.1.2/multi-v7-ml/imx6q-phytec-mira-rdk-nand&quot;. Proceed [Y/n]? Y
Extracting SDK.........................................................................................................................................................................................................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /datastore/opt/resy/3.1.2/multi-v7-ml/imx6q-phytec-mira-rdk-nand/environment-setup-armv7at2hf-vfp-resy-linux-gnueabi

&lt;--

Further investigation shows:

21 # Some systems don&apos;t have /usr/sbin or /sbin in the cleaned environment PATH but we make need it 
     22 # for the system&apos;s host tooling checks
     23 tweakpath /usr/sbin
     24 tweakpath /sbin
     25 
     26 INST_ARCH=$(uname -m | sed -e &quot;s/i[3-6]86/ix86/&quot; -e &quot;s/x86[-_]64/x86_64/&quot;)
     27 SDK_ARCH=$(echo x86_64 | sed -e &quot;s/i[3-6]86/ix86/&quot; -e &quot;s/x86[-_]64/x86_64/&quot;)
     28 
     29 INST_GCC_VER=$(gcc --version | sed -ne &apos;s/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p&apos;)
     30 SDK_GCC_VER=&apos;&apos;


gcc does not seem to be needed on the host. At least the &quot;classic&quot; SDK installs.

It looks like the extensible SDK might need it:

139 # SDK_EXTENSIBLE is exposed from the SDK_PRE_INSTALL_COMMAND above
    140 if [ &quot;$SDK_EXTENSIBLE&quot; = &quot;1&quot; ]; then
    141         DEFAULT_INSTALL_DIR=&quot;~/resy_sdk&quot;
    142         if [ &quot;$INST_GCC_VER&quot; = &apos;4.8&apos; -a &quot;$SDK_GCC_VER&quot; = &apos;4.9&apos; ] || [ &quot;$INST_GCC_VER&quot; = &apos;4.8&apos; -a &quot;$SDK_GCC_VER&quot; = &apos;&apos; ] || \
    143                 [ &quot;$INST_GCC_VER&quot; = &apos;4.9&apos; -a &quot;$SDK_GCC_VER&quot; = &apos;&apos; ]; then
    144                 echo &quot;Error: Incompatible SDK installer! Your host gcc version is $INST_GCC_VER and this SDK was built by gcc higher version.&quot;
    145                 exit 1
    146         fi
    147 fi


--&gt;

gcc

Command &apos;gcc&apos; not found, but can be installed with:

sudo apt install gcc

&lt;--</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88408</commentid>
    <comment_count>1</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-10-18 13:45:22 +0000</bug_when>
    <thetext>can you provide steps to reproduce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88409</commentid>
    <comment_count>2</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-10-18 13:45:52 +0000</bug_when>
    <thetext>do you know if Master has this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88426</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-10-19 10:13:08 +0000</bug_when>
    <thetext>I think this has been fixed in master with http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=master-next&amp;id=61dbba9fabfcc271974303b149ec17aae5ee9e55

Moving bug over to Steve for dunfell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88437</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2020-10-20 07:05:37 +0000</bug_when>
    <thetext>Yes RP is (as usually) right.

On master the classic SDK does not require any host gcc:

sdk@0f962b9d9570:/workdir/build/qemux86-64-master/tmp/deploy/sdk$ ./poky-glibc-x86_64-core-image-minimal-core2-64-qemux86-64-toolchain-3.1+snapshot.sh
Poky (Yocto Project Reference Distro) SDK installer version 3.1+snapshot
========================================================================
Enter target directory for SDK (default: /opt/poky/3.1+snapshot): /tmp/classic-sdk
You are about to install the SDK to &quot;/tmp/classic-sdk&quot;. Proceed [Y/n]? Y
Extracting SDK.............................

The extensible SDK does:

sdk@0f962b9d9570:/workdir/build/qemux86-64-master/tmp/deploy/sdk$ ./poky-glibc-x86_64-core-image-minimal-core2-64-qemux86-64-toolchain-ext-3.1+snapshot.sh
Poky (Yocto Project Reference Distro) Extensible SDK installer version 3.1+snapshot
===================================================================================
ERROR: the SDK requires the following missing utilities, please install them:  gcc

not quite sure why a host gcc needs to be installed for me to install an extensible SDK.;)

I thought we try to avoid host gcc dependencies e.g. with the uninative tarball.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88439</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2020-10-20 08:56:51 +0000</bug_when>
    <thetext>extentible SDK/gcc clarified here:

https://www.yoctoproject.org/irc/%23yocto.2020-10-20.log.html#t2020-10-20T14:04:06

and here:

https://www.yoctoproject.org/irc/%23yocto.2020-10-20.log.html#t2020-10-20T15:27:59

just in case someone else wants to look it up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88513</commentid>
    <comment_count>6</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-10-29 07:13:50 +0000</bug_when>
    <thetext>Fixed in dunfell with:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dunfell&amp;id=7bd122dea4b4222660571004162cef8d9741e535</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>