proper values for BUILD, GCC_HOST and TARGET??

Robert P. J. Day rpjday@mindspring.com
Tue Oct 4 18:37:00 GMT 2005


  i'm getting an error (details below) building the bootstrap gcc, and
i have this suspicion that it has to do with my values for the above
three variables.  if i'm building on an x86 for SH3, crosstool (and i)
will eventually set those variables as follows:

	BUILD=i686-pc-linux-gnu
	GCC_HOST=i686-host_pc-linux-gnu
	TARGET=sh3-unknown-linux-gnu

  a comment in crosstool suggests that you *really* need to have
different values for BUILD and GCC_HOST.  i'm not sure what's going on
there, but my build of the bootstrap gcc fails with:



make[1]: Entering directory
`/home/rpjday/results/jornada/build-tools/build-gcc-core/gcc'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh
/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/mkconfig.sh
config.h
TARGET_CPU_DEFAULT="SELECT_SH3" \
HEADERS="config/sh/little.h config/sh/sh.h config/dbxelf.h
config/elfos.h config/svr4.h config/sh/elf.h config/sh/linux.h
defaults.h" DEFINES="SH_MULTILIB_CPU_DEFAULT=\"m3\" SUPPORT_SH3
SUPPORT_SH3" \
/bin/sh
/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/mkconfig.sh
tm.h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh
/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/mkconfig.sh
bconfig.h
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/build
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/../include
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/../libcpp/include
-o build/genmodes.o
/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/genmodes.c
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/build
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/../include
-I/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/../libcpp/include
-o build/errors.o
/home/rpjday/results/jornada/build-tools/gcc-4.0.2/gcc/errors.c
make[1]: *** No rule to make target
`../build-i686-pc-linux-gnu/libiberty/libiberty.a', needed by
`build/genmodes'.  Stop.
make[1]: Leaving directory
`/home/rpjday/results/jornada/build-tools/build-gcc-core/gcc'
make: *** [all-gcc] Error 2



  i'm not sure what's behind that directory name
"../build-i686-pc-linux-gnu".  from the current make directory, there
*is* a ../libiberty/libiberty.a, so it's almost as if that extra
directory level is what's causing the problem.

  could this be a bad setting for one of my variables above?

rday

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list