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 && cd build 4- $ bitbake matchbox-desktop 5- $ bitbake matchbox-desktop -c devshell 6- Verify that "matchbox-desktop" binary file is not created under "src" 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': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' 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#
It is unlikely that a simple './configure' 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'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 "bitbake -e". 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