ORNL / ORNL/GridKit

Bug: std::call_once pthreads linking issue

Open
#567 2 comments 1 reaction 1 assignee View on GitHub

@nkoukpaizan is already working on this.

Since Sep 3, 2026.

bug
Dominant language
C++
Stars
27
Forks
11
Avg merge
3d 8h
Merged PRs (30d)
23

Description

Description how to reproduce the bug
$ ./DynamicSimulation hawaii.case.json 
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
Aborted
GridKit™ version

develop branch

System and environment details

RHEL using these spack packages

- llvm@20.1.8
- enzyme@0.0.206
- sundials@develop~mpi+klu logging-level=4
Additional information

GDB shows the exception is raised here.
https://github.com/ORNL/GridKit/blob/de7bea1899b278c0d2fa4cd36796045acc93d040/GridKit/Model/PhasorDynamics/Exciter/IEEET1/Ieeet1Impl.hpp#L556-L557

It seems pthreads wasn't linked, so it can't call std::call_once. It's unclear if this is a quirk of my build environment or a legitimate build issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.