[mpich-discuss] static Linking Error
Doha Ehab
dohaehab at gmail.com
Sun Nov 29 14:22:19 CST 2015
On Sun, Nov 29, 2015 at 2:01 PM, Doha Ehab <dohaehab at gmail.com> wrote:
> Hello,
> I used buildroot to statically compile MPICH2-1.3 for ARM devices using
> the following commands:
>
> export CFLAGS="-I/home/doha/buildroot-2015.05/output/host/usr/include/
> -DHAVE_DEPRECATED_DNS_FUNCS -fPIC -march=armv5 -mfpu=vfp -O3"
>
> export LDFLAGS="--static
> -L/home/doha/buildroot-2015.05/output/host/usr/lib/ -fPIC"
>
> 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
>
> when I compile the code using android ndk I get the following error
>
> jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
> MPIU_Usage_printf: error: undefined reference to 'stdout'
> jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
> MPIU_Error_printf: error: undefined reference to 'stderr'
> jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
> MPIU_Internal_error_printf: error: undefined reference to 'stderr'
> jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
> MPIU_Internal_sys_error_printf: error: undefined reference to 'stderr'
> jni/../prebuilt/libmpich.a(msgprint.o):msgprint.c:function
> MPIU_Msg_printf: error: undefined reference to 'stdout'
> jni/../prebuilt/libmpich.a(dbg_printf.o):dbg_printf.c:function
> MPIU_dbg_printf: error: undefined reference to 'stdout'
> jni/../prebuilt/libmpich.a(dbg_printf.o):dbg_printf.c:function
> MPIU_dump_dbg_memlog_to_stdout: error: undefined reference to 'stdout'
> jni/../prebuilt/libmpich.a(mpid_abort.o):mpid_abort.c:function MPID_Abort:
> error: undefined reference to 'stderr'
> jni/../prebuilt/libmpich.a(mpid_vc.o):mpid_vc.c:function
> MPIDI_Populate_vc_node_ids: error: undefined reference to '__errno_location'
> jni/../prebuilt/libmpich.a(mpid_vc.o):mpid_vc.c:function
> MPIDI_Populate_vc_node_ids: error: undefined reference to '__ctype_b'
> jni/../prebuilt/libmpich.a(strerror.o):strerror.c:function MPIU_Strerror:
> error: undefined reference to '__xpg_strerror_r'
> jni/../prebuilt/libmpich.a(simple_pmi.o):simple_pmi.c:function
> accept_one_connection: error: undefined reference to '__errno_location'
> jni/../prebuilt/libmpich.a(simple_pmi.o):simple_pmi.c:function PMI_Init:
> error: undefined reference to '__errno_location'
> jni/../prebuilt/libmpich.a(sock.o):sock.c:function
> MPIDU_Socki_event_enqueue.isra.1: error: undefined reference to
> '__errno_location'
> jni/../prebuilt/libmpl.a(mplenv.o):mplenv.c:function MPL_env2range: error:
> undefined reference to '__ctype_b'
> jni/../prebuilt/libmpl.a(mplenv.o):mplenv.c:function MPL_env2int: error:
> undefined reference to '__ctype_b'
>
> I want to know what I'm missing and why it is not linking properly
>
> _______________________________________________
> discuss mailing list discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20151129/9fbc6b41/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
More information about the discuss
mailing list