CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 (http://www.cfd-online.com/Forums/openfoam-installation/94137-openfoam-1-6-ext-git-installation-ubuntu-11-10-x64.html)

Attesz November 7, 2011 06:31

OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64
 
Hi Foamers,

is it possible to compile 1.6-ext using git on Ubuntu 11.10? It seems that OF20x is working but I need the ext version too. Did anybody already manage to work it? Any suggestions are very welcome :)

Thank you,
Attila

wyldckat November 7, 2011 16:21

Greetings Attila,

I hope you don't mind, but I'm going to recycle my own words:
Quote:

Originally Posted by wyldckat (Post 330648)
The fix OpenCFD/SGI made for OpenFOAM 2.0.x was this: https://github.com/OpenFOAM/OpenFOAM...3e8d0e85b889d9

If you do a similar fix on 1.6-ext, it should work as intended.

Best regards,
Bruno


Attesz November 7, 2011 16:47

Hi Bruno,

thank you very much. If i understand it well, I should replace the lines marked with red to the lines marked with green in the files as written in the headers of the six boxes, and then compile?

Regards,
Attila

wyldckat November 7, 2011 16:55

Hi Attila,

Yep, that's the idea: replace the red lines with the green lines :)
Actually, you might want to check what exactly was removed and/or added on each line, because the red lines might be different on 1.6-ext.

Keep in mind that I haven't tested this combo (Ubuntu 11.10 + 1.6-ext), but the fix made for OpenFOAM 2.0.x was that one.

Best regards,
Bruno

Attesz November 7, 2011 17:03

Thanks, I'm just learning programming :) Otherwise, in the 1.6-ext source code, I only found the https://a248.e.akamai.net/assets.git.../icons/txt.png wmake/rules/linux64Gcc/c++ file, the other ones do not exist...

Is it enough to modify?

Regards

wyldckat November 8, 2011 04:31

Hi Attila,

Quote:

Originally Posted by Attesz (Post 331106)
Otherwise, in the 1.6-ext source code, I only found the https://a248.e.akamai.net/assets.git.../icons/txt.png wmake/rules/linux64Gcc/c++ file, the other ones do not exist...

I hope you've managed to figure it out on your own, but in case you haven't, the answer to:
Quote:

Originally Posted by Attesz (Post 331106)
Is it enough to modify?

Is: yes.

Best regards,
Bruno

Attesz November 8, 2011 05:32

Ok thanks Bruno. Now I start to compile OF20x and 1.6-et on 11.10, and I'm also writing a manual on it. If it is working, I will share it.

Regards,
Attila

Attesz November 8, 2011 15:10

Problems
 
Hi,

I've modified the source code, but I have problems with the compilation. I copy here the last 100 lines of the log :) I got many messages like '/usr/bin/ld: cannot find -lmeshTools' and it's the same in case of other applications. I'm probably using newer versions of Qt and everything as when these descriptions were made:

http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/OpenFOAMonYourOwnLaptop.html

and

http://www.extend-project.de/user-fo...n-openfoam#276

Is it a problem? Anyway, using the above mentioned description I couldn't manage to compile 1.6-ext.

But at least OF2.0.x is working fine on 11.10.

So the codes, please give me advice:

Quote:

collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/PSD] Error 1
make[2]: *** [PSD] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -ltriSurface
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ldynamicMesh
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/surfaceToPatch] Error 1
make[1]: *** [surfaceToPatch] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/surfaceTransformPoints.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lmeshTools -ltriSurface -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/surfaceTransformPoints
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/stressDifferences.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressDifferences
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ltriSurface
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/surfaceTransformPoints] Error 1
make[1]: *** [surfaceTransformPoints] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [surface] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressDifferences] Error 1
make[2]: *** [stressDifferences] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/wallGradU.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallGradU
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/stressSymmComponents.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressSymmComponents
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallGradU] Error 1
make[2]: *** [wallGradU] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressSymmComponents] Error 1
make[2]: *** [stressSymmComponents] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [viscoelastic] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/wallHeatFlux.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lcompressibleRASModels -lreactionThermophysicalModels -lfiniteVolume -lspecie -lbasicThermophysicalModels -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallHeatFlux
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/IFCLookUpTableGen.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lspecie -lmeshTools -lOpenFOAM -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/IFCLookUpTableGen
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lcompressibleRASModels
/usr/bin/ld: cannot find -lreactionThermophysicalModels
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lbasicThermophysicalModels
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallHeatFlux] Error 1
make[2]: *** [wallHeatFlux] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/IFCLookUpTableGen] Error 1
make[1]: *** [IFCLookUpTableGen] Error 2
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/adiabaticFlameT' is up to date.
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/wallShearStress.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallShearStress
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/chemkinToFoam.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lreactionThermophysicalModels -lbasicThermophysicalModels -lspecie -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/chemkinToFoam
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lincompressibleRASModels
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallShearStress] Error 1
make[2]: *** [wallShearStress] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lreactionThermophysicalModels
/usr/bin/ld: cannot find -lbasicThermophysicalModels
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/chemkinToFoam] Error 1
make[1]: *** [chemkinToFoam] Error 2
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/equilibriumCO' is up to date.
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/yPlusLES.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusLES
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/equilibriumFlameT' is up to date.
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lincompressibleLESModels
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusLES] Error 1
make[2]: *** [yPlusLES] Error 2
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT' is up to date.
make[1]: Target `application' not remade because of errors.
make: *** [thermophysical] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/yPlusRAS.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lincompressibleTransportModels -lincompressibleRASModels -lbasicThermophysicalModels -lspecie -lcompressibleRASModels -lfiniteVolume -lmeshTools -lsampling -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusRAS
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lincompressibleRASModels
/usr/bin/ld: cannot find -lbasicThermophysicalModels
/usr/bin/ld: cannot find -lcompressibleRASModels
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -lsampling
collect2: ld returned 1 exit status

Attesz November 8, 2011 16:34

I get compliation errors of ParaView as well:

Quote:

Linking C shared library ../../../bin/libvtkNetCDF.so
[ 5%] Built target vtkNetCDF
make: *** [all] Error 2
error: Bad exit status from /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.VlyXCW (%build)


RPM build errors:
Bad exit status from /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.VlyXCW (%build)
Installing package: ParaView-3.10.1
Uninstalling ParaView-3.10.1 using RPM: ParaView-3.10.1-linux64GccDPOpt.x86_64
Installing ParaView-3.10.1 using RPM file: /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm
error: open of /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package

marupio November 8, 2011 16:45

You also need to add -lrt to linker options for scotch.
Code:

File: src/decompositionMethods/scotchDecomp/Make/options:
 LIB_LIBS = \
    -L$(SCOTCH_LIB_DIR) -lscotch \
    -L$(SCOTCH_LIB_DIR) -lscotcherrexit \
    -lrt

I never got Paraview working. I think I saw a solution to that one floating around here somewhere. You need to add an include to the top of one of its source build files. Can't remember.

Attesz November 8, 2011 16:54

Thanks David! Isn't it a problem to have a semi-compiled paraview in the ThirdParty directory? Now I started again to compile OF. Every time I compile it, the whole code will be compiled or just the modified/new files? (beginner programmer question)

Do you have a working 1.6-ext on Ubuntu 11.10?

Regards,
Attila

marupio November 8, 2011 17:02

You can compile OpenFOAM with trash in the Paraview directory - it is totally independent. As for compiling a project in OpenFOAM, only the modified libraries / applications will be compiled. wmake seems to be good at managing this. Sometimes it will mess up, and you'll know it when things should work but don't. Then I set fire to everything in my project directory:

Code:

$ rmdepall
$ rm -rf lnInclude
$ wclean all

and try again.

Attesz November 8, 2011 17:05

Ok, thank you for your help!

Attesz November 8, 2011 18:12

It's still running but I get the same errors as before. Have you ever managed to install 1.6-ext on 11.10?

Quote:

make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/dieselEngineFoam] Error 1
make[1]: *** [dieselEngineFoam] Error 2
Making dependency list for source file dieselFoam.C
SOURCE=dieselFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I../dieselEngineFoam -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/turbulenceModel -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/lagrangian/basic/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/lagrangian/dieselSpray/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/liquids/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/liquidMixture/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/specie/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/reactionThermo/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/../applications/solvers/reactionThermo/XiFoam -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/chemistryModel/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/ODE/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dieselFoam.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/sonicFoamAutoMotion.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -ldynamicMesh -lmeshTools -llduSolvers -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/sonicFoamAutoMotion
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -ldynamicMesh
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/sonicFoamAutoMotion] Error 1
make[1]: *** [sonicFoamAutoMotion] Error 2

marupio November 8, 2011 18:18

In the errors you listed above, none of the linker commands include the extra options that should be there: -shared -Xlinker --add-needed -Xlinker --no-as-needed

That means you didn't apply the changes (that Bruno suggested above) correctly. You need to edit your wmake/rules files.

Attesz November 8, 2011 18:26

I forget to modify one c++ file, but the from the 6 listed file there is only 2 in 1.6-ext, and I still get the same errors. Should I modify all the c++ files in the rules dictionary?

Attesz November 9, 2011 05:49

I modified two C++ files, added the lines what you suggested and modified other stuff described here:

http://www.extend-project.de/user-fo...n-openfoam#276

But I still get the same errors. Otherwise I tried to install 1.6-ext on a fresh Natty system and it didn't work as well despite I followed this description accurately...

I copy lines from the most recent compilation:

Quote:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/triSurface/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cellSplitter.o Make/linux64GccDPOpt/modifyMesh.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-ltriSurface -lmeshTools -ldynamicMesh -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/modifyMesh
/usr/bin/ld: cannot find -ltriSurface
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ldynamicMesh
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/modifyMesh] Error 1
make[2]: *** [modifyMesh] Error 2
Making dependency list for source file refineHexMesh.C
SOURCE=refineHexMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/refineHexMesh.o
^[OFg++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/errorEstimation/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/icoErrorEstimate.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lerrorEstimation -lmeshTools -ldynamicMesh -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoErrorEstimate
/usr/bin/ld: cannot find -lerrorEstimation
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ldynamicMesh
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoErrorEstimate] Error 1
make[1]: *** [icoErrorEstimate] Error 2
Making dependency list for source file icoMomentError.C
SOURCE=icoMomentError.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/errorEstimation/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoMomentError.o
Should I start over from scratch again?

Attesz November 9, 2011 07:06

I also quote the foamInstallationTest app. output:

Quote:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: ubuntu
OS: Linux version 3.0.0-12-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/attila/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/attila/OpenFOAM/attila-1.6-ext no no
$WM_THIRD_PARTY_DIR ...OpenFOAM/OpenFOAM-1.6-ext/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/attila/OpenFOAM/OpenFOAM-1.6-ext yes yes yes

$FOAM_APPBIN ...ext/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...OAM/site/1.6-ext/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...ext/applications/bin/linux64GccDPOpt no no
$WM_DIR ...tila/OpenFOAM/OpenFOAM-1.6-ext/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.6-ext/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...OAM/site/1.6-ext/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...M/attila-1.6-ext/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.4.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.6.1
Minimum required: 4.3.1

gcc 4.6.1 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.25 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
I'm using newer gcc, isn't it a problem maybe?

Thank you in advance!

Attila

marupio November 9, 2011 11:17

Yeah, I'd start all over. Next time you run Allwmake use this command:
Code:

./Allwmake 2>&1 | tee output
Then when it completes, open output and do a case-sensitive search for "Error". The first Error 1 or Error 2 or Error 3 you encounter, this is your problem. Copy this line, along with about 5 lines up and 5 lines down for context. Or just attach output as a file attachment to this thread. Report back.

Also, did you make the changes to src/decompositionMethods/scotchDecomp/Make/options that I mentioned above?

Attesz November 9, 2011 11:22

1 Attachment(s)
Yes I did the log and I attach it. I made the changes in the options file.

Otherwise, I only need the GGI part of 1.6ext, but I think it's more difficult to recompile 2.0.x the GGI part...

Thank you!

Attachment 9962


All times are GMT -4. The time now is 14:31.