<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hello ,<div> yes NDK cannot find the libc so I had to add it as a static library to the proj.</div><div><br></div><div>Thanks,</div><div>Doha </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 6:43 PM, Min Si <span dir="ltr"><<a href="mailto:msi@il.is.s.u-tokyo.ac.jp" target="_blank">msi@il.is.s.u-tokyo.ac.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Have you tried to compile a simple hello world C program using the
same options ? It looks like the compiler can not find libc at link
time. And you may need to change "--static" to "-static" in the
LDFLAGS option.<span class="HOEnZb"><font color="#888888"><br>
<br>
Min</font></span><div><div class="h5"><br>
<br>
<div>On 11/30/15 7:57 AM, Doha Ehab wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I have retried it using mpich-3.2 and the following
command :
<div><br>
<div>
<div>./configure --prefix=/home/doha/mpich-3.2/build/
CC=/home/doha/buildroot-2015.08.1/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
CFLAGS="-DHAVE_DEPRECATED_DNS_FUNCS -march=armv5
-mfpu=vfp -fPIC -O3 -static" LDFLAGS="--static
-L/home/doha/buildroot-2015.08.1/output/host/usr/lib/ "
--host=arm-linux --disable-shared --enable-static
--with-device=ch3:sock --disable-f77 --disable-fc
--disable-fortran</div>
<div><br>
</div>
<div>and I got the following errors</div>
<div><br>
</div>
<div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-errutil.o):errutil.c:function
checkValidErrcode: error: undefined reference to
'stderr'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-errutil.o):errutil.c:function
checkForUserErrcode: error: undefined reference to
'stderr'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-errutil.o):errutil.c:function
MPIR_Err_preOrPostInit: error: undefined reference to
'stderr'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-errutil.o):errutil.c:function
MPIR_Err_get_string: error: undefined reference to
'stderr'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-dbg_printf.o):dbg_printf.c:function
MPIU_dbg_printf: error: undefined reference to 'stdout'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-dbg_printf.o):dbg_printf.c:function
MPIU_dump_dbg_memlog_to_stdout: error: undefined
reference to 'stdout'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-mpid_vc.o):mpid_vc.c:function
MPIDI_Populate_vc_node_ids: error: undefined reference
to '__errno_location'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-mpid_vc.o):mpid_vc.c:function
MPIDI_Populate_vc_node_ids: error: undefined reference
to '__ctype_b'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-mpidi_pg.o):mpidi_pg.c:function
getConnInfo: error: undefined reference to 'stdout'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-mpidi_pg.o):mpidi_pg.c:function
MPIDI_PG_Create: error: undefined reference to 'stdout'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-sock.o):sock.c:function
MPIDU_Socki_event_enqueue.isra.1: error: undefined
reference to '__errno_location'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-sock.o):sock.c:function
MPIDU_Socki_wakeup.isra.2: error: undefined reference to
'__errno_location'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-sock.o):sock.c:function
MPIDU_Sock_SetSockBufferSize: error: undefined reference
to '__errno_location'</div>
<div>jni/../prebuilt/libmpi.a(mplenv.o):mplenv.c:function
MPL_env2range: error: undefined reference to '__ctype_b'</div>
<div>jni/../prebuilt/libmpi.a(mplenv.o):mplenv.c:function
MPL_env2int: error: undefined reference to '__ctype_b'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-strerror.o):strerror.c:function
MPIU_Strerror: error: undefined reference to
'__xpg_strerror_r'</div>
<div>jni/../prebuilt/libmpi.a(lib_libmpi_la-ch3u_handle_connection.o):ch3u_handle_connection.c:function
MPIDI_CH3U_Get_failed_group: error: undefined reference
to '__ctype_b'</div>
</div>
<div><br>
</div>
<div>any suggestions ?</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 30, 2015 at 3:11 AM, dave <span dir="ltr"><<a href="mailto:dave@mynatt.biz" target="_blank">dave@mynatt.biz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it
possible to upgrade without doing an uninstall of old
version, yet still keep setup files?<span><font color="#888888"><br>
<br>
Dave<br>
======================</font></span>
<div>
<div><br>
<br>
On 11/29/2015 05:52 PM, Balaji, Pavan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, can you please try a newer version of mpich?
mpich2-1.3 was released before the big bang. The
latest version is mpich-3.2.<br>
<br>
<a href="http://www.mpich.org/downloads/" rel="noreferrer" target="_blank">http://www.mpich.org/downloads/</a><br>
<br>
-- Pavan<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Nov 29, 2015, at 3:26 PM, Min Si <<a href="mailto:msi@il.is.s.u-tokyo.ac.jp" target="_blank"></a><a href="mailto:msi@il.is.s.u-tokyo.ac.jp" target="_blank">msi@il.is.s.u-tokyo.ac.jp</a>>
wrote:<br>
<br>
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>
On 11/29/15 2:22 PM, Doha Ehab wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Sun, Nov 29, 2015 at 2:01 PM, Doha Ehab <<a href="mailto:dohaehab@gmail.com" target="_blank"></a><a href="mailto:dohaehab@gmail.com" target="_blank">dohaehab@gmail.com</a>>
wrote:<br>
Hello,<br>
I used buildroot to statically compile MPICH2-1.3
for ARM devices using the following commands:<br>
<br>
export
CFLAGS="-I/home/doha/buildroot-2015.05/output/host/usr/include/
-DHAVE_DEPRECATED_DNS_FUNCS -fPIC -march=armv5
-mfpu=vfp -O3"<br>
<br>
export LDFLAGS="--static
-L/home/doha/buildroot-2015.05/output/host/usr/lib/
-fPIC"<br>
<br>
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>
<br>
when I compile the code using android ndk I get
the following error<br>
<br>
jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
MPIU_Usage_printf: error: undefined reference to
'stdout'<br>
jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
MPIU_Error_printf: error: undefined reference to
'stderr'<br>
jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
MPIU_Internal_error_printf: error: undefined
reference to 'stderr'<br>
jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
MPIU_Internal_sys_error_printf: error: undefined
reference to 'stderr'<br>
jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
MPIU_Msg_printf: error: undefined reference to
'stdout'<br>
jni/../prebuilt/libmpich.a(dbg_printf.o):dbg_printf.c:function
MPIU_dbg_printf: error: undefined reference to
'stdout'<br>
jni/../prebuilt/libmpich.a(dbg_printf.o):dbg_printf.c:function
MPIU_dump_dbg_memlog_to_stdout: error: undefined
reference to 'stdout'<br>
jni/../prebuilt/libmpich.a(mpid_abort.o):mpid_abort.c:function
MPID_Abort: error: undefined reference to 'stderr'<br>
jni/../prebuilt/libmpich.a(mpid_vc.o):mpid_vc.c:function
MPIDI_Populate_vc_node_ids: error: undefined
reference to '__errno_location'<br>
jni/../prebuilt/libmpich.a(mpid_vc.o):mpid_vc.c:function
MPIDI_Populate_vc_node_ids: error: undefined
reference to '__ctype_b'<br>
jni/../prebuilt/libmpich.a(strerror.o):strerror.c:function
MPIU_Strerror: error: undefined reference to
'__xpg_strerror_r'<br>
jni/../prebuilt/libmpich.a(simple_pmi.o):simple_pmi.c:function
accept_one_connection: error: undefined reference
to '__errno_location'<br>
jni/../prebuilt/libmpich.a(simple_pmi.o):simple_pmi.c:function
PMI_Init: error: undefined reference to
'__errno_location'<br>
jni/../prebuilt/libmpich.a(sock.o):sock.c:function
MPIDU_Socki_event_enqueue.isra.1: error: undefined
reference to '__errno_location'<br>
jni/../prebuilt/libmpl.a(mplenv.o):mplenv.c:function
MPL_env2range: error: undefined reference to
'__ctype_b'<br>
jni/../prebuilt/libmpl.a(mplenv.o):mplenv.c:function
MPL_env2int: error: undefined reference to
'__ctype_b'<br>
I want to know what I'm missing and why it is
not linking properly<br>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
<br>
<br>
_______________________________________________<br>
discuss mailing list<br>
<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
<br>
To manage subscription options or unsubscribe:<br>
<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a 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>