This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

Cross compiling on Linux 2.2 with GCC 3.1 & 3.0.4


Hi,

I am trying to cross compile GCC for a MIPS target embedded system. I tried
with GCC 3.1 and 3.0.4. Both  the sources give similar kind of error while
building. So far I am not successful building GCC. I have installed binutils
with similar options for cross compiling.

Trial 1:
--------
target=mips-elf
prefix=/reflection/pegasus/mips_tools
i=$prefix/bin
../gcc-3.0.4/configure --target=$target --prefix=$prefix -v
make all install

>>>>>> This fails in the middle saying that it can not find mips-tfile

Trial 2:
--------
target=mips-elf
prefix=/reflection/pegasus/mips_tools
i=$prefix/bin
../gcc-3.0.4/configure --target=$target --prefix=$prefix --bindir=$i --libdi
r=$prefix/lib --with-as=$i/${target}-as --with-ld=$i/{target}-ld --with-ar=$
i/${target}-ar --with-ranlib=$i/${target}-ranlib --enable-languages=c,c++ -v
make all install

>>>>>>>>> This fails very late in the compilation saying that it checking
for GCC compiler installation and says that there is a mistake in the
configuration or installation.

If the fix for this problem is simple please reply this email so that I can
proceed further.

Thanks
Krishna


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