ROOT 6.26.10 installation error: cannot find libvectorDict.so

Hello,
I am having an issue installing ROOT v6.26.10 on Linux Mint 21.1
The error is the same as described in the following older posts

at the very end the compilation complains about not being able to find the libvectorDict.so library

CMake Error at core/clingutils/cmake_install.cmake:56 (file):
  file INSTALL cannot find "/home/romain/rootdir/lib/libvectorDict.so": No
  such file or directory.
Call Stack (most recent call first):
  core/cmake_install.cmake:56 (include)
  cmake_install.cmake:88 (include)

while it says earlier in the compilation that

Scanning dependencies of target G__vectorDict
[ 82%] Building CXX object core/clingutils/CMakeFiles/G__vectorDict.dir/G__vectorDict.cxx.o
[ 82%] Built target G__vectorDict
[ 82%] Building CXX object core/clingutils/CMakeFiles/vectorDict.dir/dummy.cxx.o
[ 82%] Linking CXX shared library ../../lib/libvectorDict.so
[ 82%] Built target vectorDict
[ 82%] Generating G__listDict.cxx, ../../lib/liblistDict.rootmap
Scanning dependencies of target G__listDict
[ 82%] Building CXX object core/clingutils/CMakeFiles/G__listDict.dir/G__listDict.cxx.o
[ 82%] Built target G__listDict
[ 82%] Building CXX object core/clingutils/CMakeFiles/listDict.dir/dummy.cxx.o
[ 82%] Linking CXX shared library ../../lib/liblistDict.so
[ 82%] Built target listDict
[ 82%] Generating G__forward_listDict.cxx, ../../lib/libforward_listDict.rootmap

I was wondering if any solution has been found since then ?
I try to install ROOT in my home directory by doing (code contained in rootsource and installation in rootdir directory)

cmake -DCMAKE_INSTALL_PREFIX=../rootdir -DPython3_EXECUTABLE=/usr/bin/python3 -DPython2_EXECUTABLE=/usr/bin/python2 ../rootsource 
cmake --build . --target install

but somehow it cannot be found in the ~/rootdir/lib/ directory
but I can see the libvectorDict.rootmap file in that directory.

If I do

cmake --build . -- vectorDict

then libvectorDict.so is indeed created in the ~/rootdir/lib/ directory
But then if just after I execute

cmake --build . --target install

The file is deleted again and the compilation fails

Many thanks in advance for your help,
Romain


ROOT Version: 6.26.10
Platform: Linux Mint 21.1
Compiler: Not Provided___

Hi @rbouquet,

Thanks for raising this. It’s actually the first time I see this, and never had a similar problem, but it does indeed look like a (weird) issue in the build system.

Maybe @bellenot knows / it rings a bell to him / can handle that.

Cheers,
J.

Hi @jalopezg,
Many thanks for tagging the relevant persons.
One comment also for instance in the ~/rootdir/lib/ directory
I can find the liblistDict.so library.
Both the vectorLinkdef.h and listLinkdef.h file being in the ~/rootsource/core/clingutils/src/
So maybe this is something only affecting the vector library for some weird reason

I did not check for all files, but
If you need that info I can check for all linkdef in the ~/rootsource/core/clingutils/src/ and see if I find the corresponding shared library in the ~/rootdir/lib/ installation directory

Can you try with the version 6.28, to see if it works better?

Hi @bellenot,
Yes sure I am going to try but it seems the error was also there for other versions
Here it tested for 6.24.10 but according to the previous posts

Yes, I know, but since this was already investigated some time ago apparently without success, and we don’t see this issue in our own builds, I would like to make sure the problem is still there in the master branch (or at least in 6.28)

@bellenot sure no problem I understand your point let me try and see :slight_smile:
(It’s going to take me a bit of time because the error is occurring only at the very end once everything has been compiled)

1 Like

Hi again @bellenot, @jalopezg,

So I did the installation of the 6.28.00 and also the error is there.
But I have more information to share :slight_smile: !
I hope this could help you spot where the issue is

So indeed the library rootdir/lib/libvectorDict.so is properly created but there is an issue at the end of the compilation.

For that installation, I had open another terminal alongside the one doing doing the installation and while the code was compiled I was doing a ls to check if the file was found or no

while true ; do ls ~/rootdir/lib/libvectorDict.so ; sleep 1 ; done 

I can confirm, the libvectorDict.so library is created as expected and is remaining there until all the code has been compiled.
However it is deleted somehow I don’t know why at the very end
I confirm that until the last 100% is printed the file was there but then it was deleted at some point (I could not spot with my eyes when because the following lines got printed too quickly) when the -- Install* lines are printed

[100%] Built target onepcm
[100%] Generating lib/modules.idx

[100%] Built target modules_idx
[100%] Generating tutorials/hsimple.root

Processing hsimple.C...
hsimple   : Real Time =   0.07 seconds Cpu Time =   0.06 seconds
(TFile *) 0x556bf3496520
[100%] Built target hsimple
Install the project...
-- Install configuration: "Release"
-- Installing: /home/romain/rootdir/include/nlohmann/json.hpp
-- Installing: /home/romain/rootdir/include/nlohmann/json_fwd.hpp
-- Up-to-date: /home/romain/rootdir/lib
-- Installing: /home/romain/rootdir/lib/libXrdHttpUtils.so
-- Installing: /home/romain/rootdir/lib/libXrdUtils.so.3
-- Installing: /home/romain/rootdir/lib/libXrdPosixPreload.so.2
-- Installing: /home/romain/rootdir/lib/libXrdPosixPreload.so.2.0.0
-- Installing: /home/romain/rootdir/lib/libXrdSsiShMap.so
-- Installing: /home/romain/rootdir/lib/libXrdClRecorder-5.so
-- Installing: /home/romain/rootdir/lib/libXrdPosixPreload.so
-- Installing: /home/romain/rootdir/lib/libXrdXml.so.3
-- Installing: /home/romain/rootdir/lib/libXrdServer.so.3.0.0
-- Installing: /home/romain/rootdir/lib/libXrdAppUtils.so.2.0.0
-- Installing: /home/romain/rootdir/lib/libXrdSsiLib.so.2
-- Installing: /home/romain/rootdir/lib/libXrdCryptossl-5.so
-- Installing: /home/romain/rootdir/lib/libXrdCryptoLite.so
-- Installing: /home/romain/rootdir/lib/libXrdSecsss-5.so
-- Installing: /home/romain/rootdir/lib/libXrdOssSIgpfsT-5.so
-- Installing: /home/romain/rootdir/lib/libXrdSecgsi-5.so
-- Installing: /home/romain/rootdir/lib/libXrdSec-5.so
-- Installing: /home/romain/rootdir/lib/libXrdServer.so.3
-- Installing: /home/romain/rootdir/lib/libXrdCmsRedirectLocal-5.so
-- Installing: /home/romain/rootdir/lib/libXrdOssCsi-5.so
-- Installing: /home/romain/rootdir/lib/libXrdCryptoLite.so.2
-- Installing: /home/romain/rootdir/lib/libXrdSsiShMap.so.2.0.0
-- Installing: /home/romain/rootdir/lib/libXrdAppUtils.so
-- Installing: /home/romain/rootdir/lib/libXrdSecProt-5.so
-- Installing: /home/romain/rootdir/lib/libXrdCrypto.so
-- Installing: /home/romain/rootdir/lib/libXrdFfs.so.3.0.0
-- Installing: /home/romain/rootdir/lib/libXrdXrootd-5.so
-- Installing: /home/romain/rootdir/lib/libXrdSsiLog-5.so
-- Installing: /home/romain/rootdir/lib/libXrdCl.so.3
-- Installing: /home/romain/rootdir/lib/libXrdSsi-5.so
-- Installing: /home/romain/rootdir/lib/libXrdSecunix-5.so
-- Installing: /home/romain/rootdir/lib/libXrdSsiLib.so
-- Installing: /home/romain/rootdir/lib/libXrdCl.so
-- Installing: /home/romain/rootdir/lib/libXrdServer.so
-- Installing: /home/romain/rootdir/lib/libXrdFileCache-5.so
-- Installing: /home/romain/rootdir/lib/libXrdUtils.so.3.0.0
-- Installing: /home/romain/rootdir/lib/libXrdSsiShMap.so.2
-- Installing: /home/romain/rootdir/lib/libXrdFfs.so.3
-- Installing: /home/romain/rootdir/lib/libXrdCrypto.so.2
-- Installing: /home/romain/rootdir/lib/libXrdBlacklistDecision-5.so
-- Installing: /home/romain/rootdir/lib/libXrdN2No2p-5.so
-- Installing: /home/romain/rootdir/lib/libXrdSsiLib.so.2.0.0
-- Installing: /home/romain/rootdir/lib/libXrdPss-5.so
-- Installing: /home/romain/rootdir/lib/libXrdSecgsiAUTHZVO-5.so
-- Installing: /home/romain/rootdir/lib/libXrdPosix.so.3
-- Installing: /home/romain/rootdir/lib/libXrdClProxyPlugin-5.so
-- Installing: /home/romain/rootdir/lib/libXrdHttp-5.so
-- Installing: /home/romain/rootdir/lib/libXrdPosix.so
-- Installing: /home/romain/rootdir/lib/libXrdCksCalczcrc32-5.so
-- Installing: /home/romain/rootdir/lib/libXrdOfsPrepGPI-5.so
-- Installing: /home/romain/rootdir/lib/libXrdAppUtils.so.2
-- Installing: /home/romain/rootdir/lib/libXrdSecpwd-5.so
-- Installing: /home/romain/rootdir/lib/libXrdCl.so.3.0.0
-- Installing: /home/romain/rootdir/lib/libXrdPosix.so.3.0.0
-- Installing: /home/romain/rootdir/lib/libXrdPfc-5.so
-- Installing: /home/romain/rootdir/lib/libXrdXml.so
-- Installing: /home/romain/rootdir/lib/libXrdFfs.so
-- Installing: /home/romain/rootdir/lib/libXrdThrottle-5.so
-- Installing: /home/romain/rootdir/lib/libXrdCrypto.so.2.0.0
-- Installing: /home/romain/rootdir/lib/libXrdHttpUtils.so.2.0.0
-- Installing: /home/romain/rootdir/lib/libXrdSecgsiGMAPDN-5.so
-- Installing: /home/romain/rootdir/lib/libXrdUtils.so
-- Installing: /home/romain/rootdir/lib/libXrdSeckrb5-5.so
-- Installing: /home/romain/rootdir/lib/libXrdBwm-5.so
-- Installing: /home/romain/rootdir/lib/libXrdHttpUtils.so.2
-- Installing: /home/romain/rootdir/lib/libXrdCryptoLite.so.2.0.0
-- Installing: /home/romain/rootdir/lib/libXrdXml.so.3.0.0
-- Up-to-date: /home/romain/rootdir/include
-- Installing: /home/romain/rootdir/include/XProtocol
-- Installing: /home/romain/rootdir/include/XProtocol/XProtocol.hh
-- Installing: /home/romain/rootdir/include/XProtocol/XPtypes.hh
-- Installing: /home/romain/rootdir/include/XrdCms
-- Installing: /home/romain/rootdir/include/XrdCms/XrdCmsPerfMon.hh
-- Installing: /home/romain/rootdir/include/XrdCms/XrdCmsClient.hh
-- Installing: /home/romain/rootdir/include/XrdCms/XrdCmsVnId.hh
-- Installing: /home/romain/rootdir/include/XrdHttp
-- Installing: /home/romain/rootdir/include/XrdHttp/XrdHttpSecXtractor.hh
-- Installing: /home/romain/rootdir/include/XrdSec
-- Installing: /home/romain/rootdir/include/XrdSec/XrdSecInterface.hh
-- Installing: /home/romain/rootdir/include/XrdSec/XrdSecEntityPin.hh
-- Installing: /home/romain/rootdir/include/XrdSec/XrdSecAttr.hh
-- Installing: /home/romain/rootdir/include/XrdSec/XrdSecEntity.hh
-- Installing: /home/romain/rootdir/include/XrdSec/XrdSecEntityAttr.hh
-- Installing: /home/romain/rootdir/include/XrdVersion.hh
-- Installing: /home/romain/rootdir/include/XrdNet
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetCmsNotify.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNet.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetAddr.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetSocket.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetUtils.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetConnect.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetSockAddr.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetOpts.hh
-- Installing: /home/romain/rootdir/include/XrdNet/XrdNetAddrInfo.hh
-- Installing: /home/romain/rootdir/include/XrdPfc
-- Installing: /home/romain/rootdir/include/XrdPfc/XrdPfcDecision.hh
-- Installing: /home/romain/rootdir/include/XrdOfs
-- Installing: /home/romain/rootdir/include/XrdOfs/XrdOfsPrepare.hh
-- Installing: /home/romain/rootdir/include/XrdOfs/XrdOfsFSctl_PI.hh
-- Installing: /home/romain/rootdir/include/XrdAcc
-- Installing: /home/romain/rootdir/include/XrdAcc/XrdAccAuthorize.hh
-- Installing: /home/romain/rootdir/include/XrdAcc/XrdAccPrivs.hh
-- Installing: /home/romain/rootdir/include/XrdPosix
-- Installing: /home/romain/rootdir/include/XrdPosix/XrdPosixExtern.hh
-- Installing: /home/romain/rootdir/include/XrdPosix/XrdPosixCache.hh
-- Installing: /home/romain/rootdir/include/XrdPosix/XrdPosixCallBack.hh
-- Installing: /home/romain/rootdir/include/XrdPosix/XrdPosixXrootd.hh
-- Installing: /home/romain/rootdir/include/XrdPosix/XrdPosixXrootdPath.hh
-- Installing: /home/romain/rootdir/include/XrdPosix/XrdPosixOsDep.hh
-- Installing: /home/romain/rootdir/include/XrdPosix/XrdPosix.hh
-- Installing: /home/romain/rootdir/include/XrdSfs
-- Installing: /home/romain/rootdir/include/XrdSfs/XrdSfsAio.hh
-- Installing: /home/romain/rootdir/include/XrdSfs/XrdSfsFlags.hh
-- Installing: /home/romain/rootdir/include/XrdSfs/XrdSfsXio.hh
-- Installing: /home/romain/rootdir/include/XrdSfs/XrdSfsGPFile.hh
-- Installing: /home/romain/rootdir/include/XrdSfs/XrdSfsInterface.hh
-- Installing: /home/romain/rootdir/include/XrdSfs/XrdSfsDio.hh
-- Installing: /home/romain/rootdir/include/XrdXml
-- Installing: /home/romain/rootdir/include/XrdXml/XrdXmlReader.hh
-- Installing: /home/romain/rootdir/include/XrdOuc
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucPinPath.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucTable.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucIOVec.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucLock.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucTList.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucGMap.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucTokenizer.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucCallBack.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucStream.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucSFVec.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucDLlist.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucPinObject.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucHash.icc
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucCacheCM.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucString.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucName2Name.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucEnv.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucTrace.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucHash.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucEnum.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucCRC.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucErrInfo.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucRash.icc
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucBuffer.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOuca2x.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucRash.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucUtils.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucCompiler.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucChain.hh
-- Installing: /home/romain/rootdir/include/XrdOuc/XrdOucCacheStats.hh
-- Installing: /home/romain/rootdir/include/private
-- Installing: /home/romain/rootdir/include/private/XrdZip
-- Installing: /home/romain/rootdir/include/private/XrdZip/XrdZipCDFH.hh
-- Installing: /home/romain/rootdir/include/private/XrdZip/XrdZipZIP64EOCDL.hh
-- Installing: /home/romain/rootdir/include/private/XrdZip/XrdZipExtra.hh
-- Installing: /home/romain/rootdir/include/private/XrdZip/XrdZipLFH.hh
-- Installing: /home/romain/rootdir/include/private/XrdZip/XrdZipZIP64EOCD.hh
-- Installing: /home/romain/rootdir/include/private/XrdZip/XrdZipEOCD.hh
-- Installing: /home/romain/rootdir/include/private/XrdZip/XrdZipUtils.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiProvider.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiAtomics.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiResponder.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiEntity.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiCluster.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiRespInfo.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiResource.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiErrInfo.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiStream.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiRequest.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiService.hh
-- Installing: /home/romain/rootdir/include/private/XrdSsi/XrdSsiLogger.hh
-- Installing: /home/romain/rootdir/include/private/XrdVoms
-- Installing: /home/romain/rootdir/include/private/XrdVoms/XrdVoms.hh
-- Installing: /home/romain/rootdir/include/private/XrdHttp
-- Installing: /home/romain/rootdir/include/private/XrdHttp/XrdHttpExtHandler.hh
-- Installing: /home/romain/rootdir/include/private/XrdNet
-- Installing: /home/romain/rootdir/include/private/XrdNet/XrdNetBuffer.hh
-- Installing: /home/romain/rootdir/include/private/XrdNet/XrdNetIF.hh
-- Installing: /home/romain/rootdir/include/private/XrdNet/XrdNetPeer.hh
-- Installing: /home/romain/rootdir/include/private/XrdSut
-- Installing: /home/romain/rootdir/include/private/XrdSut/XrdSutAux.hh
-- Installing: /home/romain/rootdir/include/private/XrdSut/XrdSutBucket.hh
-- Installing: /home/romain/rootdir/include/private/XrdOfs
-- Installing: /home/romain/rootdir/include/private/XrdOfs/XrdOfsHandle.hh
-- Installing: /home/romain/rootdir/include/private/XrdOfs/XrdOfsEvr.hh
-- Installing: /home/romain/rootdir/include/private/XrdOfs/XrdOfs.hh
-- Installing: /home/romain/rootdir/include/private/XrdOfs/XrdOfsTrace.hh
-- Installing: /home/romain/rootdir/include/private/XrdOfs/XrdOfsTPCInfo.hh
-- Installing: /home/romain/rootdir/include/private/XrdPosix
-- Installing: /home/romain/rootdir/include/private/XrdPosix/XrdPosixMap.hh
-- Installing: /home/romain/rootdir/include/private/XrdOuc
-- Installing: /home/romain/rootdir/include/private/XrdOuc/XrdOucPgrwUtils.hh
-- Installing: /home/romain/rootdir/include/private/XrdOuc/XrdOucGatherConf.hh
-- Installing: /home/romain/rootdir/include/private/XrdOuc/XrdOucPList.hh
-- Installing: /home/romain/rootdir/include/private/XrdOuc/XrdOucN2NLoader.hh
-- Installing: /home/romain/rootdir/include/private/XrdOuc/XrdOucExport.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptoAux.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptosslgsiAux.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptoX509Chain.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptoRSA.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptoX509.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptoX509Req.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptosslAux.hh
-- Installing: /home/romain/rootdir/include/private/XrdCrypto/XrdCryptoX509Crl.hh
-- Installing: /home/romain/rootdir/include/private/Xrd
-- Installing: /home/romain/rootdir/include/private/Xrd/XrdPoll.hh
-- Installing: /home/romain/rootdir/include/private/XrdSys
-- Installing: /home/romain/rootdir/include/private/XrdSys/XrdSysPriv.hh
-- Installing: /home/romain/rootdir/include/private/XrdSys/XrdSysTrace.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClOperations.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClFileOperations.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClOperationHandlers.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClPostMaster.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClPostMasterInterfaces.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClCtx.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClZipOperations.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClTransportManager.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClFileSystemOperations.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClFwd.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClMessage.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClZipArchive.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClArg.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClResponseJob.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClZipCache.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClParallelOperation.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClFinalOperation.hh
-- Installing: /home/romain/rootdir/include/private/XrdCl/XrdClOperationTimeout.hh
-- Installing: /home/romain/rootdir/include/private/XrdSecsss
-- Installing: /home/romain/rootdir/include/private/XrdSecsss/XrdSecsssID.hh
-- Installing: /home/romain/rootdir/include/private/XrdOss
-- Installing: /home/romain/rootdir/include/private/XrdOss/XrdOssError.hh
-- Installing: /home/romain/rootdir/include/private/XrdOss/XrdOssApi.hh
-- Installing: /home/romain/rootdir/include/private/XrdOss/XrdOssConfig.hh
-- Installing: /home/romain/rootdir/include/Xrd
-- Installing: /home/romain/rootdir/include/Xrd/XrdTcpMonPin.hh
-- Installing: /home/romain/rootdir/include/Xrd/XrdBuffer.hh
-- Installing: /home/romain/rootdir/include/Xrd/XrdLinkMatch.hh
-- Installing: /home/romain/rootdir/include/Xrd/XrdJob.hh
-- Installing: /home/romain/rootdir/include/Xrd/XrdProtocol.hh
-- Installing: /home/romain/rootdir/include/Xrd/XrdLink.hh
-- Installing: /home/romain/rootdir/include/Xrd/XrdScheduler.hh
-- Installing: /home/romain/rootdir/include/XrdXrootd
-- Installing: /home/romain/rootdir/include/XrdXrootd/XrdXrootdMonData.hh
-- Installing: /home/romain/rootdir/include/XrdXrootd/XrdXrootdGStream.hh
-- Installing: /home/romain/rootdir/include/XrdXrootd/XrdXrootdBridge.hh
-- Installing: /home/romain/rootdir/include/XrdSys
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysXAttr.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysLogPI.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysLogger.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysSemWait.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysPthread.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysTimer.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysPageSize.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysAtomics.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysFD.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysXSLock.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysPlatform.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysHeaders.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysPlugin.hh
-- Installing: /home/romain/rootdir/include/XrdSys/XrdSysError.hh
-- Installing: /home/romain/rootdir/include/XrdCl
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClCopyProcess.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClURL.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClAnyObject.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClStatus.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClXRootDResponses.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClLog.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClMonitor.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClOptional.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClPlugInManager.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClBuffer.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClFileSystemUtils.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClDefaultEnv.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClPlugInInterface.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClFile.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClFileSystem.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClEnv.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClConstants.hh
-- Installing: /home/romain/rootdir/include/XrdCl/XrdClPropertyList.hh
-- Installing: /home/romain/rootdir/include/XrdOss
-- Installing: /home/romain/rootdir/include/XrdOss/XrdOssDefaultSS.hh
-- Installing: /home/romain/rootdir/include/XrdOss/XrdOssStatInfo.hh
-- Installing: /home/romain/rootdir/include/XrdOss/XrdOss.hh
-- Installing: /home/romain/rootdir/include/XrdOss/XrdOssWrapper.hh
-- Installing: /home/romain/rootdir/include/XrdOss/XrdOssVS.hh
-- Installing: /home/romain/rootdir/include/XrdCks
-- Installing: /home/romain/rootdir/include/XrdCks/XrdCksManager.hh
-- Installing: /home/romain/rootdir/include/XrdCks/XrdCks.hh
-- Installing: /home/romain/rootdir/include/XrdCks/XrdCksCalc.hh
-- Installing: /home/romain/rootdir/include/XrdCks/XrdCksWrapper.hh
-- Installing: /home/romain/rootdir/include/XrdCks/XrdCksData.hh
-- Installing: /home/romain/rootdir/include/XrdCks/XrdCksAssist.hh
-- Installing: /home/romain/rootdir/include/RGitCommit.h
-- Up-to-date: /home/romain/rootdir/include
-- Installing: /home/romain/rootdir/include/snprintf.h
-- Installing: /home/romain/rootdir/include/strtok.h
-- Installing: /home/romain/rootdir/include/strlcpy.h
-- Up-to-date: /home/romain/rootdir/include
-- Installing: /home/romain/rootdir/include/root_std_complex.h
CMake Error at core/clingutils/cmake_install.cmake:56 (file):
  file INSTALL cannot find "/home/romain/rootdir/lib/libvectorDict.so": No
  such file or directory.
Call Stack (most recent call first):
  core/cmake_install.cmake:56 (include)
  cmake_install.cmake:92 (include)

OK, thanks for trying and thanks for the information. I’ll set-up a VM and try to investigate asap (I’m working on Windows…)

cmake --version
make --version # assuming that "make" is used
ninja --version # assuming that "ninja" is used

BTW. It seems that Linux Mint 21 is based on Ubuntu 22.04, so it should behave well.

@Wile_E_Coyote here is the full details

cmake -DCMAKE_INSTALL_PREFIX=../rootdir -DPython3_EXECUTABLE=/usr/bin/python3 -DPython2_EXECUTABLE=/usr/bin/python2 ../rootsource 
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- Checking internet connectivity
-- Checking internet connectivity - found
-- Looking for Python
-- Found Python3: /usr/bin/python3 (found version "3.10.6") found components: Interpreter Development NumPy Development.Module Development.Embed 
-- Found Python2: /usr/bin/python2 (found version "2.7.18") found components: Interpreter Development NumPy Development.Module Development.Embed 
-- Found GCC. Major version 11, minor version 3
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Success
-- ROOT Platform: linux
-- ROOT Compiler: GNU 11.3.0
-- ROOT Processor: x86_64
-- ROOT Architecture: linuxx8664gcc
-- Build Type: 'Release' (flags = '-O3 -DNDEBUG')
-- Compiler Flags:  -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG
-- ROOT default compression algorithm: zlib
CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:428 (message):
  >>> Option 'gfal' is deprecated and will be removed in the next release of
  ROOT.  Please contact root-dev@cern.ch should you still need it.
Call Stack (most recent call first):
  CMakeLists.txt:166 (include)


-- PyROOT will be built for versions 3.10.6 (Main) and 2.7.18
-- Looking for ZLib
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Looking for nlohmann/json.hpp
-- nlohmann/json.hpp not found. Switching on builtin_nlohmannjson option
-- Looking for Freetype
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.11.1") 
-- Looking for PCRE
-- Found PCRE: /usr/include (found version "8.39") 
-- Looking for LZMA
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_INCLUDE_DIR LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) 
-- LZMA not found. Switching on builtin_lzma option
-- Building LZMA version 5.2.4 included in ROOT itself
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR) 
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for ZSTD
-- Found ZSTD: /usr/lib/x86_64-linux-gnu/libzstd.so  
-- Looking for LZ4
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR) 
-- LZ4 not found. Switching on builtin_lz4 option
-- Looking for X11
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- X11_INCLUDE_DIR: /usr/include
-- X11_LIBRARIES: /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- X11_Xpm_INCLUDE_PATH: /usr/include
-- X11_Xpm_LIB: /usr/lib/x86_64-linux-gnu/libXpm.so
-- X11_Xft_INCLUDE_PATH: /usr/include
-- X11_Xft_LIB: /usr/lib/x86_64-linux-gnu/libXft.so
-- X11_Xext_INCLUDE_PATH: /usr/include
-- X11_Xext_LIB: /usr/lib/x86_64-linux-gnu/libXext.so
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.37") 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Looking for AfterImage
-- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES) 
-- AfterImage not found. Switching on builtin_afterimage option
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Found GSL: /usr/include (found suitable version "2.7.1", minimum required is "1.10") 
-- Looking for OpenGL
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so   
-- Looking for GLEW
-- Found GLEW: /usr/include (found version "2.2.0") 
-- Looking for gl2ps
-- Could NOT find gl2ps (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR) 
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for LibXml2
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.13") 
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.2")  
-- Looking for MySQL
-- Found MySQL: /usr/include/mysql  
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
--    currently found includes: 
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
--    currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
-- Oracle not found. Switching off oracle option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR) 
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Could NOT find Sqlite (missing: SQLITE_INCLUDE_DIR SQLITE_LIBRARIES) 
-- SQLite not found. Switching off sqlite option
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for Pythia8
-- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY) 
-- Pythia8 not found. Switching off pythia8 option
-- Looking for FFTW3
-- Found fftw3 includes at /usr/include
-- Found fftw3 library at /usr/lib/x86_64-linux-gnu/libfftw3.so
-- Looking for CFITSIO
-- Found CFITSIO: /usr/lib/x86_64-linux-gnu/libcfitsio.so (found version "4.0") 
-- Looking for XROOTD
-- XROOTD not found, enabling 'builtin_xrootd' option
-- Downloading and building XROOTD version 5.5.1
-- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY) 
-- GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
                      and the variable SRM_IFCE_DIR to the srm_ifce installation
-- For the time being switching OFF 'gfal' option
-- Found FTGL: /usr/include  
-- Checking for module 'davix>=0.6.4'
--   No package 'davix' found
-- Looking for uuid_generate_random in uuid
-- Looking for uuid_generate_random in uuid - found
-- Found libuuid: /usr/include  
-- Davix dependencies not found, switching OFF 'davix' option.
-- Looking for TBB
-- Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR TBB_LIBRARY) (Required is at least version "2018")
-- TBB not found, enabling 'builtin_tbb' option
-- Performing Test CXX_HAS_mno_rtm
-- Performing Test CXX_HAS_mno_rtm - Success
-- Looking for VDT
-- Could NOT find Vdt (missing: VDT_INCLUDE_DIR VDT_LIBRARY) (Required is at least version "0.4")
-- VDT not found. Ensure that the installation of VDT is in the CMAKE_PREFIX_PATH
--                Switching ON 'builtin_vdt' option
-- Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
-- Looking for BLAS for optional parts of TMVA
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Could NOT find BLAS (missing: BLAS_LIBRARIES) 
-- Using GSL CBLAS for optional parts of TMVA
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Building LLVM in 'Release' mode.
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Found Python module yaml
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.6", minimum required is "3.0") found components: Interpreter 
-- Linker detection: GNU ld
-- Targeting X86
-- Targeting NVPTX
-- Clang version: 13.0.0
-- Not building amdgpu-arch: hsa-runtime64 not found
-- Cling version (from VERSION file): ROOT_1.0~dev
-- Cling will look for C++ headers in '/usr/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11:/usr/include/c++/11/backward' at runtime.
-- And then fallback to: 'x86_64-linux-gnu-g++-11'
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- Performing Test C_HAS_Wno_strict_overflow
-- Performing Test C_HAS_Wno_strict_overflow - Success
-- Performing Test C_HAS_Wno_maybe_uninitialized
-- Performing Test C_HAS_Wno_maybe_uninitialized - Success
-- Performing Test C_HAS_Wno_parentheses_equality
-- Performing Test C_HAS_Wno_parentheses_equality - Success
-- Looking for m
-- Looking for m - not found
-- Use SSL API VERSION 3.0 for civetweb
-- Performing Test GCC_HAS_BIDI_CHARS_FLAG
-- Performing Test GCC_HAS_BIDI_CHARS_FLAG - Failed
-- Distributed RDataFrame enabled
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Success
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Success
-- Performing Test found_stod_stringview
-- Performing Test found_stod_stringview - Failed
-- Performing Test found_opplusequal_stringview
-- Performing Test found_opplusequal_stringview - Success
-- Performing Test found_stdapply
-- Performing Test found_stdapply - Success
-- Performing Test found_stdinvoke
-- Performing Test found_stdinvoke - Success
-- Performing Test found_stdindexsequence
-- Performing Test found_stdindexsequence - Success
-- Performing Test found_attribute_always_inline
-- Performing Test found_attribute_always_inline - Success
-- Performing Test has_found_attribute_noinline
-- Performing Test has_found_attribute_noinline - Success
-- Performing Test found_hardware_interference_size
-- Performing Test found_hardware_interference_size - Failed
Running /home/romain/rootsource/build/unix/compiledata.sh
Making /home/romain/rootdir/ginclude/compiledata.h
-- ROOT Configuration 

System          Linux-5.15.0-67-generic
Processor       2 core Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz (x86_64)
Build type      Release
Install path    /home/romain/rootdir
Compiler        GNU 11.3.0
Compiler flags:
C                -Wno-implicit-fallthrough -pipe -Wall -W -pthread -O3 -DNDEBUG
C++              -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG
Linker flags:
Executable       -rdynamic
Module          
Shared           -Wl,--no-undefined -Wl,--hash-style="both"

-- Enabled support for:  asimage builtin_afterimage builtin_clang builtin_cling builtin_gl2ps builtin_gtest builtin_llvm builtin_lz4 builtin_lzma builtin_nlohmannjson builtin_openui5 builtin_tbb builtin_vdt builtin_xrootd builtin_xxhash clad dataframe exceptions fftw3 fitsio gdml http imt mathmore mlp minuit2 mysql opengl pyroot roofit webgui root7 rpath runtime_cxxmodules shared ssl tmva tmva-cpu tmva-pymva spectrum vdt x11 xml xrootd
-- Configuring done
-- Generating done
-- Build files have been written to: /home/romain/rootdir

I am using cmake only
I do

cmake -DCMAKE_INSTALL_PREFIX=../rootdir -DPython3_EXECUTABLE=/usr/bin/python3 -DPython2_EXECUTABLE=/usr/bin/python2 ../rootsource 
cmake --build . --target install

the cmake version

cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Thanks a lot @bellenot, I am also trying to understand I keep you posted if I find something else

1 Like

I guess “cmake” creates all required makefiles (or build.ninja files) and then executes “make” (or “ninja”), which builds the project.

@Wile_E_Coyote alright so I do not have ninja installed.
The make --version gives me this

GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Can it be that you “build” ROOT in the same directory into which you try to “install” it (i.e., “rootdir”)?

@Wile_E_Coyote… yes

In the past this was working (I haven’t installed root since a long time though so I may misremember) but it seems from your answer it’s not the case anymore.

You can “build” and use it in place, but do NOT try to “install” it (the “source”, “build”, and “install” directories should be separate).

2 Likes

@Wile_E_Coyote thanks a lot ! Apologies :frowning:
I was not aware of that and since the error was only appearing at the end I thought it was a flag or something that was not working
I am going to try it and will let you know if it works (finger crossed)

I was following those instructions

Maybe this could be updated to avoid other people having trouble to have a stronger statement about having 3 separate directories
It seems obvious to me now but I had not realized it when reading ^^"
Apologies again