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

OpenFoam-1.6-ext Allwmake compilation error - one last barrier

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2012, 16:17
Default OpenFoam-1.6-ext Allwmake compilation error - one last barrier
  #1
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
Hello,

I have compiled the ThirdParty packages under openLinux 12.1. With this patches it was completely successful:

http://openfoam-extend.git.sourcefor...8d5a40e5581224

I did edit the prefs.sh with:

compilerInstall=System
export WM_COMPILER_DIR=/usr

export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr/lib64/mpi/gcc/openmpi
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin

export QT_DIR=/usr
export QT_BIN_DIR=$QT_DIR/bin


How I've said, the ThirdParty compilation was without errors.

My problem now is, that the compilation of the Allwmake in the OpenFOAM-1.6-ext directory leads to some errors.

Code:
dynamicTopoFvMesh/eMesh/eMeshDemandDrivenData.C:182:10: warning: variable ‘found’ set but not used [-Wunused-but-set-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lsolidBodyMotion
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lmesquiteMotionSolver
collect2: ld returned 1 exit status
make: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libdynamicFvMesh.so] Fehler 1
+ wmake libso topoChangerFvMesh

Code:
Making dependency list for source file multiMixerFvMesh/multiMixerFvM/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicFvMesh
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lsolidBodyMotion
collect2: ld returned 1 exit status
make: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libtopoChangerFvMesh.so] Fehler 1
+ wmake libso coupledMatrix

Code:
engineTopoChangerMesh/pistonSliding/pistonSlidingMove.C:322:27: warning: unused variable ‘motionU’ [-Wunused-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicFvMesh
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -ltopoChangerFvMesh
collect2: ld returned 1 exit status
make: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libengine.so] Fehler 1
+ wmake all solvers

Code:
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:6:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:9:10: warning: unused variable ‘fluxGradp’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:12:10: warning: unused variable ‘transonic’ [-Wunused-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lengine
collect2: ld returned 1 exit status
make[2]: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/coldEngineFoam] Fehler 1
make[1]: *** [coldEngineFoam] Fehler 2

Code:
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:6:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:9:10: warning: unused variable ‘fluxGradp’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:12:10: warning: unused variable ‘transonic’ [-Wunused-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lengine
collect2: ld returned 1 exit status
make[2]: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/dieselEngineFoam] Fehler 1
make[1]: *** [dieselEngineFoam] Fehler 2

Code:
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxCo’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readTimeControls.H:43:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lengine
collect2: ld returned 1 exit status
make[2]: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/engineFoam] Fehler 1
make[1]: *** [engineFoam] Fehler 2

Code:
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:5:9: warning: unused variable ‘nNonOrthCorr’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/initContinuityErrs.H:38:8: warning: unused variable ‘sumLocalContErr’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/initContinuityErrs.H:39:8: warning: unused variable ‘globalContErr’ [-Wunused-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lengine
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicFvMesh
collect2: ld returned 1 exit status
make[2]: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/PDRFoam] Fehler 1
make[1]: *** [PDRFoam] Fehler 2

Code:
createFields.H:31:27: warning: unused variable ‘T’ [-Wunused-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lengine
collect2: ld returned 1 exit status
make[2]: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/XiFoam] Fehler 1
make[1]: *** [XiFoam] Fehler 2
make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make: *** [combustion] Fehler 2

Code:
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:3:9: warning: unused variable ‘nCorr’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:5:9: warning: unused variable ‘nNonOrthCorr’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’ [-Wunused-variable]
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lengine
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicFvMesh
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -ltopoChangerFvMesh
collect2: ld returned 1 exit status
make[2]: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoDyMEngineFoam] Fehler 1
make[1]: *** [icoDyMEngineFoam] Fehler 2
And so on..
I think it is the same failure, that leads to all that errors.
Is someone able to help me? I'm trying to install OpenFoam-ext since 3 days without success
System gcc is Ver. 4.6
Pat84 is offline   Reply With Quote

Old   June 10, 2012, 18:20
Default
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
> My problem now is, that the compilation of the Allwmake in the OpenFOAM-1.6-ext directory leads to some errors.

Double check your logs, you certainly have additional errors occurring earlier in the compilation process.

For my compilation recipe for OpenSUSE 12.1, you can check here:

http://openfoam-extend.git.sourcefor...3472fd1ef579fa

I have started to publish my compilation recipes for various operating systems under the directory docs/buildInstructions.

Hope this helps.

Martin
mbeaudoin is offline   Reply With Quote

Old   June 11, 2012, 06:14
Default
  #3
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
Thank you very much.
I have tried to make a new compilation by follow your instructions, and the whole third party compilation was successful. But now I have big trouble compiling the Allwmake.

All of my Allwmake files are attached.
Attached Files
File Type: gz log.Allwmake.tar.gz (28.3 KB, 27 views)

Last edited by Pat84; June 11, 2012 at 06:46.
Pat84 is offline   Reply With Quote

Old   June 11, 2012, 10:55
Default
  #4
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
[ MB: I am editing this post because the answer I posted earlier is for another thread. Sorry for the noise]

Indeed, there is something missing for gcc 4.6.x under the head branch.

You could fix it yourself like this, until a proper fix is uploaded:

cp -r /home/patrick/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc /home/patrick/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc46

Martin
mbeaudoin is offline   Reply With Quote

Old   June 11, 2012, 11:10
Default
  #5
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Just making sure the Email version of my post will get updated as well. Again, sorry for the noise.
Martin

Quote:
Originally Posted by mbeaudoin View Post
[ MB: I am editing this post because the answer I posted earlier is for another thread. Sorry for the noise]

Indeed, there is something missing for gcc 4.6.x under the head branch.

You could fix it yourself like this, until a proper fix is uploaded:

cp -r /home/patrick/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc /home/patrick/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc46

Martin
mbeaudoin is offline   Reply With Quote

Old   June 11, 2012, 12:29
Default
  #6
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
This fix seems to be a compromise, isn't it? It is compiling, but do I have to recompile it when the proper fix is uploaded?

Thank you for the support!
Pat84 is offline   Reply With Quote

Old   June 11, 2012, 12:54
Default
  #7
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
> This fix seems to be a compromise, isn't it? It is compiling, but do I have to recompile it when the proper fix is uploaded?

Nope, this IS the solution. You won't have to recompile anything.

You will only have to destroy the directory OpenFOAM-1.6-ext/wmake/rules/linux64Gcc46 before doing "git update" in order to get rid of the version conflict. The update will recreate the 'linux64Gcc46' directory for you.

Martin
mbeaudoin is offline   Reply With Quote

Old   June 11, 2012, 13:08
Default
  #8
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
That sounds very good. Thank you very much!

But I have a question again:
In your buildinstructions -> openSuse 12.1 in the line

37 sed -i s/"compilerInstall=System"/"compilerInstall=System\nWM_COMPILER=Gcc46"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh

there is only a WM_COMPILER=Gcc46. Is it enough, or did you forget the "export" in front of it?

I also exported the WM_COMPILER_DIR=/usr , but I don't know if it's necessary.

---------------------------- update ----------------------------

I have checked my log.Allwmake and there are errors like in my first post, starting with

Code:
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lmesquite
collect2: ld returned 1 exit status
make: *** [/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt/libmesquiteMotionSolver.so] Fehler 1
+ cd tetDecompositionMotionSolver
+ ./Allwmake
I was not able to solve the problem.. It is so frustrating!

That "ld" links to /usr/bin/ld while that ld is a link to the ld.bdf in the same directory. Is that correct?

I have attached the log.AllMake.stage1 - 4 files. There is no errors (fehler in german), but there are lots of warnings. Maybe this is the reason for the errors in the Allwmake compilation.
Attached Files
File Type: gz log.AllMake.stage1&2.tar.gz (67.9 KB, 1 views)
File Type: gz log.AllMake.stage4part1.tar.gz (69.8 KB, 1 views)
File Type: gz log.AllMake.stage4part2.tar.gz (80.3 KB, 1 views)

Last edited by Pat84; June 11, 2012 at 19:41.
Pat84 is offline   Reply With Quote

Old   June 11, 2012, 21:33
Default
  #9
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
> /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lmesquite

You are missing the Mesquite library, which is compiled and installed by ThirdParty/AllMake.stage3

Martin
mbeaudoin is offline   Reply With Quote

Old   June 11, 2012, 21:42
Default
  #10
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
From your log files, it looks like the Mesquite package was compiled correctly.

Now, just make sure you did update your environment variables before compiling OpenFOAM

line 94: . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

This is important because a lot of ThirdParty environment variables are not yet exported at that stage, and the compilation of OpenFOAM relies on the existence of those variables, for example, $MESQUITE_DIR which seems to be missing in your case.

Martin
mbeaudoin is offline   Reply With Quote

Old   June 12, 2012, 06:16
Default
  #11
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
Thank you Martin,

I have updated my variables after the Allmake.stage1 - 4 with:

source ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

like described in your buildinstructions.

Echo $MESQUITE_DIR provides follow directory:

Code:
patrick@linux-9vam:~> echo $MESQUITE_DIR 
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt
I also source the OpenFOAM bashrc in the ~/.bashrc

----------------------------------------------------------

I got it!
The problem is, that the environment variable MESQUITE_LIB_DIR includes the directory:
$MESQUITE_DIR/lib
while the proper directory is:
$MESQUITE_DIR/lib64

This is set by the mesquite-2.1.2.spec, which creates the mesquite-2.1.2.sh file in the
~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt/etc/
directory

Editing the "export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib" line to "export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib64" solves the problem.

I think that editing the spec file before compilation will also solve the problem.

Also the critical error:
Code:
gcc      4.6.2                                                                                                                  
WARNING:  Conflicting installations:                                                                                            
          OpenFOAM settings        : /bin/gcc                                                                                   
          current path             : /usr/bin/gcc                                                                               
          CRITICAL ERROR
disappears after adding "export WM_COMPILER_DIR= /usr" to the prefs.sh

Thank you!

Last edited by Pat84; June 12, 2012 at 09:49.
Pat84 is offline   Reply With Quote

Old   June 12, 2012, 13:12
Default
  #12
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Quote:
I got it!
The problem is, that the environment variable MESQUITE_LIB_DIR includes the directory:
$MESQUITE_DIR/lib
while the proper directory is:
$MESQUITE_DIR/lib64
Arrrrghghh! I am very sorry about this. I spend most of my time working under the mixingPlane_RC1 git branch, where that problem was solved already. I forgot to push this correction for the Mesquite package under the master branch as well.

It is done now. The spec file for the Mesquite package will force the installation of the package libraries under $MESQUITE_DIR/lib, and not under $MESQUITE_DIR/lib64 which was chosen by default by configure under openSuse 12.1.

This correction should be more portable under various OSes.

You will have to recompile the Mesquite package because of this change.

Before doing so, you will need to remove the file

ThirdParty/rpmBuild/RPMS/x86_64/mesquite-2.1.2-linux64Gcc46DPOpt.x86_64.rpm

You might as well remove the directory ThirdParty/packages/mesquite-2.1.2 in order to start from a clean slate.

Regards,

Martin




Quote:
Originally Posted by Pat84 View Post
Thank you Martin,

I have updated my variables after the Allmake.stage1 - 4 with:

source ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

like described in your buildinstructions.

Echo $MESQUITE_DIR provides follow directory:

Code:
patrick@linux-9vam:~> echo $MESQUITE_DIR 
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt
I also source the OpenFOAM bashrc in the ~/.bashrc

----------------------------------------------------------

I got it!
The problem is, that the environment variable MESQUITE_LIB_DIR includes the directory:
$MESQUITE_DIR/lib
while the proper directory is:
$MESQUITE_DIR/lib64

This is set by the mesquite-2.1.2.spec, which creates the mesquite-2.1.2.sh file in the
~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt/etc/
directory

Editing the "export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib" line to "export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib64" solves the problem.

I think that editing the spec file before compilation will also solve the problem.

Also the critical error:
Code:
gcc      4.6.2                                                                                                                  
WARNING:  Conflicting installations:                                                                                            
          OpenFOAM settings        : /bin/gcc                                                                                   
          current path             : /usr/bin/gcc                                                                               
          CRITICAL ERROR
disappears after adding "export WM_COMPILER_DIR= /usr" to the prefs.sh

Thank you!
mbeaudoin is offline   Reply With Quote

Old   June 12, 2012, 16:16
Default
  #13
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
Hi Martin,

I have deleted the
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/
folder, the RPM you described and the mesquite-2.1.2.tar.gz in the SOURCES directory, but after compiling the Allmake.stage3 there is again only a lib64 folder under
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt/

Patrick

-----------------------------------------------------------

Ok, after updating the spec file the lib64 directory has now been replaced by lib. Has the linux64Gcc46 directory under /home/patrick/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules been updated too?
Sorry, but how does the updating with git works? I have no idea.

Last edited by Pat84; June 12, 2012 at 17:01.
Pat84 is offline   Reply With Quote

Old   June 12, 2012, 23:26
Default
  #14
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Quote:
Ok, after updating the spec file the lib64 directory has now been replaced by lib.
Great!

Quote:
Has the linux64Gcc46 directory under /home/patrick/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules been updated too?
Sorry, but how does the updating with git works? I have no idea.
Yup, this should have been updated too, but only if you first deleted your "manual modification" I suggested you did yesterday as a temporary fix. Otherwise, the command "git pull" probably complained about a conflict with your local repo.

As for a brief explanation about git and git updating, there are many good documents out there that will explain this. Google is your friend here.

Basically, the main git repository for 1.6-ext is located on the openfoam-extend project on SourceForge.net. What you got on your machine is a local clone or copy of that repository, containing the full source code of OF-1.6-ext.

Every time someone is publishing changes on the main repository located on openfoam-extend (adding/removing/modifying files, creating new branches for bug fixes or new features), your local repository will be out of sync.

When you invoke the command "git pull", you are basically forcing your local repo to get in sync with the remote repo on openfoam-extend; all the changes that did occur on the remote repo since your last update will be applied to your local copy too. Then you update your binaries by invoking the main OpenFOAM compilation scripts, and you will be a happy camper.

So it is a good idea to watch this space on a regular basis:
http://openfoam-extend.git.sourcefor...-ext;a=summary

and to pull in the latest changes in order for your local repo to be in sync with the latest bug fixes or with the latest additions to the source code for 1.6-ext.

Hope this helps,

Martin

Quote:
Originally Posted by Pat84 View Post
Hi Martin,

I have deleted the
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/
folder, the RPM you described and the mesquite-2.1.2.tar.gz in the SOURCES directory, but after compiling the Allmake.stage3 there is again only a lib64 folder under
/home/patrick/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt/

Patrick

-----------------------------------------------------------

Ok, after updating the spec file the lib64 directory has now been replaced by lib. Has the linux64Gcc46 directory under /home/patrick/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules been updated too?
Sorry, but how does the updating with git works? I have no idea.
mbeaudoin is offline   Reply With Quote

Old   June 13, 2012, 06:51
Default
  #15
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
Many thanks for your help Martin!
I have already done a successful git pull with your instructions

Have I to compile everything new, or only a certain Allmake stage?
Ok, in my case the git pull was only to be in sync with the main.

Now I have to install the edcSimpleFoam solver from Domenik Christ.. I hope this will be easier
Pat84 is offline   Reply With Quote

Old   July 25, 2012, 22:49
Default scotch not building
  #16
atg
Member
 
Karl
Join Date: Jan 2011
Posts: 36
Rep Power: 15
atg is on a distinguished road
build started throwing errors at me; going through the logs it seems scotch is not building correctly. Relevant log quote attached. libscotch seems OK (immediately preceding). It tries to install from rpm, but fails for some reason. I am tempted to just install the current version using Synaptic, but I have a feeling that will introduce new problems. I have thrown the entire 1.6-ext folder away and reinstalled from scratch using what I think are Martin's latest instructions, but this error persists. Any thoughts appreciated,

Karl
Ubuntu 12.04 64bit

make[1]: Entering directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/scotch_5.1.10b/src/scotch'
rm -f *~ *.o acpl amk_ccc amk_fft2 amk_grf amk_hy amk_m2 amk_p2 atst gbase gcv *ggath *gmap gmk_hy gmk_m2 gmk_m3 gmk_msh gmk_ub2 gmtst *gord gotst gout *gpart *gscat *gtst mcv mmk_m2 mmk_m3 mord mtst
make CC="gcc" SCOTCHLIB=scotch \
acpl \
amk_ccc \
amk_fft2 \
amk_grf \
amk_hy \
amk_m2 \
amk_p2 \
atst \
gbase \
gcv \
gmap \
gmk_hy \
gmk_m2 \
gmk_m3 \
gmk_msh \
gmk_ub2 \
gmtst \
gord \
gotst \
gout \
gpart \
gscat \
gtst \
mcv \
mmk_m2 \
mmk_m3 \
mord \
mtst
make[2]: Entering directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/scotch_5.1.10b/src/scotch'
gcc -O3 -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -DSCOTCH_PTHREAD -Drestrict=__restrict -I../../include -I../libscotch acpl.c -o acpl -L../../lib -lscotch -lscotcherrexit -lz -lm -lrt
gcc -O3 -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -DSCOTCH_PTHREAD -Drestrict=__restrict -I../../include -I../libscotch amk_ccc.c -o amk_ccc -L../../lib -lscotch -lscotcherrexit -lz -lm -lrt
../../lib/libscotch.so: error: undefined reference to 'pthread_create'
../../lib/libscotch.so: error: undefined reference to 'pthread_detach'
collect2: ld returned 1 exit status
make[2]: *** [acpl] Error 1
make[2]: *** Waiting for unfinished jobs....
../../lib/libscotch.so: error: undefined reference to 'pthread_create'
../../lib/libscotch.so: error: undefined reference to 'pthread_detach'
collect2: ld returned 1 exit status
make[2]: *** [amk_ccc] Error 1
make[2]: Leaving directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/scotch_5.1.10b/src/scotch'
make[1]: *** [scotch] Error 2
make[1]: Leaving directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/scotch_5.1.10b/src/scotch'
make: *** [scotch] Error 2
error: Bad exit status from /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.tYjd4V (%build)


RPM build errors:
Bad exit status from /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.tYjd4V (%build)
Installing package: scotch-5.1.10b
Uninstalling scotch-5.1.10b using RPM: scotch-5.1.10b-linux64Gcc46DPOpt.x86_64
Installing scotch-5.1.10b using RPM file: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/scotch-5.1.10b-linux64Gcc46DPOpt.x86_64.rpm
error: open of /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/scotch-5.1.10b-linux64Gcc46DPOpt.x86_64.rpm failed: No such file or directory
Done installing package

Last edited by atg; July 25, 2012 at 22:50. Reason: attachment failed to insert
atg 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
Help Compiling OpenFOAM 1.6 on SGI Altix Machine deji OpenFOAM 11 February 16, 2011 12:10
Compatibility OpenFOAM 1.6 and 1.7.1 Ale_galleria OpenFOAM 2 September 20, 2010 10:14
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 10:04
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 13:03.