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

OpenFOAM 13IA64 compilation error for topoSetC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2007, 10:36
Default I'm trying to compile OpenFoam
  #1
New Member
 
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17
begou is on a distinguished road
I'm trying to compile OpenFoam on a SGI Altix (IA64) runing Suse (SLES9) and gcc-g++-3.3.3-43.41 (latest supported version available).
I got an error on ./src/meshTools/lnInclude/topoSet.C when it instantiates a boundBox Object, but I've some difficulties to understand it. I saw that the boundBox constructor requires 2 arguments...but...
Can someone help me ?

Thanks for you help

Patrick

Error detail:
SOURCE=sets/topoSets/topoSet.C ; g++ -DlinuxIA64 -DDP -O3 -DNoRepository -ftemplate-depth-30 -I/scratch/begou/OpenFOAM-1.3/src/triSurface/lnInclude -I/scratch/begou/OpenFOAM-1.3/src/lagrangian/basic/lnInclude -I/scratch/begou/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/linuxIA64I64DPOpt/topoSet.o
sets/topoSets/topoSet.C: In member function `void
Foam::topoSet::writeDebug(Foam:: Ostream&, const Foam::pointField&, int)
const':
sets/topoSets/topoSet.C:262: error: variable declaration is not allowed here
sets/topoSets/topoSet.C:265: error: request for member `min' in `Foam::bb',
which is of non-aggregate type `Foam::boundBox ()()'
sets/topoSets/topoSet.C:265: error: request for member `max' in `Foam::bb',
which is of non-aggregate type `Foam::boundBox ()()'
make: *** [Make/linuxIA64I64DPOpt/topoSet.o] Error 1


Location of the error:
251 void topoSet::writeDebug
252 (
253 Ostream& os,
254 const pointField& coords,
255 const label maxLen
256 ) const
257 {
258 // Bounding box of contents.
259 boundBox bb
260 (
261 pointField(IndirectList<point>(coords, toc())())
262 );
begou is offline   Reply With Quote

Old   January 22, 2007, 13:34
Default These are the unmodified OF-so
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
These are the unmodified OF-sources? My guess (guess! I don't know) is that its a problem with the compiler. 3.3 is fairly ancient. What I would try is download the latest stable gcc-sources, compile it, install it in parallel to the vendor provided gcc (/home/begou/OpenFOAM/gcc-4 for instance) and use that to compile Foam.

A quote from http://www.cfd-online.com/OpenFOAM_D...ges/1/116.html:

"I just wanted to write and say it seems all of the compilation warnings/problems were fixed when I installed a local version of gcc-4.1.1. Highly recommend doing this instead of using local compilers."
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of OpenFoam 15 Compilation paraview soeren_brot OpenFOAM Installation 45 January 12, 2009 07:39
OpenFOAM compilation fails on applicationsutilitiesmesh geoffjay OpenFOAM Installation 12 April 29, 2008 16:26
OpenFOAM 14 compilation problem zaferleylek OpenFOAM Installation 4 May 8, 2007 15:52
error during UDF compilation mvee FLUENT 3 May 3, 2007 06:03
OpenFOAM compilation on a linux machine Enric Aramburu (Aramburu) OpenFOAM Installation 2 January 4, 2005 04:02


All times are GMT -4. The time now is 21:04.