Skip to contentSkip to conversation

Eclipse-ADT-build-error

DISCUSSION 沈华明 2 participants 2 messages Apr 5, 2012

lore
Share & tools
lore

沈华明

author
#0 lore raw

I have installed the ADT and configured the Eclipse. When build my first project,it comes the error.

The console shows these:
enerating Makefile in build directory: /home/shm/workspace/test1

Command-line environment variables:

     CFLAGS=" -g -O0  -m32   -march=i586 

--sysroot=/home/shm/qemux86-sato" CXXFLAGS=" -g -O0 -m32 -march=i586 --sysroot=/home/shm/qemux86-sato" LDFLAGS=" --sysroot=/home/shm/qemux86-sato" CPPFLAGS=" -m32 -march=i586 --sysroot=/home/shm/qemux86-sato"

sh /home/shm/workspace/test1/configure --with-libtool-sysroot=/home/shm/qemux86-sato --host=i586-poky-linux --build=i686-linux --target=i586-poky-linux
configure: loading site script /opt/poky/1.1.1/site-config-i586-poky-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i586-poky-linux-strip... i586-poky-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i586-poky-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for i586-poky-linux-gcc... i586-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/shm/workspace/test1':
configure: error: in `/home/shm/workspace/test1':
configure: error: C compiler cannot create executables
configure: error: C compiler cannot create executables
See `config.log' for more details

Configuration failed with error

**** Build of configuration Build (GNU) for project test1 ****

make all
make: *** No rule to make target `all'. Stop.

**** Build Finished ****

Thank you for you help~

#1 lore raw

Huaming,

Could please include the following in your description, so we can have a clear context for your problem? Thanks!

1. Host OS?
2. Which version of eclipse?
3. Which version of Yocto eclipse plugin?
4. Which image do you use as sysroot? core-image-sato or core-image-sato-sdk?
5. Which version of metadata do you use to build the image?
6. How do you install the toolchain? Using adt-installer or extracting meta-toolchain tarball? If using meta-toolchain tarball, which version do you use?

b.t.w. Could you check the /home/shm/workspace/test1/config.log file? It should have more detailed information.

-Lianhao

沈华明 wrote on 2012-04-05:

Quoted 46 lines

I have installed the ADT and configured the Eclipse. When build my first project,it comes the error.

The console shows these:
enerating Makefile in build directory: /home/shm/workspace/test1

Command-line environment variables:

      CFLAGS=" -g -O0  -m32   -march=i586

--sysroot=/home/shm/qemux86-sato" CXXFLAGS=" -g -O0 -m32 -march=i586
--sysroot=/home/shm/qemux86-sato" LDFLAGS="
--sysroot=/home/shm/qemux86-sato" CPPFLAGS=" -m32 -march=i586
--sysroot=/home/shm/qemux86-sato"

sh /home/shm/workspace/test1/configure --with-libtool-sysroot=/home/shm/qemux86-sato --host=i586-poky-linux --build=i686-linux --target=i586-poky-linux
configure: loading site script /opt/poky/1.1.1/site-config-i586-poky-linux checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes
checking for i586-poky-linux-strip... i586-poky-linux-strip checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i586-poky-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for i586-poky-linux-gcc... i586-poky-linux-gcc checking whether the C compiler works... no
configure: error: in `/home/shm/workspace/test1':
configure: error: in `/home/shm/workspace/test1':
configure: error: C compiler cannot create executables
configure: error: C compiler cannot create executables
See `config.log' for more details

Configuration failed with error

**** Build of configuration Build (GNU) for project test1 ****

make all
make: *** No rule to make target `all'. Stop.

**** Build Finished ****

Thank you for you help~