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

ld is unable to find library during linking process #241

Closed
saintdav opened this issue Mar 8, 2024 · 0 comments
Closed

ld is unable to find library during linking process #241

saintdav opened this issue Mar 8, 2024 · 0 comments

Comments

@saintdav
Copy link

saintdav commented Mar 8, 2024

Describe the bug
ld is unable to find library during linking process

To Reproduce
Steps to reproduce the behaviour:

  1. I load these modules:
module load PrgEnv-gnu
module load cray-libsci/22.12.1.1
module load cray-fftw/3.3.10.3
module load cray-hdf5-parallel/1.12.2.1
module load craype-network-ucx
module load cray-mpich-ucx
  1. I can successfully build the files using the following commands:
rm -rf build subprojects/*
cmake --version

cmake -B build -DCMAKE_INSTALL_PREFIX=/work/software/dftd4 -DLAPACK_LIBRARIES=" " -DWITH_API_V2=ON -Ddftd4-dependency-method=fetch
  1. However, when I try to compile using:

make -C build -j

  1. I receive the following error a few times:
/usr/bin/ld: cannot find -l/opt/cray/pe/fftw/3.3.10.3/x86_rome/lib/libfftw3f_omp.so: No such file or directory
make[2]: Leaving directory '/mnt/lustre/a2fs-work2/work/dftd4/3.6.0/build'
[ 69%] Built target mstore-fortranize
make[2]: Entering directory '/mnt/lustre/a2fs-work2/work/dftd4/3.6.0/build'
Scanning dependencies of target multicharge-tester
collect2: error: ld returned 1 exit status
make[2]: *** [_deps/multicharge-build/app/CMakeFiles/multicharge-exe.dir/build.make:103: _deps/multicharge-build/app/multicharge] Error 1
make[2]: Leaving directory '/mnt/lustre/a2fs-work2/work/dftd4/3.6.0/build'
make[1]: *** [CMakeFiles/Makefile2:906: _deps/multicharge-build/app/CMakeFiles/multicharge-exe.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Expected behaviour
I would expect the compilation to finish successfully. I will be happy to provide more information if required.

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