Skip to content

Cannot find dwarf.h #3397

Description

@fangrh

Describe the bug

I get a bug very similar to this.
Which is that I followed the instruction of this, my building script is as below.

-----------------------------------------------------------------------build.sh--------------------------------------------------------

#!/bin/bash
#SBATCH --no-requeue
#SBATCH --job-name="spack"
#SBATCH --get-user-env
#SBATCH --output=_scheduler-stdout.txt
#SBATCH --error=_scheduler-stderr.txt
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --time=01:00:00
#SBATCH --mem=16G
#SBATCH --constraint="hsw"


module purge
module load cmake/3.27.7-sevreyq
module load gcc/11.3.0
module load openmpi/4.1.6-ga5us4r
module load openblas/0.3.24-w756qgj
module load fftw/3.3.10-xwxuahu
module load netlib-scalapack/2.2.0-tvddxo7
module load elpa/2021.11.001-2ayrjvp
#module load libdwarf/20180129-fbjrps2

PREFIX=$HOME/apps/abacus/abacus/
LAPACK=/scratch/work/fangr1/spack/opt/spack/linux-centos7-haswell/gcc-11.3.0/openblas-0.3.24-w756qgj3syn3fylksu5xad7fpgjjfjpp/lib64
SCALAPACK=/scratch/work/fangr1/spack/opt/spack/linux-centos7-haswell/gcc-11.3.0/netlib-scalapack-2.2.0-tvddxo7zhcul7k5ea5tpdjtyodqjbjxp/lib
LIBXC=$HOME/apps/abacus/libxc/6.2.2
ELPA=/scratch/work/fangr1/spack/opt/spack/linux-centos7-haswell/gcc-11.3.0/elpa-2021.11.001-2ayrjvpscb6s6n7okmsn5izkw5xi25r7
FFTW3=/scratch/work/fangr1/spack/opt/spack/linux-centos7-haswell/gcc-11.3.0/fftw-3.3.10-xwxuahujizfwa2toi4765g4piodzfmbd
CEREAL=/scratch/work/fangr1/tool_build/ABACUS/002-cereal/cereal-1.3.2/include/cereal

#tar -zxvf v3.5.0.tar.gz
cd abacus-develop/

cmake -B build -DCMAKE_INSTALL_PREFIX=$PREFIX \
        -DMPI_CXX_COMPILER=mpicxx \
        -DLAPACK_DIR=$LAPACK \
        -DSCALAPACK_DIR=$SCALAPACK \
        -DELPA_DIR=$ELPA \
        -DFFTW3_DIR=$FFTW3 \
        -DCEREAL_INCLUDE_DIR=$CEREAL \
        -DLibxc_DIR=$LIBXC \
        -DENABLE_LCAO=ON \
        -DENABLE_LIBXC=ON \
        -DUSE_OPENMP=ON \
        -DENABLE_ASAN=OFF \
        -DUSE_ELPA=ON | tee configure.log
cmake --build build -j `nproc` | tee build.log
cmake --install build | tee install.log

and trough error that cannot find the dwarf.h

-----------------------------------------------------------_scheduler-stderr.txt--------------------------------------------------------

CMake Deprecation Warning at source/module_base/module_container/base/third_party/backward-cpp/CMakeLists.txt:23 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/parameter_pool.cpp: In function 'bool ModuleIO::Init(const string&, const string&, const string&)':
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/parameter_pool.cpp:83:1: warning: no return statement in function returning non-void [-Wreturn-type]
83 | }
| ^
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/parameter_pool.cpp: In function 'bool ModuleIO::default_parametes_reader(const string&, std::map<std::__cxx11::basic_string, std::__cxx11::basic_string >&)':
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/parameter_pool.cpp:127:1: warning: no return statement in function returning non-void [-Wreturn-type]
127 | }
| ^
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/parameter_pool.cpp: In function 'bool ModuleIO::input_parameters_set(std::map<std::__cxx11::basic_string, ModuleIO::InputParameter>)':
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/parameter_pool.cpp:1654:1: warning: control reaches end of non-void function [-Wreturn-type]
1654 | }
| ^
In file included from /scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_base/module_container/base/utils/logging.h:5,
from /scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_base/module_container/base/macros/macros.h:5,
from /scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_base/module_container/ATen/core/tensor_accessor.h:6,
from /scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_base/module_container/ATen/core/tensor.h:8,
from /scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_base/module_container/ATen/ops/einsum_op.h:4,
from /scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_base/module_container/ATen/ops/einsum_op.cpp:1:
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_base/module_container/base/third_party/backward-cpp/backward.hpp:246:10: fatal error: dwarf.h: No such file or directory
246 | #include <dwarf.h>
| ^~~~~~~~~
compilation terminated.
gmake[2]: *** [source/module_base/module_container/CMakeFiles/container.dir/ATen/ops/einsum_op.cpp.o] Error 1
gmake[1]: *** [source/module_base/module_container/CMakeFiles/container.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/csr_reader.cpp: In member function 'ModuleIO::SparseMatrix ModuleIO::csrFileReader::getMatrix(int, int, int) [with T = double]':
/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/source/module_io/csr_reader.cpp:111:29: warning: control reaches end of non-void function [-Wreturn-type]
111 | ModuleBase::WARNING_QUIT("csrFileReader::getMatrix", "R coordinate not found");
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [all] Error 2
CMake Error at build/cmake_install.cmake:51 (file):
file INSTALL cannot find
"/scratch/work/fangr1/tool_build/ABACUS/004-abacus/abacus-develop/build/abacus":
No such file or directory.


Expected behavior

No response

To Reproduce

No response

Environment

No response

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).

Metadata

Metadata

Assignees

Labels

BugsBugs that only solvable with sufficient knowledge of DFT

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions