-
Notifications
You must be signed in to change notification settings - Fork 49
Not linking due to undefined reference to gpfs_fcntl #15
Comments
OK, thanks. So your configure script is finding gpfs_fcntl.h? On Blue Gene, the gpfs.h and gpfs_fcntl.h headers were in non-default locations, so I assumed folks would be changing CPPFLAGS, LIBS, and LDFLAGS, as they have to do for HDF5. Here's a simple change to the configure script, but it still needs one to set LDFLAGS if the gpfs libraries are installed anywhere odd (as they are on Blue Gene): |
Was this ever fixed? |
@Keeper-of-the-Keys are you building master? Can you post the error you're getting? |
Building master, includes the merge above. mpicc -I/home/Keeper of the Keys/Lustre/2.8/lustre-2.8.0/lustre/include/ -I/usr/lpp/mmfs/include/ -L/home/Keeper of the Keys/Lustre/2.8/lustre-2.8.0/lustre/include/ -L/usr/lpp/mmfs/include/ -o ior ior.o utilities.o parse_options.o aiori-POSIX.o aiori-MPIIO.o -lm I don't mind disabling GPFS but there seems to be no --without-gpfs option as far as I can tell.... (although it would be nice to be able to compare the different filesystems we have with the same benchmark) |
Turns out I had two issues:
I do think that there should also be some form of --without-gpfs though.... |
I've just been caught by this, so it would be handy rather than just have a default non-working build on a system with GPFS installed. |
ior isn't building on my system due to some missing GPFS symbols. Here are the errors:
mpicc -g -O2 -o ior ior.o utilities.o parse_options.o aiori-POSIX.o aiori-MPIIO.o -lm
aiori-POSIX.o: In function
gpfs_access_end': /u/mx/co/mrobbert/ior/src/aiori-POSIX.c:165: undefined reference to
gpfs_fcntl'aiori-POSIX.o: In function
gpfs_access_start': /u/mx/co/mrobbert/ior/src/aiori-POSIX.c:141: undefined reference to
gpfs_fcntl'aiori-POSIX.o: In function
gpfs_free_all_locks': /u/mx/co/mrobbert/ior/src/aiori-POSIX.c:118: undefined reference to
gpfs_fcntl'collect2: ld returned 1 exit status
I was able to get it to link properly by adding -lgpfs to the link lines. I can try to work up a patch, but it looks like this would need to be changed in the Autoconf files and I don't have much experience with those.
The text was updated successfully, but these errors were encountered: