Package Details: openfoam-org 12.20250206-8

Git Clone URL: https://aur.archlinux.org/openfoam.git (read-only, click to copy)
Package Base: openfoam
Description: The open source CFD toolbox (www.openfoam.org)
Upstream URL: http://www.openfoam.org
Licenses: GPL-3.0-or-later
Provides: openfoam
Submitter: None
Maintainer: envolution
Last Packager: envolution
Votes: 66
Popularity: 1.21
First Submitted: 2009-07-02 09:16 (UTC)
Last Updated: 2025-06-11 06:13 (UTC)

Latest Comments

« First ‹ Previous 1 .. 13 14 15 16 17 18 19 20 21 22 23 .. 31 Next › Last »

panda-z commented on 2016-01-17 14:30 (UTC)

Hi @Xwang, have you ever cleaned the libtriSurface directory before your continue building? (i.e. cd $FOAM_SRC/triSurface && wclean) FYI, the -L option enable makepkg build logging.

Xwang commented on 2016-01-17 14:23 (UTC)

I've applied the patch and now the file readSTLASCII.L appears as follow: ... // Dummy yywrap to keep yylex happy at compile time. // It is called by yylex but is not used as the mechanism to change file. // See <<EOF>> //! \cond dummy #if YY_FLEX_SUBMINOR_VERSION < 34 && YY_FLEX_MINOR_VERSION < 6 extern "C" int yywrap() #else int yyFlexLexer::yywrap() #endif { return 1; } //! \endcond ... makepkg is still building but in the log I see this problem: /home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/conversion/ansysToFoam/ansysToFoam.o:(.data.rel.ro._ZTV11yyFlexLexer[_ZTV11yyFlexLexer]+0x68): riferimento non definito a "yyFlexLexer::yywrap()" collect2: error: ld returned 1 exit status /home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/Makefile:138: set di istruzioni per l'obiettivo "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/ansysToFoam" non riuscito make[3]: *** [/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/bin/ansysToFoam] Errore 1 make[3]: uscita dalla directory "/home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/applications/utilities/mesh/conversion/ansysToFoam" /home/andreak/tmp/AUR/openfoam/src/OpenFOAM-3.0.1/wmake/MakefileApps:39: set di istruzioni per l'obiettivo "ansysToFoam" non riuscito make[2]: *** [ansysToFoam] Errore 2 and I do not understand why it does not stop the building procedure when an error occurs (I've removed all the "|| return 1" in the build() function in the hope to heve the errors highlighted.

panda-z commented on 2016-01-17 10:38 (UTC)

Hi @Xwang, I totally agree with you. This is a minor bug in the OpenFOAM code base. So file a bug report is a better choice.

Xwang commented on 2016-01-17 10:34 (UTC)

Thank you panda-z. I was trying to rebuild after a downgrade of the flex package, but your solution seems a lot better. I'll try and but in any case I'm going to open a bug to openFoam because this patch should be in their base code. Do you agree?

panda-z commented on 2016-01-17 09:56 (UTC)

@Xwang a patch is needed: diff --git a/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L b/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L index 3c732c1..558b483 100644 --- a/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L +++ b/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L @@ -55,7 +55,7 @@ int yyFlexLexer::yylex() // It is called by yylex but is not used as the mechanism to change file. // See <<EOF>> //! \cond dummy -#if YY_FLEX_SUBMINOR_VERSION < 34 +#if YY_FLEX_SUBMINOR_VERSION < 34 && YY_FLEX_MINOR_VERSION < 6 extern "C" int yywrap() #else int yyFlexLexer::yywrap()

Xwang commented on 2016-01-17 09:41 (UTC)

Trying to update the package, I have discovered that we are hitting a bug given by the fact that flex has been updated to 2.6.0.x. (http://www.cfd-online.com/Forums/openfoam-installation/163986-building-openfoam-3-0-archlinux.html) Now I do not know how to solve this problem. I can perhaps change the dependency to ask for flex-android, but I fear that this will conflict with other AUR packages which we are using (paraview, scotch,...) and other packages that everyone of us may have installed on his pc (wine-staging for example). All of these packages require flex and not flex-android. Any suggestion?

panda-z commented on 2016-01-15 15:14 (UTC)

@gasagna you can add alias paraFoam="paraFoam -builtin" to your ~/.bashrc as a workaround

HuBoltzmann commented on 2016-01-15 13:55 (UTC)

I still couldn't start openfoam and make run under arch linux. simpleFoam, icoFoam etc are not working. I think i'm still making a mistake by adding source on bashrc. Has anyone get passed and make run with arch linux installation using PKGBUILD ? How did you managed to complete adding source on bashrc ?

gasagna commented on 2016-01-11 21:20 (UTC)

Unfortunately not. For the fix see comment by kragacles on 2011-12-07 15:54. The paraFoam.patch file can be recovered from the git tree of this package.

Xwang commented on 2016-01-11 20:01 (UTC)

@gasagna do you have a working modified pkgbuild with the patch already applied so that I can only verify and publish it?