<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    Please try ./configure --prefix=<your installation directory>
    CC=<your compiler> CFLAGS=<your compile flags>
    LDFLAGS=<your link flags> following with other options.<br>
    <br>
    Min<br>
    <div class="moz-cite-prefix">On 11/29/15 2:22 PM, Doha Ehab wrote:<br>
    </div>
    <blockquote cite="mid:CAEjFr-btg1bQBL5=jnadTESgmPzortPPukFFG=b7GGy4fQ3AYA@mail.gmail.com" type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Sun, Nov 29, 2015 at 2:01 PM, Doha
            Ehab <span dir="ltr"><<a moz-do-not-send="true" href="mailto:dohaehab@gmail.com" target="_blank">dohaehab@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="ltr">Hello, 
                <div>I used buildroot to statically compile MPICH2-1.3
                  for ARM devices using the following commands:</div>
                <div><br>
                </div>
                <div>
                  <div>export
                    CFLAGS="-I/home/doha/buildroot-2015.05/output/host/usr/include/
                    -DHAVE_DEPRECATED_DNS_FUNCS -fPIC -march=armv5
                    -mfpu=vfp -O3"</div>
                  <div><br>
                  </div>
                  <div>export LDFLAGS="--static
                    -L/home/doha/buildroot-2015.05/output/host/usr/lib/
                    -fPIC"</div>
                </div>
                <div><br>
                </div>
                <div>cc=/home/doha/buildroot-2015.05/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
                  ./configure --prefix=/home/doha/mpich/build/
                  --host=arm-linux  --disable-shared --enable-static  
                  --with-device=ch3:sock --disable-f77 --disable-fc<br>
                </div>
                <div><br>
                </div>
                <div>when I compile the code using android ndk I get the
                  following error</div>
                <div><br>
                </div>
                <div>
                  <div>jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
                    MPIU_Usage_printf: error: undefined reference to
                    'stdout'</div>
                  <div>jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
                    MPIU_Error_printf: error: undefined reference to
                    'stderr'</div>
                  <div>jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
                    MPIU_Internal_error_printf: error: undefined
                    reference to 'stderr'</div>
                  <div>jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
                    MPIU_Internal_sys_error_printf: error: undefined
                    reference to 'stderr'</div>
                  <div>jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
                    MPIU_Msg_printf: error: undefined reference to
                    'stdout'</div>
                  <div>jni/../prebuilt/libmpich.a(dbg_printf.o):dbg_printf.c:function
                    MPIU_dbg_printf: error: undefined reference to
                    'stdout'</div>
                  <div>jni/../prebuilt/libmpich.a(dbg_printf.o):dbg_printf.c:function
                    MPIU_dump_dbg_memlog_to_stdout: error: undefined
                    reference to 'stdout'</div>
                  <div>jni/../prebuilt/libmpich.a(mpid_abort.o):mpid_abort.c:function
                    MPID_Abort: error: undefined reference to 'stderr'</div>
                  <div>jni/../prebuilt/libmpich.a(mpid_vc.o):mpid_vc.c:function
                    MPIDI_Populate_vc_node_ids: error: undefined
                    reference to '__errno_location'</div>
                  <div>jni/../prebuilt/libmpich.a(mpid_vc.o):mpid_vc.c:function
                    MPIDI_Populate_vc_node_ids: error: undefined
                    reference to '__ctype_b'</div>
                  <div>jni/../prebuilt/libmpich.a(strerror.o):strerror.c:function
                    MPIU_Strerror: error: undefined reference to
                    '__xpg_strerror_r'</div>
                  <div>jni/../prebuilt/libmpich.a(simple_pmi.o):simple_pmi.c:function
                    accept_one_connection: error: undefined reference to
                    '__errno_location'</div>
                  <div>jni/../prebuilt/libmpich.a(simple_pmi.o):simple_pmi.c:function
                    PMI_Init: error: undefined reference to
                    '__errno_location'</div>
                  <div>jni/../prebuilt/libmpich.a(sock.o):sock.c:function
                    MPIDU_Socki_event_enqueue.isra.1: error: undefined
                    reference to '__errno_location'</div>
                  <div>jni/../prebuilt/libmpl.a(mplenv.o):mplenv.c:function
                    MPL_env2range: error: undefined reference to
                    '__ctype_b'</div>
                  <div>jni/../prebuilt/libmpl.a(mplenv.o):mplenv.c:function
                    MPL_env2int: error: undefined reference to
                    '__ctype_b'</div>
                </div>
                <div> </div>
                <div>I want to know what I'm missing and why it is not
                  linking properly</div>
              </div>
              <br>
              _______________________________________________<br>
              discuss mailing list     <a moz-do-not-send="true" href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
              To manage subscription options or unsubscribe:<br>
              <a moz-do-not-send="true" href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
discuss mailing list     <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
    </blockquote>
    <br>
  </body>
</html>