Package Details: openfoam-com v2406-1

Git Clone URL: https://aur.archlinux.org/openfoam-com.git (read-only, click to copy)
Package Base: openfoam-com
Description: The open source CFD toolbox (www.openfoam.com)
Upstream URL: https://www.openfoam.com
Licenses: GPL-3.0-or-later
Submitter: dl6tud
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 11
Popularity: 0.004643
First Submitted: 2020-12-24 16:36 (UTC)
Last Updated: 2024-06-27 12:14 (UTC)

Pinned Comments

blacklightdragon commented on 2024-09-24 12:15 (UTC) (edited on 2024-09-24 12:16 (UTC) by blacklightdragon)

to document my problems: scotch is currently not working, scotch-git tho did work and currently I'm installing it after I installed scotch-git myself

Latest Comments

1 2 3 4 Next › Last »

carlosal1015 commented on 2024-09-24 13:24 (UTC)

Thanks for the hint @blacklightdragon

blacklightdragon commented on 2024-09-24 12:15 (UTC) (edited on 2024-09-24 12:16 (UTC) by blacklightdragon)

to document my problems: scotch is currently not working, scotch-git tho did work and currently I'm installing it after I installed scotch-git myself

carlosal1015 commented on 2024-01-21 17:33 (UTC)

I am offer as volunteer to (co)maintain the package.

carlosal1015 commented on 2023-06-02 16:25 (UTC)

With this change since commit OpenFOAM-v2012 (2023-03-09) it is working

dl6tud commented on 2023-06-02 11:23 (UTC)

I just tried again, and in my system it finds the file and compiles. Your log says it downloaded the patch correctly, but cannot find it afterwards. Do you have any idea, why?

carlosal1015 commented on 2023-06-01 16:45 (UTC) (edited on 2023-06-03 14:39 (UTC) by carlosal1015)

Hi, I have the following message error:

==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading OpenFOAM-v2212.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   732    0   732    0     0   5371      0 --:--:-- --:--:-- --:--:--  5382
100   748    0   748    0     0   3123      0 --:--:-- --:--:-- --:--:--  3123
100   985    0   985    0     0   2400      0 --:--:-- --:--:-- --:--:--  2400
100   337  100   337    0     0    588      0 --:--:-- --:--:-- --:--:--   588
100 65.2M  100 65.2M    0     0  21.1M      0  0:00:03  0:00:03 --:--:-- 29.5M
  -> Downloading 70451e680cd0987c8220a0276bba4ce6bba58e9e.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2027  100  2027    0     0   1376      0  0:00:01  0:00:01 --:--:--  1377
==> Validating source files with md5sums...
    OpenFOAM-v2212.tgz ... Passed
    70451e680cd0987c8220a0276bba4ce6bba58e9e.patch ... Passed
==> Extracting sources...
  -> Extracting OpenFOAM-v2212.tgz with bsdtar
==> Starting prepare()...
Configuring OpenFOAM (/tmp/makepkg/openfoam-com/src/OpenFOAM-v2212)
    Replaced boost_version by 'boost-system'  (etc/config.sh/CGAL)
    Replaced boost_version by 'boost-system'  (etc/config.csh/CGAL)
    Replaced cgal_version by 'cgal-system'  (etc/config.sh/CGAL)
    Replaced cgal_version by 'cgal-system'  (etc/config.csh/CGAL)
    Replaced fftw_version by 'fftw-system'  (etc/config.sh/FFTW)
    Replaced fftw_version by 'fftw-system'  (etc/config.csh/FFTW)
    Replaced KAHIP_VERSION by 'kahip-system'  (etc/config.sh/kahip)
    Replaced SCOTCH_VERSION by 'scotch-system'  (etc/config.sh/scotch)
    Replaced ParaView_VERSION by 'paraview-system'  (etc/config.sh/paraview)
    Replaced ParaView_VERSION by 'paraview-system'  (etc/config.csh/paraview)
==> Starting build()...
/tmp/makepkg/openfoam-com/src
/home/aur/openfoam-com/PKGBUILD: line 99: ../../70451e680cd0987c8220a0276bba4ce6bba58e9e.patch: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

See https://github.com/arch4edu/cactus/actions/runs/5161248746

carlosal1015 commented on 2023-05-13 17:44 (UTC) (edited on 2023-05-13 17:46 (UTC) by carlosal1015)

Hi, I have the following message error:

g++ -std=c++14 -D_GLIBCXX_USE_CXX14_ABI=0 -m64 -pthread -DOPENFOAM=2212 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100  -I/tmp/makepkg/openfoam-com/src/OpenFOAM-v2212/build/linux64GccDPInt32Opt/src/OpenFOAM -DHAVE_LIBZ -iquote. -IlnInclude -I/tmp/makepkg/openfoam-com/src/OpenFOAM-v2212/src/OpenFOAM/lnInclude -I/tmp/makepkg/openfoam-com/src/OpenFOAM-v2212/src/OSspecific/POSIX/lnInclude   -fPIC -c primitives/strings/word/word.C -o /tmp/makepkg/openfoam-com/src/OpenFOAM-v2212/build/linux64GccDPInt32Opt/src/OpenFOAM/primitives/strings/word/word.o
primitives/strings/word/word.C: In function ‘Foam::word Foam::name(const void*)’:
primitives/strings/word/word.C:143:12: error: ‘uintptr_t’ was not declared in this scope
  143 |     buf << uintptr_t(ptr);
      |            ^~~~~~~~~
primitives/strings/word/word.C:33:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   32 | #include <sstream>
  +++ |+#include <cstdint>
   33 | 
make: *** [/tmp/makepkg/openfoam-com/src/OpenFOAM-v2212/wmake/rules/General/transform:38: /tmp/makepkg/openfoam-com/src/OpenFOAM-v2212/build/linux64GccDPInt32Opt/src/OpenFOAM/primitives/strings/word/word.o] Error 1

Could you add as patch the following commit referenced there https://develop.openfoam.com/Development/openfoam/-/issues/2714

adrianinsaval commented on 2022-10-15 16:31 (UTC)

adding the aliases to .bashrc is a very unreliable method it only really works for the user that built the package and only if he uses bash, it also clutters the .bashrc on every build, I'm sure I'm not the only one that doesn't appreciate a PBKGBUILD meddling with my home folder so I suggest instead placing the aliases in a /etc/profile.d/ script, here my suggested patch to the PKGBUILD:

From 62b6d34acfe20465fb6cf4becdb2965434810454 Mon Sep 17 00:00:00 2001
From: Adrian Insaurralde Avalos <adrianinsaval@gmail.com>
Date: Sat, 15 Oct 2022 13:12:43 -0300
Subject: [PATCH] Add aliases to profile.d script rather than unreliable
.bashrc

---
PKGBUILD | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 8c43574..2ffca5e 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -159,9 +159,9 @@ package() {
#      echo "No method to create $session for openfoam${pkgver#v}"
#  fi

-  # create alias in .bashrc
-  echo "alias of='source /opt/${_distname}/${_dist}/etc/bashrc'" >> ~/.bashrc
-  echo "alias paraFoam='paraFoam -builtin'" >> ~/.bashrc
+  # create aliases
+  echo "alias of='source /opt/${_distname}/${_dist}/etc/bashrc'" >> "${pkgdir}/etc/profile.d/openfoam-com.sh"
+  echo "alias paraFoam='paraFoam -builtin'" >> "${pkgdir}/etc/profile.d/openfoam-com.sh"
}

# ---------------------------------------------------------------------------
-- 
2.38.0

carlosal1015 commented on 2022-06-30 16:33 (UTC) (edited on 2022-07-10 17:07 (UTC) by carlosal1015)

Upcoming release here https://develop.openfoam.com/Development/openfoam/-/archive/OpenFOAM-v2206/openfoam-OpenFOAM-v2206.tar.gz

Good time to testing ^_^

Will be nice use this strategy for faster builds.

Edited 2022-07-10:

Compilation process looks fine, looking in the below paths and {ldd -v, objdump -p, realdef d}ing looks fine too.

/opt/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/
/opt/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/lib/

namcap noticed that that we have some empty directories.

/etc/profile.d/
/opt/OpenFOAM/OpenFOAM-v2206/ThirdParty

libkahipDecomp.so is gone. When source /opt/OpenFOAM/OpenFOAM-v2206/etc/bashrc only MPI_ARCH_PATH is set right, but CGAL_ARCH_PATH, FFTW_ARCH_PATH, ADIOS2_ARCH_PATH, SCOTCH_ARCH_PATH and BOOST_ARCH_PATH are not set right since the directory is empty. I will take look how is done in other distributions.

carlosal1015 commented on 2022-06-03 04:16 (UTC) (edited on 2022-06-04 00:08 (UTC) by carlosal1015)

Only leaving an informative message if someone else is facing this issue. No work around yet.

Edited 2022-06-03:

I run again some tutorials successfully after apply this 0001-GCC-12-compatibility.patch for gcc 12.1.0 or later.

It makes work our tutorials cases. Based in this upstream patch, solves this issue. Yay!