# ROOT build error from source

**URL:** <https://root-forum.cern.ch/t/root-build-error-from-source/51416>\
**Category:** ROOT\
**Tags:** build, root\
**Created:** [August 31, 2022, 3:11pm UTC](https://root-forum.cern.ch/t/root-build-error-from-source/51416 "2022-08-31T15:11:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Animesh\_Sah](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/animesh_sah/32/30752_2.png) [@Animesh\_Sah](https://root-forum.cern.ch/u/Animesh_Sah)\
**Post date:** [August 31, 2022, 3:11pm UTC](https://root-forum.cern.ch/t/root-build-error-from-source/51416/1 "2022-08-31T15:11:22Z")

</div>

\_ROOT Version:6.26.06  
\_Platform:Fedora Linux 36

Hi

I m trying to build ROOT from source in my fedora , but I am getting an error after

```auto
cmake --build . --target install

```

command.  
The error I get is

```auto
[1%] Performing build step for 'XROOTD'
CMake Error at /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-Release.cmake:49 (message):
  Command failed: 2

   '/usr/bin/gmake'

  See also

    /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-*.log

gmake[2]: *** [builtins/xrootd/CMakeFiles/XROOTD.dir/build.make:86: builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:7905: builtins/xrootd/CMakeFiles/XROOTD.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

```

with the log file :

```auto
No git repository info found. Trying to interpret VERSION_INFO
[I] Using the user supplied version: v5.4.3
[I] src/XrdVersion.hh successfully generated
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdTls/XrdTlsSocket.cc: In member function ‘XrdTls::RC XrdTlsSocket::Connect(const char*, std::string*)’:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdTls/XrdTlsSocket.cc:268:8: warning: declaration of ‘rc’ shadows a previous local [-Wshadow]
  268 | do{int rc = SSL_connect( pImpl->ssl );
      | ^~
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdTls/XrdTlsSocket.cc:254:15: note: shadowed declaration is here
  254 | int ssler, rc;
      | ^~
In file included from /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdCrypto/XrdCryptosslX509Crl.hh:38,
                 from /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdTls/XrdTlsTempCA.cc:43:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdSut/XrdSutCache.hh: In member function ‘XrdSutCacheEntry* XrdSutCache::Get(const char*, bool&, XrdSutCacheGet_t, void*)’:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdSut/XrdSutCache.hh:130:17: warning: declaration of ‘status’ shadows a previous local [-Wshadow]
  130 | int status = 0;
      | ^ ~~~~~
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdSut/XrdSutCache.hh:114:11: note: shadowed declaration is here
  114 | int status = 0;
      | ^ ~~~~~
In file included from /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdCrypto/XrdCryptosslX509Crl.hh:38,
                 from /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslX509Crl.cc:41:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdSut/XrdSutCache.hh: In member function ‘XrdSutCacheEntry* XrdSutCache::Get(const char*, bool&, XrdSutCacheGet_t, void*)’:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdSut/XrdSutCache.hh:130:17: warning: declaration of ‘status’ shadows a previous local [-Wshadow]
  130 | int status = 0;
      | ^ ~~~~~
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdSut/XrdSutCache.hh:114:11: note: shadowed declaration is here
  114 | int status = 0;
      | ^ ~~~~~
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdOuc/XrdOucArgs.cc: In member function ‘int XrdOucArgsXO::operator==(char*)’:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdOuc/XrdOucArgs.cc:47:24: warning: declaration of ‘optarg’ shadows a global declaration [-Wshadow]
   47 | int operator==(char *optarg)
      | ~~~~~~^~~~~~..
...
...
...
In file included from /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdPosix/XrdPosixXrootd.cc:62:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdPosix/XrdPosixFile.hh:158:22: note: by ‘virtual int XrdPosixFile::Trunc(long long int)’
  158 | int Trunc(long long Offset) override;
      | ^ ~~~~
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdOuc/XrdOucCache.hh:406:14: warning: ‘virtual void XrdOucCacheIO::Trunc(XrdOucCacheIOCB&, long long int)’ was hidden [-Woverloaded-virtual]
  406 | virtual void Trunc(XrdOucCacheIOCB &iocb, long long offs)
      | ^ ~~~~
In file included from /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdPosix/XrdPosixXrootd.cc:66:
/home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/./XrdPosix/XrdPosixPrepIO.hh:78:13: note: by ‘virtual int XrdPosixPrepIO::Trunc(long long int)’
   78 | int Trunc(long long Offset)
      | ^ ~~~~
/usr/bin/ld: /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD-build/src/XrdCl/libXrdCl.so.3: undefined reference to `uuid_unparse'
/usr/bin/ld: /home/Shin101/ROOT/ROOT_BUILD/builtins/xrootd/XROOTD-prefix/src/XROOTD-build/src/XrdCl/libXrdCl.so.3: undefined reference to `uuid_generate'
collect2: error: ld returned 1 exit status
gmake[5]: *** [src/CMakeFiles/xrdadler32.dir/build.make:100: src/xrdadler32] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:370: src/CMakeFiles/xrdadler32.dir/all] Error 2
gmake[3]: *** [Makefile:136: all] Error 2

```

it is a 14506 line long log file

I tried it on different versions of root but gave same error.

Thank You

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [August 31, 2022, 8:21pm UTC](https://root-forum.cern.ch/t/root-build-error-from-source/51416/2 "2022-08-31T20:21:48Z")

</div>

Hi, welcome to the forum!

I found a similar problem in the past posts:

> [@Errors when building ROOT](https://root-forum.cern.ch/t/errors-when-building-root/35249):
>
> \_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: /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\_…

Do you have admin rights on your machine? You have `uuid-devel` installed? Are you having some custom `LD_LIBRARY_PATH` that doesn’t point to the right library?

If you are on some remote machine where you don’t have administrator rights, you should also get in touch with your system administrator, since this problem is more specific to your system than it is to ROOT.

---

<div class="post-metadata">

**Author:** ![Animesh\_Sah](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/animesh_sah/32/30752_2.png) [@Animesh\_Sah](https://root-forum.cern.ch/u/Animesh_Sah)\
**Post date:** [September 1, 2022, 9:49am UTC](https://root-forum.cern.ch/t/root-build-error-from-source/51416/3 "2022-09-01T09:49:30Z")

</div>

Hi , yes i have admin rights and i did install uuid-devel after seeing the post also i have no LD\_LIBRARY\_PATH in the.bashrc

Also i get the error right in the beginning at about 1%

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [September 1, 2022, 12:39pm UTC](https://root-forum.cern.ch/t/root-build-error-from-source/51416/4 "2022-09-01T12:39:09Z")

</div>

Okay, good that you are admin!

The next thing I would try is to install the `xrootd` package with `yum`, and then try to build ROOT with the builtin xrootd disabled (with the `-Dbuiltin_xrootd=OFF` configuration option):

> <https://github.com/root-project/root/blob/master/cmake/modules/RootBuildOptions.cmake#L109>

With some luck you don’t get the same error when building the rest of ROOT!

---

<div class="post-metadata">

**Author:** ![Animesh\_Sah](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/animesh_sah/32/30752_2.png) [@Animesh\_Sah](https://root-forum.cern.ch/u/Animesh_Sah)\
**Post date:** [September 1, 2022, 7:18pm UTC](https://root-forum.cern.ch/t/root-build-error-from-source/51416/5 "2022-09-01T19:18:51Z")

</div>

Hi , i tried turning all the variables with xrootd OFF but it still showed some error , but somehow on restarting the computer the all the errors were gone ROOT was installed successfully.

Thanks for your help!

---

<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 15, 2022, 7:19pm UTC](https://root-forum.cern.ch/t/root-build-error-from-source/51416/6 "2022-09-15T19:19:47Z")

</div>

Closed on September 15, 2022, 7:19pm UTC

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