Hello dear MPICH users and developers,<div><br></div><div>I am trying to build MPICH on Cygwin and get the following error, when I run ./configure:</div><div><br></div><div><div>Configuring MPICH2 version 1.4.1p1 with '--enable-debuginfo' '--disable-fc'</div>
<div>Running on system: CYGWIN_NT-6.1-WOW64 antonbaton 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin</div></div><div>... here goes a long configure output and in the end:</div><div><div>checking whether C compiler accepts option -fPIC... no</div>
<div>checking whether C compiler accepts option -fpic... no</div><div>configure: error: Neither -fpic nor -fPIC accepted by gcc</div></div><div><br></div><div>When I try to compile a one line C program, that does return 0; with -fpic and -fPIC options I get the following output:</div>
<div><div>anton@antonbaton ~/mpich2-1.4.1p1</div><div>$ gcc -fpic tmp.c</div><div>tmp.c:1:0: warning: -fpic ignored for target (all code is position independent)</div><div><br></div><div>anton@antonbaton ~/mpich2-1.4.1p1</div>
<div>$ gcc -fPIC tmp.c</div><div>tmp.c:1:0: warning: -fPIC ignored for target (all code is position independent)</div><div><br></div></div><div><br></div><div>Has anyone encountered a similar error or can suggest a solution to this problem?</div>
<div><br></div><div>Best regards,</div><div>Anton Daneyko</div>