CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

compiling firefoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2010, 04:20
Unhappy compiling firefoam
  #1
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 15
Farshad_Noravesh is on a distinguished road
Hi,
I tried to compile different versions of firefoam but the following error is common in all versions:
[farshad@farshad source]$ ./Allwclean
+ wclean libso diffusionCombustionThermophysicalModels
wclean diffusionCombustionThermophysicalModels
+ wclean libso fvPatchFields
wclean fvPatchFields
+ wclean
[farshad@farshad source]$ ./Allwmake
+ wmake libso diffusionCombustionThermophysicalModels
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file hCombustionThermo/hCombustionThermos.C
SOURCE=hCombustionThermo/hCombustionThermos.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/basic/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/specie/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/hCombustionThermos.o
'/home/farshad/OpenFOAM/farshad-1.7.0/lib/linux64GccDPOpt/libdiffusionCombustionThermophysicalModels.so' is up to date.
+ wmake libso fvPatchFields
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file totalFlowRateAdvectiveDiffusiveFvPatchScalarField/totalFlowRateAdvectiveDiffusiveFvPatchScalarField. C
SOURCE=totalFlowRateAdvectiveDiffusiveFvPatchScala rField/totalFlowRateAdvectiveDiffusiveFvPatchScalarField. C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/specie/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/basic/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/compressible/turbulenceModel -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/triSurface/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/meshTools/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/compressible/LES/lnInclude -IlnInclude -I. -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/totalFlowRateAdvectiveDiffusiveFvPatchScalarField. o
'/home/farshad/OpenFOAM/farshad-1.7.0/lib/linux64GccDPOpt/libpatchFields.so' is up to date.
+ wmake
Making dependency list for source file fireFoam.C
SOURCE=fireFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I./include -I./fvPatchFields -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/meshTools/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/basic/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/reactionThermo/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/specie/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/radiation/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/compressible/LES/LESModel -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/LES/compressible/LESModel -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/LES/LESdeltas/lnInclude -IlnInclude -I. -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fireFoam.o
/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable ‘momentumPredictor’
/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
createFields.H:38: warning: unused variable ‘fu’
createFields.H:39: warning: unused variable ‘ox’
createFields.H:40: warning: unused variable ‘pr’
/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude/readTimeControls.H:39: warning: unused variable ‘maxCo’
/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude/readTimeControls.H:42: warning: unused variable ‘maxDeltaT’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I./include -I./fvPatchFields -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/meshTools/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/basic/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/reactionThermo/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/specie/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/radiation/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/compressible/LES/LESModel -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/LES/compressible/LESModel -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/turbulenceModels/LES/LESdeltas/lnInclude -IlnInclude -I. -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/farshad/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/fireFoam.o -L/home/farshad/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt \
-lfiniteVolume -lmeshTools -lbasicThermophysicalModels -lreactionThermophysicalModels -L/home/farshad/OpenFOAM/farshad-1.7.0/lib/linux64GccDPOpt -ldiffusionCombustionThermophysicalModels -lspecie -lcompressibleLESModels -lradiation -L/home/farshad/OpenFOAM/farshad-1.7.0/lib/linux64GccDPOpt -lpatchFields -lOpenFOAM -liberty -ldl -lm -o /home/farshad/OpenFOAM/farshad-1.7.0/applications/bin/linux64GccDPOpt/fireFoam
/usr/bin/ld: Make/linux64GccDPOpt/fireFoam.o: undefined reference to symbol 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
/usr/bin/ld: note: 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)' is defined in DSO /home/farshad/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so so try adding it to the linker command line
/home/farshad/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [/home/farshad/OpenFOAM/farshad-1.7.0/applications/bin/linux64GccDPOpt/fireFoam] Error 1
[farshad@farshad source]$
\\\\\\\\\\\\\\\\\\\\\\\\\\
please help me understand the reason why this error occured.
Thanks
Farshad_Noravesh is offline   Reply With Quote

Old   November 26, 2010, 05:02
Default problem solved
  #2
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 15
Farshad_Noravesh is on a distinguished road
Hi,
I just needed to remove // infront of settimes library.
It works fine now.
Farshad_Noravesh is offline   Reply With Quote

Old   June 12, 2012, 13:53
Default
  #3
New Member
 
Chao.W
Join Date: Apr 2012
Posts: 10
Rep Power: 13
wchao.csu is on a distinguished road
Quote:
Originally Posted by Farshad_Noravesh View Post
Hi,
I just needed to remove // infront of settimes library.
It works fine now.
Hi,
I got the similar problem when compiling the fireFOAM solver into OpenFOAM 1.7.1 . I am new to this code. Can u say something more about this solution, what does 'remove // infront of settimes library' mean. Thanks so much.
wchao.csu is offline   Reply With Quote

Old   June 13, 2012, 18:12
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings wchao.csu and welcome to the forum!

Here are a few questions:
  1. Can you be more specific with the problem you're having? What is/are the exact error message(s)?
  2. Are you trying to use the fireFoam version that is already present in OpenFOAM 1.7.1 or are you trying to build a version that comes from another place?
  3. Have you managed to build OpenFOAM 1.7.1 successfully or did you use a Deb or RPM installation package?
  4. What Linux Distribution are you using?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 14, 2012, 14:33
Default
  #5
New Member
 
Chao.W
Join Date: Apr 2012
Posts: 10
Rep Power: 13
wchao.csu is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings wchao.csu and welcome to the forum!

Here are a few questions:
  1. Can you be more specific with the problem you're having? What is/are the exact error message(s)?
  2. Are you trying to use the fireFoam version that is already present in OpenFOAM 1.7.1 or are you trying to build a version that comes from another place?
  3. Have you managed to build OpenFOAM 1.7.1 successfully or did you use a Deb or RPM installation package?
  4. What Linux Distribution are you using?
Best regards,
Bruno
Thanks for your warmly reply .
1.The detailed error message is shown below.
..........................................
+ wmake libso thermophysicalModels/radiation/derivedFvPatchFields/greyDiffusiveRadiation
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file greyDiffusiveRadiationMixedFvPatchScalarField.C
SOURCE=greyDiffusiveRadiationMixedFvPatchScalarFie ld.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/thermophysicalModels/radiation/lnInclude -I/opt/openfoam171/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam171/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I../../../../../../libs/thermophysicalModels/basicSolidThermo/basicSolid/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/greyDiffusiveRadiationMixedFvPatchScalarField.o
greyDiffusiveRadiationMixedFvPatchScalarField.C: In member function ‘virtual void Foam::radiation::greyDiffusiveRadiationMixedFvPatc hScalarField::updateCoeffs()’:
greyDiffusiveRadiationMixedFvPatchScalarField.C:34 3: error: ‘class Foam::radiation::radiativeIntensityRay’ has no member named ‘Qem’
greyDiffusiveRadiationMixedFvPatchScalarField.C:35 6: error: ‘class Foam::radiation::radiativeIntensityRay’ has no member named ‘Qin’
make: *** [Make/linuxGccDPOpt/greyDiffusiveRadiationMixedFvPatchScalarField.o] error 1
.................................................. ..................
SOURCE=cyclicPolyPatch.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IextrudeModel17x/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/dynamicMesh/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/cyclicPolyPatch.o
cyclicPolyPatch.C: In member function ‘void Foam::cyclicPolyPatch::calcTransforms()’:
cyclicPolyPatch.C:239: error: no matching function for call to ‘Foam::cyclicPolyPatch::calcTransformTensors(Foam: ointField, Foam:ointField, Foam::vectorField, Foam::vectorField, Foam::scalarField, double, Foam::cyclicPolyPatch::transformType)’
/opt/openfoam171/src/OpenFOAM/lnInclude/coupledPolyPatch.H:81: note: candidates are: void Foam::coupledPolyPatch::calcTransformTensors(const Foam::vectorField&, const Foam::vectorField&, const Foam::vectorField&, const Foam::vectorField&, const Foam::scalarField&, Foam::scalar) const
cyclicPolyPatch.C:256: error: no matching function for call to ‘Foam::cyclicPolyPatch::calcTransformTensors(Foam: ointField&, Foam:ointField&, Foam::vectorField&, Foam::vectorField&, Foam::scalarField&, Foam::scalar&, Foam::cyclicPolyPatch::transformType&)’
/opt/openfoam171/src/OpenFOAM/lnInclude/coupledPolyPatch.H:81: note: candidates are: void Foam::coupledPolyPatch::calcTransformTensors(const Foam::vectorField&, const Foam::vectorField&, const Foam::vectorField&, const Foam::vectorField&, const Foam::scalarField&, Foam::scalar) const
make: *** [Make/linuxGccDPOpt/cyclicPolyPatch.o] error 1

2.The fireFoam solver already presented in OpenFOAM 1.7.1 works well but I need the latest version of fireFoam. So I downloaded the new one from http://code.google.com/p/firefoam-dev/downloads/list. The problem appears when compiling the new solver.
3.Yes, I managed to build OpenFOAM 1.7.1 successfully and I already tested the example cases. I used Ubuntu/Debian Pack.
4.Ubuntu 10.10

Thanks again
wchao.csu is offline   Reply With Quote

Old   June 14, 2012, 15:23
Default
  #6
New Member
 
Chao.W
Join Date: Apr 2012
Posts: 10
Rep Power: 13
wchao.csu is on a distinguished road
Also there are a lot of warnings like posted below. Does it have something to do with the error?

lex.yy.cc:35926: warning: use of old-style cast
lex.yy.cc:35926: warning: use of old-style cast
lex.yy.cc:35942: warning: use of old-style cast
lex.yy.cc:37355: warning: use of old-style cast
wchao.csu is offline   Reply With Quote

Old   June 14, 2012, 17:50
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi wchao.csu,

Well, 1.7.1 isn't enough. They seem to have developed that version of fireFoam for the latest 1.7.x. You'll have to follow the installation instructions for 1.7.x: http://www.openfoam.org/archive/1.7.1/download/git.php

As for having more than OpenFOAM version installed in your machine: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 14, 2012, 18:54
Default
  #8
New Member
 
Chao.W
Join Date: Apr 2012
Posts: 10
Rep Power: 13
wchao.csu is on a distinguished road
Thanks for your tips I will try it. I thought 1.7.x means both 1.7.0 and 1.7.1 are fine before.
wchao.csu is offline   Reply With Quote

Old   June 15, 2012, 07:33
Default
  #9
New Member
 
Chao.W
Join Date: Apr 2012
Posts: 10
Rep Power: 13
wchao.csu is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi wchao.csu,

Well, 1.7.1 isn't enough. They seem to have developed that version of fireFoam for the latest 1.7.x. You'll have to follow the installation instructions for 1.7.x: http://www.openfoam.org/archive/1.7.1/download/git.php

As for having more than OpenFOAM version installed in your machine: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno
Thanks for your reply.

I followed the instructions and spent whole night on 1.7.x installation. I came across some errors. I searched forum and solved most of them but there were still some remained. So can you help with it?
here is the detail log.

+ wmake libso meshTools
triSurfaceSearch.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [/home/wchao/OpenFOAM/OpenFOAM-1.7.x/lib/linuxGccDPOpt/libmeshTools.so] error 1
.............
/usr/bin/ld: cannot find -lbasicThermophysicalModels
/usr/bin/ld: cannot find -lcompressibleTurbulenceModel
/usr/bin/ld: cannot find -lcompressibleRASModels
/usr/bin/ld: cannot find -lcompressibleLESModels
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/wchao/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linuxGccDPOpt/chtMultiRegionFoam] error 1
..........................

And similar problems like " /usr/bin/ld: cannot find -l......" repeated a lot..

Thank you so much.

Last edited by wchao.csu; June 15, 2012 at 09:33.
wchao.csu is offline   Reply With Quote

Old   June 15, 2012, 07:51
Default
  #10
New Member
 
Chao.W
Join Date: Apr 2012
Posts: 10
Rep Power: 13
wchao.csu is on a distinguished road
Is it possible that something wrong within the $home/.bashrc file?
the end of this file is ". $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc" now.

Last edited by wchao.csu; June 15, 2012 at 08:24.
wchao.csu is offline   Reply With Quote

Old   June 16, 2012, 05:38
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi wchao.csu,

OK, the problem is this:
Code:
+ wmake libso meshTools
triSurfaceSearch.o: file not recognized: File truncated
Go into the folder "OpenFOAM-1.7.x/src/meshTools/linuxming*/" and remove the file "triSurfaceSearch.o". Then run Allwmake again.
This happens once in a while due to either lack of space on disk, or Ctrl-C at the wrong time, or compiler crash and so on...

As for the other list of missing libraries (references to missing "-l*"), that's normal, since there is a large dependency tree in OpenFOAM. This is why the first error is usually the one to blame for everything else.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 16, 2012, 23:02
Default
  #12
New Member
 
Chao.W
Join Date: Apr 2012
Posts: 10
Rep Power: 13
wchao.csu is on a distinguished road
Hi Bruno,

Really thanks for your help in installing OpenFOAM 1.7.x, I finally made it and tested the tutorials. it worked prefectly. It's really a tough job. But here I came across another problem, paraview. Paraview3.8.0 only can be installed well with Qt 4.6(learned from other threads). I already upgrade Qt to 4.7. So can u help me with how to downgrade it back to 4.6.3.

Thanks so much. I love this forum.
wchao.csu is offline   Reply With Quote

Old   June 16, 2012, 23:09
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi wchao.csu,

Well, there are at least two ways to solve your problem and they are listed here: Related issues to ParaView with OpenFOAM - Fixes and solutions

Basically, you have two options:
  1. Either you build a custom Qt version.
  2. Or you use the latest pre-built ParaView made available at http://www.paraview.org
Either one of these solutions are shown on the link above

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 16, 2012, 17:22
Default
  #14
New Member
 
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14
Yuri Almeida is on a distinguished road
Hello guys,

I am having several problems to compile fireFoam 1.7.x_0.4. I am using the following configuration:

1) Ubuntu 11.10
2) Gcc 4.5.3
3) Openfoam 1.7.x, as recommended by the developers.

Openfoam compilation apparently worked fine, but when I try to wmake the solver it asks for files that I don't have in my 1.7.x version.

Quote:
+ ./libs/Allwmake
+ ./thermophysicalModels/Allwmake
+ wmake libso additionalReactionsNew
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/hashedWordList.H', needed by `makeChemkinReactions.dep'. Stop.
+ wmake libso reactionThermoNew
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `reactionThermo/hsReactionThermo/hsReactionThermos.dep'. Stop.
+ wmake libso SLGThermo
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `SLGThermo/SLGThermo.dep'. Stop.
+ wmake libso combustionModelsSpecies
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `noCombustion/noCombustion.dep'. Stop.
+ wmake libso chemistryModelNew
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/hashedWordList.H', needed by `chemistryModel/ODEChemistryModel/ODEChemistryModelsNew.dep'. Stop.
+ wmake libso radiationModelNew
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/interpolationLookUpTable.H', needed by `subModels/absorptionEmissionModel/greyMeanAbsorptionEmissionNew/greyMeanAbsorptionEmissionNew.dep'. Stop.
+ ./basicSolidThermo/Allwmake
+ wmake libso solid
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/hashedWordList.H', needed by `reaction/reactions/makeSolidReactionThermoReactions.dep'. Stop.
+ wmake libso basicSolid
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `solidMixtureThermo/solidMixtureThermo/solidMixtureThermos.dep'. Stop.
+ wmake libso chemistryModel
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/hashedWordList.H', needed by `solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolvers.dep'. Stop.
+ ./regionModels/Allwmake
+ wmake libso regionModel
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `derivedFvPatchFields/directMappedNamedFixedValue/directMappedNamedFixedValueFvPatchFields.dep'. Stop.
+ wmake libso pyrolysisModels
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `noPyrolysis/noPyrolysis.dep'. Stop.
+ wmake libso surfaceFilmModels
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `derivedFvPatchFields/wallFunctions/mutFilmWallFunction/mutFilmWallFunctionFvPatchScalarField.dep'. Stop.
+ wmake libso regionCoupling
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField. dep'. Stop.
+ wmake libso lagrangian/basicNew
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `indexedParticle/indexedParticleCloud.dep'. Stop.
+ wmake libso lagrangian/intermediateNew
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `phaseProperties/phasePropertiesList/phasePropertiesList.dep'. Stop.
+ ./solvers/Allwmake
+ ./fireFoam_1704/Allwmake
+ wmake libso thermophysicalModels/combustionModels
'/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt/libcombustionModelsSpeciesEDCNew17x.so' is up to date.
+ wmake libso thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanAbsorptionEmissionSoot
'/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt/libgreyMeanAbsorptionEmissionSoot17x.so' is up to date.
+ wmake libso thermophysicalModels/radiation/derivedFvPatchFields/greyDiffusiveRadiation
'/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt/libgreyDiffusiveRadiationMixed17x.so' is up to date.
+ wmake libso fvPatchFields
'/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt/libpatchFieldsFireFOAM.so' is up to date.
+ wmake libso fvPatchFieldsPyrolysis
'/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt/libfvPatchFieldsPyrolysis.so' is up to date.
+ wmake libso functionObjects
'/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt/libfaceZonesIntegration.so' is up to date.
+ wmake
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I./include -I./../../libs/thermophysicalModels/combustionModelsSpecies/lnInclude -I./../../libs/regionModels/regionModel/lnInclude -I./../../libs/regionModels/surfaceFilmModels/lnInclude -I./../../libs/regionModels/pyrolysisModels/lnInclude -I./../../libs/lagrangian/intermediateNew/lnInclude -I./../../libs/thermophysicalModels/reactionThermoNew/lnInclude -I./../../libs/thermophysicalModels/SLGThermo/lnInclude -I./../../libs/thermophysicalModels/chemistryModelNew/lnInclude -I./../../libs/thermophysicalModels/basicSolidThermo/basicSolid/lnInclude -I./../../libs/thermophysicalModels/basicSolidThermo/chemistryModel/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/lagrangian/basic/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/basic/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/specie/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/meshTools/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/compressible/turbulenceModel -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/liquids/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/liquidMixture/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/solids/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/solidMixture/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/radiation/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/ODE/lnInclude -IlnInclude -I. -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/fireFoam_1704.o -L/home/yuri/OpenFOAM/OpenFOAM-1.7.x/lib/linuxGccDPOpt \
-L/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt -lpatchFieldsFireFOAM -ladditionalReactionsNew17x -lcombustionModelsSpeciesNew17x -lcombustionModelsSpeciesEDCNew17x -lregionModels17x -lsurfaceFilmModels17x -lpyrolysisModels17x -llagrangianIntermediateNew17x -lregionCoupling17x -lreactionThermophysicalModelsNew17x -lSLGThermoNew17x -lchemistryModelNew17x -lsolidMixtureThermo17x -lsolidChemistryModel17x -lgreyDiffusiveRadiationMixed17x -lgreyMeanAbsorptionEmissionSoot17x -lbasicThermophysicalModels -llagrangian -lfiniteVolume -lcompressibleLESModels -lcompressibleRASModels -lmeshTools -lthermophysicalFunctions -lradiation -lspecie -lsolids -lsolidMixture -lODE -lOpenFOAM -ldl -lm -o /home/yuri/OpenFOAM/yuri-1.7.x/applications/bin/linuxGccDPOpt/fireFoam_1704
/usr/bin/ld: cannot find -ladditionalReactionsNew17x
/usr/bin/ld: cannot find -lcombustionModelsSpeciesNew17x
/usr/bin/ld: cannot find -lregionModels17x
/usr/bin/ld: cannot find -lsurfaceFilmModels17x
/usr/bin/ld: cannot find -lpyrolysisModels17x
/usr/bin/ld: cannot find -llagrangianIntermediateNew17x
/usr/bin/ld: cannot find -lregionCoupling17x
/usr/bin/ld: cannot find -lreactionThermophysicalModelsNew17x
/usr/bin/ld: cannot find -lSLGThermoNew17x
/usr/bin/ld: cannot find -lchemistryModelNew17x
/usr/bin/ld: cannot find -lsolidMixtureThermo17x
/usr/bin/ld: cannot find -lsolidChemistryModel17x
collect2: ld returned 1 exit status
make: *** [/home/yuri/OpenFOAM/yuri-1.7.x/applications/bin/linuxGccDPOpt/fireFoam_1704] Error 1
+ ./utilities/Allwmake
+ ./extrudeToRegionMesh/Allwmake
+ wmake libso extrudeModel17x
'/home/yuri/OpenFOAM/yuri-1.7.x/lib/linuxGccDPOpt/libextrudeModelNew17x.so' is up to date.
+ wmake
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `cyclicPolyPatch.dep'. Stop.
+ ./mapFields/Allwmake
+ wmake
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `mapFields.dep'. Stop.
+ ./decomposeParPyr/Allwmake
+ wmake libso decompositionMethodsPyr
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `structuredDecomp/topoDistanceData.dep'. Stop.
+ wmake
make: *** No rule to make target `/home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/UPstream.H', needed by `lagrangianFieldDecomposer.dep'. Stop.
Has anyone experienced the same problem? How can I overcome it?

Thanks in advance.
Yuri Almeida is offline   Reply With Quote

Old   July 20, 2012, 16:17
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Yuri Almeida and welcome to the forum!

It took me a while to try and replicate the issue you're getting. My conclusion is that in fact the installation of OpenFOAM 1.7.x did not go as well as you expected.

Did you try checking if this file exists :
Code:
ls -l /home/yuri/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/hashedWordList.H
If it doesn't, then you simply didn't build OpenFOAM 1.7.x

What instructions did you follow for installing OpenFOAM 1.7.x?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 20:39
Default
  #16
New Member
 
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14
Yuri Almeida is on a distinguished road
Hi Bruno,

In fact, the compilation of my OF17x did not work fine. Or at least, the files hashedWordList.H, UPstream.H, and many others required by the solver are not present in the source directory.

In order to build OF, I follow the instructions shown in http://www.openfoam.org/download/git.php for 2.1.x.

Maybe some package is missed, but I have the 1.6-ext compiled, so I thought that my currents packages would be sufficient. I try to make again the OF17x, using gcc 4.4.6 this time, and "few errors" are still occurring, as can be seen in the annex. Any suggestion?

By the way, the solver (fireFoam) asks some files that sounds a little bit weird to me, like the fvPatchFieldNew.C (present in 2.1 version). Curiously my OF17x has the newFvPatchField.C...

Thanks for your attention, Bruno!
Attached Files
File Type: gz check.wmake.tar.gz (7.3 KB, 5 views)
Yuri Almeida is offline   Reply With Quote

Old   July 20, 2012, 22:22
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Yuri,

I think you're missing this patch: https://github.com/OpenFOAM/OpenFOAM...3e8d0e85b889d9
Quote:
Code:
diff --git a/wmake/rules/linux64Gcc/c++ b/wmake/rules/linux64Gcc/c++
index 3dfb033..520e39c 100644
--- a/wmake/rules/linux64Gcc/c++
+++ b/wmake/rules/linux64Gcc/c++
@@ -17,5 +17,5 @@ cpptoo      = $(Ctoo)
 
 LINK_LIBS   = $(c++DBUG)
 
-LINKLIBSO   = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
-LINKEXE     = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
+LINKLIBSO   = $(CC) $(c++FLAGS) -shared
+LINKEXE     = $(CC) $(c++FLAGS) -Xlinker --add-needed
This was added in 2.0.x because Ubuntu had switched to a new object linker, so even if you're using Gcc 4.4.6, you still need this patch on 1.7.x as well.

As for the other error you mentioned, I'm not very familiar with this fireFoam modification. All I know is that I once managed to build it without any problems some time ago with my build of 1.7.x, but yesterday one of the solvers in this new external fireFoam had issues, but I didn't bother checking what was the problem

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 21, 2012, 17:54
Default
  #18
New Member
 
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14
Yuri Almeida is on a distinguished road
Hi Bruno,

Apparently these corrections didn't work, could you take a look at my new log file?

Thanks again!
Attached Files
File Type: gz check.wmake2.tar.gz (7.3 KB, 4 views)
Yuri Almeida is offline   Reply With Quote

Old   July 21, 2012, 18:51
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Yuri,

Mmm, this is very strange... which commit do you have for 1.7.x:
Code:
git log -1
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 21, 2012, 19:00
Default
  #20
New Member
 
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14
Yuri Almeida is on a distinguished road
That's the output, Bruno:

Quote:
commit d08d3c27ccda228b4d41cf13212e6efc4f419b0e
Author: mattijs <mattijs>
Date: Thu Jul 14 22:08:27 2011 +0100

ENH: patchCloud: return pTraits<Type>::max for unfound points
I suppose that this is the newest version of 1.7.x.
Yuri Almeida is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fireFoam and basicThermo prapanj OpenFOAM Running, Solving & CFD 26 November 8, 2016 08:47
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 06:40
DNS, FireFoam, adaptive mesh fgal OpenFOAM Running, Solving & CFD 3 July 5, 2010 14:09
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 sponiar OpenFOAM Running, Solving & CFD 3 February 26, 2008 07:31
Discussing UDF and C++ Compiling Big Stone FLUENT 9 April 12, 2004 16:07


All times are GMT -4. The time now is 22:01.