Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"configure" fails with PGI compiler suite #25

Closed
jmrosinski opened this issue May 29, 2018 · 14 comments
Closed

"configure" fails with PGI compiler suite #25

jmrosinski opened this issue May 29, 2018 · 14 comments

Comments

@jmrosinski
Copy link
Owner

NOTE: PGI compilers are now free. Get them here: https://www.pgroup.com/products/community.htm

I'm getting this, which I don't understand:

/bin/bash ../../libtool --tag=CC --mode=link mpicc -g -o libgptl.la -rpath /usr/local/lib libgptl_la-f_wrappers.lo libgptl_la-getoverhead.lo libgptl_la-gptl.lo libgptl_la-gptl_papi.lo libgptl_la-hashstats.lo libgptl_la-memstats.lo libgptl_la-memusage.lo libgptl_la-pmpi.lo libgptl_la-print_rusage.lo libgptl_la-pr_summary.lo libgptl_la-util.lo -lm -lpthread -lrt -lpapi
libtool: link: mpicc -shared -DPIC .libs/libgptl_la-f_wrappers.o .libs/libgptl_la-getoverhead.o .libs/libgptl_la-gptl.o .libs/libgptl_la-gptl_papi.o .libs/libgptl_la-hashstats.o .libs/libgptl_la-memstats.o .libs/libgptl_la-memusage.o .libs/libgptl_la-pmpi.o .libs/libgptl_la-print_rusage.o .libs/libgptl_la-pr_summary.o .libs/libgptl_la-util.o -lm -lpthread -lrt -lpapi -lc -g -soname libgptl.so.0 -o .libs/libgptl.so.0.0.0
/usr/bin/ld: .libs/libgptl_la-f_wrappers.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
.libs/libgptl_la-f_wrappers.o: error adding symbols: Bad value
Makefile:412: recipe for target 'libgptl.la' failed

@edhartnett
Copy link
Collaborator

Try doing a make clean and try again.

@jmrosinski
Copy link
Owner Author

jmrosinski commented May 30, 2018 via email

@edhartnett
Copy link
Collaborator

I am installing PGI compilers now...

@jmrosinski
Copy link
Owner Author

jmrosinski commented May 30, 2018 via email

@edhartnett
Copy link
Collaborator

OK, let's close this ticket since apparently we are good to go with PGI.

@jmrosinski
Copy link
Owner Author

jmrosinski commented Jun 5, 2018 via email

@edhartnett
Copy link
Collaborator

The -fPIC error means that it was expecting a shared library and only found static libraries.

Does your mpi installation have shared libraries?

Do you have to rebuild mpi with the PGI compilers to get a compatible MPI library?

@jmrosinski
Copy link
Owner Author

No, I've been using the openmpi distro that came with the free PGI. It is still failing with:

/usr/bin/ld: .libs/libgptl_la-f_wrappers.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
.libs/libgptl_la-f_wrappers.o: error adding symbols: Bad value

Were you able to install PGI compilers and test on your machine?

@edhartnett
Copy link
Collaborator

Try doing a make distclean.

Then start over, but use --disable-shared as a configure option.

@jmrosinski
Copy link
Owner Author

Yes, that worked. So for some reason shared libs seem to be failing with PGI. Can we add a caveat indicating the need for --disable-shared to README or elsewhere? Once that's in place we can close this ticket.

@edhartnett
Copy link
Collaborator

I suspect this is a problem that is on your machine, not general. I would be pretty surprised if PGI can't build shared libs.

Try and make distclean again, and then try without --disable-shared to confirm that shared library builds do not work. Then post your config.log file and the full output of the configure and make. (Yes, it's long, that's OK.)

@jmrosinski
Copy link
Owner Author

jmrosinski commented Aug 28, 2018 via email

@edhartnett
Copy link
Collaborator

OK, let's close this ticket and track the PGI/MPI shared library issue in #26.

@jmrosinski
Copy link
Owner Author

Works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants