Setting up your environment this way avoids most errors on this page.
| Practice | What happens if you skip it |
|---|---|
| Use the prebuilt conda-forge QE whenever you can instead of compiling. | Compiling means matching the compiler, MPI, BLAS, LAPACK and FFTW yourself, and any mismatch causes errors or slow runs. |
| If you must compile, take the compiler, MPI and math libraries from one source, such as one conda environment or one set of cluster modules. | Mixed sources cause symbol not found at link time, or configure quietly falls back to slower internal libraries. |
| Build and run on Linux rather than compiling with gfortran inside WSL. | WSL with gfortran has a known segmentation fault problem. |
| Take all pseudopotentials from one set (SSSP or SG15) and download them with wget or curl. | Mixing functionals gives inconsistent DFT, and incomplete browser downloads give PP file is empty or wrong. |
Troubleshooting by error message
Find your exact error message; entries go from building to running to pseudopotentials and input. Each gives the cause, the fix, and what may come up after the fix.
using internal copy of FFTW
Cause: configure did not find FFTW3 and fell back to QE's slower internal copy.
Fix: Point FFTW_INCLUDE and FFT_LIBS to the FFTW3 headers and library, then rerun configure.
What may come next: After replacing one library, the others may also need to come from the same toolchain, or linking fails with symbol not found.
setting LAPACK to internal library
Cause: configure did not find an external LAPACK and used the internal copy.
Fix: Point LAPACK_LIBS to an external LAPACK that comes from the same toolchain as the compiler.
What may come next: After replacing one library, the others may also need to come from the same toolchain, or linking fails with symbol not found.
MPIF90 not found: using MPIF90 anyway
Cause: mpif90 is not on PATH but configure continues with that name, so no parallel build is produced.
Fix: Install the MPI Fortran wrapper, confirm it with which mpif90, clean old build files and rerun configure.
What may come next: The MPI version must match the compiler; a mismatched MPI shows up later as mpirun errors.
Parallel environment not detected (is this a parallel machine?).
Cause: configure found no usable MPI and built a serial version only.
Fix: Install MPI and its Fortran wrapper, rerun configure, and check this line is gone.
why is configure saying that I have no fortran compiler?
Cause: No Fortran compiler is installed, or it is not on PATH.
Fix: Install gfortran and confirm it is on PATH with which gfortran.
What may come next: Once the compiler is found, missing BLAS, LAPACK or FFTW messages often follow.
why is configure saying that my fortran compiler doesn't work?
Cause: configure tried to compile a small test program with the compiler and failed.
Fix: Compile a minimal Fortran program yourself to confirm the compiler works.
symbol … not found
Cause: BLAS, LAPACK, FFT or MPI libraries come from different toolchains, so function names do not match.
Fix: Use a compiler, MPI and math libraries from one toolchain, clean, and rebuild.
What may come next: Other programs built with the old toolchain may stop running after you switch.
Error in routine readpp ... file ... not found
Cause: No file exists at the path built from pseudo_dir and the pseudopotential name, usually a wrong path or different letter case.
Fix: Write pseudo_dir as an absolute path and check the file name with ls, matching case exactly.
file ... not readable
Cause: The pseudopotential file exists but the current user cannot read it.
Fix: Check permissions with ls -l and grant the current user read access.
PP file is empty or wrong
Cause: The pseudopotential file is empty or in the wrong format, often from an incomplete web download.
Fix: Download it again with wget or curl, then check the file size and first lines.
inconsistent DFT read from PP files
Cause: The pseudopotentials use different exchange-correlation functionals.
Fix: Switch all pseudopotentials to the same functional, for example all PBE.
species X in ATOMIC_POSITIONS is nonexistent
Cause: An element label in ATOMIC_POSITIONS is not defined in ATOMIC_SPECIES.
Fix: Make the labels match exactly in both places, including case.
wrong number of columns in ATOMIC_POSITIONS
Cause: A line in ATOMIC_POSITIONS has the wrong number of columns for the chosen format.
Fix: Write each line as an element plus three coordinates and check the unit option after ATOMIC_POSITIONS.
S matrix not positive definite
Cause: The overlap matrix is not positive definite during diagonalization, often due to atoms too close together or unsuitable pseudopotentials or cutoffs.
Fix: Check for atoms that are too close, then the pseudopotentials and cutoffs, then retry with a different number of MPI processes.
problems computing cholesky
Cause: Diagonalization failed; this is the same kind of problem as S matrix not positive definite.
Fix: Follow the steps in the previous entry and retry with fewer MPI processes.
Primary job terminated normally, but 1 process returned a non-zero exit code..
Cause: One MPI process exited with an error, so mpirun stopped the whole job; this line is only the result.
Fix: Search the output from the top for the first real error, such as a segfault or a missing shared library, and fix that.

mpirun has detected an attempt to run as root
Cause: OpenMPI refuses to run as root by default.
Fix: Run as a normal user; add --allow-run-as-root only when you really need it, for example in a container.
Segmentation fault (QE compiled or run with gfortran under WSL)
Cause: A known problem with WSL and gfortran, described on a dedicated QE wiki page.
Fix: Adjust the compiler version and options following the QE wiki page Segfault with gfortran and WSL, or build on a Linux system instead.
What may come next: After changing the compiler version, MPI and the math libraries must be rebuilt with the same compiler.
No error, but the calculation is clearly slower than expected
Cause: OpenMP threads times MPI processes exceeds the CPU cores, so they compete for cores.
Fix: For pure MPI runs set export OMP_NUM_THREADS=1, or keep processes times threads within the core count.
Scientify is a cloud computer with research software installed and AI agents such as Codex and Claude Code built in. Describe what you need in one sentence, for example "compute the band structure and density of states of this crystal with PBE", and the agent uses the preinstalled Quantum ESPRESSO to do the modeling and computation, with no software to install and no code to write.
Compared with installing more on your own computer, the cloud computer already has QE 7.5 built with OpenMPI and the SSSP and SG15 pseudopotential sets stored locally, and runs continue after you close your laptop.
The cloud computer comes with more computing power: CPU and GPU clusters can be called on demand for large-scale scientific computing. Compute is billed by the minutes you actually use, so nothing is wasted.
- Cloud computer
- 4 vCPU · 8 GB
- Top configuration, for data processing and small to medium jobs
- Callable GPU
- 96 GB VRAM
- Up to an RTX PRO 6000 per GPU; H800 80 GB and up to 8 × A10G also available
- Callable CPU
- 224 cores · 3 TB
- Largest spec, for large parallel computations
Sources
- QE 7.5 configure macro: FFTW and bundled copy — using internal copy of FFTW, the BEWARE notice, and the behavior of FFT_LIBS and FFTW_INCLUDE
- QE 7.5 configure macro: LAPACK — setting LAPACK to internal library, and LAPACK_LIBS
- QE 7.5 configure macro: BLAS — fallback to the internal library when the BLAS search fails
- QE 7.5 configure macro: mpif90 — MPIF90 not found: using MPIF90 anyway
- QE 7.5 configure macro: MPI — Parallel environment not detected, Configured for compilation of serial executables.
- QE 7.5 source: Modules/read_pseudo.f90 — readpp messages file not found, not readable, inconsistent DFT read from PP files; comments on the pseudo_dir search
- QE 7.5 source: upflib/read_ncpp.f90 — read_ncpp: PP file is empty or wrong
- QE 7.5 source: Modules/read_cards.f90 — species nonexistent and wrong number of columns in ATOMIC_POSITIONS
- QE 7.5 source: LAXlib/cdiaghg.f90 — S matrix not positive definite (cdiaghg), and problems computing cholesky (reported by pcdiaghg with the calling site cdiaghg)
- Quantum ESPRESSO official installation FAQ — Explanations for no fortran compiler and compiler doesn't work; symbol … not found and name mismatch; no mention of a native Windows build
- Quantum ESPRESSO user guide: parallelization — OMP_NUM_THREADS; Beware conflicts between the various kinds of parallelization!
- OpenMPI issue #3380 — Original text of Primary job terminated normally, but 1 process returned a non-zero exit code, reported with OpenMPI 1.10.3
- OpenMPI mpirun man page — --allow-run-as-root: Allow execution as root (STRONGLY DISCOURAGED)
- CFD Online forum thread on mpirun and root — Original text of mpirun has detected an attempt to run as root, from the thread title; the thread body was not checked
- QE official wiki: Segfault with gfortran and WSL — Page title checked; the body could not be read, so the versions and fixes should be taken from the page
- Materials Cloud Archive: SSSP record 2020.153 — License of this record: Creative Commons Attribution 4.0 International. The record predates SSSP 1.3.0.