Make: *** [bin/roots.exe] Error 1

I tried to compile Root -6.09.2 from the source.
Typing ./configure no error.
Typing make -j4 no error as it builds until 100%.
But after it finishes building, it generates error message:
==> lib/ done
==> lib/ done
g++ -m64 -O2 -DNDEBUG -Wl,–no-undefined -Wl,–as-needed -o bin/proofserv.exe main/src/pmain.o
-Llib -lCore -lm -ldl -pthread -rdynamic
g++ -shared -Wl,-soname, -m64 -O2 -DNDEBUG -Wl,–no-undefined -Wl,–as-needed -o lib/ core/rint/src/TRint.o core/rint/src/TTabCom.o core/rint/src/G__Rint.o -Llib -lCore -ldl
==> lib/ done
g++ -m64 -O2 -DNDEBUG -Wl,–no-undefined -Wl,–as-needed -o bin/roots.exe main/src/roots.o
-Llib -lCore -lm -ldl -pthread -rdynamic
==> lib/ done
g++ -m64 -O2 -DNDEBUG -Wl,–no-undefined -Wl,–as-needed -o bin/rootnb.exe main/src/nbmain.o
-Llib -lCore -lm -ldl -pthread -rdynamic
==> lib/ done
g++ -shared -Wl,-soname, -m64 -O2 -DNDEBUG -Wl,–no-undefined -Wl,–as-needed -o lib/ io/io/src/TArchiveFile.o io/io/src/TBufferFile.o io/io/src/TBufferJSON.o io/io/src/TCollectionProxyFactory.o io/io/src/TContainerConverters.o io/io/src/TDirectoryFile.o io/io/src/TEmulatedCollectionProxy.o io/io/src/TEmulatedMapProxy.o io/io/src/TFileCacheRead.o io/io/src/TFileCacheWrite.o io/io/src/TFile.o io/io/src/TFileMerger.o io/io/src/TFilePrefetch.o io/io/src/TFPBlock.o io/io/src/TFree.o io/io/src/TGenCollectionProxy.o io/io/src/TGenCollectionStreamer.o io/io/src/TKey.o io/io/src/TKeyMapFile.o io/io/src/TLockFile.o io/io/src/TMakeProject.o io/io/src/TMapFile.o io/io/src/TMemFile.o io/io/src/TStreamerInfoActions.o io/io/src/TStreamerInfo.o io/io/src/TStreamerInfoReadBuffer.o io/io/src/TStreamerInfoWriteBuffer.o io/io/src/TZIPFile.o io/io/src/G__RIO.o io/rootpcm/src/rootclingIO.o -Llib -lCore -ldl -Llib -lThread
/usr/bin/ld: warning:, needed by lib/, not found (try using -rpath or -rpath-/link)
usrlib//libCore.sobin:/ ldundefined: reference/warning :usrto/,pcre_freeld ':needed libwarningby/:, undefined,needed referencenot tofound (try using -rpath or-rpath-link)
lib/ :lib/, not found (try using -undefined reference rpathto orpcre_free-'rpath -liblink/) :lib / :reference undefinedto reference pcre_execto’
libpcre_free/' :lib / :reference undefinedto reference pcre_compileto’
libpcre_exec/' :lib / :reference undefinedto reference pcre_studyto’
pcre_compile' lib/ undefined reference topcre_studypcre_exec’
lib/ undefined reference to pcre_compile' lib/ undefined reference topcre_study’
collect2: error: ld returned 1 exit status
make: *** [bin/rootnb.exe] Error 1
make: collect2: error: ld returned 1 exit status
*** Waiting for unfinished jobs…
make: *** [bin/roots.exe] Error 1
collect2: error: ld returned 1 exit status
make: *** [bin/proofserv.exe] Error 1
==> lib/ done

I just copy the last part of the verbose since the texts are so long from the beginning.
Not sure what’s going on here?


I think it’d be better to move to a 6.10 release (6.9 was a devel release). In addition you should use CMake as ./configure/make is deprecated.


After downloading 6.10 root source, I did: cd build, then cmake …
then make -j4 inside build folder. It generates new error:
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveQuadSetGL.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveFrameBox.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveLine.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveQuadSet.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveVSD.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEvePathMark.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveViewer.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEvePointSet.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveArrowGL.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveTriangleSetGL.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveCalo3DGL.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveMacro.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveRGBAPaletteEditor.cxx.o
[100%] Building CXX object graf3d/eve/CMakeFiles/Eve.dir/src/TEveSceneInfo.cxx.o
[100%] Linking CXX shared library …/…/lib/
[100%] Built target Eve
make: *** [all] Error 2


it’s hard to say… Can you share a bit more info about the error? Could you perhaps build with -j1 and show the full text prompted by the error?


THX!! so make -j1 solves the issue. It seems that -j4 is too fast to install some dependencies

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