Malloc(): invalid size (unsorted)

When building ngsolve in linux I am getting the following error when running make install.

malloc(): invalid size (unsorted)
CMake Error at python/cmake_install.cmake:90 (file):
  file INSTALL cannot find
  "/home/gonzalob/ngsuite/ngsolve-build/ngsolve/python/../stubs/ngsolve": No
  such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:145 (include)

Does anybody know what may be causing this issue?

1 Like

Just in case it’s needed:

I called cmake via

cmake -DUSE_CUDA=ON -DUSE_GUI=ON -DUSE_PYTHON=ON -DUSE_MPI=ON -DUSE_MKL=ON -DUSE_OCC=ON -DUSE_MUMPS=OFF -DUSE_UMFPACK=ON -DCMAKE_INSTALL_PREFIX=${BASEDIR}/ngsolve-install ${BASEDIR}/ngsolve-src

and then ran make -j4. The issue is only appearing when running make install.

you may need

pip install pybind11-stubgen