There are some problems when i install aspect-2.5.0

Hello, everyone!
I need to install aspect-2.5.0 on my computer. I install the dependency as follows:
gcc - 9.5.0
cmake - 3.28.3
openmpi - 4.1.6

/home/lij/soft/aspect/aspect/aspect-2.5.0/source/simulator/core.cc:456:5: error: expected ‘;’ before ‘global_Omega_diameter’
456 | global_Omega_diameter = GridTools::diameter (triangulation);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/lij/soft/aspect/aspect/aspect-2.5.0/build/CMakeFiles/aspect.dir/Unity/unity_42_cxx.cxx:10:
/home/lij/soft/aspect/aspect/aspect-2.5.0/source/volume_of_fluid/handler.cc: In member function ‘void aspect::VolumeOfFluidHandler::initialize(dealii::ParameterHandler&)’:
/home/lij/soft/aspect/aspect/aspect-2.5.0/source/volume_of_fluid/handler.cc:433:5: error: expected ‘;’ before ‘if’
433 | if ( this->get_parameters().initial_adaptive_refinement > 0 ||
| ^~
make[2]: *** [CMakeFiles/aspect.dir/build.make:93:CMakeFiles/aspect.dir/Unity/unity_42_cxx.cxx.o] error 1
make[1]: *** [CMakeFiles/Makefile2:927:CMakeFiles/aspect.dir/all] error 2
make: *** [Makefile:136:all] error 2

Cheers
Jing

Hi Jing,

Can you please specify:

  1. What operating system you are using?
  2. How you installed the listed dependencies (cmake, openmpi, gnu)?
  3. How you installed deal.II before building ASPECT?
  4. What instructions you followed for the installation? This section of the manual is a great place to start, if you have not already seen it.

Cheers,
John

Hi John,

Thank for sharing the instructions. When I was installing, I followed the manual-2.5.0 partially.

When I install :
1. I am using Ubuntu 24.04.1 LTS.
2. The listed dependencies, cmake is installed from source and openmpi is installed by apt-get.
3. Before installed deal.II-9.6.0, I had installed trillinos-13.2.0, p4est-2.8.5.5-9ddbb. And I have tested the deal.II installation by commands :
mpirun -n 2 ./step-32.debug and mpirun -n 2 ./step-32.release,

the output is (part of it is as follows) seemingly reasonable…I’m not sure:

Number of active cells: 12,288 (on 6 levels)
Number of degrees of freedom: 186,624 (99,840+36,864+49,920)

Timestep 0:  t=0 years

   Rebuilding Stokes preconditioner...
   Solving Stokes system... 41 iterations.
   Maximal velocity: 60.4963 cm/year
   Time step: 18166.5 years
   17 CG iterations for temperature
   Temperature range: 973 4273.16
 
Number of active cells: 17,709 (on 7 levels)
Number of degrees of freedom: 277,707 (149,720+53,127+74,860)

Timestep 0:  t=0 years

   Rebuilding Stokes preconditioner...
   Solving Stokes system... 23 iterations.
   Maximal velocity: 60.4698 cm/year
   Time step: 10640.6 years
   18 CG iterations for temperature
   Temperature range: 973 4273.16

Number of active cells: 20,559 (on 8 levels)
Number of degrees of freedom: 334,593 (181,944+61,677+90,972)

Timestep 0:  t=0 years

   Rebuilding Stokes preconditioner...
   Solving Stokes system... 27 iterations.
   Maximal velocity: 60.5302 cm/year
   Time step: 5320.23 years
   18 CG iterations for temperature
   Temperature range: 973 4273.43

Should I reinstall the dependencies?
Thanks for you assistance!

Cheers
Jing

@lij24 This looks reasonable. I think @jbnaliboff (and I) are confused why you get these errors when compiling ASPECT. That’s because at the places where your compiler complains about missing semicolons, there really are semicolons. The error message simply doesn’t make any sense.

Are these the first errors you get? Or is there anything above it? If the latter, can you show us a screenshot of the first errors you get when you call make?

Best
W.

Sorry, I am confused by the semicolon, too. I
really don’t understand. But it is the first error after I use command make, and it even is ther first error I have meet after I make directory build in directory aspect-2.5.0. Without else error reported before it.
And…I check the file core.cc which firstly appears in the error message, there is not a semicolon. After added a semicolon, THIS error disappeared, with more NEW semicolon errors.
What makes me more confused is that my college use same semicolon lack file to make, the error didn’ t appear.

For gcc, I am a beginner…I’m sorry…I don’t understand why.

Thanks for helping!

Sincere,
Jing

Hi Jing,

I’m also not sure what the source of the error is.

Here is my recommendation on how to proceed:

  1. Try to install deal.II and dependencies via candi (instructions)
  2. Install the deal.II 9.5.1 ubuntu package (instructions)

Please let us know if either options works.

Cheers,
John

Hi again Jing,

FYI, I just updated an ubuntu system to 24.04 LTS, and installation of deal.II via candi and then ASPECT (current main) went smoothly.

Cheers,
John

@lij24 This is an interaction between a new deal.II version and an old ASPECT version. It’s just really unfortunate you’re running into this.

The issue was fixed here: Add semicolon to asserts that were missing it. by gassmoeller · Pull Request #5464 · geodynamics/aspect · GitHub. Your options are to either use the current ASPECT main branch instead of the ASPECT 2.5 release, or to add the semicolons where indicated in the patch mentioned in the previous sentence.

Best
W.

@bangerth and @jbnaliboff Thank you soooooo much for kindful help. Now I installed ASPECT sucessfully :slight_smile: .

Sincere,
Jing