<?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>12771</bug_id>
          
          <creation_ts>2018-06-04 09:10:30 +0000</creation_ts>
          <short_desc>[Bitbake : 2.4.3RC2] Bitbake Devshell is failed in x86_64</short_desc>
          <delta_ts>2018-06-07 15:42:36 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.4.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="pankaj yadav">pankaj-y</reporter>
          <assigned_to name="Joshua Watt">JPEWhacker</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>80702</commentid>
    <comment_count>0</comment_count>
    <who name="pankaj yadav">pankaj-y</who>
    <bug_when>2018-06-04 09:10:30 +0000</bug_when>
    <thetext>Configuration is mentioned below :
Release 2.4.3RC2 
poky : 7e7ee662f5dea4d090293045f7498093322802cc
Environment : x86_64

Steps to Reproduce :
1- $ clone poky
2- $ cd poky  
3- $ source oe-init-build-env &amp;&amp; cd build 
4- $ bitbake matchbox-desktop
5- $ bitbake matchbox-desktop -c devshell 
6- Verify that &quot;matchbox-desktop&quot; binary file is not created under 
   &quot;src&quot; directory
7- Run below command:
	$ ./configure

After executing ./configure command getting below mentioned error message:


root@andromeda02:/data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/build/tmp/work/core2-64-poky-linux/matchbox-desktop/2.2-r0/git# ./configure 
configure: loading site script /data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/meta/site/endian-little
configure: loading site script /data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/meta/site/common-linux
configure: loading site script /data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/meta/site/common-glibc
configure: loading site script /data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/meta/site/x86_64-linux
configure: loading site script /data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/meta/site/common
checking for a BSD-compatible install... /data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/build/tmp/hosttools/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/build/tmp/hosttools/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/build/tmp/work/core2-64-poky-linux/matchbox-desktop/2.2-r0/recipe-sysroot
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/build/tmp/work/core2-64-poky-linux/matchbox-desktop/2.2-r0/git&apos;:
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host&apos;.
See `config.log&apos; for more details
root@andromeda02:/data/pankajsx/25May_Release/yocto-2.4.3.rc2/poky/build/tmp/work/core2-64-poky-linux/matchbox-desktop/2.2-r0/git#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80734</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2018-06-07 15:42:36 +0000</bug_when>
    <thetext>It is unlikely that a simple &apos;./configure&apos; step is going to be successful in devshell. It should be possible to run the configure step in devshell, but you will likely need some additional command line arguments. Particularly, I&apos;m guessing you need additional arguments like --build, --host and --target to instruct autotools that you mean to cross compile.

You should be able to determine what additional arguments are passed to by looking at the recipe environment using &quot;bitbake -e&quot;. The two variables of interest are CONFIGUREOPTS and EXTRA_OECONF. Both of these are passed to the configure script. You can see more detailed information by looking in meta/classes/autotools.bbclass, more specifically at the oe_runconf() function</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>