gwierink |
September 23, 2009 10:58 |
OpenFOAM-1.5-dev compilation: OSspecific trouble
Dear all,
I have compiled a snap shot of OpenFOAM-1.5-dev on my laptop (Fedora 10 x86_64) and it works beautifully. Now I am compiling it also on my desktop (Fedora 11 x86_64) and want to use the svn version. When I compile the svn version of dev on my desktop I get stuck at compiling OSspecific in src. Anyhting from sifFpe.o and beyond is not created. I could not find out how and why, so I copied the missing .o files from the same dir in my laptop. Not very pretty, I know, but it seems to work :D. I ran into the same problem in meshTools and had to copy surfaceFeatures.o there as well. After rerunning Allwmake all seems to work.
Does anyone have an idea how to fix this in a more elegant way? :)
Thanks in advance!
Regards,
Gijs
PS Some more info: I used my system compiler (gcc-4.4.1) and when I switch to OpenFOAM's compilers things like blockMesh stop working (problem with libstdc++.so.6)
The first error message (for OSspecific) was:
Code:
[gijsbert@mintek src]$ wmake libo OSspecific/$WM_OS
SOURCE=signals/sigFpe.C ; g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1435 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sigFpe.o
SOURCE=signals/sigInt.C ; g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1435 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sigInt.o
In file included from /usr/include/stdio.h:909,
from /home/gijsbert/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstdio:50,
from /home/gijsbert/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/bits/char_traits.h:48,
from /home/gijsbert/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/string:47,
from /home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/string.H:51,
from /home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/messageStream.H:50,
from /home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/error.H:52,
from signals/sigFpe.C:27:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’:
/usr/include/bits/stdio.h:118: error: ‘__getdelim’ was not declared in this scope
In file included from /usr/include/stdio.h:909,
from /home/gijsbert/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cstdio:50,
from /home/gijsbert/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/bits/char_traits.h:48,
from /home/gijsbert/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/string:47,
from /home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/string.H:51,
from /home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/messageStream.H:50,
from /home/gijsbert/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/error.H:52,
from signals/sigInt.C:27:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’:
/usr/include/bits/stdio.h:118: error: ‘__getdelim’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/sigFpe.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/linux64GccDPOpt/sigInt.o] Error 1
and the second one (with surfaceFeatures.o) was:
Code:
[gijsbert@mintek src]$ wmake libso meshTools
triSurface/surfaceFeatures/surfaceFeatures.C:770: error: conflicting declaration ‘Foam::octreeDataPoint samples’
triSurface/surfaceFeatures/surfaceFeatures.C:769: error: ‘samples’ has a previous declaration as ‘Foam::treeBoundBox samples’
triSurface/surfaceFeatures/surfaceFeatures.C: In member function ‘Foam::Map<int> Foam::surfaceFeatures::nearestSamples(const Foam::labelList&, const Foam::pointField&, const Foam::scalarField&, const Foam::scalarField&, Foam::scalar) const’:
triSurface/surfaceFeatures/surfaceFeatures.C:871: error: conflicting declaration ‘Foam::octreeDataPoint samples’
triSurface/surfaceFeatures/surfaceFeatures.C:870: error: ‘samples’ has a previous declaration as ‘Foam::treeBoundBox samples’
make: *** [Make/linux64GccDPOpt/surfaceFeatures.o] Error 1
make: *** Waiting for unfinished jobs....
|