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

Too many dependencies for module_elecstate/test #5836

Open
16 tasks
Cstandardlib opened this issue Jan 8, 2025 · 0 comments
Open
16 tasks

Too many dependencies for module_elecstate/test #5836

Cstandardlib opened this issue Jan 8, 2025 · 0 comments
Labels
Questions Raise your quesiton! We will answer it. Refactor Refactor ABACUS codes

Comments

@Cstandardlib
Copy link
Collaborator

Describe the bug

When compiling abacus on DCU with TESTING=ON, too many link errors are encountered related to module_elecstate/test:

/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x25
CMakeFiles/elecstate_energy.dir/__/elecstate_energy_terms.cpp.o: in function `elecstate::ElecState::get_hartree_energy()':
elecstate_energy_terms.cpp:(.text+0x4): undefined reference to `elecstate::H_Hartree_pw::hartree_energy'
/usr/bin/ld: CMakeFiles/elecstate_energy.dir/__/elecstate_energy_terms.cpp.o: in function `elecstate::ElecState::get_etot_efield()':
elecstate_energy_terms.cpp:(.text+0x14): undefined reference to `elecstate::Efield::etotefield'
/usr/bin/ld: CMakeFiles/elecstate_energy.dir/__/elecstate_energy_terms.cpp.o: in function `elecstate::ElecState::get_etot_gatefield()':
elecstate_energy_terms.cpp:(.text+0x24): undefined reference to `elecstate::Gatefield::etotgatefield'
/usr/bin/ld: CMakeFiles/elecstate_energy.dir/__/elecstate_energy_terms.cpp.o: in function `elecstate::ElecState::get_solvent_model_Ael()':
elecstate_energy_terms.cpp:(.text+0x34): undefined reference to `surchem::Ael'
/usr/bin/ld: CMakeFiles/elecstate_energy.dir/__/elecstate_energy_terms.cpp.o: in function `elecstate::ElecState::get_solvent_model_Acav()':
elecstate_energy_terms.cpp:(.text+0x44): undefined reference to `surchem::Acav'
/usr/bin/ld: CMakeFiles/elecstate_energy.dir/__/elecstate_energy_terms.cpp.o: in function `elecstate::ElecState::get_dftu_energy()':
elecstate_energy_terms.cpp:(.text+0x54): undefined reference to `GlobalC::dftu'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [source/module_elecstate/test/CMakeFiles/elecstate_energy.dir/build.make:303: source/module_elecstate/test/elecstate_energy] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:5864: source/module_elecstate/test/CMakeFiles/elecstate_energy.dir/all] Error 2

Who knows how many files this test relies on?

Expected behavior

No response

To Reproduce

build on DCU with

PACKAGES=/work/home/packages
CC=clang CXX=clang++ cmake -B build -DCMAKE_INSTALL_PREFIX=~/.local/ \
        -DGTEST_ROOT=${PACKAGES}/googletest/ \
        -DBUILD_TESTING=ON \
        -DUSE_OPENMP=ON -DENABLE_LCAO=OFF \
        -DFFTW3_DIR=${PACKAGES}/fftw-3.3.10/build/ \
        -DLAPACK_DIR=${PACKAGES}/OpenBLAS-0.3.28/build/lib \
        -DSCALAPACK_DIR=${PACKAGES}/scalapack-2.2.0/ \
        -DUSE_ROCM=ON
cmake --build build -j`nproc`

Environment

module list
Currently Loaded Modulefiles:

  1. mpi/hpcx/2.12.0/gcc-8.3.1 2) compiler/dtk/24.04.2 3) compiler/cmake/3.23.3

Additional Context

No response

Task list for Issue attackers (only for developers)

  • Verify the issue is not a duplicate.
  • Describe the bug.
  • Steps to reproduce.
  • Expected behavior.
  • Error message.
  • Environment details.
  • Additional context.
  • Assign a priority level (low, medium, high, urgent).
  • Assign the issue to a team member.
  • Label the issue with relevant tags.
  • Identify possible related issues.
  • Create a unit test or automated test to reproduce the bug (if applicable).
  • Fix the bug.
  • Test the fix.
  • Update documentation (if necessary).
  • Close the issue and inform the reporter (if applicable).
@mohanchen mohanchen added Questions Raise your quesiton! We will answer it. Refactor Refactor ABACUS codes labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Questions Raise your quesiton! We will answer it. Refactor Refactor ABACUS codes
Projects
None yet
Development

No branches or pull requests

2 participants