# Missing definition of Vc\_1::Common::checkLibraryAbi

**URL:** <https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243>\
**Category:** ROOT\
**Tags:** build\
**Created:** [October 14, 2021, 7:39pm UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243 "2021-10-14T19:39:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian\_sev](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/adrian_sev/32/13169_2.png) [@adrian\_sev](https://root-forum.cern.ch/u/adrian_sev)\
**Post date:** [October 14, 2021, 7:39pm UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/1 "2021-10-14T19:39:43Z")

</div>

_ROOT Version:_ git v6-24-00-patches @5af1fa4d3d  
_Platform:_ x86\_64 Fedora 34  
_Compiler:_ 11.2.1 20210728

* * *

while the building (ninja) ended successfully (died once, restarted with -j8) i got this at the end:

```auto
[2702/2704] Generating tutorials/hsimple.root
IncrementalExecutor::executeFunction: symbol '_ZN4Vc_16Common15checkLibraryAbiEjjPKc' unresolved while linking function '_GLOBAL__sub_I_cling_module_1'!
You are probably missing the definition of Vc_1::Common::checkLibraryAbi(unsigned int, unsigned int, char const*)
Maybe you need to load the corresponding shared library?

Processing hsimple.C...
hsimple : Real Time = 0.03 seconds Cpu Time = 0.03 seconds
(TFile *) 0x2910660
[2704/2704] Linking CXX executable bin/hist2workspace

```

is it something worth filling a issue for?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [October 16, 2021, 8:20am UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/2 "2021-10-16T08:20:40Z")

</div>

This is Ubuntu 20.04 LTS / x86\_64 / gcc 9.3.0 here.  
The building of the current “v6-24-00-patches” branch (the default cmake / make is used with “-j1”) says (for all three C++11, C++14 and C++17 builds):

```plaintext
(...)
[97%] Built target root
Scanning dependencies of target hsimple
[97%] Generating tutorials/hsimple.root
IncrementalExecutor::executeFunction: symbol '_ZN4Vc_16Common15checkLibraryAbiEjjPKc' unresolved while linking function '_GLOBAL__sub_I_cling_module_1'!
You are probably missing the definition of Vc_1::Common::checkLibraryAbi(unsigned int, unsigned int, char const*)
Maybe you need to load the corresponding shared library?

Processing hsimple.C...
hsimple : Real Time = 0.21 seconds Cpu Time = 0.10 seconds
(TFile *) 0x55941b3a5e00
[97%] Built target hsimple
Scanning dependencies of target New
(...)

```

Same problems have been reported in:

> [@ROOT 6.22 binary on macOS with C++14/17](https://root-forum.cern.ch/t/root-6-22-binary-on-macos-with-c-14-17/42319/6):
>
> Hi, This version is still C++11 only? When I started it for the first time, I got IncrementalExecutor::executeFunction: symbol '\_ZN4Vc\_16Common15checkLibraryAbiEjjPKc' unresolved while linking function '\_GLOBAL\_\_sub\_I\_cling\_module\_1'! You are probably missing the definition of Vc\_1::Common::checkLibraryAbi(unsigned int, unsigned int, char const\*) but it doesn’t happen on subsequent starts My problem with C++11/14 is that my code uses auto lambda functions for RDataFrame ('auto' return with…

> [@Undefined ref Vc\_1::Common::checkLibraryAbi](https://root-forum.cern.ch/t/undefined-ref-vc-1-checklibraryabi/44966):
>
> Dear Rooters, I downloaded the precompiled tar ball for the below stated version. Building our Marabou (which goes along with root since 1997) I get the following errors from the ld step: /usr/bin/ld: utils/src/TMrbWindows.o: in function `_GLOBAL__sub_I_TMrbWindows.cxx': /home/o/Otto.Schaile/root/6.24.00/include/Vc/scalar/../common/../version.h:116: undefined reference to `Vc\_1::Common::checkLibraryAbi(unsigned int, unsigned int, char const\*)' and many more of this. I would appreciate a …

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [October 16, 2021, 5:10pm UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/3 "2021-10-16T17:10:48Z")

</div>

@Axel I also noticed another two warnings about redefined Vc macros (for all three C++11, C++14 and C++17 builds):

```nohighlight
(...)
[72%] Built target Imt
[72%] Generating G__MathCore.cxx, ../../lib/MathCore.pcm
While building module 'MathCore':
While building module 'Vc' imported from /.../v6-24-00-patches/include/Math/Types.h:19:
In file included from <module-includes>:1:
In file included from /usr/include/Vc/Vc:30:
In file included from /usr/include/Vc/vector.h:37:
In file included from /usr/include/Vc/sse/vector.h:402:
In file included from /usr/include/Vc/scalar/../common/../sse/vector.tcc:30:
/usr/include/Vc/scalar/../common/../sse/../common/bitscanintrinsics.h:37:13: warning: '_bit_scan_forward' macro redefined [-Wmacro-redefined]
# define _bit_scan_forward(x) __builtin_ctz(x)
            ^
/.../v6-24-00-patches/etc//cling/lib/clang/9.0.1/include/ia32intrin.h:72:9: note: previous definition is here
#define _bit_scan_forward(A) __bsfd((A))
        ^
While building module 'MathCore':
While building module 'Vc' imported from /.../v6-24-00-patches/include/Math/Types.h:19:
In file included from <module-includes>:1:
In file included from /usr/include/Vc/Vc:30:
In file included from /usr/include/Vc/vector.h:37:
In file included from /usr/include/Vc/sse/vector.h:402:
In file included from /usr/include/Vc/scalar/../common/../sse/vector.tcc:30:
/usr/include/Vc/scalar/../common/../sse/../common/bitscanintrinsics.h:44:13: warning: '_bit_scan_reverse' macro redefined [-Wmacro-redefined]
# define _bit_scan_reverse(x) _Vc_bit_scan_reverse_asm(x)
            ^
/.../v6-24-00-patches/etc//cling/lib/clang/9.0.1/include/ia32intrin.h:73:9: note: previous definition is here
#define _bit_scan_reverse(A) __bsrd((A))
        ^
Scanning dependencies of target G__MathCore
[72%] Building CXX object math/mathcore/CMakeFiles/G __MathCore.dir/G__ MathCore.cxx.o
[72%] Built target G__MathCore
Scanning dependencies of target MathCore
(...)

```

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [October 25, 2021, 8:11am UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/4 "2021-10-25T08:11:08Z")

</div>

These should have been fixed in Vc. Any chance that you can upgrade to the latest release?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [October 25, 2021, 8:12am UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/5 "2021-10-25T08:12:12Z")

</div>

@vvassilev FYI - see the reports on

```auto
IncrementalExecutor::executeFunction: symbol '_ZN4Vc_16Common15checkLibraryAbiEjjPKc' unresolved while linking function '_GLOBAL__sub_I_cling_module_1'!
You are probably missing the definition of Vc_1::Common::checkLibraryAbi(unsigned int, unsigned int, char const*)
Maybe you need to load the corresponding shared library?

```

What’s the status with this?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [October 25, 2021, 8:54am UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/6 "2021-10-25T08:54:50Z")

</div>

As stated in my previous post, I built … the current “v6-24-00-patches” branch … where the current means today “as of 9 days ago” (the last commit was 11 days ago).

BTW. “Vc” comes from “vc-dev 1.3.3-4” and it seems to be the latest version on Ubuntu 20.04 LTS.

---

<div class="post-metadata">

**Author:** ![vvassilev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/f0a364/32.png) [@vvassilev](https://root-forum.cern.ch/u/vvassilev)\
**Post date:** [October 25, 2021, 2:28pm UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/7 "2021-10-25T14:28:12Z")

</div>

We have a PR fixing the issue - [[cxxmodules] Fix ROOT-11002 -- Vc plus GMI by vgvassilev · Pull Request #8788 · root-project/root · GitHub](https://github.com/root-project/root/pull/8788)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 8, 2021, 2:28pm UTC](https://root-forum.cern.ch/t/missing-definition-of-vc-1-checklibraryabi/47243/8 "2021-11-08T14:28:27Z")

</div>

Closed on November 8, 2021, 2:28pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
