xtb and CREST / Installation errors

Causes and fixes for xtb and CREST installation errors

Common errors when installing and running xtb and CREST, listed by exact message, each with its cause and fix.

Short answer

xtb and CREST are OpenMP-parallel Fortran programs: large systems need far more stack than the system default, and conda builds depend on specific Fortran runtime versions, so wrong environment variables or runtimes cause segmentation faults or aborted runs.

Setting up your environment this way avoids most errors on this page.

PracticeWhat happens if you skip it
Run ulimit -s unlimited and export OMP_STACKSIZE=4G before calculations, and put them in job scripts on clusters.Large systems fail with Segmentation fault or SIGSEGV.
Set export OMP_NUM_THREADS=<cores>,1 and export OMP_MAX_ACTIVE_LEVELS=1.Nested parallelism oversubscribes threads, slowing runs or blowing up memory.
Install with conda install -c conda-forge xtb crest and keep xtb on the latest build.Old builds meet a newer Fortran runtime and geometry optimizations fail with Fortran runtime error.
When CREST uses OpenBLAS, set export OPENBLAS_NUM_THREADS=1.CREST's own parallelism stacks on OpenBLAS threads and overloads the CPU.
Make sure xtb runs directly from PATH before running CREST.Some CREST modes call the xtb program and cannot run without it.

Troubleshooting by error message

Find your exact error message. Each entry gives the cause, the fix, and what may come up after the fix.

Segmentation fault (or forrtl: severe (174): SIGSEGV, segmentation fault occurred, on large systems or many cores)

Cause: The stack is too small. The system default is about 8 MB, and large systems use it up.

Fix: Run ulimit -s unlimited before calculating; with several cores also set export OMP_STACKSIZE=4G, then run again.

What may come next: Every thread reserves OMP_STACKSIZE of memory, and the official docs mention about 16 GB per thread for a 3000-atom system, so use fewer threads if memory runs short.

Fortran runtime error: Missing comma between descriptors (At line 852 of file ../src/optimizer.f90, xtb 6.7.1 from conda)

Cause: After libgfortran in the conda environment moved to 15, older builds of xtb 6.7.1 use an output format the new runtime rejects, and geometry optimization stops in the first cycle.

Fix: Run conda update -c conda-forge xtb to get the fixed build or 6.8.0; if you cannot update yet, downgrade libgfortran in the environment to 14.2.0.

What may come next: Downgrading libgfortran affects other Fortran programs in the same environment, so give xtb its own environment.

GFN2 calculations fail with xtb 6.7.1 installed by conda on Windows (GFN-FF works)

Cause: The Windows conda build of xtb 6.7.1 has a problem with the GFN2 method.

Fix: Update to 6.8.0 with conda update -c conda-forge xtb, or install the Linux build of xtb in WSL2.

Intel MKL ERROR: Parameter 6 was incorrect on entry to DLASWP. (when running CREST)

Cause: CREST built with Intel compilers and MKL hits a memory problem under nested OpenMP parallelism.

Fix: Use a CREST build with GNU compilers and the OpenBLAS backend (the conda-forge build is one); as a stopgap run single-threaded with -T 1.

What may come next: Single-threaded runs avoid the error but make conformer searches much slower.

CMake Error at config/modules/crest-utils.cmake:125 (add_library): add_library cannot create imported target "mctc-lib::mctc-lib" because another target with the same name already exists.

Cause: Newer mctc-lib already provides this CMake target, and the CREST 3.0.2 find script creates it a second time.

Fix: Build from CREST's latest master branch instead, or install with conda install -c conda-forge crest.

Error: Symbol ‘cds_input’ referenced at (1) not found in module ‘tblite_solvation’ (when building CREST)

Cause: The build picked up an outdated tblite module on the cluster that lacks the solvation interface CREST needs.

Fix: Do not load the cluster tblite module; run git submodule init and git submodule update and rebuild with the tblite bundled with CREST.

What may come next: The tblite, mctc-lib and other libraries CREST uses must match each other, so mixing cluster modules with submodules easily leads to new link errors.

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 "run a CREST conformer search on this drug molecule and optimize the lowest-energy conformers with GFN2-xTB", and the agent uses the preinstalled xtb and CREST 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 xtb 6.7.1 and CREST 3.0.2, using an xtb build that already includes the Fortran runtime fix, so geometry optimizations do not hit the Missing comma error above, 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

References

Frequently asked questions

Does xtb run on Windows?

Yes. conda-forge provides Windows builds and the project publishes Windows binaries. For the 6.7.1 GFN2 problem, update to 6.8.0 or use the Linux build in WSL2.

How large should OMP_STACKSIZE be?

The official example uses 4G. Larger systems need more, about 16 GB per thread for 3000 atoms; the value times the thread count must fit in available memory.

How are CREST and xtb related?

CREST runs conformer searches with xtb's GFN methods. Recent CREST has a built-in engine, but some modes still call the xtb program, so the two are usually installed together.

Run conformer searches and semi-empirical calculations with Scientify without setup

Upload your data, describe the computation, and Scientify runs it on a cloud computer that is already set up. New accounts get a free cloud computer and US$5 in credit.