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

Using --install-prefix gives a conv-mach-opt.sh which still references the source directory #3854

Open
heatherkellyucl opened this issue Nov 5, 2024 · 0 comments

Comments

@heatherkellyucl
Copy link

I was investigating whether --install-prefix= was a better option to use for build than --destination= when building using the Spack recipe for charmplusplus 7 and 8.

This is a build outside Spack, just using an openmpi, ucx and pmix built by it (hence the long --basedir placeholder paths).

This is using the 8.0.0 release tarball.

./build LIBS ucx-linux-x86_64 gcc gfortran -j6 --install-prefix=/home/ccspapp/Scratch/charmpp/charm-8.0.0_install ompipmix '--basedir=/lustre/shared/ucl/apps/spack/0.22/hk-initial-stack/spack/opt/spack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/linux-rhel7-cascadelake/gcc-12.3.0/openmpi-4.1.6-vfg7lekutaiginlgvs57titvpvnjgys5/' '--basedir=/lustre/shared/ucl/apps/spack/0.22/hk-initial-stack/spack/opt/spack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/linux-rhel7-cascadelake/gcc-12.3.0/ucx-1.16.0-xrxjlowa7a3vqa3qt4n74ojkd4dz5ybh' '--basedir=/lustre/shared/ucl/apps/spack/0.22/hk-initial-stack/spack/opt/spack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/linux-rhel7-cascadelake/gcc-12.3.0/pmix-5.0.1-w5bqx7e24eqivi55mkp7fchr45sjt6dv/' smp --build-shared --with-production -v

This builds and installs successfully both inside and outside Spack, but I cannot then build namd using it because include/conv-mach-opt.sh tries to source include/cc-gcc.sh, include/conv-mach-ompipmix.sh and include/conv-mach-smp.sh all from the original source location, which would be deleted after the install. Those files all exist in the install, they just aren't being referenced in that location.

include/completion.def.h and include/CkIO_impl.def.h are the only other non-binaries that also mention the source location, but those appear to all be comment lines.

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

1 participant