Problems during the installation of an older version of deal.II (version 8.4)

35 views
Skip to first unread message

Nicolò Lontani

unread,
Oct 3, 2024, 11:27:06 AM10/3/24
to deal.II User Group
Hello, I'm trying to install version 8.4 of deal.II because I want to try out the WaveBEM program that specify that specific version as a dependecy. I'm incurring in a problem when building it. Cmake gives me this error:
CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:240 (if):
  Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
  --help-policy CMP0057" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  IN_LIST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
  /usr/share/cmake-3.22/Modules/FindBoost.cmake:594 (find_package)
  cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
  cmake/modules/FindBOOST.cmake:46 (FIND_PACKAGE)
  cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
  cmake/configure/configure_boost.cmake:51 (FIND_PACKAGE)
  build/CMakeFiles/CMakeTmp/macro_configure_feature.tmp:1 (FEATURE_BOOST_FIND_EXTERNAL)
  cmake/macros/macro_configure_feature.cmake:76 (INCLUDE)
  cmake/macros/macro_configure_feature.cmake:240 (RUN_COMMAND)
  cmake/configure/configure_boost.cmake:72 (CONFIGURE_FEATURE)
  cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)
  CMakeLists.txt:119 (VERBOSE_INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:240 (if):
  if given arguments:

    "ALL" "IN_LIST" "Boost_FIND_COMPONENTS"

  Unknown arguments specified
Call Stack (most recent call first):
  cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
  /usr/share/cmake-3.22/Modules/FindBoost.cmake:594 (find_package)
  cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
  cmake/modules/FindBOOST.cmake:46 (FIND_PACKAGE)
  cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
  cmake/configure/configure_boost.cmake:51 (FIND_PACKAGE)
  build/CMakeFiles/CMakeTmp/macro_configure_feature.tmp:1 (FEATURE_BOOST_FIND_EXTERNAL)
  cmake/macros/macro_configure_feature.cmake:76 (INCLUDE)
  cmake/macros/macro_configure_feature.cmake:240 (RUN_COMMAND)
  cmake/configure/configure_boost.cmake:72 (CONFIGURE_FEATURE)
  cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)
  CMakeLists.txt:119 (VERBOSE_INCLUDE)


-- Configuring incomplete, errors occurred!

What should I use? In theory in the Cmakelist of version 8.4 there is specified the correct version of the Cmake policies, so I really don't know where to put my hands on.
Thanks in advance

Wolfgang Bangerth

unread,
Oct 3, 2024, 12:29:42 PM10/3/24
to dea...@googlegroups.com

On 10/3/24 08:57, Nicolò Lontani wrote:
>
> What should I use? In theory in the Cmakelist of version 8.4 there is
> specified the correct version of the Cmake policies, so I really don't
> know where to put my hands on.

Nicolo,
deal.II 8.4 is by now more than 8 years old -- you're basically doing
"retro-computing" at this point. The version of cmake you have on your
system is likely quite different from the ones we used at the time, as
are BOOST, the compiler, and a number of other packages. I suspect that
the cmake problem you encounter is only going to the first of many
problems you will run into.

My suggestion would be to see how much effort it would be to compile
WaveBEM with the current deal.II version. There are almost certainly
going to be incompatbilities, but in the best of cases they should be
relatively minor, and you should be able to figure out how to address
each of these if you keep open browser tabs with the changelogs of the
last few versions.

If you felt particularly generous, you'd then contribute the changes you
needed to make to the WaveBEM repository at
https://github.com/mathLab/WaveBEM
The authors of WaveBEM are also deal.II developers, and I imagine they
would be very happy to accept patches that bring WaveBEM up to date with
respect to the current deal.II status.

Best
W.

Mahdi Gharehbaygloo

unread,
Oct 4, 2024, 9:14:01 AM10/4/24
to dea...@googlegroups.com
Hi Nicolò,

May I ask which OS you are using? iOS, Linux, or Windows?

I do not recall the exact error message that I was getting when I tried to re-install dealii, but the message you posted here looks very familiar (again not sure exactly) to me.
 
I do not know about Windows, but (per my personal experience) iOS and Linux have some weird way of updating apps and sometimes they keep the older version even after you update. This causes new apps (or new installation of previously installed and working apps) to get confused which version to use*.

In my case, re-installing Linux (after formatting hard drive) solved the problem. In iOS case, I had to use terminal to get rid of the older versions of the apps that my laptop kept multiple versions even after updating to a newer version, and that resolved my issue. 

Currently I am away from my personal device and I do not have access to that command (in fact series of commands), but I can find and send it to you later. So, please let me know if you are using a mac device or not. If not, I wont “spam” the group with an unnecessary message.

Good luck,
Mahdi


*Pro users please accept my apology for this type of explanation. I know it is not exact, but it conveys the message. 😅

From: dea...@googlegroups.com <dea...@googlegroups.com> on behalf of Nicolò Lontani <nicolo....@skywarder.eu>
Sent: Thursday, October 3, 2024 9:57:04 AM
To: deal.II User Group <dea...@googlegroups.com>
Subject: [deal.II] Problems during the installation of an older version of deal.II (version 8.4)
 
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/e800e4f9-6bbd-4f63-a826-9e18eceb1105n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages