# Errors when building ROOT

**URL:** <https://root-forum.cern.ch/t/errors-when-building-root/35249>\
**Category:** ROOT\
**Created:** [July 17, 2019, 8:44pm UTC](https://root-forum.cern.ch/t/errors-when-building-root/35249 "2019-07-17T20:44:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kayshla98](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kayshla98/32/19362_2.png) [@Kayshla98](https://root-forum.cern.ch/u/Kayshla98)\
**Post date:** [July 17, 2019, 8:44pm UTC](https://root-forum.cern.ch/t/errors-when-building-root/35249/1 "2019-07-17T20:44:23Z")

</div>

* * *

\_ROOT Version: 6.14.04  
\_Platform: ubuntu  
\_Compiler:

* * *

Hey,

I am trying to build root, but when it’s almost done I get these errors:

````auto
/usr/lib64/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
/usr/lib64/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
collect2: error: ld returned 1 exit status
gmake[2]: *** [bin/root] Error 1
gmake[1]: *** [rootx/CMakeFiles/root.dir/all] Error 2
gmake: *** [all] Error 2 ```

Environment variable in my bash_profile:
export LD_LIBRARY_PATH=/lib

*Before the errors I got this warning: "gmake[2]: Warning: File `rootx/CMakeFiles/root.dir/depend.make' has modification time 0.0002 s in the future"

I am pretty new with ROOT. Would appreciate any help with these errors.

Sincerely,
Kayshla
````

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [July 18, 2019, 6:50am UTC](https://root-forum.cern.ch/t/errors-when-building-root/35249/2 "2019-07-18T06:50:55Z")

</div>

Please remove the `export LD_LIBRARY_PATH=/lib` from your bashrc, that can break your system if you are on a 64bit environment and libraries are in `/lib64` instead. Usually, `/lib` and `/usr/lib` are for 32bit libraries on those systems. The problem does not seem to be in ROOT, but with the `libSM.so` library. Try to install `uuid-dev` with `sudo apt-get install uuid-dev` and see if the problem goes away. Cheers,

---

<div class="post-metadata">

**Author:** ![Kayshla98](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kayshla98/32/19362_2.png) [@Kayshla98](https://root-forum.cern.ch/u/Kayshla98)\
**Post date:** [July 18, 2019, 4:21pm UTC](https://root-forum.cern.ch/t/errors-when-building-root/35249/3 "2019-07-18T16:21:52Z")

</div>

Is there another way to install uuid-dev? I don’t have permission to use sudo commands.

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [July 19, 2019, 6:23am UTC](https://root-forum.cern.ch/t/errors-when-building-root/35249/4 "2019-07-19T06:23:26Z")

</div>

I’m not sure, since it’s in part tied to the kernel. Please let your system admin know of the problem, since it’s a problem with a system library (`/usr/lib64/libSM.so`). Maybe they can help you get this fixed. Cheers,

---

<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:** [August 2, 2019, 6:24am UTC](https://root-forum.cern.ch/t/errors-when-building-root/35249/5 "2019-08-02T06:24:13Z")

</div>

Closed on August 2, 2019, 6:24am UTC

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