I managed to create a new dmg package. I’m testing that everything works 
correctly before I upload it, but I also found a quick workaround that you can 
use, without having to wait for me to upload a new package:

you need to modify the files 

/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpicc
/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpicxx
/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpifort

in these three files, search for the line

final_ldflags="  -Wl,-commons,use_dylibs"

and replace it with

final_ldflags=“ "

The newer version of clang does not support the commons and use_dylibs flags. 

In your application, you should also add the following definition to your cmake 
command:

cmake -DCMAKE_CXX_FLAGS=-DBOOST_NO_CXX98_FUNCTION_BASE 

This is because the newer clang version has removed some deprecated functions 
from the standard library (as std::unary_functions) which are used by boost 
unless you instruct boost not to use them. This is the default behavious for 
the cxx17 standard.

You’ll get a bunch of warnings (due to clang 15 being a bit more restrictive 
than clang 14), but your application should compile and run also with the 
package that you have currently downloaded.

Best,
Luca.




> On 6 Oct 2023, at 06:06, Alexander Mensah <x...@umich.edu> wrote:
> 
> If I use the 'step-1' example, I get the same error (mpic++) as with the 
> program I want to run.
> 
> <image.png>
> 
> On Thursday, October 5, 2023 at 11:42:27 PM UTC-4 Alexander Mensah wrote:
> No luck
> 
> 
> 
> On Thursday, October 5, 2023 at 6:47:07 PM UTC-4 Wolfgang Bangerth wrote:
> 
> On 10/5/23 15:14, Alexander Mensah wrote: 
> > 
> > Could someone help me fix this? 
> 
> I believe that you're trying to call cmake (to configure one of the 
> example programs) in the directory 
> /Applications/deal.II.app/Contents/Resources/Libraries/examples/... but 
> this is a system directory that you can read files in, but not write to. 
> You might have to copy the tutorial program directory you're trying to 
> configure into your home directory. 
> 
> Best 
> W. 
> 
> 
> -- 
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/3f5e1911-92a1-4c0c-b5e5-42d0b8dc4f7en%40googlegroups.com.
> <image.png>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/66F0CEB4-4620-460A-97D6-18398BBCE6BE%40gmail.com.

Reply via email to