# ACLiC fails to generate the dependency file in a VM

**URL:** <https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659>\
**Category:** ROOT\
**Created:** [February 4, 2022, 12:39pm UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659 "2022-02-04T12:39:49Z")\
**Posts on this page:** 12\
**Page:** 1

<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:** [February 4, 2022, 12:39pm UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/1 "2022-02-04T12:39:49Z")

</div>

While trying to use ROOT 6 in a “Ubuntu 20.04” VirtualBox (6.1.32) machine in a “Shared Folder” working directory ("/c/Temp" below), I get:

```bash
[...]:/c/Temp$ root
root [0] .L Test.h++
Info in <TUnixSystem::ACLiC>: creating shared library /c/Temp/./Test_h.so
Warning in <ACLiC>: Failed to generate the dependency file for /c/Temp/./Test_h.so
root [1]

```

If the working directory is inside of the VM “.vdi” disk, then it works fine.  
The host (which serves “/c/Temp”) is a Windows 10 Pro machine.

BTW. ROOT 5 also has this problem.

---

<div class="post-metadata">

**Author:** ![joa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@joa](https://root-forum.cern.ch/u/joa)\
**Post date:** [February 4, 2022, 2:20pm UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/2 "2022-02-04T14:20:28Z")

</div>

Dear wile,

Has the directory permissions for execution of code…?

Best regards  
Joa

---

<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:** [February 4, 2022, 2:23pm UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/3 "2022-02-04T14:23:05Z")

</div>

I don’t think there are any permission problems.

---

<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:** [February 7, 2022, 8:54am UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/4 "2022-02-07T08:54:03Z")

</div>

Yup thanks, also for opening the issue on Github. This has been fixed in the meantime!

---

<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:** [February 7, 2022, 1:08pm UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/5 "2022-02-07T13:08:21Z")

</div>

If you mean the "[Make sure the temporary file is closed before renaming it. Fixes #9730 #9732](https://github.com/root-project/root/pull/9732/commits)" commits, then I’m afraid they address [a different issue](https://root-forum.cern.ch/t/rootcint-cannot-create-dictionary-in-a-vm/48580). Or do you mean other commits?

I tried to take the latest “[`root/core/dictgen/src/rootcling_impl.cxx`](https://github.com/root-project/root/blob/master/core/dictgen/src/rootcling_impl.cxx)” and rebuild my ROOT 6.24 but it died at “`G__ROOTVecOps.cxx.o`”.

So, I patched the original “`rootcling_impl.cxx`” in the “`clean`” and “`commit`” routines, adding the required “`ifile.close();`”, but … the problem reported here is still present.

---

<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:** [February 8, 2022, 11:04am UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/6 "2022-02-08T11:04:12Z")

</div>

Can this be fixed BEFORE the new ROOT 6.26 is released?

---

<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:** [February 22, 2022, 11:04am UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/7 "2022-02-22T11:04:50Z")

</div>

Closed on February 22, 2022, 11:04am UTC

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

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [March 7, 2022, 9:51am UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/8 "2022-03-07T09:51:30Z")

</div>

Opened on March 7, 2022, 9:51am UTC



---

<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:** [March 7, 2022, 9:53am UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/9 "2022-03-07T09:53:32Z")

</div>

Can this be fixed now (e.g., at least in the “v6-26-00-patches” branch)?

---

<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:** [March 8, 2022, 2:08pm UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/10 "2022-03-08T14:08:05Z")

</div>

Sorry @Wile_E_Coyote I missed this… And indeed I confused the two issues you reported.

What’s the output of `touch /c/Temp/./Test_h.so`?

What’s the output inside ROOT for `TFile::Open("/c/Temp/./Test_h.root", "RECREATE")`?

---

<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:** [March 8, 2022, 3:20pm UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/11 "2022-03-08T15:20:40Z")

</div>

Of course, I get no errors from “`touch`” nor from “`TFile::Open`”.

The “`Test_h.so`” and “`Test_h_ACLiC_dict_rdict.pcm`” seem to be created fine, but the “`Test_h.d`” contains just a single “new line” character.

The “`Test.h`” file comes from this post:

> [@Filling TTree with strings insert only first TString](https://root-forum.cern.ch/t/filling-ttree-with-strings-insert-only-first-tstring/48656):
>
> ROOT Version:6.24/06 Platform: linux/docker Hello, I’m trying to create a TTree with a std::vector wich has inside a TString. The problem is that only first string is stored and all other are ignored. I will provide a test code to reprocude this. Test.h #pragma once #include \<TString.h\> #include \<vector\> namespace TS { class TestClass { public: TestClass() { aString = "0"; id = 0; } TString aString; int id; }; class TestContainer { public: std::vector\<TestClass\> cl…

---

<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:** [April 13, 2022, 9:51am UTC](https://root-forum.cern.ch/t/aclic-fails-to-generate-the-dependency-file-in-a-vm/48659/12 "2022-04-13T09:51:36Z")

</div>

@Axel This bug is still present on ROOT 6.26/02.
