Hello Tim

I download cgal-5.6 and use that, it seems there is no need to compile it as it 
is include only.

And cmake does succeed to configure, I had to add

-DGMP_INCLUDE_DIR=`spack location -i gmp` \
-DGMP_LIBRARIES=`spack location -i gmp` \
-DMPFR_INCLUDE_DIR=`spack location -i mpfr` \
-DMPFR_LIBRARIES=`spack location -i mpfr` \

I get many warnings about gmp and mpfr

###
-- Configuring done (36.5s)
CMake Warning at cmake/macros/macro_define_interface_target.cmake:108 
(target_link_libraries):
  Target "dealii_debug" requests linking to directory
  
"/home/spack/opt/spack/linux-opensuse15-broadwell/gcc-12.3.0/mpfr-4.2.0-7ooamwzcp4niksyhxurjgww5m4odfbxz".
  Targets may link only to libraries.  CMake is dropping the item.
Call Stack (most recent call first):
  cmake/macros/macro_configure_feature.cmake:251 (define_interface_target)
  cmake/configure/configure_50_cgal.cmake:80 (configure_feature)
  cmake/macros/macro_verbose_include.cmake:19 (include)
  CMakeLists.txt:120 (verbose_include)


CMake Warning at cmake/macros/macro_define_interface_target.cmake:108 
(target_link_libraries):
  Target "dealii_debug" requests linking to directory
  
"/home/spack/opt/spack/linux-opensuse15-broadwell/gcc-12.3.0/gmp-6.2.1-wiruostcmgopt2jwillj24wkz3healpd".
  Targets may link only to libraries.  CMake is dropping the item.
Call Stack (most recent call first):
  cmake/macros/macro_configure_feature.cmake:251 (define_interface_target)
  cmake/configure/configure_50_cgal.cmake:80 (configure_feature)
  cmake/macros/macro_verbose_include.cmake:19 (include)
  CMakeLists.txt:120 (verbose_include)


CMake Warning at cmake/macros/macro_define_interface_target.cmake:108 
(target_link_libraries):
  Target "dealii_release" requests linking to directory
  
"/home/spack/opt/spack/linux-opensuse15-broadwell/gcc-12.3.0/mpfr-4.2.0-7ooamwzcp4niksyhxurjgww5m4odfbxz".
  Targets may link only to libraries.  CMake is dropping the item.
Call Stack (most recent call first):
  cmake/macros/macro_configure_feature.cmake:251 (define_interface_target)
  cmake/configure/configure_50_cgal.cmake:80 (configure_feature)
  cmake/macros/macro_verbose_include.cmake:19 (include)
  CMakeLists.txt:120 (verbose_include)


CMake Warning at cmake/macros/macro_define_interface_target.cmake:108 
(target_link_libraries):
  Target "dealii_release" requests linking to directory
  
"/home/spack/opt/spack/linux-opensuse15-broadwell/gcc-12.3.0/gmp-6.2.1-wiruostcmgopt2jwillj24wkz3healpd".
  Targets may link only to libraries.  CMake is dropping the item.
Call Stack (most recent call first):
  cmake/macros/macro_configure_feature.cmake:251 (define_interface_target)
  cmake/configure/configure_50_cgal.cmake:80 (configure_feature)
  cmake/macros/macro_verbose_include.cmake:19 (include)
  CMakeLists.txt:120 (verbose_include)

So there does seem to be some issue with cgal installation via spack.

I could compile deal.II but running step-1 gives this

###
-- Configuring done (1.8s)
CMake Warning at 
/home/praveen/Applications/deal.II/9.5.1/install/lib/cmake/deal.II/deal.IITargets.cmake:191
 (set_target_properties):
  Target "step-1" requests linking to directory
  
"/home/spack/opt/spack/linux-opensuse15-broadwell/gcc-12.3.0/mpfr-4.2.0-7ooamwzcp4niksyhxurjgww5m4odfbxz".
  Targets may link only to libraries.  CMake is dropping the item.
Call Stack (most recent call first):
  
/home/praveen/Applications/deal.II/9.5.1/install/share/deal.II/macros/macro_deal_ii_setup_target.cmake:52
 (include)
  
/home/praveen/Applications/deal.II/9.5.1/install/share/deal.II/macros/macro_deal_ii_invoke_autopilot.cmake:76
 (deal_ii_setup_target)
  CMakeLists.txt:39 (deal_ii_invoke_autopilot)


CMake Warning at 
/home/praveen/Applications/deal.II/9.5.1/install/lib/cmake/deal.II/deal.IITargets.cmake:191
 (set_target_properties):
  Target "step-1" requests linking to directory
  
"/home/spack/opt/spack/linux-opensuse15-broadwell/gcc-12.3.0/gmp-6.2.1-wiruostcmgopt2jwillj24wkz3healpd".
  Targets may link only to libraries.  CMake is dropping the item.
Call Stack (most recent call first):
  
/home/praveen/Applications/deal.II/9.5.1/install/share/deal.II/macros/macro_deal_ii_setup_target.cmake:52
 (include)
  
/home/praveen/Applications/deal.II/9.5.1/install/share/deal.II/macros/macro_deal_ii_invoke_autopilot.cmake:76
 (deal_ii_setup_target)
  CMakeLists.txt:39 (deal_ii_invoke_autopilot)


-- Generating done (0.1s)
-- Build files have been written to: 
/home/praveen/Applications/deal.II/9.5.1/examples/step-1
$ make
[ 50%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o
[100%] Linking CXX executable step-1
[100%] Built target step-1
$ ./step-1
step-1: malloc.c:2382: sysmalloc: Assertion `(old_top == initial_top (av) && 
old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse 
(old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)

I have to try compiling without cgal and see what happens.

Thanks
praveen

> On 05-Jan-2024, at 5:33 PM, timo Hyvärinen <[email protected]> wrote:
> 
> hi, praveen
> 
> Is this error reproducible on a non-spack packaging system? A minimal test 
> could be building deal.ii with manually complied cgal.
> 
> best,
> tim

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/4810FB45-C97D-4E8D-9930-6B9C60A53FC2%40gmail.com.

Reply via email to