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

Compilation problems OF 2.1.x

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   March 21, 2012, 06:45
Unhappy Compilation problems OF 2.1.x
  #1
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 9
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Hi foamers,
it's been a long time since my last posting!

I'm encountering some problems related to the compilation of the git version of OF 2.1.x, git pull performed this morning, on a Suse Enterprise 11 (all the prerequisites packages are ok).

The error is in the lagrangian library. When I do Allwmake I find these errors:

+ wmake libso distributionModels
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdistributionModels.so' is up to date.
+ wmake libso basic
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/liblagrangian.so' is up to date.
+ wmake libso solidParticle
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libsolidParticle.so' is up to date.
+ wmake libso intermediate
SOURCE=parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/distributionModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/specie/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/reactionThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/SLGThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/radiationModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/regionModel/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/surfaceFilmModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/dynamicFvMesh/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -IlnInclude -I. -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/makeBasicKinematicParcelSubmodels.o
In file included from parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:28:
lnInclude/makeParcelCloudFunctionObjects.H:34:26: error: ParticleTrap.H: No such file or directory
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: expected initializer before ‘<’ token
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: expected initializer before ‘<’ token
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: ‘ParticleTrap’ was not declared in this scope
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: template argument 1 is invalid
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: expected unqualified-id before ‘>’ token
make: *** [Make/linux64GccDPOpt/makeBasicKinematicParcelSubmodels.o] Error 1
+ wmake libso spray
SOURCE=parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/intermediate/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/distributionModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/specie/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/reactionThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/SLGThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/radiationModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/regionModel/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/surfaceFilmModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/dynamicFvMesh/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -IlnInclude -I. -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/makeBasicSprayParcelSubmodels.o
In file included from parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:28:
/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/intermediate/lnInclude/makeParcelCloudFunctionObjects.H:34:26: error: ParticleTrap.H: No such file or directory
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: expected initializer before ‘<’ token
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: expected initializer before ‘<’ token
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: ‘ParticleTrap’ was not declared in this scope
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: template argument 1 is invalid
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: expected unqualified-id before ‘>’ token
make: *** [Make/linux64GccDPOpt/makeBasicSprayParcelSubmodels.o] Error 1
+ wmake libso dsmc
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdsmc.so' is up to date.
+ wmake libso coalCombustion
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -llagrangianIntermediate
collect2: ld returned 1 exit status
make: *** [/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libcoalCombustion.so] Error 1
+ molecularDynamics/Allwmake
+ wmake libso potential
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libpotential.so' is up to date.
+ wmake libso molecularMeasurements
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libmolecularMeasurements.so' is up to date.
+ wmake libso molecule
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libmolecule.so' is up to date.


What's appening? Any suggestions?

Thanks in advance,
Ivan
ivan_cozza is offline   Reply With Quote

Old   March 21, 2012, 11:55
Default
  #2
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 9
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
I add the log file of the wmake.

No one knows what happens?

Thanks!
Attached Files
File Type: txt makeLog.txt (87.0 KB, 4 views)
ivan_cozza is offline   Reply With Quote

Old   March 21, 2012, 14:54
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Ivan,

It's not a matter of not knowing the issue, it's a problem with having the time to answer

The library that has this problem indicates a missing file. Said file should present at least in the library's code folder "lnInclude". This tends to happen when updating from the git repo.

The solution here should be simple enough:
  1. Find the library in question:
    Code:
    find $FOAM_SRC -name intermediate
  2. Go to that folder from the command line.
  3. Run:
    Code:
    wclean libso
    wmake libso
  4. If it still has problems, search for the file in question:
    Code:
    find $FOAM_SRC -name ParticleTrap.H
    And do the same to the library where this file is.
There is of course the full clean way that does the clean up and allows you to rebuild everything. There are a few ways to do this, but the one I remember is this:
Code:
foam
wclean all
Best regards,
Bruno
rmorgans likes this.
wyldckat is offline   Reply With Quote

Old   March 22, 2012, 04:38
Default
  #4
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 9
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Quote:
Originally Posted by wyldckat View Post
Greetings Ivan,

It's not a matter of not knowing the issue, it's a problem with having the time to answer
Hi Bruno,
and sorry to have been impolite!

Your suggestion worked good! Now, I'm on with 2.1.x!

Thank you very much!
Ivan
ivan_cozza is offline   Reply With Quote

Old   March 22, 2012, 16:38
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ivan,

Quote:
Originally Posted by ivan_cozza View Post
and sorry to have been impolite!
It didn't feel like you were impolite. It only felt like you assumed the worst case scenario

Quote:
Originally Posted by ivan_cozza View Post
Your suggestion worked good! Now, I'm on with 2.1.x!

Thank you very much!
Ivan
I'm glad it's working and you're welcome!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 23, 2012, 08:39
Default
  #6
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 9
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
I think I talked too soon.
Now, OF is working, but not Paraview...

I attached the log file of makeParaview, hope that someone (!) could help me...

Regards,
Ivan
ivan_cozza is offline   Reply With Quote

Old   March 23, 2012, 09:26
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ivan,

Mmm... no attachment. But my guess is that you have an issue already addressed in the past :
Quote:
Originally Posted by http://www.cfd-online.com/Forums/blogs/wyldckat/533-related-issues-paraview-openfoam-fixes-solutions.html
OpenFOAM 2.1.0/x and building ParaView 3.12.0 on Ubuntu 10.04: paraview compilation error paraview-3.12.0 - post #9
edit: No wait... I mistook your problem for another user's problem. For you the problem is likely that you need to rebuild OpenFOAM's plugin:
Quote:
Originally Posted by http://openfoam.org/download/git.php
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers 
wmSET 
./Allwclean 
./Allwmake
Best regards,
Bruno

Last edited by wyldckat; March 23, 2012 at 09:31. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   March 23, 2012, 09:54
Default
  #8
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 9
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Ups, sorry, here we are.
Unfortunately is not the recompilation of ParaFoam the problem, I already did what you suggested but it doesn't work...
Attached Files
File Type: zip log.zip (65.7 KB, 1 views)
ivan_cozza is offline   Reply With Quote

Old   March 23, 2012, 10:31
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ivan,

Here's the problem:
Code:
Cannot open data base file /home/cozza/OpenFOAM/ThirdParty-2.1.x/build/linux64Gcc/paraview-3.12.0/Documentation/paraview.qch!
So it should be a problem with either:
  • Not enough disk space.
  • The folder is contaminated somehow. Try removing the folder "/home/cozza/OpenFOAM/ThirdParty-2.1.x/build/" and then try to build again.
  • There is also another error that might be the real reason for the problem:
    Code:
    QSqlDatabase: QSQLITE driver not loaded
    QSqlDatabase: available drivers: QMYSQL3 QMYSQL
    For this, you'll have to install the Qt4 "libsqlite" library.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 0 August 5, 2011 16:02
"interpolationTable" problems with compilation: Difference from 1.7 and 2.0 alessio.nz OpenFOAM 1 August 5, 2011 14:45
snapEdge compilation problems rassilon OpenFOAM Native Meshers: snappyHexMesh and Others 4 February 23, 2011 22:23
UDF compilation problems MateuszZb FLUENT 4 October 20, 2008 02:46
Compilation problems and file locations Joel CD-adapco 3 February 11, 2003 13:42


All times are GMT -4. The time now is 20:50.