CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit) (https://www.cfd-online.com/Forums/openfoam-installation/103025-openfoam-1-6-ext-compilation-errors-fedora-17-32bit.html)

toolpost June 8, 2012 15:09

OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit)
 
Hello all, :)

I was using OpenFoam 1.6 ext in Fedora 16 for the last few months. As far as remember, the installation process was simple, I followed a thread in cfdonline and everything worked fine in the first trial itself. Everything was working fine.. Humm.. but, last weak I decided to upgrade to Fedora 17 and now I am stuck with the compilation process... :(

I downloded the source from git and tried to build the third party packages first. There were some issues in buillding libccmio and paraview. After lots of googling I was able to correct them and finally the thirdparty side was finished without errors. But when I try to do Allwmake I am getting lots of errors.. The first few lines are follows,

Code:

[jabir@entropy OpenFOAM-1.6-ext]$ ./Allwmake 2>&1 | tee wmake_log_file_D.txt
make: Nothing to be done for `all'.
+ wmakePrintBuild -check
same version as previous build
+ wmakeLnInclude OpenFOAM
+ wmakeLnInclude meshTools
+ wmakeLnInclude OSspecific/POSIX
+ Pstream/Allwmake
+ wmake libso dummy
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/dummy/libPstream.so' is up to date.
+ case "$WM_MPLIB" in
+ set +x

Note: ignore spurious warnings about missing mpicxx.h headers
+ WM_OPTIONS=linuxGccDPOptOPENMPI
+ wmake libso mpi
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/openmpi-1.4.3/libPstream.so' is up to date.
+ wmake libo OSspecific/POSIX
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/libOSspecific.o' is up to date.
+ wmake libso OpenFOAM
SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/1.6-ext/' -e 's/BUILD_STRING/1.6-ext-c04489736fa1/' $SOURCE > Make/linuxGccDPOpt/global.C; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c Make/linuxGccDPOpt/global.C -o Make/linuxGccDPOpt/global.o
SOURCE=db/dictionary/dictionary.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/dictionary.o
SOURCE=db/dictionary/functionEntries/functionEntry/functionEntry.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/functionEntry.o
In file included from lnInclude/ILList.H:170:0,
                from lnInclude/IDLList.H:36,
                from lnInclude/entry.H:46,
                from db/dictionary/dictionary.H:55,
                from db/dictionary/dictionary.C:27:
lnInclude/ILList.C: In instantiation of ‘Foam::ILList<LListBase, T>::ILList(const Foam::ILList<LListBase, T>&, const CloneArg&) [with CloneArg = Foam::dictionary; LListBase = Foam::DLListBase; T = Foam::entry]’:
lnInclude/IDLList.H:85:49:  required from ‘Foam::IDLList<T>::IDLList(const Foam::IDLList<T>&, const CloneArg&) [with CloneArg = Foam::dictionary; T = Foam::entry]’
db/dictionary/dictionary.C:127:23:  required from here
lnInclude/ILList.C:66:9: error: ‘append’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
lnInclude/ILList.C:66:9: note: declarations in dependent base ‘Foam::DLListBase’ are not found by unqualified lookup
lnInclude/ILList.C:66:9: note: use ‘this->append’ instead
make: *** [Make/linuxGccDPOpt/dictionary.o] Error 1
make: *** Waiting for unfinished jobs....
+ decompositionMethods/AllwmakeLnInclude
+ wmakeLnInclude decompositionMethods
+ wmakeLnInclude metisDecomp
+ wmakeLnInclude parMetisDecomp
+ wmakeLnInclude scotchDecomp
+ decompositionMethods/Allwmake
+ wmakeLnInclude decompositionMethods
+ wmake libso scotchDecomp
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/libscotchDecomp.so' is up to date.
+ wmake libso metisDecomp
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/libmetisDecomp.so' is up to date.
+ wmake libso parMetisDecomp
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/openmpi-1.4.3/libparMetisDecomp.so' is up to date.
+ wmake libso decompositionMethods
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/libdecompositionMethods.so' is up to date.
+ wmake libso lagrangian/basic
SOURCE=passiveParticle/passiveParticleCloud.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/passiveParticleCloud.o
In file included from /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/ILList.H:170:0,
                from /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/IDLList.H:36,
                from lnInclude/Cloud.H:40,
                from passiveParticle/passiveParticleCloud.H:39,
                from passiveParticle/passiveParticleCloud.C:27:
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/ILList.C: In instantiation of ‘void Foam::ILList<LListBase, T>::operator=(const Foam::ILList<LListBase, T>&) [with LListBase = Foam::DLListBase; T = Foam::passiveParticle]’:
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/IDLList.H:49:7:  required from ‘Foam::Cloud<ParticleType>::Cloud(const Foam::polyMesh&, const Foam::word&, const Foam::IDLList<ParticleType>&) [with ParticleType = Foam::passiveParticle]’
passiveParticle/passiveParticleCloud.C:66:54:  required from here
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/ILList.C:149:9: error: ‘append’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/ILList.C:149:9: note: declarations in dependent base ‘Foam::DLListBase’ are not found by unqualified lookup
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/ILList.C:149:9: note: use ‘this->append’ instead
make: *** [Make/linuxGccDPOpt/passiveParticleCloud.o] Error 1
+ wmake libso triSurface
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/libtriSurface.so' is up to date.
+ wmake libso edgeMesh
'/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/lib/linuxGccDPOpt/libedgeMesh.so' is up to date.
+ wmake libso surfMesh
SOURCE=surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/AC3DsurfaceFormatRunTime.o
SOURCE=surfaceFormats/nas/NASsurfaceFormatRunTime.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/NASsurfaceFormatRunTime.o
In file included from surfaceFormats/nas/NASsurfaceFormat.H:119:0,
                from surfaceFormats/nas/NASsurfaceFormatRunTime.C:27:
surfaceFormats/nas/NASsurfaceFormat.C: In instantiation of ‘bool Foam::fileFormats::NASsurfaceFormat<Face>::read(const Foam::fileName&) [with Face = Foam::face]’:
surfaceFormats/nas/NASsurfaceFormat.C:39:5:  required from ‘Foam::fileFormats::NASsurfaceFormat<Face>::NASsurfaceFormat(const Foam::fileName&) [with Face = Foam::face]’
lnInclude/MeshedSurface.H:235:15:  required from ‘static Foam::autoPtr<Foam::MeshedSurface<Face> > Foam::MeshedSurface<Face>::addfileExtensionConstructorToTable<MeshedSurfaceType>::New(const Foam::fileName&) [with MeshedSurfaceType = Foam::fileFormats::NASsurfaceFormat<Foam::face>; Face = Foam::face]’
lnInclude/MeshedSurface.H:244:2:  required from ‘Foam::MeshedSurface<Face>::addfileExtensionConstructorToTable<MeshedSurfaceType>::addfileExtensionConstructorToTable(const Foam::word&) [with MeshedSurfaceType = Foam::fileFormats::NASsurfaceFormat<Foam::face>; Face = Foam::face]’
surfaceFormats/nas/NASsurfaceFormatRunTime.C:40:8:  required from here
surfaceFormats/nas/NASsurfaceFormat.C:383:5: error: ‘sortFacesAndStore’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
surfaceFormats/nas/NASsurfaceFormat.C:383:5: note: declarations in dependent base ‘Foam::MeshedSurface<Foam::face>’ are not found by unqualified lookup
surfaceFormats/nas/NASsurfaceFormat.C:383:5: note: use ‘this->sortFacesAndStore’ instead
surfaceFormats/nas/NASsurfaceFormat.C: In instantiation of ‘bool Foam::fileFormats::NASsurfaceFormat<Face>::read(const Foam::fileName&) [with Face = Foam::triFace]’:
surfaceFormats/nas/NASsurfaceFormat.C:39:5:  required from ‘Foam::fileFormats::NASsurfaceFormat<Face>::NASsurfaceFormat(const Foam::fileName&) [with Face = Foam::triFace]’
lnInclude/MeshedSurface.H:235:15:  required from ‘static Foam::autoPtr<Foam::MeshedSurface<Face> > Foam::MeshedSurface<Face>::addfileExtensionConstructorToTable<MeshedSurfaceType>::New(const Foam::fileName&) [with MeshedSurfaceType = Foam::fileFormats::NASsurfaceFormat<Foam::triFace>; Face = Foam::triFace]’
lnInclude/MeshedSurface.H:244:2:  required from ‘Foam::MeshedSurface<Face>::addfileExtensionConstructorToTable<MeshedSurfaceType>::addfileExtensionConstructorToTable(const Foam::word&) [with MeshedSurfaceType = Foam::fileFormats::NASsurfaceFormat<Foam::triFace>; Face = Foam::triFace]’
surfaceFormats/nas/NASsurfaceFormatRunTime.C:58:8:  required from here
surfaceFormats/nas/NASsurfaceFormat.C:383:5: error: ‘sortFacesAndStore’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
surfaceFormats/nas/NASsurfaceFormat.C:383:5: note: declarations in dependent base ‘Foam::MeshedSurface<Foam::triFace>’ are not found by unqualified lookup
surfaceFormats/nas/NASsurfaceFormat.C:383:5: note: use ‘this->sortFacesAndStore’ instead
make: *** [Make/linuxGccDPOpt/NASsurfaceFormatRunTime.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from surfaceFormats/ac3d/AC3DsurfaceFormat.H:130:0,
                from surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C:27:
surfaceFormats/ac3d/AC3DsurfaceFormat.C: In instantiation of ‘static void Foam::fileFormats::AC3DsurfaceFormat<Face>::write(const Foam::fileName&, const Foam::MeshedSurfaceProxy<Face>&) [with Face = Foam::face]’:
lnInclude/MeshedSurfaceProxy.H:124:2:  required from ‘Foam::MeshedSurfaceProxy<Face>::addwritefileExtensionMemberFunctionToTable<MeshedSurfaceProxyType>::addwritefileExtensionMemberFunctionToTable(const Foam::word&) [with MeshedSurfaceProxyType = Foam::fileFormats::AC3DsurfaceFormat<Foam::face>; Face = Foam::face]’
surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C:58:7:  required from here
surfaceFormats/ac3d/AC3DsurfaceFormat.C:291:5: error: ‘oneZone’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
surfaceFormats/ac3d/AC3DsurfaceFormat.C:291:5: note: declarations in dependent base ‘Foam::fileFormats::surfaceFormatsCore’ are not found by unqualified lookup
surfaceFormats/ac3d/AC3DsurfaceFormat.C:291:5: note: use ‘AC3DsurfaceFormat::oneZone’ instead
surfaceFormats/ac3d/AC3DsurfaceFormat.C: In instantiation of ‘static void Foam::fileFormats::AC3DsurfaceFormat<Face>::write(const Foam::fileName&, const Foam::MeshedSurfaceProxy<Face>&) [with Face = Foam::triFace]’:
lnInclude/MeshedSurfaceProxy.H:124:2:  required from ‘Foam::MeshedSurfaceProxy<Face>::addwritefileExtensionMemberFunctionToTable<MeshedSurfaceProxyType>::addwritefileExtensionMemberFunctionToTable(const Foam::word&) [with MeshedSurfaceProxyType = Foam::fileFormats::AC3DsurfaceFormat<Foam::triFace>; Face = Foam::triFace]’
surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C:67:7:  required from here
surfaceFormats/ac3d/AC3DsurfaceFormat.C:291:5: error: ‘oneZone’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
surfaceFormats/ac3d/AC3DsurfaceFormat.C:291:5: note: declarations in dependent base ‘Foam::fileFormats::surfaceFormatsCore’ are not found by unqualified lookup
surfaceFormats/ac3d/AC3DsurfaceFormat.C:291:5: note: use ‘AC3DsurfaceFormat::oneZone’ instead
In file included from /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/HashSet.H:215:0,
                from /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/PrimitivePatch.H:60,
                from lnInclude/MeshedSurface.H:51,
                from surfaceFormats/ac3d/AC3DsurfaceFormat.H:46,
                from surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C:27:
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/HashSet.C: In instantiation of ‘bool Foam::HashSet<Key, Hash>::operator[](const Key&) const [with Key = int; Hash = Foam::Hash<int>]’:
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/PatchToolsSearch.C:193:9:  required from ‘static void Foam::PatchTools::subsetMap(const Foam::PrimitivePatch<Face, FaceList, PointField, PointType>&, const BoolListType&, Foam::labelList&, Foam::labelList&) [with BoolListType = Foam::HashSet<int, Foam::Hash<int> >; Face = Foam::face; FaceList = Foam::List; PointField = Foam::Field<Foam::Vector<double> >; PointType = Foam::Vector<double>; Foam::labelList = Foam::List<int>]’
lnInclude/UnsortedMeshedSurface.C:548:5:  required from ‘Foam::UnsortedMeshedSurface<Face> Foam::UnsortedMeshedSurface<Face>::subsetMesh(const labelHashSet&, Foam::labelList&, Foam::labelList&) const [with Face = Foam::face; Foam::labelHashSet = Foam::HashSet<int, Foam::Hash<int> >; Foam::labelList = Foam::List<int>]’
lnInclude/UnsortedMeshedSurface.C:597:49:  required from ‘Foam::UnsortedMeshedSurface<Face> Foam::UnsortedMeshedSurface<Face>::subsetMesh(const labelHashSet&) const [with Face = Foam::face; Foam::labelHashSet = Foam::HashSet<int, Foam::Hash<int> >]’
surfaceFormats/ac3d/AC3DsurfaceFormat.C:427:71:  required from ‘static void Foam::fileFormats::AC3DsurfaceFormat<Face>::write(const Foam::fileName&, const Foam::UnsortedMeshedSurface<Face>&) [with Face = Foam::face]’
lnInclude/UnsortedMeshedSurface.H:253:2:  required from ‘Foam::UnsortedMeshedSurface<Face>::addwritefileExtensionMemberFunctionToTable<UnsortedMeshedSurfaceType>::addwritefileExtensionMemberFunctionToTable(const Foam::word&) [with UnsortedMeshedSurfaceType = Foam::fileFormats::AC3DsurfaceFormat<Foam::face>; Face = Foam::face]’
surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C:79:7:  required from here
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/HashSet.C:61:21: error: ‘found’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/HashSet.C:61:21: note: declarations in dependent base ‘Foam::HashTable<Foam::nil, int, Foam::Hash<int> >’ are not found by unqualified lookup
/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/HashSet.C:61:21: note: use ‘this->found’ instead
make: *** [Make/linuxGccDPOpt/AC3DsurfaceFormatRunTime.o] Error 1

I cant understand what is going wrong.. Is this error has any connection with the thirdparty packages? Or this is caused by some problem in fedora 17?

BTW, I am following this thread as the guideline for installation.
http://www.cfd-online.com/Forums/ope...1-4-64bit.html

one more notable thing, my system paraview, version 3.14, installed from fedora official repository is returning this error. (tested after commenting openfoam path from bashrc)

[jabir@entropy ~]$ paraview
/usr/lib/paraview/paraview: symbol lookup error: /lib/libOSMesa.so.8: undefined symbol: _glapi_Dispatch
[jabir@entropy ~]$

But, after compiling openfoam's thirdparty, paraview is working.. It is version 3.12 now, ie., it is the one I compiled.. right?

Any help or tips will be greatly appreciated..

Thanks in advance..
Jabir

toolpost June 9, 2012 04:08

Hi.. Good morning all.. :)

I googled for the errors of the ./Allwmake and found this page. I cant reach a conclusion, but I think my problems are somehow related to this.

http://gcc.gnu.org/gcc-4.7/porting_to.html

Quote:

The C++ compiler no longer performs some extra unqualified lookups it had performed in the past, namely dependent base class scope lookups and unqualified template function lookups.C++ programs that depended on the compiler's previous behavior may no longer compile.

and my fedora 17 has gcc 4.7.
Code:

[jabir@entropy OpenFOAM-1.6-ext]$ gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)

So, what's next? I tried a 'yum downgrade gcc' but no joy.

Shall I compile gcc coming with the thirdparty? The "Gcc and companion libraries" part is found commented in Allmake.stage1 script. why? Is it fine to uncomment those lines and rerun stage1?


Somebody please advice! and Thanks a lot for your time,

Regards
Jabir

philippose June 9, 2012 04:24

Hello there,

A Good Day to you!

Great to see that you have already tried to compile OpenFOAM on Fedora 17 :-)! I tried compiling on Fedora 17 (64-bit) last evening, and ended up with the same errors...

You are right.... the errors you are seeing are related to the changes in the new version of GCC (GCC 4.7.0) which is the default compiler in Fedora 17.

I am currently working through each of these errors one by one, and correcting the OpenFOAM source-code where required. However, I am not done with the changes yet.

I guess once I am finished, I will probably create a new branch on the OpenFOAM-1.6-ext Git server to encapsulate all the changes required to get OpenFOAM compiled with GCC 4.7.0.

Have a great day ahead!

Philippose

toolpost June 9, 2012 08:30

Hi Philippose! A good day to you too..

Thank you for your reply.. I am really glad to hear that someone else is also facing the same errors..sorry! :)

So, I decided to wait until you finish the correction of the OpenFOAM source-code and made it available though the git repo. Meantime, I am planing to install Fedora 16 in the freespace available in the hard drive. Please let me know once you finished with updating the git repository.

What about the error coming from paraview, I mensioned in the first thread? Can you please test it in your computer?

Code:

[jabir@entropy ~]$ paraview
/usr/lib/paraview/paraview: symbol lookup error: /lib/libOSMesa.so.8: undefined symbol: _glapi_Dispatch
[jabir@entropy ~]$

Also, Why does the "Gcc libraries" section is commented in Allmake.stage1 script? Is it possible to uncomment those lines and build a previous version of gcc specifically for compiling openfoam?

Code:

echo ========================================
echo Starting ThirdParty AllMake: Stage1
echo ========================================
echo

# Gcc and companion libraries
#
# You need gmp and mpfr for gcc-4.4.5
# Uncomment the following 3 lines for gcc-4.4.5
#( rpm_make -p gmp-5.0.1  -s gmp-5.0.1.spec  -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.gz                  )
#( rpm_make -p mpfr-3.0.1  -s mpfr-3.0.1.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.gz                )
#( rpm_make -p gcc-4.4.5  -s gcc-4.4.5.spec  -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.4.5/gcc-4.4.5.tar.gz        )
#
# You need gmp, mpfr and mpc for gcc-4.5.1
# Uncomment the following 4 lines for gcc-4.5.1
#( rpm_make -p gmp-5.0.1  -s gmp-5.0.1.spec  -u ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.gz                  )
#( rpm_make -p mpfr-3.0.1 -s mpfr-3.0.1.spec -u ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.gz                )
#( rpm_make -p mpc-0.8.2  -s mpc-0.8.2.spec  -u http://www.multiprecision.org/mpc/download/mpc-0.8.2.tar.gz )
#( rpm_make -p gcc-4.5.1  -s gcc-4.5.1.spec  -u ftp://ftp.gnu.org/gnu/gcc/gcc-4.5.1/gcc-4.5.1.tar.gz        )

Thanks for your time,

Regards,
Jabir

mbeaudoin June 9, 2012 10:17

> Also, Why does the "Gcc libraries" section is commented in Allmake.stage1 script? Is it possible to uncomment those lines and build a previous version of gcc specifically for compiling openfoam?

Simple answer:
Yes it is possible to uncomment those lines.

Those instructions were provided to give people the choice of using some other versions of the gcc compiler than the default version bundled with your OS. Sometimes, your OS will ship with a new version of the gcc compiler that is untested with OpenFOAM, and your compilation process might sometimes break. Sounds familiar?

On my end, I rarely rely in the stock compiler bundled with the OS to compile OpenFOAM because I don't want to spend time on those compiler's compile or runtime related issues. I select a proven version of the compiler, the same SGI or Hrv have been using for their releases, and I stick with that. I switch compiler when they decide to switch compiler, or when I need something special like the new AVX opcodes offered by gcc 4.6.x and up.

Compiling GCC is a fairly minor operation that I have tried to automate as much as possible with the 1.6-ext version. Give it a try.

Martin

toolpost June 9, 2012 14:27

Hello Martin!

Thanks for your valuable advice.. Your notes are really short, simple and informative. I got the point.. :)

I am going to delete everything and starting from scratch again. I am planning to use gcc-4.5.1. I shall post the updates tomorrow.

BTW the problem with paraview is still unsolved.. :(

Thanks once again,

Regards
Jabir

philippose June 9, 2012 18:49

Hi again,

A Good Evening!

I just wanted to inform you, that I have pushed a new branch into the OpenFOAM-1.6-ext Git repository called "hotfix/gcc47" which contains the changes required to compile OpenFOAM-1.6-ext using GCC 4.7.

These changes have been tested on a Fedora 17 64-bit machine, and the results of the Test-Harness have been uploaded to the OpenFOAM-extend CDash Test-Harness server.


@Martin: Thanks a lot for your response regarding access to the CDash Server. I was under the impression that I need to log in first, and that I needed to have a valid account on the CDash system in order to be able to submit the test results..... However, submission of the results using the Test-Harness as setup on the Git Master branch worked perfectly :-)!


It would be great if others could try compiling OpenFOAM on Linux Distributions based on GCC 4.7 to confirm that the changes made are ok.

Have a great weekend ahead!

Philippose

mbeaudoin June 9, 2012 21:50

> @Martin: Thanks a lot for your response regarding access to the CDash Server. I was under the impression that I need to log in first, and that I needed to have a valid account on the CDash system in order to be able to submit the test results..... However, submission of the results using the Test-Harness as setup on the Git Master branch worked perfectly :-)!

Glad you find it useful. The test harness and its CDash server is open for everybody wishing to publish and share there test loop results. No login account is necessary. Just run the test harness script, your results will be uploaded and published on the openfoam-extend CDash server automagically.

http://openfoam-extend.sourceforge.n...enFOAM-1.6-ext

Martin

mbeaudoin June 9, 2012 23:47

> BTW the problem with paraview is still unsolved..

Can't help here. After creating a Fedora 17 64-bits and a Fedora 17 32-bits VMware machines, the system installed version of ParaView (version 3.14) is running without a glitch on both systems.

Just make sure you run 'yum update' on your system.

Martin

toolpost June 10, 2012 07:31

Hello Martin!

I tried to build openfoam.1.6-ext from scratch again. I uncommented the lines in Allmake.stage1 script for gcc 4.5.1 and changed the compilerInstall=OpenFOAM in etc/settings.sh. I tried it 2 times but failed to build the gcc. Some final lines of the terminal output are,

Code:

packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man7/gpl.7
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man7/gfdl.7
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man7/fsf-funding.7
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man1/
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man1/cpp.1
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man1/gcc.1
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man1/g++.1
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man1/gcov.1
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: gcc-4.5.1-linuxGccDPOpt.i686
error: File not found: /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/gcc-4.5.1-linuxGccDPOpt.i386/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/gcc-4.5.1/platforms/linuxGccDPOpt/info
error: File not found: /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/gcc-4.5.1-linuxGccDPOpt.i386/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/gcc-4.5.1/platforms/linuxGccDPOpt/man


RPM build errors:
    File not found: /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/gcc-4.5.1-linuxGccDPOpt.i386/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/gcc-4.5.1/platforms/linuxGccDPOpt/info
    File not found: /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/gcc-4.5.1-linuxGccDPOpt.i386/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/gcc-4.5.1/platforms/linuxGccDPOpt/man
Installing package: gcc-4.5.1
  Uninstalling gcc-4.5.1 using RPM: gcc-4.5.1-linuxGccDPOpt.i686
  Installing gcc-4.5.1 using RPM file: /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i686/gcc-4.5.1-linuxGccDPOpt.i686.rpm
error: open of /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i686/gcc-4.5.1-linuxGccDPOpt.i686.rpm failed: No such file or directory
Done installing package

Package name      : cmake-2.8.8
Package URL      : http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz
RPM spec file name: cmake-2.8.8.spec
Additional flags  :
Updating the ThirdParty environment variables before building package cmake-2.8.8

Warning in /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh:
    Cannot find /home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux installation.
    Please install this compiler version or if you wish to use the system compiler,
    change the 'compilerInstall' setting to 'System' in this file

Package cmake-2.8.8 is already installed
Done installing package

I have checked BUILDROOT/gcc-4.5.1-linuxGccDPOpt.i386/home/jabir/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/gcc-4.5.1/platforms/linuxGccDPOpt/. It contains 6 folders - bin, etc, include, lib, libexec and share. Inside /share, two folders 'man' and 'info' are found.

I dont know how to proceed with this. Please advice.

Then about the paraview issue, it really look strange. I have already done 'yum update' and 'yum reinstall paraview' several times. The same error is also coming from another package vmtk(vascular modeling toolkit). It is installed in the home folder by a similar process of compiling, building, bashrc sourcing etc.

Code:

[jabir@entropy lca-rca]$ vmtkimageviewer -ifile cardiacvoi.vti

Error from pype: /lib/libOSMesa.so.8: undefined symbol: _glapi_Dispatch

Thanks for your time and patience... :)

Regards,
Jabir

toolpost June 10, 2012 08:05

Hai Philippose! Good afternoon!

Thank you so much for the corrections for the new version of gcc. I have downloaded the new tarball and am going to compile it. I will update you the results.

BTW, During the compilation of paraview, I have faced an error and used this bug report to solve it.

http://www.vtk.org/Bug/view.php?id=12881

I dont know much about its relevance, but please have a look.

Thanks for your time and effort .. :)

Regards
Jabir

toolpost June 14, 2012 01:19

2 Attachment(s)
Hello.. Good morning all!

At last, I successfully compiled OpenFOAM 1.6 ext in Fedora 17. Thanks to philippose for creating and made available the "hotfix/gcc47" through the git repository. I have reinstalled the whole fedora before testing the new fixed version. The same error mensioned in post #11 appeared again, and I used the patch available in the above link. The paraview is working smoothly now without any errors. The log file of the compilation process is attached.

Thanks and Regards,

Jabir

Aleksey_R September 17, 2012 20:07

Gentlemen, please, explain me, what command do I need to use to switch to the mentioned branch.

Unfortunately, I don't know git very good.

Best regards, Aleksey.

toolpost September 18, 2012 00:12

Quote:

Originally Posted by Aleksey_R (Post 382230)
Gentlemen, please, explain me, what command do I need to use to switch to the mentioned branch.

Unfortunately, I don't know git very good.

Best regards, Aleksey.

me too dont know git well.. I downloaded the tarball from this page.

http://repo.or.cz/w/OpenFOAM-1.6-ext...s/hotfix/gcc47

hope this helps.

Regards,
Jabir

Aleksey_R September 18, 2012 14:17

I tried to use the version of OF-1.6-ext you mentioned. The src directory compiled OK, bu I can't compile anything from applications folder. For example during compilation of icoFoam I get (during linking):

Code:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/icoFoam.o -L/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
    -lfiniteVolume    -llduSolvers -lOpenFOAM -liberty -ldl  -lm -o /opt/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoFoam
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libtriSurface.so, needed by /opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libmeshTools.so, needed by /opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libz.so.1, needed by /opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
Make/linux64GccDPOpt/icoFoam.o: In function `double Foam::gSum<double>(Foam::UList<double> const&)':
icoFoam.C:(.text._ZN4Foam4gSumIdEET_RKNS_5UListIS1_EE[_ZN4Foam4gSumIdEET_RKNS_5UListIS1_EE]+0x45): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
Make/linux64GccDPOpt/icoFoam.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()':
icoFoam.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv]+0x2c1): undefined reference to `Foam::IPstream::waitRequests()'
icoFoam.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv]+0x2c6): undefined reference to `Foam::OPstream::waitRequests()'
Make/linux64GccDPOpt/icoFoam.o: In function `Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()':
icoFoam.C:(.text._ZN4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[_ZN4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv]+0x2d1): undefined reference to `Foam::IPstream::waitRequests()'
icoFoam.C:(.text._ZN4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[_ZN4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv]+0x2d6): undefined reference to `Foam::OPstream::waitRequests()'
Make/linux64GccDPOpt/icoFoam.o: In function `void Foam::Pstream::gather<double, Foam::maxOp<double> >(Foam::List<Foam::Pstream::commsStruct> const&, double&, Foam::maxOp<double> const&)':
icoFoam.C:(.text._ZN4Foam7Pstream6gatherIdNS_5maxOpIdEEEEvRKNS_4ListINS0_11commsStructEEERT_RKT0_[_ZN4Foam7Pstream6gatherIdNS_5maxOpIdEEEEvRKNS_4ListINS0_11commsStructEEERT_RKT0_]+0x55): undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)'
icoFoam.C:(.text._ZN4Foam7Pstream6gatherIdNS_5maxOpIdEEEEvRKNS_4ListINS0_11commsStructEEERT_RKT0_[_ZN4Foam7Pstream6gatherIdNS_5maxOpIdEEEEvRKNS_4ListINS0_11commsStructEEERT_RKT0_]+0x8c): undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
Make/linux64GccDPOpt/icoFoam.o: In function `void Foam::Pstream::scatter<double>(Foam::List<Foam::Pstream::commsStruct> const&, double&)':
icoFoam.C:(.text._ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_11commsStructEEERT_[_ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_11commsStructEEERT_]+0x45): undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)'
icoFoam.C:(.text._ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_11commsStructEEERT_[_ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_11commsStructEEERT_]+0x6d): undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
Make/linux64GccDPOpt/icoFoam.o: In function `main':
icoFoam.C:(.text.startup+0x1b03): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
icoFoam.C:(.text.startup+0x1b8e): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
icoFoam.C:(.text.startup+0x1dfe): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
icoFoam.C:(.text.startup+0x1e94): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellSet::~cellSet()'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_create'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_mutexattr_destroy'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlock_destroy'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryFaceCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `typeinfo for Foam::directMappedPatchBase'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlock_tryrdlock'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_mutex_trylock'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::faceSet::~faceSet()'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `gzopen'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_mutexattr_init'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `gzread'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::IOobject::writeOption)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlock_rdlock'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::directMappedPatchBase::calcMapping() const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurfaceTools::calcInterpolationWeights(Foam::triSurface const&, Foam::Field<Foam::Vector<double> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<double, 3u> >&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::topoSetSource::New(Foam::word const&, Foam::polyMesh const&, Foam::dictionary const&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::patchWave::patchWave(Foam::polyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::getPointNeighbours(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, int, Foam::List<int>&) const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_join'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::wallPoint::greatPoint'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::operator<<(Foam::Ostream&, Foam::wallPoint const&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::OPstream::~OPstream()'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlockattr_destroy'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlock_trywrlock'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::~triSurface()'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellSet::cellSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_mutexattr_settype'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlockattr_init'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlock_init'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlock_unlock'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::directMappedPatchBase::sampleMesh() const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurfaceTools::delaunay2D(Foam::List<Foam::Vector2D<double> > const&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `typeinfo for Foam::directMappedPolyPatch'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlock_wrlock'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `gzclose'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `gzwrite'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryPointCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::directMappedPolyPatch::typeName'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::smallestDist(Foam::Vector<double> const&, Foam::polyPatch const&, int, Foam::List<int> const&, int&) const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::directMappedPatchBase::typeName'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::patchWave::~patchWave()'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::operator>>(Foam::Istream&, Foam::wallPoint&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `pthread_rwlockattr_setkind_np'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)'
/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
make: *** [/opt/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoFoam] Ошибка 1

OS: OpenSuse 12.2 64 bit
gcc: 4.7.1

Please, help.

Best regards, Aleksey.

Aleksey_R September 21, 2012 10:38

I failed to compile OF-1.6-ext on OpenSUSE 12.2 using default gcc-4.7.1 but I managed to compile OF-1.6-ext using gcc-4.5 (using scripts from ThirdPart dir). I had to modify some .spec files to do it.


All times are GMT -4. The time now is 05:58.