JanaLipkova / GliomaSolver

Solver for simulating tumor growth and mass effect in patient brain anatomy
Other
23 stars 11 forks source link

Code compilation error during installation #4

Open mynanshan opened 8 months ago

mynanshan commented 8 months ago

Hi, thanks for this amazing software.

While the pre-compiled executables work well for me, the compilation from source failed on my PC. It seems to me that there is a discrepancy between the cpp and some lib versions.

gcc version:

$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Error messages I got after make -j 4 as instructed in Getting Started :

/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h: In constructor ‘tbb::internal::tbb_exception_ptr::tbb_exception_ptr(const tbb::captured_exception&)’:
/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h:357:71: error: ‘copy_exception’ is not a member of ‘std’; did you mean ‘bad_exception’?
  357 |     tbb_exception_ptr ( const captured_exception& src ) : my_ptr(std::copy_exception(src)) {}
      |                                                                       ^~~~~~~~~~~~~~
      |                                                                       bad_exception
In file included from /GliomaSolver/lib/tbb40_20120613oss/include/tbb/parallel_for.h:36,
                 from ../Glioma/../MRAG/MRAGcore/MRAGrid.inl:11,
                 from ../Glioma/../MRAG/MRAGcore/MRAGrid.h:189,
                 from ../Glioma/../MRAG/MRAGHeaders.h:39,
                 from ../Glioma/Glioma.h:11,
                 from ../Glioma/Glioma_Types.h:12,
                 from ../Glioma/Glioma_ReactionDiffusion.h:13,
                 from ../Glioma/Glioma_ReactionDiffusion.cpp:9:
/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h: In constructor ‘tbb::internal::tbb_exception_ptr::tbb_exception_ptr(const tbb::captured_exception&)’:
/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h:357:71: error: ‘copy_exception’ is not a member of ‘std’; did you mean ‘bad_exception’?
  357 |     tbb_exception_ptr ( const captured_exception& src ) : my_ptr(std::copy_exception(src)) {}
      |                                                                       ^~~~~~~~~~~~~~
      |                                                                       bad_exception
In file included from /GliomaSolver/lib/tbb40_20120613oss/include/tbb/parallel_for.h:36,
                 from ../Glioma/../MRAG/MRAGcore/MRAGrid.inl:11,
                 from ../Glioma/../MRAG/MRAGcore/MRAGrid.h:189,
                 from ../Glioma/../MRAG/MRAGHeaders.h:39,
                 from ../Glioma/Glioma.h:11,
                 from ../Glioma/Glioma_Types.h:12,
                 from ../Glioma/Glioma_ComputePFF_CahnHilliard.h:10,
                 from ../Glioma/Glioma_ComputePFF_CahnHilliard.cpp:9:
/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h: In constructor ‘tbb::internal::tbb_exception_ptr::tbb_exception_ptr(const tbb::captured_exception&)’:
/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h:357:71: error: ‘copy_exception’ is not a member of ‘std’; did you mean ‘bad_exception’?
  357 |     tbb_exception_ptr ( const captured_exception& src ) : my_ptr(std::copy_exception(src)) {}
      |                                                                       ^~~~~~~~~~~~~~
      |                                                                       bad_exception
In file included from /GliomaSolver/lib/tbb40_20120613oss/include/tbb/parallel_for.h:36,
                 from ../Glioma/../MRAG/MRAGcore/MRAGrid.inl:11,
                 from ../Glioma/../MRAG/MRAGcore/MRAGrid.h:189,
                 from ../Glioma/../MRAG/MRAGHeaders.h:39,
                 from ../Glioma/Glioma.h:11,
                 from ../Glioma/Glioma_Types.h:12,
                 from ../Glioma/Glioma_UQ_DataPreprocessing.h:13,
                 from ../Glioma/Glioma_UQ_DataPreprocessing.cpp:9:
/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h: In constructor ‘tbb::internal::tbb_exception_ptr::tbb_exception_ptr(const tbb::captured_exception&)’:
/GliomaSolver/lib/tbb40_20120613oss/include/tbb/tbb_exception.h:357:71: error: ‘copy_exception’ is not a member of ‘std’; did you mean ‘bad_exception’?
  357 |     tbb_exception_ptr ( const captured_exception& src ) : my_ptr(std::copy_exception(src)) {}
      |                                                                       ^~~~~~~~~~~~~~
      |                                                                       bad_exception

A lot more warnings messages are omitted.