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? 

Vinson.
On Tue, Nov 14, 2017 at 9:04 PM, Jeff Hammond <jeff.science@gmail.com> wrote:
The PVFS library needs to be in LD_LIBRARY_PATH or otherwise visible to the linker.

Jeff

On Tue, Nov 14, 2017 at 7:00 PM Weihao Liang <lwhvinson1990@gmail.com> wrote:
Thanks, I have sucessfully built MPICH with configure command line "CFLAGS+='/opt/orangefs/include' ./configure --enable-romio --with-file-system=pvfs2". But when I link the the .o file with mpicc there are many errors as below:
=============================
/usr/local/lib/libmpi.so: undefined reference to `PVFS_FLOAT'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_indexed'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_CHAR'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_hvector'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_resized'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_finalize'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_dist_setparam'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_perror'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_UNSIGNED_CHAR'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_wait'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_truncate'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_free'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_flush'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_debug_eventlog_to_mask'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_LONG'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_lookup'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_DOUBLE'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_SHORT'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_create'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_remove'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_BYTE'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_util_resolve'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_dist_lookup'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_io'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_vector'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_INT'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_contiguous'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_testsome'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_LONG_DOUBLE'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_struct'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_util_init_defaults'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_Request_hindexed'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_UNSIGNED_LONG'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_isys_io'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_UNSIGNED'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_util_gen_credential_defaults'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_getparent'
/usr/local/lib/libmpi.so: undefined reference to `PVFS_sys_getattr'
collect2: error: ld returned 1 exit status
===============================================

Vinson

On Tue, Nov 14, 2017 at 6:08 PM, Latham, Robert J. <robl@mcs.anl.gov> wrote:
On Tue, 2017-11-14 at 16:54 -0600, Weihao Liang wrote:
> Hi, all
>
> I have a question is that how to configure mpich-3.2.1 with orangefs-
> 2.9 (pvfs2)? I just want to enable the MPI-IO ability when running
> MPI program on pvfs2 filesystem.

The process is still the same it has always been.  OrangeFS is a
rebranding of what we used to call PVFS v2 :

Configure MPICH with the `--with-file-system=pvfs2` flag.

If you want to configure other file systems, add them with '+':

`configure --prefix=/usr/local/whatever --with-file-system=pvfs2+ufs`

==rob
_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
--

_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss