CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compiling problems (http://www.cfd-online.com/Forums/openfoam-installation/57626-compiling-problems.html)

chris1980 July 24, 2006 01:42

Following the release notes of
 
Following the release notes of OpenFOAM 1.3 I try to compile OF with the Intel C++ Compiler but the following error occured:

SOURCE_DIR=OSspecific/Unix/signals
SOURCE=OSspecific/Unix/signals/sigFpe.C ; icc -gcc-version=400 -Dlinux -DDP -wd654 -vec-report0 -O3 -xP -no-prec-div -DNoRepository -DWM_PROJECT_VERSION='"'1.3'"' -I/home/stefanke/OpenFOAM/OpenFOAM-1.3/src/zlib-1.2.1 -I/home/stefanke/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC -c $SOURCE -o Make/linuxI32DPOpt/sigFpe.o
OSspecific/Unix/signals/sigFpe.C(88): error: identifier "uint64_t" is undefined
const uint64_t sNAN = 0x7ff7ffffffffffffllu;
^

OSspecific/Unix/signals/sigFpe.C(92): error: identifier "uint64_t" is undefined
uint64_t* dPtr = reinterpret_cast<uint64_t*>(result);
^

OSspecific/Unix/signals/sigFpe.C(92): error: identifier "dPtr" is undefined
uint64_t* dPtr = reinterpret_cast<uint64_t*>(result);
^

OSspecific/Unix/signals/sigFpe.C(92): error: "uint64_t" is not a type name
uint64_t* dPtr = reinterpret_cast<uint64_t*>(result);
^

compilation aborted for OSspecific/Unix/signals/sigFpe.C (code 2)
make: *** [Make/linuxI32DPOpt/sigFpe.o] Fehler 2

mattijs July 24, 2006 03:57

See http://www.cfd-online.co
 
See
http://www.cfd-online.com/cgi-bin/Op...=8988#POST8988

chris1980 July 24, 2006 09:39

thanks Mattijs but there are n
 
thanks Mattijs but there are now some other errors:

SOURCE_DIR=triSurface/interfaces/STL
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/linuxI32DPOpt/readSTLASCII.C ; icc -gcc-version=400 -Dlinux -DDP -wd654 -vec-report0 -O3 -xP -no-prec-div -DNoRepository -I/home/stefanke/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC -c Make/linuxI32DPOpt/readSTLASCII.C -o Make/linuxI32DPOpt/readSTLASCII.o

Fatal Error : This program was not built to run on the processor in your system.mv: ......

Catastrophic error: could not open source file "Make/linuxI32DPOpt/readSTLASCII.C"

the problem is that the truSurface lib cannot be build and so the finiteVolume etc. as well!

chris1980 July 24, 2006 11:29

Following the error message yo
 
Following the error message you use an non-compatible CPU!

Take a look at the used compiler flags (in rules) and modify the 'x' flag to a CPU compatible to your processor.


hth

chris1980 July 25, 2006 02:01

there are still four error whe
 
there are still four error when I try to compile OF:


SOURCE_DIR=GLstream
SOURCE=GLstream/XGLwindow.C ; icc -gcc-version=400 -Dlinux -DDP -wd654 -vec-report0 -O3 -xW -no-prec-div -DNoRepository -I/usr/X11R6/include -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC -c $SOURCE -o Make/linuxI32DPOpt/XGLwindow.o
GLstream/XGLwindow.H(4): catastrophic error: could not open source file "GL/gl.h"
#include <gl/gl.h>

compilation aborted for GLstream/XGLwindow.C (code 4)
make: *** [Make/linuxI32DPOpt/XGLwindow.o] Error 4


/home/chris/OpenFOAM/OpenFOAM-1.3/wmake/wmakeLnInclude: linking include files to /home/chris/OpenFOAM/OpenFOAM-1.3/src/malloc/fbsdmalloc/lnInclude
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
libo
SOURCE_DIR=.
SOURCE=fbsdmalloc.c ; icc -gcc-version=400 -Dlinux -DDP -O3 -xW -no-prec-div -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC -c $SOURCE -o Make/linuxI32DPOpt/fbsdmalloc.o
fbsdmalloc.c(563) : (col. 2) remark: LOOP WAS VECTORIZED.
/home/chris/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/chris/OpenFOAM/OpenFOAM-1.3/lib/linuxI32DPOpt/libfbsdmalloc

Making dependency list for source file engineFoam.C
could not open file engineTopoFvMesh.H for source file engineFoam.C

SOURCE_DIR=.
SOURCE=engineFoam.C ; icc -gcc-version=400 -Dlinux -DDP -wd654 -vec-report0 -O3 -xW -no-prec-div -DNoRepository -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/engine/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/specie/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/basic/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/combustion/lnInclud e -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/turbulenceModels/compressible/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/laminarFlameSpeed/l nInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/dynamicMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/dynamicFvMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/topoChangerFvMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/meshTools/lnInclude -I../XiFoam -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC -c $SOURCE -o Make/linuxI32DPOpt/engineFoam.o
engineFoam.C(58): catastrophic error: could not open source file "engineTopoFvMesh.H"
#include "engineTopoFvMesh.H"
compilation aborted for engineFoam.C (code 4)

Making dependency list for source file foamDebugSwitches.C

SOURCE_DIR=.
SOURCE=foamDebugSwitches.C ; icc -gcc-version=400 -Dlinux -DDP -wd654 -vec-report0 -O3 -xW -no-prec-div -DNoRepository -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC -c $SOURCE -o Make/linuxI32DPOpt/foamDebugSwitches.o
/home/chris/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/chris/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxI32DPOpt/foamDebugSwitch es
icc -gcc-version=400 -Dlinux -DDP -wd654 -vec-report0 -O3 -xW -no-prec-div -DNoRepository -I/home/chris/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC Make/linuxI32DPOpt/foamDebugSwitches.o -L/home/chris/OpenFOAM/OpenFOAM-1.3/lib/linuxI32DPOpt \
-lFoamX -lFoamXServer -L/home/chris/OpenFOAM/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxI32DPOpt/lib -lmicocoss2.3.11 -lmico2.3.11 -ldl -lGstream -lGL -lLESfilters -lODE -lcompressibleLESmodels -lfoamUtil -lbasicThermophysicalModels -lfiniteVolume -lcombustionThermophysicalModels -lcompressibleTurbulenceModels -ldieselSpray -ledgeMesh -lengine -lerrorEstimation -ldynamicMesh -lfaceDecompFiniteElement -lfiniteArea -lincompressibleTransportModels -lincompressibleTurbulenceModels -lincompressibleLESmodels -llagrangian -llaminarFlameSpeedModels -lliquids -lrandomProcesses -lsampling -lspecie -lthermophysicalFunctions -ltriSurface -lOpenFOAM -lstdc++ -liberty -o /home/chris/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxI32DPOpt/foamDebugSwitch es
IPO link: can not find -lGstream
icc: error: problem during multi-file optimization compilation (code 1)
make: *** [/home/chris/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxI32DPOpt/foamDebugSwitc hes] Error 1


Any help is very appreciated.

chris1980 July 25, 2006 02:23

please install the OpenGL head
 
please install the OpenGL headers on your system und recompile the necessary parts.

could not open source file "engineTopoFvMesh.H"
-> that is not default lib of OpenFOAM

hth

chris1980 July 27, 2006 04:50

there is no way to compile OF
 
there is no way to compile OF with the Intel C++ compiler. Now I get a lot of error messages like this:

/usr/include/c++/3.3/sstream(181): error: identifier "_M_buf_size" is undefined
_M_buf_size = _M_string.size();
^
detected during:
instantiation of "std::basic_stringbuf<_chart,>::basic_stringbuf(co nst std::basic_stringbuf<_CharT, _Traits
, _Alloc>::__string_type &, std::ios_base::openmode={std::_Ios_Openmode}) [with _CharT=char, _Traits=std::char_traits<char>, _Alloc=std
::allocator<char>]" at line 355
instantiation of "std::basic_istringstream<_chart,>::basic_istrings tream(const std::basic_istringstream<_Ch
arT, _Traits, _Alloc>::__string_type &, std::ios_base::openmode={std::_Ios_Openmode}) [with _CharT=char, _Traits=std::char_traits<char>
, _Alloc=std::allocator<char>]"


Any ideas?

chris1980 August 6, 2006 18:13

Is knowone able to help me wit
 
Is knowone able to help me with my compiler problems. I think to use the Intel Compiler is a straight forward task but it seems to be very tricky http://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif

I hope there is someone giving me a helping hand

Berstuleski June 3, 2015 15:41

Hello Chris,
I had the same problem with dynamicFvMesh.H, but I can't compile the files because wmake acuse error in function of this header. Did you solve this problem? If yes, How?


All times are GMT -4. The time now is 19:10.