# Module libc not found (take 2)

**URL:** <https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461>\
**Category:** ROOT\
**Tags:** build\
**Created:** [September 5, 2022, 2:09pm UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461 "2022-09-05T14:09:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Attila\_Krasznahorkay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/attila_krasznahorkay/32/14150_2.png) [@Attila\_Krasznahorkay](https://root-forum.cern.ch/u/Attila_Krasznahorkay)\
**Post date:** [September 5, 2022, 2:09pm UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/1 "2022-09-05T14:09:34Z")

</div>

This issue has been bothering me since quite a while, and apparently I’m not absolutely alone. ([Module libc not found](https://root-forum.cern.ch/t/module-libc-not-found/49651))

As I remember, it started after one of the standard Ubuntu GCC 9 updates \>1 year ago. After the APT update most of my ROOT builds became non-functional. After I re-built a few of them, they started working, but I would continue getting this error/warning message from them.

```auto
[bash][Legolas]:~ > source ~/software/root/6.26.06/x86_64-ubuntu2004-gcc9-opt/setup.sh 
Configured TBB from: /home/krasznaa/software/oneTBB/2021.5.0/x86_64-ubuntu2004-gcc9-opt
Configured XRootD from: /home/krasznaa/software/xrootd/5.5.0/x86_64-ubuntu2004-gcc9-opt
Configured ROOT from: /home/krasznaa/software/root/6.26.06/x86_64-ubuntu2004-gcc9-opt
[bash][Legolas]:~ > root
Module libc not found.
   ------------------------------------------------------------------
  | Welcome to ROOT 6.26/06 https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Jul 28 2022, 18:08:51 |
  | From tags/v6-26-06@v6-26-06 |
  | With c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------------

root [0]

```

And the PCM file in question is indeed not there, the build was not able to create it.

```auto
[bash][Legolas]:~ > ls -l software/root/6.26.06/x86_64-ubuntu2004-gcc9-opt/lib/libc.pcm
ls: cannot access 'software/root/6.26.06/x86_64-ubuntu2004-gcc9-opt/lib/libc.pcm': No such file or directory
[bash][Legolas]:~ >

```

While on another Ubuntu 20.04 machine the file was created during the build, and I get no similar messages.

```auto
[bash][atspot01]:~ > ls -l /atlas/software/root/6.26.06/x86_64-ubuntu2004-gcc9-opt/lib/libc.pcm 
-rw-r--r-- 1 krasznaa krasznaa 2000344 Sep 1 10:50 /atlas/software/root/6.26.06/x86_64-ubuntu2004-gcc9-opt/lib/libc.pcm
[bash][atspot01]:~ >

```

Finally, when I tried to copy the build from the machine that does not show these issues to the machine that does, ROOT was completely unusable on the “problematic” PC. (It died a horrible death as soon as it tried to load `libc.pcm`.)

I know that the earlier thread was closed with nobody knowing what’s going on, but did people possibly get an idea since? I’m 95% sure that the problematic PC is missing some package that the other one has. But it’s not one of the ones listed on [Dependencies - ROOT](https://root.cern/install/dependencies/). 😕

This is not preventing me from anything in the end, but I would **love** to find out what’s causing it.

Cheers,  
Attila

_ROOT Version:_ Anything above 6.18 or so…  
_Platform:_ `x86_64-ubuntu2004-gcc9-opt`  
_Compiler:_ GCC 9.4

* * *

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [September 5, 2022, 3:35pm UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/2 "2022-09-05T15:35:19Z")

</div>

Hello,

@Axel might have an idea of what could be going on?

---

<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:** [September 6, 2022, 10:01am UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/3 "2022-09-06T10:01:58Z")

</div>

Did you build ROOT yourself? If so, try with `rm lib/*.pcm; make -j12` - that should trigger the rebuild of the missing module.

---

<div class="post-metadata">

**Author:** ![Attila\_Krasznahorkay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/attila_krasznahorkay/32/14150_2.png) [@Attila\_Krasznahorkay](https://root-forum.cern.ch/u/Attila_Krasznahorkay)\
**Post date:** [September 6, 2022, 12:26pm UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/4 "2022-09-06T12:26:36Z")

</div>

Hi Axel,

I did, on both machines. On the problematic one `libc.pcm` is just unable to build for some reason. And the message in question (“Module libc not found”) is printed a lot during the build. (I assume every time that the dictionary generator is invoked.)

So the question is what am I missing from that machine that makes `libc.pcm` unable to build? 😕

As I wrote, when I copy a build that includes `libc.pcm` to the “problematic machine”, that ROOT build is just completely unusable. For some reason even though `libc.pcm` exists in that case, ROOT is still unable to load/use it.

This is not a high priority as I wrote before. So if you don’t have any ideas right away, then don’t struggle with it…

Cheers,  
Attila

---

<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:** [September 6, 2022, 1:43pm UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/5 "2022-09-06T13:43:08Z")

</div>

Hi Attila,

“Module libc not found” is a _consequence_ of the build error; there should be a build error printed before. Do you have a full log from a build from scratch (or after `rm lib/*.pcm`)?

Cheers, Axel

---

<div class="post-metadata">

**Author:** ![Attila\_Krasznahorkay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/attila_krasznahorkay/32/14150_2.png) [@Attila\_Krasznahorkay](https://root-forum.cern.ch/u/Attila_Krasznahorkay)\
**Post date:** [September 7, 2022, 9:38am UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/6 "2022-09-07T09:38:05Z")

</div>

Hi Axel,

If only it were so simple… ☹ As you can imagine, I tried to understand it on my own as well.

Here is the full configuration and build log of 6.26/06 on that problematic machine:

- [configuration log](https://cernbox.cern.ch/index.php/s/L7QFXlcuBzywgHo);
- [build log](https://cernbox.cern.ch/index.php/s/8YcPPClazyQeF4I).

Unfortunately I don’t find any smoking guns in them for the reason why `libc.pcm` is not built. It is just silently not… 😕

Cheers,  
Attila

---

<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:** [September 21, 2022, 9:38am UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/7 "2022-09-21T09:38:35Z")

</div>

Closed on September 21, 2022, 9:38am UTC

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

---

<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 3, 2022, 7:20am UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/8 "2022-10-03T07:20:08Z")

</div>

Opened on October 3, 2022, 7:20am UTC



---

<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 3, 2022, 7:20am UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/9 "2022-10-03T07:20:33Z")

</div>

@vvassilev would you be able to indicate or help debug why `libc.pcm` (or whatever it’s called) isn’t built?

---

<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 17, 2022, 6:00am UTC](https://root-forum.cern.ch/t/module-libc-not-found-take-2/51461/10 "2022-10-17T06:00:25Z")

</div>

Closed on October 17, 2022, 6:00am UTC

This topic was automatically closed after 13 days. New replies are no longer allowed.
