Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10701

Fail to compile root using gcc 10

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 6.20/04
    • None
    • None
    • None
    • Fedora 32
      GCC 10

    Description

      Hi,

      The compilation of Root on Fedora 32, with GCC 10 fails during the build of the TreePlayer target:

       ninja TreePlayer
       [1/36] Generating G__TreePlayer.cxx, ../../lib/TreePlayer.pcm
       FAILED: tree/treeplayer/G__TreePlayer.cxx lib/TreePlayer.pcm 
       cd /home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build/tree/treeplayer && /usr/bin/cmake -E env LD_LIBRARY_PATH=/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build/lib: ROOTIGNOREPREFIX=1 /home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build/bin/rootcling -rootbuild -v2 -f G__TreePlayer.cxx -cxxmodule -s /home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build/lib/libTreePlayer.so -m libGpad_rdict.pcm -m libGraf_rdict.pcm -m libGraf3d_rdict.pcm -m libHist_rdict.pcm -m libImt_rdict.pcm -m libMathCore_rdict.pcm -m libRIO_rdict.pcm -m libTree_rdict.pcm -excludePath /home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root -excludePath /home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build/etc/cling/ -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build/include -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/treeplayer/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/treeplayer -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/hist/hist/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/hist/hist -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/core/imt/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/math/mathcore/v7/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/math/mathcore/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/math/mathcore -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/tree/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/tree -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/treeplayer/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/treeplayer/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/package_build/include -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/treeplayer -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/graf2d/gpad/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/graf2d/graf/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/hist/hist/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/math/mathcore/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/core/imt/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/math/matrix/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/io/io/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/core/thread/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/graf3d/g3d/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/tree/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/net/net/inc -I/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/core/multiproc/inc -writeEmptyRootPCM ROOT/TTreeReaderFast.hxx ROOT/TTreeReaderValueFast.hxx TBranchProxyClassDescriptor.h TBranchProxyDescriptor.h TBranchProxyDirector.h TBranchProxy.h TChainIndex.h TFileDrawMap.h TFormLeafInfo.h TFormLeafInfoReference.h TFriendProxyDescriptor.h TFriendProxy.h TRefArrayProxy.h TRefProxy.h TSelectorDraw.h TSelectorEntries.h TSimpleAnalysis.h TTreeDrawArgsParser.h TTreeFormula.h TTreeFormulaManager.h TTreeGeneratorBase.h TTreeIndex.h TTreePerfStats.h TTreePlayer.h TTreeProxyGenerator.h TTreeReaderArray.h TTreeReaderGenerator.h TTreeReader.h TTreeReaderUtils.h TTreeReaderValue.h TTreeTableInterface.h TMPWorkerTree.h ROOT/TTreeProcessorMP.hxx ROOT/TTreeProcessorMT.hxx /home/pacaud/virgo/root/trunk/Linux-x86_64-FED30/build/root/tree/treeplayer/inc/LinkDef.h
       In module 'std' imported from input_line_1:1:
       /usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/unique_ptr.h:204:12: error: 'std::__uniq_ptr_data<ROOT::Experimental::TTaskGroup, std::default_delete<ROOT::Experimental::TTaskGroup>, true, true>' has different definitions in different modules; definition in module 'std.condition_variable' is here
       struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp>
       ^
       /usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/unique_ptr.h:204:12: note: definition in module 'std.condition_variable' is here
       Error: Error loading the #pragma extra_include.
       ninja: build stopped: subcommand failed.
       

      The compilation options are:

       -DCMAKE_PREFIX_PATH=/home/pacaud/virgo/FFTW/v3r3p81/Linux-x86_64-FED30 -DCMAKE_INSTALL_RPATH=/home/pacaud/virgo/FFTW/v3r3p81/Linux-x86_64-FED30/lib -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30 -Dopengl=OFF -Dkrb5=OFF -Dxrootd=OFF -Dcastor=OFF -Drpath=ON -Dfftw3=ON -DCMAKE_INSTALL_PREFIX=/home/pacaud/virgo/root/trunk/Linux-x86_64-FED30 -DFFTW_DIR=/home/pacaud/virgo/FFTW/v3r3p81/${tag} -DFFTW_INCLUDE_DIR=/home/pacaud/virgo/FFTW/v3r3p81/Linux-x86_64-FED30/include -DFFTW_LIBRARY=/home/pacaud/virgo/FFTW/v3r3p81/Linux-x86_64-FED30/lib/libfftw3.so
       

      Attachments

        Issue Links

          Activity

            People

              vvasilev Vassil Vasilev
              561078f72a4006484527 Emmanuel Pacaud (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: