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

cray-xpmem.pc: prefix, exec_prefix not set #47

Open
omor1 opened this issue Apr 29, 2021 · 0 comments · Fixed by openucx/xpmem#11
Open

cray-xpmem.pc: prefix, exec_prefix not set #47

omor1 opened this issue Apr 29, 2021 · 0 comments · Fixed by openucx/xpmem#11

Comments

@omor1
Copy link

omor1 commented Apr 29, 2021

prefix and exec_prefix are not set in cray-xpmem.pc; this leaves these variables empty when processed by pkgconf/pkg-config, resulting in erroneous includedir and libdir variables. In my case, a spurious -L/lib got into my link line for Open MPI, causing my linker to attempt to link to 32-bit versions of libm, libc, etc. into a 64-bit build. Needless to say, that did not go well.

This occurs because Autoconf variables are not expanded recursively during substitution. Simply adding the following to the top of cray-xpmem.pc.in should be sufficient to fix this.

prefix=@prefix@
exec_prefix=@exec_prefix@

I believe that module.in has a similar issue.

tzafrir-mellanox pushed a commit to tzafrir-mellanox/xpmem that referenced this issue Sep 11, 2024
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

Successfully merging a pull request may close this issue.

1 participant