EmbLogic's Blog

Errors occured in toolchain

[Japjeet@localhost build-boot-gcc]$ ../gcc-2.95.3/configure –target=$TARGET –prefix=${PREFIX} –disable-shared –with-headers=${TARGET_PREFIX}/include –with-newlib –enable-languages=c

Following Error occur:
Config.guess failed to determine the host type. You need to specify one.
Usage: configure [OPTIONS] [HOST]

Options: [defaults in brackets]
–prefix=MYDIR install into MYDIR [/usr/local]
–exec-prefix=MYDIR install host-dependent files into MYDIR [/usr/local]
–help print this message [normal config]
–build=BUILD configure for building on BUILD [BUILD=HOST]
–host=HOST configure for HOST [determined via config.guess]
–norecursion configure this directory only [recurse]
–program-prefix=FOO prepend FOO to installed program names [""]
–program-suffix=FOO append FOO to installed program names [""]
–program-transform-name=P transform installed names by sed pattern P [""]
–site=SITE configure with site-specific makefile for SITE
–srcdir=DIR find the sources in DIR [. or ..]
–target=TARGET configure for TARGET [TARGET=HOST]
–tmpdir=TMPDIR create temporary files in TMPDIR [/tmp]
–nfp configure for software floating point [hard float]
–with-FOO, –with-FOO=BAR package FOO is available (parameter BAR)
–without-FOO package FOO is NOT available
–enable-FOO, –enable-FOO=BAR include feature FOO (parameter BAR)
–disable-FOO do not include feature FOO

Where HOST and TARGET are something like “sparc-sunos”, “mips-sgi-irix5″, etc.

#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
../gcc-2.95.3/configure –with-gcc-version-trigger=/home/Japjeet/control-project/daq-module/build-tools/gcc-2.95.3/gcc/version.c –host=i686-pc-linux-gnu –target=arm-linux –prefix=/home/Japjeet/control-project/daq-module/tools –without-headers –with-newib –enable-languages=c –norecursion
# using “mt-frag”

*******************************************************************************

When i determine the host type like  [Japjeet@localhost build-boot-gcc]$ ../gcc-2.95.3/configure –host=i686-pc-linux-gnu –target=$TARGET –prefix=${PREFIX} –disable-shared –with-headers=${TARGET_PREFIX}/include –with-newlib –enable-languages=c

Following error occur:

Copying /home/Japjeet/control-project/daq-module/tools/arm-linux/include to /home/Japjeet/control-project/daq-module/tools/arm-linux/sys-include
Created “Makefile” in /home/Japjeet/control-project/daq-module/build-tools/build-boot-gcc using “mt-frag”
/home/Japjeet/control-project/daq-module/tools/arm-linux/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
*** The command ‘arm-linux-gcc -o conftest -g -O2 conftest.c’ failed.
*** You must set the environment variable CC to a working compiler.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>