Re: [deal.II] Re: Can't configure with cmake

2024-02-05 Thread Bruno Turcksin
Sean,

It's possible that you don't have enough RAM and that you are swapping
memory which is extremely slow. Try to reinstall using fewer processors.

Best,

Bruno

Le lun. 5 févr. 2024 à 19:01, Sean Johnson  a écrit :

> Thanks Bruno,
>
> This was definitely it.
>
> So I have now gotten to running make --jobs=4 install but it has frozen at
> 82%
> I have been sitting on it for about 6 to 7 hours with no change at all.
> The last line is:
> [ 82%] Built target object_non_matching_debug
>
>  and attached are the summary.log and detailed.log
>
> I will keep it running still just incase but from previous installations
> of dealii this has never happened.
>
> Thanks,
> Sean
>
> On Monday, February 5, 2024 at 8:32:28 AM UTC-7 bruno.t...@gmail.com
> wrote:
>
>> Sean,
>>
>> It looks like you are using the wrong compiler. If you want to use CUDA,
>> you should use nvcc_wrapper as your C++ compiler. You want something like
>> `-DCMAKE_CXX_COMPILER=/path/nvcc_wrapper`. You should already have used
>> `nvcc_wrapper` to compiler Kokkos.
>>
>> Best,
>>
>> Bruno
>>
>> On Monday, February 5, 2024 at 2:40:37 AM UTC-5 sljoh...@gmail.com wrote:
>>
>>> Hey,
>>>
>>> I am trying to get deal.ii to compile with p4est and cuda. Due to cuda
>>> it also needs MPI and Kokkos from me. I can't even make the make file yet.
>>> I tried to find any similar problems in the mailing list and was unable to.
>>>
>>> I am running Ubuntu 22.04
>>>
>>> The Error at the end reads:
>>> [ 50%] Building CXX object
>>> CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o
>>>  /usr/bin/c++   -fopenmp-simd -O0 -ggdb -Wa,--compress-debug-sections
>>> -extended-lambda
>>>  -Wext-lambda-captures-this -arch=sm_89 -DKOKKOS_DEPENDENCE
>>> -Wno-non-template-friend -o
>>>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c
>>>  /home/sean/dealii-9.5.2/cmake/macros/check_compiler_setup/dummy.cpp
>>>  c++: error: unrecognized command-line option -Wext-lambda-captures-this
>>>  c++: error: unrecognized command-line option -arch=sm_89
>>>  gmake[2]: *** [CMakeFiles/CheckCompilerSetupExec.dir/build.make:78:
>>>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o] Error 1
>>>  gmake[2]: Leaving directory
>>>
>>>  
>>> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>>>  gmake[1]: *** [CMakeFiles/Makefile2:86:
>>> CMakeFiles/CheckCompilerSetupExec.dir/all] Error 2
>>>  gmake[1]: Leaving directory
>>>
>>>  
>>> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>>>  gmake: *** [Makefile:94: all] Error 2
>>>
>>>
>>>  CMake Error at cmake/setup_finalize.cmake:126 (message):
>>>
>>>
>>>  Configuration error: Cannot compile a test program with the final
>>> set of
>>>  compiler and linker flags:
>>>CXX flags (DEBUG): -fopenmp-simd -O0 -ggdb
>>> -Wa,--compress-debug-sections
>>>LD flags  (DEBUG): -rdynamic  -fopenmp -ggdb
>>> -Wl,--compress-debug-sections=zlib
>>>LIBRARIES (DEBUG): rt;
>>>
>>> Attached are the output and error logs.
>>>
>>> Thanks for any help,
>>> Sean
>>>
>>> --
> 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 a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/dealii/l1tWck3YnHs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/6ad27807-9f07-4a98-9a8b-c1fea625d13an%40googlegroups.com
> 
> .
>

-- 
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/CAGVt9eM9CaQaKJmk_9ousy%3D_BM%2ByrJAYebNWfMeBfZGng0jFCQ%40mail.gmail.com.


[deal.II] Re: Can't configure with cmake

2024-02-05 Thread Sean Johnson
Thanks Bruno,

This was definitely it.

So I have now gotten to running make --jobs=4 install but it has frozen at 
82%
I have been sitting on it for about 6 to 7 hours with no change at all. The 
last line is:
[ 82%] Built target object_non_matching_debug

 and attached are the summary.log and detailed.log

I will keep it running still just incase but from previous installations of 
dealii this has never happened.

Thanks,
Sean

On Monday, February 5, 2024 at 8:32:28 AM UTC-7 bruno.t...@gmail.com wrote:

> Sean,
>
> It looks like you are using the wrong compiler. If you want to use CUDA, 
> you should use nvcc_wrapper as your C++ compiler. You want something like 
> `-DCMAKE_CXX_COMPILER=/path/nvcc_wrapper`. You should already have used 
> `nvcc_wrapper` to compiler Kokkos.
>
> Best,
>
> Bruno
>
> On Monday, February 5, 2024 at 2:40:37 AM UTC-5 sljoh...@gmail.com wrote:
>
>> Hey,
>>
>> I am trying to get deal.ii to compile with p4est and cuda. Due to cuda it 
>> also needs MPI and Kokkos from me. I can't even make the make file yet. I 
>> tried to find any similar problems in the mailing list and was unable to.
>>
>> I am running Ubuntu 22.04
>>
>> The Error at the end reads:
>> [ 50%] Building CXX object 
>> CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o
>>  /usr/bin/c++   -fopenmp-simd -O0 -ggdb -Wa,--compress-debug-sections 
>> -extended-lambda
>>  -Wext-lambda-captures-this -arch=sm_89 -DKOKKOS_DEPENDENCE 
>> -Wno-non-template-friend -o
>>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c
>>  /home/sean/dealii-9.5.2/cmake/macros/check_compiler_setup/dummy.cpp
>>  c++: error: unrecognized command-line option -Wext-lambda-captures-this
>>  c++: error: unrecognized command-line option -arch=sm_89
>>  gmake[2]: *** [CMakeFiles/CheckCompilerSetupExec.dir/build.make:78:
>>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o] Error 1
>>  gmake[2]: Leaving directory
>>
>>  
>> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>>  gmake[1]: *** [CMakeFiles/Makefile2:86: 
>> CMakeFiles/CheckCompilerSetupExec.dir/all] Error 2
>>  gmake[1]: Leaving directory
>>
>>  
>> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>>  gmake: *** [Makefile:94: all] Error 2
>>
>>
>>  CMake Error at cmake/setup_finalize.cmake:126 (message):
>>
>>
>>  Configuration error: Cannot compile a test program with the final 
>> set of
>>  compiler and linker flags:
>>CXX flags (DEBUG): -fopenmp-simd -O0 -ggdb 
>> -Wa,--compress-debug-sections
>>LD flags  (DEBUG): -rdynamic  -fopenmp -ggdb 
>> -Wl,--compress-debug-sections=zlib
>>LIBRARIES (DEBUG): rt;
>>
>> Attached are the output and error logs.
>>
>> Thanks for any help,
>> Sean
>>
>>

-- 
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/6ad27807-9f07-4a98-9a8b-c1fea625d13an%40googlegroups.com.
###
#
#  deal.II configuration:
#CMAKE_BUILD_TYPE:   DebugRelease
#BUILD_SHARED_LIBS:  ON
#CMAKE_INSTALL_PREFIX:   /usr/local
#CMAKE_SOURCE_DIR:   /home/sean/dealii-9.5.2
#(version 9.5.2)
#CMAKE_BINARY_DIR:   /home/sean/dealii-9.5.2/build
#CMAKE_CXX_COMPILER: GNU 11.4.0 on platform Linux x86_64
#/usr/local/bin/nvcc_wrapper
#C++ language standard:  C++17
#Vectorization level:0 bit (sse2)
#
#  Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION = ON):
#  ( DEAL_II_WITH_64BIT_INDICES = OFF )
#  ( DEAL_II_WITH_ADOLC = OFF )
#  ( DEAL_II_WITH_ARBORX = OFF )
#  ( DEAL_II_WITH_ARPACK = OFF )
#  ( DEAL_II_WITH_ASSIMP = OFF )
#DEAL_II_WITH_BOOST set up with bundled packages
#  ( DEAL_II_WITH_CGAL = OFF )
#DEAL_II_WITH_COMPLEX_VALUES = ON
#DEAL_II_WITH_CUDA set up with external dependencies
#  ( DEAL_II_WITH_GINKGO = OFF )
#  ( DEAL_II_WITH_GMSH = OFF )
#  ( DEAL_II_WITH_GSL = OFF )
#  ( DEAL_II_WITH_HDF5 = OFF )
#DEAL_II_WITH_KOKKOS set up with external dependencies
#  ( DEAL_II_WITH_LAPACK = OFF )
#  ( DEAL_II_WITH_METIS = OFF )
#DEAL_II_WITH_MPI set up with external dependencies
#DEAL_II_WITH_MUPARSER set up with bundled packages
#  ( DEAL_II_WITH_OPENCASCADE = OFF )
#DEAL_II_WITH_P4EST set up with external dependencies
#  ( DEAL_II_WITH_PETSC = OFF )
#  ( DEAL_II_WITH_SCALAPACK = OFF )
#  ( DEAL_II_WITH_SLEPC = OFF )
#  ( DEAL_II_WITH_SUNDIALS = OFF )
#  ( DEAL_II_WITH_SYMENGINE = OFF )
#

Re: [deal.II] Mixed codimensionality

2024-02-05 Thread Wolfgang Bangerth



On 2/5/24 12:26, Alex Quinlan wrote:


The dynamic sparsity pattern comes from this approach:

     dof_handler_sld.distribute_dofs(fe_sld);
     sld_owned_dofs = dof_handler_sld.locally_owned_dofs();

     DynamicSparsityPattern debug_dsp(sld_owned_dofs);
     DoFTools::make_sparsity_pattern(dof_handler_sld, debug_dsp);

It makes sense that I should have an entry at position (36,48), since 
dof 36 and dof 48 share a cell.  Therefore, I think my stiffness matrix 
process is okay.  My problem seems to be with my sparsity pattern.
So, I'm confused as to why Proc0 would not have any Sparsity Pattern 
entries for (36,48) when Proc1 does indeed have (48,36).


I don't know whether that's going to fix your problem, but the canonical 
place to look up how to generate sparsity patterns in parallel is 
step-40, where the corresponding code looks like this:


DynamicSparsityPattern dsp(locally_relevant_dofs);

DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
SparsityTools::distribute_sparsity_pattern(dsp,
dof_handler.locally_owned_dofs(),
mpi_communicator,
locally_relevant_dofs);

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/d39e972f-1975-427e-a9d1-c947e32bc02c%40colostate.edu.


Re: [deal.II] Mixed codimensionality

2024-02-05 Thread Alex Quinlan
Thanks, Wolfgang.  Sorry for the big code dump.  I've been trying to 
distill the problem down to find the issue.  I've now eliminated the shell 
elements and the solid-shell coupling. In doing so, I've found a strange 
change to my sparsity pattern.  The overlap of Process0 and Process1 is not 
symmetric. The PETSc error occurs in this area where I'd expect to see 
symmetry (at entry 36,48). 

[image: asym_dsp2.png]
The geometry of the problem is shown in the picture below.  I've colored 
the cells and vertices based on their ownership.


[image: solid_geom.png]

The dynamic sparsity pattern comes from this approach:

dof_handler_sld.distribute_dofs(fe_sld);
sld_owned_dofs = dof_handler_sld.locally_owned_dofs();

DynamicSparsityPattern debug_dsp(sld_owned_dofs);
DoFTools::make_sparsity_pattern(dof_handler_sld, debug_dsp); 

It makes sense that I should have an entry at position (36,48), since dof 
36 and dof 48 share a cell.  Therefore, I think my stiffness matrix process 
is okay.  My problem seems to be with my sparsity pattern.
So, I'm confused as to why Proc0 would not have any Sparsity Pattern 
entries for (36,48) when Proc1 does indeed have (48,36).

Any thoughts on where I might be causing this problem?

Best regards,
Alex




On Thursday, February 1, 2024 at 7:56:05 PM UTC-5 Wolfgang Bangerth wrote:

> On 2/1/24 14:50, Alex Quinlan wrote:
> > 
> > Can anyone see where I may have gone wrong or what I have omitted?
>
> Alex:
> I cannot see what the issue is, and I doubt anyone can without spending a 
> substantial amount of time debugging. I am slightly confused, though, by 
> the 
> error message. I *believe* that what it is saying is that you are trying 
> to 
> write into a matrix entry that is not part of the matrix -- you can only 
> write 
> into matrix entries you have previously said exist when you passed the 
> sparsity pattern to the matrix. So what you need to find out is who owns 
> row 
> 36, and whether the sparsity pattern you provided on that process included 
> entry (36,48). My best guess is that that entry was not present in the 
> sparsity pattern on the process that owns row 36, and then your goal needs 
> to 
> be to figure out why not -- in other words, why you did not foresee that 
> the 
> entry that you ultimately end up writing into was not included when you 
> constructed the sparsity pattern.
>
> Best
> W.
>
> -- 
> 
> Wolfgang Bangerth email: bang...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>
>
>

-- 
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/a1cf2d0c-f86f-402d-bf3e-aeaf58758825n%40googlegroups.com.


[deal.II] deal.II Newsletter #273

2024-02-05 Thread 'Rene Gassmoeller' via deal.II User Group
Hello everyone!

This is deal.II newsletter #273.
It automatically reports recently merged features and discussions about the 
deal.II finite element library.


## Below you find a list of recently proposed or merged features:

#16597: Tpetra: fix lac/vector_reinit_02 (proposed by masterleinad) 
https://github.com/dealii/dealii/pull/16597

#16596: NonMatching::MappingInfo: Remove quadrature projection (proposed by 
bergbauer) https://github.com/dealii/dealii/pull/16596

#16594: Better document problems with failed MPI I/O calls. (proposed by 
bangerth) https://github.com/dealii/dealii/pull/16594

#16593: More minor edits to tria_description.cc. (proposed by bangerth) 
https://github.com/dealii/dealii/pull/16593

#16592: Better document one aspect of what you can't do with ghosted vectors. 
(proposed by bangerth) https://github.com/dealii/dealii/pull/16592

#16591: Simplify some calls to make_array_view(). (proposed by bangerth; 
merged) https://github.com/dealii/dealii/pull/16591

#16590: Enable a couple unit tests for LinearAlgebra::TpetraWrappers::Vector 
(proposed by masterleinad; merged) https://github.com/dealii/dealii/pull/16590

#16589: Suppress exception output that is not very interesting. (proposed by 
bangerth) https://github.com/dealii/dealii/pull/16589

#16588: Add TpetraWrapper::BlockVector and TpetraWrappers::BlockSparseMatrix 
(proposed by kinnewig) https://github.com/dealii/dealii/pull/16588

#16587: Use correct function names in test (proposed by jh66637; merged) 
https://github.com/dealii/dealii/pull/16587

#16585: Simplify step-7 somewhat. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/16585

#16584: Fix mpi/local_size (proposed by masterleinad; merged) 
https://github.com/dealii/dealii/pull/16584

#16583: Use DEAL_II_CXX23_ASSERT in the Tensor class. (proposed by bangerth; 
merged) https://github.com/dealii/dealii/pull/16583

#16582: Require support for attribute [[assume]] for C++23 support (proposed by 
masterleinad; merged) https://github.com/dealii/dealii/pull/16582

#16581: Introduce DEAL_II_UNREACHABLE(). (proposed by bangerth) 
https://github.com/dealii/dealii/pull/16581

#16580: Add a missing template argument. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/16580

#16579: Provide an example of use for DEAL_II_NOT_IMPLEMENTED(). (proposed by 
bangerth; merged) https://github.com/dealii/dealii/pull/16579

#16577: [main] take over point release changelog entry (proposed by tamiko; 
merged) https://github.com/dealii/dealii/pull/16577

#16576: [9.5] update changelog for point release (proposed by tamiko; merged) 
https://github.com/dealii/dealii/pull/16576

#16575: [9.5] update changelog for point release (proposed by tamiko) 
https://github.com/dealii/dealii/pull/16575

#16574: Fix assert in import_elements from ReadWriteVector (proposed by 
kinnewig; merged) https://github.com/dealii/dealii/pull/16574

#16573: Minor doc update. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/16573

#16572: Convert a few more places of Assert(false, 
dealii::ExcNotImplemented()); (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/16572

#16571: More work in tria_description.h/cc. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/16571

#16569: Fix TpetraWrappers::SparsityPattern when compiling for GPU backends 
(proposed by masterleinad; merged) https://github.com/dealii/dealii/pull/16569

#16568: Use AlignedVector in ReadWriteVector. (proposed by drwells; merged) 
https://github.com/dealii/dealii/pull/16568

#16567: Fix a changelog entry that doxygen complains about. (proposed by 
bangerth) https://github.com/dealii/dealii/pull/16567

#16566: Prefer trilinos_vector over trilinos_rcp (proposed by masterleinad; 
merged) https://github.com/dealii/dealii/pull/16566

#16565: Template TrilinosWrappers::Vector on memory space (proposed by 
masterleinad; merged) https://github.com/dealii/dealii/pull/16565

#16564: Move the description of DeclException in step-9. (proposed by bangerth; 
merged) https://github.com/dealii/dealii/pull/16564

#16563: Explain the use of DEAL_II_NOT_IMPLEMENTED() in step-8. (proposed by 
bangerth; merged) https://github.com/dealii/dealii/pull/16563

#16562: Convert tutorial programs to use DEAL_II_NOT_IMPLEMENTED(). (proposed 
by bangerth; merged) https://github.com/dealii/dealii/pull/16562

#16560: Silence a warning. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/16560

#16559: Simplify the Copy-Constructor in TpetraWrappers::Vector (proposed by 
kinnewig; merged) https://github.com/dealii/dealii/pull/16559

#16558: Make a deep-copy of the Tpetra::Vector in the assignment operator. 
(proposed by kinnewig; merged) https://github.com/dealii/dealii/pull/16558

#16555: Testsuite: remove implicit target dependencies when possible (ninja 
support) (proposed by tamiko) https://github.com/dealii/dealii/pull/16555

#16551: Testsuite: use `./serial` 

[deal.II] Re: Can't configure with cmake

2024-02-05 Thread Bruno Turcksin
Sean,

It looks like you are using the wrong compiler. If you want to use CUDA, 
you should use nvcc_wrapper as your C++ compiler. You want something like 
`-DCMAKE_CXX_COMPILER=/path/nvcc_wrapper`. You should already have used 
`nvcc_wrapper` to compiler Kokkos.

Best,

Bruno

On Monday, February 5, 2024 at 2:40:37 AM UTC-5 sljoh...@gmail.com wrote:

> Hey,
>
> I am trying to get deal.ii to compile with p4est and cuda. Due to cuda it 
> also needs MPI and Kokkos from me. I can't even make the make file yet. I 
> tried to find any similar problems in the mailing list and was unable to.
>
> I am running Ubuntu 22.04
>
> The Error at the end reads:
> [ 50%] Building CXX object 
> CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o
>  /usr/bin/c++   -fopenmp-simd -O0 -ggdb -Wa,--compress-debug-sections 
> -extended-lambda
>  -Wext-lambda-captures-this -arch=sm_89 -DKOKKOS_DEPENDENCE 
> -Wno-non-template-friend -o
>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c
>  /home/sean/dealii-9.5.2/cmake/macros/check_compiler_setup/dummy.cpp
>  c++: error: unrecognized command-line option -Wext-lambda-captures-this
>  c++: error: unrecognized command-line option -arch=sm_89
>  gmake[2]: *** [CMakeFiles/CheckCompilerSetupExec.dir/build.make:78:
>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o] Error 1
>  gmake[2]: Leaving directory
>
>  
> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>  gmake[1]: *** [CMakeFiles/Makefile2:86: 
> CMakeFiles/CheckCompilerSetupExec.dir/all] Error 2
>  gmake[1]: Leaving directory
>
>  
> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>  gmake: *** [Makefile:94: all] Error 2
>
>
>  CMake Error at cmake/setup_finalize.cmake:126 (message):
>
>
>  Configuration error: Cannot compile a test program with the final set 
> of
>  compiler and linker flags:
>CXX flags (DEBUG): -fopenmp-simd -O0 -ggdb 
> -Wa,--compress-debug-sections
>LD flags  (DEBUG): -rdynamic  -fopenmp -ggdb 
> -Wl,--compress-debug-sections=zlib
>LIBRARIES (DEBUG): rt;
>
> Attached are the output and error logs.
>
> Thanks for any help,
> Sean
>
>

-- 
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/35028a90-801b-4bbe-a1ea-e672900aaa69n%40googlegroups.com.


Re: [deal.II] Error of Installing Deal.ii 9.5.2 on Intel-based Mac Devices

2024-02-05 Thread Lex Lee
Hello Luca,


Thank you for your kind reply.

I have 2 Intel-based mac devices. MacOS version on these 2 devices: Ventura
+ Sonoma. Both are installed with deal.ii version 9.5.2 and the latest
compatible Xcode version. Unluckily, deal.ii 9.5.2 failed to run on these 2
devices.


Best,
Lex

On Sun, Feb 4, 2024 at 11:56 PM Luca Heltai  wrote:

> Dear Lex,
>
> I see you are using a spack installed version of the dmg package.
>
> What package version is this? What OS version do you have (i.e., is this
> sonoma?). If you upgraded to sonoma, and are still using the old package,
> this cannot work, since the compiler has changed with the upgrade.
>
> If you use the 9.5.2 package, deal.II comes pre-installed. Does that work
> for you?
>
> L.
>
> > On 3 Feb 2024, at 21:35, Lex Lee  wrote:
> >
> > I got the following error messages
> >
> >
> > -- Detecting CXX compiler ABI info - failed
> > -- Check for working CXX compiler: /Applications/
> deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++
> > -- Check for working CXX compiler: /Applications/
> deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++ - broken
> > CMake Error at
> /usr/local/Cellar/cmake/3.28.2/share/cmake/Modules/CMakeTestCXXCompiler.cmake:60
> (message):
> >   The C++ compiler
> >
> > "/Applications/
> deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++"
> >
> >   is not able to compile a simple test program.
> >
> >   It fails with the following output:
> >
> > Change Dir: '/Applications/
> deal.II.app/Contents/Resources/Libraries/share/deal.II/examples/step-32/CMakeFiles/CMakeScratch/TryCompile-Fkp1zK
> '
> >
> > Run Build Command(s): /usr/local/Cellar/cmake/3.28.2/bin/cmake -E
> env VERBOSE=1 /usr/bin/make -f Makefile cmTC_e8efc/fast
> > /Library/Developer/CommandLineTools/usr/bin/make  -f
> CMakeFiles/cmTC_e8efc.dir/build.make CMakeFiles/cmTC_e8efc.dir/build
> > Building CXX object CMakeFiles/cmTC_e8efc.dir/testCXXCompiler.cxx.o
> > /Applications/
> deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++-o
> CMakeFiles/cmTC_e8efc.dir/testCXXCompiler.cxx.o -c /Applications/
> deal.II.app/Contents/Resources/Libraries/share/deal.II/examples/step-32/CMakeFiles/CMakeScratch/TryCompile-Fkp1zK/testCXXCompiler.cxx
> > [spack cc] ERROR: Spack compiler must be run from Spack! Input
> 'SPACK_ENV_PATH' is missing.
> > make[1]: *** [CMakeFiles/cmTC_e8efc.dir/testCXXCompiler.cxx.o] Error
> 1
> > make: *** [cmTC_e8efc/fast] Error 2
> >
> >
> >
> >
> >
> >   CMake will not be able to correctly generate this project.
> > Call Stack (most recent call first):
> >   CMakeLists.txt:58 (project)
> >
> >
> > What happened? Thank you for your valuable time.
> >
> > --
> > 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/8b2f0f8e-7b7e-4a66-9853-6b2e8b909820n%40googlegroups.com
> .
>
> --
> 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 a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/dealii/3X-tLW7i10k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/A95D4F7D-E073-4503-88B7-3DB9C0EB9659%40gmail.com
> .
>

-- 
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/CAG0BxGZ%2BMk_VjOfD83eoaSPhQyCYSDWmeJUeMMEkdvosAJHiUg%40mail.gmail.com.