Skip to content

Bug: std::call_once pthreads linking issue #567

Description

@Steven-Roberts

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.

std::call_once(time_constant_warning_flag_,
&logTimeConstantWarning);

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions