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 installation in Debian 5.06 lenny IA64 (http://www.cfd-online.com/Forums/openfoam-installation/80811-openfoam-1-6-installation-debian-5-06-lenny-ia64.html)

icingfish October 7, 2010 06:40

OpenFOAM 1.6 installation in Debian 5.06 lenny IA64
 
Hi, everyone! I'm a newbie of OF and linux.
When I tried to install OF 1.6 in Debian IA64, I met problems.
first, my system's information
env@debian:~$ qmake --version
QMake version 2.01a
Using Qt version 4.4.3 in /usr/lib
env@debian:~$ cmake --version
cmake version 2.6-patch 0
env@debian:~$ gcc --version
gcc (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

env@debian:~$ flex --version
flex 2.5.35
env@debian:~$ bison --version
bison (GNU Bison) 2.3
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
env@debian:~$ python --version
Python 2.5.2

icingfish October 7, 2010 06:43

then, at the begging of my make log:
+ cd wmake/src
+ make
gcc -Wall -O3 -fPIC dirToString.c -o /home/env/OpenFOAM/OpenFOAM-1.6/wmake/bin/linuxIA64Gcc/dirToString
flex wmkdep.l
gcc -Wall -O3 -fPIC lex.yy.c -o /home/env/OpenFOAM/OpenFOAM-1.6/wmake/bin/linuxIA64Gcc/wmkdep
lex.yy.c:1393: warning: 'yyunput' defined but not used
lex.yy.c:1436: warning: 'input' defined but not used
+ cd /home/env/OpenFOAM/ThirdParty-1.6
+ ./Allwmake
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ cd malloc
++ ./Allwmake
+ wmake libso hoard
Making dependency list for source file hoard-371/src/libhoard.cpp
SOURCE=hoard-371/src/libhoard.cpp ; g++ -DlinuxIA64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -DNDEBUG -D_REENTRANT=1 -IlnInclude -I. -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxIA64GccDPOpt/libhoard.o
In file included from lnInclude/mmapheap.h:48,
from hoard-371/src/alignedsuperblockheap.h:6,
from hoard-371/src/hoard.h:52,
from hoard-371/src/libhoard.cpp:94:
lnInclude/spinlock.h:253:2: error: #error "No spin lock implementation is available for this platform."
In file included from hoard-371/src/libhoard.cpp:93:
lnInclude/cpuinfo.h: In static member function 'static int HL::CPUInfo::getThreadId()':
lnInclude/cpuinfo.h:216: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:45,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/addheaderheap.h: At global scope:
hoard-371/src/addheaderheap.h:21: warning: use of old-style cast
hoard-371/src/addheaderheap.h:22: warning: use of old-style cast
In file included from hoard-371/src/hoard.h:47,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/redirectfree.h:46: warning: use of old-style cast
In file included from hoard-371/src/hoardsuperblock.h:11,
from hoard-371/src/hoard.h:50,
from hoard-371/src/libhoard.cpp:94:
hoard-371/src/hoardsuperblockheader.h: In constructor 'Hoard::HoardSuperblockHeader<LockType, SuperblockSize, HeapType>::HoardSuperblockHeader(size_t, size_t)':
hoard-371/src/hoardsuperblockheader.h:31: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h: In member function 'void* Hoard::HoardSuperblockHeader<LockType, SuperblockSize, HeapType>::normalize(void*) const':
hoard-371/src/hoardsuperblockheader.h:68: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:68: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:77: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:77: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:79: warning: use of old-style cast
hoard-371/src/hoardsuperblockheader.h:79: warning: use of old-style cast


what the warning mean?

icingfish October 7, 2010 06:44

the first error of my log
 
make: *** [Make/linuxIA64GccDPOpt/libhoard.o] Error 1
+ wmake libo fbsdmalloc
Making dependency list for source file fbsdmalloc.c
could not open file libc_private.h for source file fbsdmalloc.c
could not open file spinlock.h for source file fbsdmalloc.c
SOURCE=fbsdmalloc.c ; gcc -DlinuxIA64 -DWM_DP -Wall -O3 -IlnInclude -I. -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxIA64GccDPOpt/fbsdmalloc.o
ld -r -o /home/env/OpenFOAM/OpenFOAM-1.6/lib/linuxIA64GccDPOpt/libfbsdmalloc.o Make/linuxIA64GccDPOpt/fbsdmalloc.o
'/home/env/OpenFOAM/OpenFOAM-1.6/lib/linuxIA64GccDPOpt/libfbsdmalloc.o' is up to date.
++ case "$WM_MPLIB" in
++ '[' -r /home/env/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linuxIA64GccDPOpt/lib/libmpi.so ']'
++ '[' -r /home/env/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linuxIA64GccDPOpt/lib/libmpi.a ']'
++ cd /home/env/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3
++ make distclean
make: *** No rule to make target `distclean'. Stop.

icingfish October 7, 2010 06:45

the critical erros
 
+ applications/Allwmake
+ wmake all solvers
make[1]: Entering directory `/home/env/OpenFOAM/OpenFOAM-1.6/applications/solvers/DNS'
make[2]: Entering directory `/home/env/OpenFOAM/OpenFOAM-1.6/applications/solvers/DNS/dnsFoam'
Making dependency list for source file dnsFoam.C
make[2]: Leaving directory `/home/env/OpenFOAM/OpenFOAM-1.6/applications/solvers/DNS/dnsFoam'
make[2]: Entering directory `/home/env/OpenFOAM/OpenFOAM-1.6/applications/solvers/DNS/dnsFoam'
SOURCE=dnsFoam.C ; g++ -DlinuxIA64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/randomProcesses/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/sampling/lnInclude -IlnInclude -I. -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxIA64GccDPOpt/dnsFoam.o
/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H: In function 'int main(int, char**)':
/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H:3: warning: unused variable 'nCorr'
/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H:5: warning: unused variable 'nNonOrthCorr'
/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable 'momentumPredictor'
/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable 'transonic'
/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable 'nOuterCorr'
g++ -DlinuxIA64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/env/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/randomProcesses/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/sampling/lnInclude -IlnInclude -I. -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/env/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxIA64GccDPOpt/dnsFoam.o -L/home/env/OpenFOAM/OpenFOAM-1.6/lib/linuxIA64GccDPOpt \
-lfiniteVolume -lrandomProcesses -lsampling -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/env/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxIA64GccDPOpt/dnsFoam
/usr/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status
make[2]: *** [/home/env/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxIA64GccDPOpt/dnsFoam] Error 1
make[2]: Leaving directory `/home/env/OpenFOAM/OpenFOAM-1.6/applications/solvers/DNS/dnsFoam'
make[1]: *** [dnsFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/env/OpenFOAM/OpenFOAM-1.6/applications/solvers/DNS'
make: *** [DNS] Error 2

icingfish October 7, 2010 06:51

I have looked throw the other posts about installation of OpenFOAM in IA64 system, there're something similar to mine.
but I don't know the exact solutions.
Thx first!

wyldckat October 7, 2010 07:38

Greetings icingfish and welcome to the forum!

The errors/warnings related to hoard and fbsdmalloc can be ignored. It's outdated technology and not required by OpenFOAM.

As for the "-liberty" problem, you're missing a package in Debian... but I can't remember which is it. Either way, check if you have all of the following list of packages are installed in your Debian system: Building OpenFOAM1.7.0 from source post #4 and onward

Best regards,
Bruno

icingfish October 7, 2010 20:30

Thank you,Bruno!
I'll try your suggestion.

icingfish October 7, 2010 20:54

now,I know the only missing package in Bruno‘s post is binutils-dev. I install it and go throw another try......

icingfish October 8, 2010 02:42

Thank you so much, Bruno!
 
The installation done!
Bruno's right!


All times are GMT -4. The time now is 18:12.