<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Thank you! It is very helpful and solved my problem.<div><br></div><div>Vinson<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 14, 2017 at 9:27 PM, Wei-keng Liao <span dir="ltr"><<a href="mailto:wkliao@eecs.northwestern.edu" target="_blank">wkliao@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try the following configure command, by adding the PVFS2 include path to CPPFLAGS,<br>
library path to LDFLAGS and -lpvfs2 to LIBS.<br>
<br>
./configure --prefix=/path/to/install \<br>
--enable-romio \<br>
--with-file-system=ufs+pvfs2 \<br>
CPPFLAGS="-I/opt/orangefs/<wbr>include" \<br>
LDFLAGS="-L/opt/orangefs/lib" \<br>
LIBS="-lpvfs2"<br>
<span class="HOEnZb"><font color="#888888"><br>
Wei-keng<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Nov 14, 2017, at 9:16 PM, Weihao Liang wrote:<br>
<br>
> Thank you. I have tried the LD_LIBRARY_PATH way and adding "-L/opt/orangefs/lib -lpvfs2" to the link command line but the errors still happen. So i think maybe still is there something wrong when i built the MPICH?<br>
><br>
> Vinson.<br>
> On Tue, Nov 14, 2017 at 9:04 PM, Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>> wrote:<br>
> The PVFS library needs to be in LD_LIBRARY_PATH or otherwise visible to the linker.<br>
><br>
> Jeff<br>
><br>
> On Tue, Nov 14, 2017 at 7:00 PM Weihao Liang <<a href="mailto:lwhvinson1990@gmail.com">lwhvinson1990@gmail.com</a>> wrote:<br>
> Thanks, I have sucessfully built MPICH with configure command line "CFLAGS+='/opt/orangefs/<wbr>include' ./configure --enable-romio --with-file-system=pvfs2". But when I link the the .o file with mpicc there are many errors as below:<br>
> =============================<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_FLOAT'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_indexed'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_CHAR'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_hvector'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_resized'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_finalize'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_dist_setparam'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_perror'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_UNSIGNED_CHAR'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_wait'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_truncate'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_free'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_flush'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_debug_eventlog_to_mask'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_LONG'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_lookup'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_DOUBLE'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_SHORT'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_create'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_remove'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_BYTE'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_util_resolve'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_dist_lookup'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_io'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_vector'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_INT'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_contiguous'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_testsome'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_LONG_DOUBLE'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_struct'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_util_init_defaults'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_hindexed'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_UNSIGNED_LONG'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_isys_io'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_UNSIGNED'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_util_gen_credential_<wbr>defaults'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_getparent'<br>
> /usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_getattr'<br>
> collect2: error: ld returned 1 exit status<br>
> ==============================<wbr>=================<br>
><br>
> Vinson<br>
><br>
> On Tue, Nov 14, 2017 at 6:08 PM, Latham, Robert J. <<a href="mailto:robl@mcs.anl.gov">robl@mcs.anl.gov</a>> wrote:<br>
> On Tue, 2017-11-14 at 16:54 -0600, Weihao Liang wrote:<br>
> > Hi, all<br>
> ><br>
> > I have a question is that how to configure mpich-3.2.1 with orangefs-<br>
> > 2.9 (pvfs2)? I just want to enable the MPI-IO ability when running<br>
> > MPI program on pvfs2 filesystem.<br>
><br>
> The process is still the same it has always been. OrangeFS is a<br>
> rebranding of what we used to call PVFS v2 :<br>
><br>
> Configure MPICH with the `--with-file-system=pvfs2` flag.<br>
><br>
> If you want to configure other file systems, add them with '+':<br>
><br>
> `configure --prefix=/usr/local/whatever --with-file-system=pvfs2+ufs`<br>
><br>
> ==rob<br>
> ______________________________<wbr>_________________<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/<wbr>mailman/listinfo/discuss</a><br>
><br>
> ______________________________<wbr>_________________<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/<wbr>mailman/listinfo/discuss</a><br>
> --<br>
> Jeff Hammond<br>
> <a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a><br>
> <a href="http://jeffhammond.github.io/" rel="noreferrer" target="_blank">http://jeffhammond.github.io/</a><br>
><br>
> ______________________________<wbr>_________________<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/<wbr>mailman/listinfo/discuss</a><br>
><br>
> ______________________________<wbr>_________________<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/<wbr>mailman/listinfo/discuss</a><br>
<br>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/discuss</a><br>
</div></div></blockquote></div><br></div></div></div>