root-project / root

The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
https://root.cern
Other
2.54k stars 1.23k forks source link

[ROOT-9277] Unresolved symbol __emutls_v._ZSt11__once_call #14537

Open vepadulano opened 5 months ago

vepadulano commented 5 months ago

Check duplicate issues.

Description

From https://its.cern.ch/jira/browse/ROOT-9277

From https://root-forum.cern.ch/t/unresolved-symbols-when-using-std-async/28084/1 :

I am using root_v6.12.06.Linux-ubuntu17-x86_64-gcc7.2.tar.gz, the official binaries. I did want to speed up my code a lil bit with std::async and got such errors:

IncrementalExecutor::executeFunction: symbol '__emutls_v._ZSt11__once_call' unresolved while linking function '_GLOBAL__sub_I_cling_module_8'!
IncrementalExecutor::executeFunction: symbol '__emutls_v._ZSt15__once_callable' unresolved while linking function '_GLOBAL__sub_I_cling_module_8'!

Reproducer

std::async([]() { return 1; }).get();

ROOT version

Any

Installation method

Any

Operating system

Any

Additional context

Related to https://github.com/root-project/cling/issues/370

dpiparo commented 3 months ago

still there with master.

ferdymercury commented 3 months ago

Also related: https://github.com/root-project/cling/issues/321 https://github.com/root-project/cling/issues/387