Package Details: openfoam-com v2206-2

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: http://www.openfoam.com
Licenses: GPL3
Submitter: dl6tud
Maintainer: dl6tud
Last Packager: dl6tud
Votes: 10
Popularity: 0.010131
First Submitted: 2020-12-24 16:36 (UTC)
Last Updated: 2022-10-17 21:12 (UTC)

Latest Comments

1 2 3 Next › Last »

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!

dl6tud commented on 2022-05-22 17:08 (UTC)

Done.

adrianinsaval commented on 2022-05-22 14:37 (UTC) (edited on 2022-05-22 14:37 (UTC) by adrianinsaval)

@dl6tud could you apply carlosal's patch to the PKGBUILD? at least the sed line as it does indeed fix the build

carlosal1015 commented on 2022-03-28 03:22 (UTC) (edited on 2022-03-29 21:58 (UTC) by carlosal1015)

It was true, now with this 0001-C-14-for-CGAL-5-compatibility-KaHIP-support.patch is compiling fine as before and working with CGAL 5 or later, plus this add support to kahip as we can see that creates the following shared object

opt/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libkahipDecomp.so

in the full log, yay.

carlosal1015 commented on 2022-03-20 14:34 (UTC) (edited on 2022-03-28 20:52 (UTC) by carlosal1015)

Thanks for feedback, actually I compiled sucessfully openfoam-com before cgal-4.14.3 upgrade at 15th March, now with cgal-5.4-1, the compiler complains. Possible related with this issue https://develop.openfoam.com/Development/openfoam/-/issues/2209

Also I see that

ADIOS2_ARCH_PATH=/opt/OpenFOAM/OpenFOAM-v2112/ThirdParty/platforms/linux64Gcc/ADIOS2-2.6.0

is not pointing to adios2 from system when install by stock, like yes happen right for CGAL_ARCH_PATH, FFTW_ARCH_PATH, MPI_ARCH_PATH, SCOTCH_ARCH_PATH, and BOOST_ARCH_PATH.

dl6tud commented on 2022-03-20 08:41 (UTC)

Your errors seem to be related to CGAL. The other errors such as

type specifier only available with ‘-std=c++14’ or ‘-std=gnu++14’

indicate that your CGAL works only with a compiler of the 2014 c++ standard. Maybe you have an old cgal version?

carlosal1015 commented on 2022-03-20 03:32 (UTC)

Hi, I have the following message error:

g++ -std=c++11 -m64 -pthread -DOPENFOAM=2112 -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 -frounding-math -DNDEBUG -DCGAL_HEADER_ONLY -I/usr/include -I/usr/include -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds -Wno-deprecated-declarations -fpermissive -I.. -I/tmp/makepkg/openfoam-com/src/OpenFOAM-v2112/src/surfMesh/lnInclude -I/tmp/makepkg/openfoam-com/src/OpenFOAM-v2112/src/meshTools/lnInclude -iquote. -IlnInclude -I/tmp/makepkg/openfoam-com/src/OpenFOAM-v2112/src/OpenFOAM/lnInclude -I/tmp/makepkg/openfoam-com/src/OpenFOAM-v2112/src/OSspecific/POSIX/lnInclude   -fPIC -c PolyhedronReader.C -o /tmp/makepkg/openfoam-com/src/OpenFOAM-v2112/build/linux64GccDPInt32Opt/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/PolyhedronReader.o
In file included from /usr/include/CGAL/IO/Color.h:21,
from /usr/include/CGAL/IO/io.h:24,
from /usr/include/CGAL/Needs_parens_as_product.h:20,
from /usr/include/CGAL/number_type_basic.h:45,
from /usr/include/CGAL/basic.h:28,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:20,
from /usr/include/CGAL/Simple_cartesian.h:20,
from /usr/include/CGAL/Exact_predicates_exact_constructions_kernel.h:20,
from ../CGAL3DKernel.H:49,
from ../CGALIndexedPolyhedron.H:46,
from PolyhedronReader.H:39,
from PolyhedronReader.C:29:
2022/usr/include/CGAL/array.h:72:44: error: ‘std::index_sequence’ has not been declared
72 | make_filled_array_aux(const T& value, std::index_sequence<Is...>)
|                                            ^~~~~~~~~~~~~~
/usr/include/CGAL/array.h:72:58: error: expected ‘,’ or ‘...’ before ‘<’ token
72 | make_filled_array_aux(const T& value, std::index_sequence<Is...>)

This is the full log.