This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Simple question.

  I am having a very rough time trying to figure out something do to the
poor documentation on gcc.  What I need to do is build a native compiler
with a cross compiler.
My host platform is x86, the target is Hitachi sh-4.

I have built and tested the cross compiler, it works great.
I can not get the damn thing to build a native compiler for the sh-4
it keeps failing when it tries to execute things during the make.

Here is what I am doing, Can you please tell me where I am messing up?:

export TARGET=sh4-linux;export PREFIX=/daydream/usr/local/; \
export PATH=${PATH}:${PREFIX}/bin;export ROOT=/daydream; \
export CC=sh4-linux-gcc;export CXX=sh4-linux-gcc

cd /usr/src/dreamcast/
mkdir build-gcc
cd build-gcc

../gcc-3.0.1/configure --target=$TARGET --prefix=$PREFIX \
--disable-shared --host=$TARGET --enable-languages=c


 ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
./gengenrtl -h >tmp-genrtl.h
/bin/sh: ./gengenrtl: cannot execute binary file
make[1]: *** [s-genrtl] Error 126
make[1]: Leaving directory `/usr/src/dreamcast/build-gcc/gcc'
make: *** [all-gcc] Error 2

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]