zoglauer / megalib

MEGAlib - the Medium-Energy Gamma-ray Astronomy library
http://megalibtoolkit.com
Other
42 stars 34 forks source link

ROOT v6.14.08 fails to build on Ubuntu 18.04 #55

Closed LaHaine closed 4 years ago

LaHaine commented 4 years ago

I have tried building megalib in a Ubuntu 18.04 container with the command ./setup.sh . It failed like this:

[ 58%] Copying
/tmp/waschk/megalib/external/root_v6.14.08/root_v6.14.08-source/macros/Dialogs.C
[ 58%] Built target move_artifacts
-- LZMA build command succeeded.  See also
/tmp/waschk/megalib/external/root_v6.14.08/root_v6.14.08-build/LZMA-prefix/src/LZMA-stamp/LZMA-build-*.log
[ 58%] Performing install step for 'LZMA'
-- AFTERIMAGE build command succeeded.  See also
/tmp/waschk/megalib/external/root_v6.14.08/root_v6.14.08-build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-*.log
[ 58%] Performing install step for 'AFTERIMAGE'
-- AFTERIMAGE install command succeeded.  See also
/tmp/waschk/megalib/external/root_v6.14.08/root_v6.14.08-build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install-*.log
[ 58%] Completed 'AFTERIMAGE'
[ 58%] Built target AFTERIMAGE
-- LZMA install command succeeded.  See also
/tmp/waschk/megalib/external/root_v6.14.08/root_v6.14.08-build/LZMA-prefix/src/LZMA-stamp/LZMA-install-*.log
[ 58%] Completed 'LZMA'
[ 58%] Built target LZMA
make: *** [all] Error 2
Makefile:151: recipe for target 'all' failed
ERROR: Something went wrong while compiling ROOT!

ERROR: Something went wrong during the ROOT setup.

       Please take a look if you find the issue here (look at open and
closed issues):
       https://github.com/zoglauer/megalib/issues
       If not add your problem and write me an email!

The only error from config/configure_packages is about graphviz-dev which is now called libgraphviz-dev. RootBuildLog.txt

zoglauer commented 4 years ago

The build log does not show what goes wrong, it seems to just stop. Could you switch to the experimental branch and try again?

There is also a Dockerfile in the experimental branch which you could use.

LaHaine commented 4 years ago

With the experimental branch I get the same error from the ROOT build.

BTW I'm using a Singularity container, not Docker.

LaHaine commented 4 years ago

I have just tested, the version of root downloaded by megalib (v6.14.08) built just fine with the default options on Ubuntu 18.04.

zoglauer commented 4 years ago

Are you still using a container? Ubuntu 18.04 is my default development system and MEGAlib should installs without errors

LaHaine commented 4 years ago

Yes, that's in the very same container.

zoglauer commented 4 years ago

I have never tested that container. Can you let me know what you do to set it up, so that I can try and reproduce the problem?

LaHaine commented 4 years ago

Oh, it is a pretty generic singularity container of Ubuntu 18.04 with a lot of standard software installed. I'll try to bake a singularity recipe that could be used by you.

LaHaine commented 4 years ago

This creates a simple container with the command singularity build ubuntu.sif Singularity.txt Then execute the container with singularity shell ubuntu.sif and run the megalib build. Singularity.txt

zoglauer commented 4 years ago

I got it to run with this singularity definition file (I just added a few lines to yours): MEGAlib.txt

After you launch singularity do: git clone https://github.com/zoglauer/megalib.git MEGAlib cd MEGAlib/ git checkout experimental bash setup.sh --rel=dev --br=experimental

Then follow the final instructions on screen to setup your environment

LaHaine commented 4 years ago

I'll try that

LaHaine commented 4 years ago

OK, it built, thanks for your help.