<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Sorry if I am being so noob in asking this.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I want to build mpich for armv7 and in doing so, I want to specify arm related flags specifically, <span style="background-color:rgb(227,240,249);font-family:monospace;font-size:14px;line-height:22.390625px">CFLAGS="-O2 –march=armv7-a –mtune=cortex-a8 –mfpu=neon</span></div>
<span style="font-family:monospace;font-size:14px;line-height:22.390625px;background-color:rgb(227,240,249)">–mfloat-abi=hard –fomit-frame-pointer"</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px">But when I configure mpich and specify CFLAGS it fails to start by throwing this error.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><blockquote style="font-family:arial,sans-serif;font-size:13px;margin:0px 0px 0px 40px;border:none;padding:0px">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">linaro@weiser1:/mnt/nfs/install/mpich-3.0.4$ ./configure --prefix=/mnt/nfs/install/mpich-install/4.8/ CFLAGS="-O2 -march=armv7-a -mtune=cortex-a9 -mfpu=neon -float-abi=hard -fomit-frame-pointer"<br>
Configuring MPICH version 3.0.4 with '--prefix=/mnt/nfs/install/mpich-install/4.8/' 'CFLAGS=-O2 -march=armv7-a -mtune=cortex-a9 -mfpu=neon -float-abi=hard -fomit-frame-pointer' 'CXXFLAGS=-O2 -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -funsafe-math-optimizations -ffast-math -fomit-frame-pointer'<br>
Running on system: Linux weiser1 3.6.0-rc5 #1 SMP PREEMPT Wed Sep 12 16:25:07 KST 2012 armv7l armv7l armv7l GNU/Linux<br>checking for icc... no<br>checking for pgcc... no<br>checking for xlc... no<br>checking for xlC... no<br>
checking for pathcc... no<br>checking for cc... cc<br><span style="background-color:rgb(204,204,204)">checking whether the C compiler works... no</span><br>configure: error: in `/mnt/nfs/install/mpich-3.0.4':<br>configure: error: C compiler cannot create executables<br>
See `config.log' for more details</blockquote></blockquote><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any help?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks </div></div>