CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Compiling problems

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 24, 2006, 01:42
Default Following the release notes of
  #1
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
chris1980 is on a distinguished road
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
chris1980 is offline   Reply With Quote

Old   July 24, 2006, 03:57
Default See http://www.cfd-online.co
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
See
http://www.cfd-online.com/cgi-bin/Op...=8988#POST8988
mattijs is offline   Reply With Quote

Old   July 24, 2006, 09:39
Default thanks Mattijs but there are n
  #3
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
chris1980 is on a distinguished road
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 is offline   Reply With Quote

Old   July 24, 2006, 11:29
Default Following the error message yo
  #4
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
chris1980 is on a distinguished road
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 is offline   Reply With Quote

Old   July 25, 2006, 02:01
Default there are still four error whe
  #5
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
chris1980 is on a distinguished road
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 is offline   Reply With Quote

Old   July 25, 2006, 02:23
Default please install the OpenGL head
  #6
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
chris1980 is on a distinguished road
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 is offline   Reply With Quote

Old   July 27, 2006, 04:50
Default there is no way to compile OF
  #7
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
chris1980 is on a distinguished road
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 is offline   Reply With Quote

Old   August 6, 2006, 18:13
Default Is knowone able to help me wit
  #8
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
chris1980 is on a distinguished road
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

I hope there is someone giving me a helping hand
chris1980 is offline   Reply With Quote

Old   June 3, 2015, 15:41
Default
  #9
New Member
 
Bernardo Tuleski
Join Date: May 2015
Posts: 1
Rep Power: 0
Berstuleski is on a distinguished road
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?

Last edited by Berstuleski; June 3, 2015 at 15:44. Reason: One more thing, in my case the error 1 was -ltetDecompositionMotionSolver
Berstuleski is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with compiling roberthino OpenFOAM Installation 3 March 17, 2008 05:04
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38
Problems compiling under 14 grtabor OpenFOAM Running, Solving & CFD 9 July 17, 2007 22:34
Problems on Compiling UDF in FLUENT Strawberi-KeatKeat FLUENT 1 October 4, 2006 01:50
Problems with compiling CFD code! ravi Main CFD Forum 1 July 12, 2004 11:28


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