<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>I have an embedded
PPC 7448 target, running Linux, I would like to run MPICH2 on that uses a
cross compiler. From what I could gather, by specifying the --host option
with configure, this should work. However, the config.log produced
indicated it finds the cross compiler and it seems to check out initially ok..
but then it checks if this is a cross compiler and exits before generating
any Make files.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>First, should /
will MPICH2 support cross compilers?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>2nd, Has anyone
tried this and had success? If yes, perhaps someone can
share the information on what needs to be done to add a host that is
different then the build machine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>This is
the configure line used.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008>/home/MPI/libraries/mpich2-1.0.7rc2/configure
--prefix=/tmp/MPI/mpich2-1.0.7rc2-install-7448 --host=ppc74xx-linux
--build=i686-pc-linux-gnu</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>here is the output
error message</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>configure:11000:
checking for GNU g++ version<BR>configure:11004: error: cannot run test program
while cross compiling<BR>See `config.log' for more details.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>and here is the
actual configure source lines that result in exiting, it does not look from this
code that MPICH supports cross compiling.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>echo $ECHO_N
"checking for GNU g++ version... $ECHO_C"
>&6<BR> if test
"$cross_compiling" = yes; then<BR> { { echo "$as_me:$LINENO: error: cannot
run test program while cross compiling<BR>See \`config.log' for more details."
>&5<BR>echo "$as_me: error: cannot run test program while cross
compiling<BR>See \`config.log' for more details." >&2;}<BR> {
(exit 1); exit 1; }; }<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008>thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=497042514-09042008>Eric
Bailey</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008> </DIV></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=497042514-09042008></SPAN></FONT> </DIV></BODY></HTML>