Building ROOT on debian stretch

I am trying to build root 6-10-08 on Debian stretch
and use the following
cmake -D minuit2=ON -D builtin_gsl=ON -D builtin_xrootd=ON -D builtin_tbb=ON -D builtin_zlib=ON -D builtin_afterimage=ON

Everything is fine, it finds libjpeg at /usr/lib/x86_64-linux-gnu/

Then I do a

cmake --build . -- -j4

which then stops with

[ 87%] Linking CXX shared library ../../lib/
/usr/bin/ld: cannot find -l/usr/lib/x86_64-linux-gnu/
collect2: error: ld returned 1 exit status
graf2d/asimage/CMakeFiles/ASImage.dir/build.make:181: recipe for target 'lib/' failed
make[2]: *** [lib/] Error 1
CMakeFiles/Makefile2:20275: recipe for target 'graf2d/asimage/CMakeFiles/ASImage.dir/all' failed
make[1]: *** [graf2d/asimage/CMakeFiles/ASImage.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocDirective.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatMng.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatBacktrace.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatHelpers.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatHook.cxx.o
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocInfo.cxx.o
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocOutput.cxx.o
[ 87%] Linking CXX shared library ../../lib/
[ 87%] Built target MemStat
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocParser.cxx.o
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/THtml.cxx.o
[ 87%] Linking CXX shared library ../lib/
[ 87%] Built target Html
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

I verified that libjpeg is there:

ls -al /usr/lib/x86_64-linux-gnu/libjpeg*
-rw-r--r-- 1 root root 601294 Oct 20  2016 /usr/lib/x86_64-linux-gnu/libjpeg.a
lrwxrwxrwx 1 root root     17 Oct 20  2016 /usr/lib/x86_64-linux-gnu/ ->
lrwxrwxrwx 1 root root     17 Oct 20  2016 /usr/lib/x86_64-linux-gnu/ ->
-rw-r--r-- 1 root root 436224 Oct 20  2016 /usr/lib/x86_64-linux-gnu/

Any help would be great.
Thanks, andi

There is a JIRA issue for this problem; I guess it needs to be reopened. Let us know if the information there is not enough for you to work around the problem.

I will try.
Thanks, andi

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