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

Version 15 on Mac OS X

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2009, 08:44
Default
  #101
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
Hi!

After I've been able to compile 1.5 on my 10.5 (intel) system half a year ago or something, I'm now running into serious problems with compiling the 1.5-dev. At first I cannot apply the patches, provided by Bernhard on the first two pages of this thread any more. God knows why, I don't Is there anybody, who managed to apply those patches to the 1.5-dev sources? Are they needed for the 1.5-dev? I'm asking because there are plenty of Mac architecture rules available in the wmake/rules of the svn.

Secondly, if I try to run ./Allwmake, gcc is not able to find most of the files, though they are available and I have a case-sensitive partition. It seems to crash when he tries to do a wmake libso for src/Pstream/dummy.

Jens

Code:
+ cd .
+ cd wmake/src
+ make
make: Nothing to be done for `all'.
+ cd /Volumes/OpenFOAM/ThirdParty
+ ./Allwmake
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ wmake libso zlib-1.2.3
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libz.so' is up to date.
+ cd malloc
+ ./Allwmake
+ wmake libso hoard
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libhoard.so' is up to date.
+ wmake libo fbsdmalloc
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libfbsdmalloc.o' is up to date.
+ cd metis-5.0pre2
+ wmake libso GKlib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libGKlib.so' is up to date.
+ wmake libso libmetis
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libmetis.so' is up to date.
+ '[' -d /usr ']'
+ cd ParMetis-3.1
+ wmake libso METISLib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/openmpi-1.2.3/libmetis-parmetis.so' is up to date.
+ wmake libso ParMETISLib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/openmpi-1.2.3/libparmetis.so' is up to date.
+ wmake libso ParMGridGen-1.0/MGridGen/IMlib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libIMlib.so' is up to date.
+ wmake libso ParMGridGen-1.0/MGridGen/Lib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libMGridGen.so' is up to date.
+ cd src
+ ./Allwmake
+ cd OpenFOAM
+ wmakeLnInclude .
+ cd Pstream
+ ./Allwmake
+ wmake libso dummy
SOURCE=Pstream.C ;  g++-4.2 -DdarwinIntel -DDP -DFOAM_DEV_REVISION_NUMBER=1475 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntelGccDPOpt/Pstream.o
In file included from Pstream.C:27:
/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Pstream.H:45:23: error: labelList.H: No such file or directory
In file included from /Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/List.H:44,
                 from /Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/DynamicList.H:47,
                 from /Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Pstream.H:46,
                 from Pstream.C:27:
/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/UList.H:46:19: error: label.H: No such file or directory
/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/UList.H:47:18: error: bool.H: No such file or directory
jhoepken is offline   Reply With Quote

Old   October 26, 2009, 08:05
Default
  #102
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
I am running and regularly recompiling 1.5-dev without any patching on my big Mac at home: it should compile out of box. This is a machine used for some (long, transient) runs and some effort has been made to make sure it runs properly.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 27, 2009, 13:37
Default
  #103
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
[QUOTE=jhoepken;233887]
After I've been able to compile 1.5 on my 10.5 (intel) system half a year ago or something, I'm now running into serious problems with compiling the 1.5-dev. At first I cannot apply the patches, provided by Bernhard on the first two pages of this thread any more. God knows why, I don't Is there anybody, who managed to apply those patches to the 1.5-dev sources? Are they needed for the 1.5-dev? I'm asking because there are plenty of Mac architecture rules available in the wmake/rules of the svn.
[CODE]
No. They should not be needed. The contents of the patch were added some time ago to the repository and probably improved in the meantime
Quote:
Originally Posted by jhoepken View Post
Secondly, if I try to run ./Allwmake, gcc is not able to find most of the files, though they are available and I have a case-sensitive partition. It seems to crash when he tries to do a wmake libso for src/Pstream/dummy.
Code:
+ cd .
+ cd wmake/src
+ make
make: Nothing to be done for `all'.
+ cd /Volumes/OpenFOAM/ThirdParty
+ ./Allwmake
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ wmake libso zlib-1.2.3
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libz.so' is up to date.
+ cd malloc
+ ./Allwmake
+ wmake libso hoard
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libhoard.so' is up to date.
+ wmake libo fbsdmalloc
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libfbsdmalloc.o' is up to date.
+ cd metis-5.0pre2
+ wmake libso GKlib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libGKlib.so' is up to date.
+ wmake libso libmetis
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libmetis.so' is up to date.
+ '[' -d /usr ']'
+ cd ParMetis-3.1
+ wmake libso METISLib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/openmpi-1.2.3/libmetis-parmetis.so' is up to date.
+ wmake libso ParMETISLib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/openmpi-1.2.3/libparmetis.so' is up to date.
+ wmake libso ParMGridGen-1.0/MGridGen/IMlib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libIMlib.so' is up to date.
+ wmake libso ParMGridGen-1.0/MGridGen/Lib
'/Volumes/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libMGridGen.so' is up to date.
+ cd src
+ ./Allwmake
+ cd OpenFOAM
+ wmakeLnInclude .
+ cd Pstream
+ ./Allwmake
+ wmake libso dummy
SOURCE=Pstream.C ;  g++-4.2 -DdarwinIntel -DDP -DFOAM_DEV_REVISION_NUMBER=1475 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntelGccDPOpt/Pstream.o
In file included from Pstream.C:27:
/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Pstream.H:45:23: error: labelList.H: No such file or directory
In file included from /Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/List.H:44,
                 from /Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/DynamicList.H:47,
                 from /Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Pstream.H:46,
                 from Pstream.C:27:
/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/UList.H:46:19: error: label.H: No such file or directory
/Volumes/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/UList.H:47:18: error: bool.H: No such file or directory
Strange. Have a look into the OpenFOAM/lnInclude. If there is no symbolic link label.H then remove the directory. The next wmake should rebuild it. This problem occurs if during a previous run of wmake the script was Ctrl-C-ed during the generation of that directory (something similar occurs if you interrupt the creation of a .dep-file). It is not specific to the dev-version

Bernhard
gschaider is offline   Reply With Quote

Old   October 28, 2009, 05:37
Default
  #104
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
Thank you Hrv and Bernhard for your help. As far as I can tell, the sources are compiling at the moment
jhoepken is offline   Reply With Quote

Old   November 1, 2009, 15:17
Default metis-5.0pre2 compilation error - thread-local storage not supported
  #105
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,

I am compiling OpenFOAM-1.5-dev on my intel macbook pro. I have created a case-sensitive image. I downloaded OpenFOAM-1.5-dev and ThirdParty from http://powerlab.fsb.hr/ped/kturbo/openfoam/release/.

It's nearly all compiled, but I get an error when I compile metis-5.0pre2 in the $WM_THIRD_PARTY_DIR. I get the error below about 'thread-local storage not supported'. I have tried my best trawling the web trying to figure out it out but to no avail, and there doesn't seem to be anything on the forum about this error.

Code:
87-198-25-219:metis-5.0pre2 philipcardiff$ wmake libso GKlib
SOURCE=trunk/b64.c ;  gcc-4.2  -DdarwinIntel -DDP -DFOAM_DEV_REVISION_NUMBER=exported -Wall -O3   -IlnInclude -I. -I//Volumes/OpenFOAM//OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I//Volumes/OpenFOAM//OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntelDPOpt/b64.o
SOURCE=trunk/blas.c ;  gcc-4.2  -DdarwinIntel -DDP -DFOAM_DEV_REVISION_NUMBER=exported -Wall -O3   -IlnInclude -I. -I//Volumes/OpenFOAM//OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I//Volumes/OpenFOAM//OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntelDPOpt/blas.o
In file included from lnInclude/GKlib.h:62,
                 from trunk/b64.c:14:
lnInclude/gk_externs.h:18: error: thread-local storage not supported for this target
make: *** [Make/darwinIntelDPOpt/b64.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from lnInclude/GKlib.h:62,
                 from trunk/blas.c:18:
lnInclude/gk_externs.h:18: error: thread-local storage not supported for this target
make: *** [Make/darwinIntelDPOpt/blas.o] Error 1
I tried downloading metis-5.0pre2 from http://glaros.dtc.umn.edu/gkhome/metis/metis/download and copying the Make files into it, but I still get the same error.

I hope someone can help,
Philip Cardiff

EDIT: Here is the gk_externs.h file:
Code:
/*!
\file gk_externs.h
\brief This file contains definitions of external variables created by GKlib

\date   Started 3/27/2007
\author George
\version\verbatim $Id: gk_externs.h 1277 2007-03-27 21:17:33Z karypis $ \endverbatim
*/

#ifndef _GK_EXTERNS_H_
#define _GK_EXTERNS_H_


/*************************************************************************
* Extern variable definition. Hopefully, the __thread makes them thread-safe.
**************************************************************************/
#ifndef _GK_ERROR_C_
extern __thread jmp_buf gk_return_to_entry; /* declared in error.c */
#endif

#endif

Last edited by bigphil; November 1, 2009 at 15:34.
bigphil is offline   Reply With Quote

Old   November 3, 2009, 02:40
Default
  #106
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Ust remove the bit of the header that throws an error and recompile. We are not threaded yet in that part, so there's no danger.

Once the threaded support is complete we will have to resolve this properly.

Enjoy (for the moment),

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 3, 2009, 09:04
Default
  #107
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hrv,

I commented out all the lines that were getting a compilation error - quite a few different files.
It has now compiled.

Thanks very much for your help,
much appreciated,
Philip Cardiff
bigphil is offline   Reply With Quote

Old   November 22, 2009, 12:47
Default OpenFoam 1.5-dev compilation errors on latest revision
  #108
Member
 
Richard Kenny
Join Date: Mar 2009
Posts: 64
Rep Power: 18
richpaj is on a distinguished road
Latest revision (1504) yields the following when "wmake libso OpenFOAM" is issued:

-----------------------------------begin-----------------------------------------------

SOURCE=global/global.Cver ; sed s/WM_PROJECT_VERSION/\"1.5-dev\"/ $SOURCE > Make/darwinIntelGccDPOpt/global.C ; g++-4.2 -DdarwinIntel -DDP -DFOAM_DEV_REVISION_NUMBER= -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/Users/rich/OpenFOAM/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/Users/rich/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/Users/rich/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -Ddarwin -c Make/darwinIntelGccDPOpt/global.C -o Make/darwinIntelGccDPOpt/global.o
svn: '/Users/rich/OpenFOAM' is not a working copy
ld: warning: in dimensionedConstants.o, file is not of required architecture
ld: warning: in argList.o, file is not of required architecture
ld: warning: in clock.o, file is not of required architecture
ld: warning: in bool.o, file is not of required architecture
ld: warning: in boolIO.o, file is not of required architecture
ld: warning: in charIO.o, file is not of required architecture
ld: warning: in intIO.o, file is not of required architecture
ld: warning: in uintIO.o, file is not of required architecture
ld: warning: in longIO.o, file is not of required architecture
ld: warning: in longLongIO.o, file is not of required architecture
ld: warning: in ulongIO.o, file is not of required architecture
ld: warning: in label.o, file is not of required architecture
ld: warning: in doubleScalar.o, file is not of required architecture
ld: warning: in floatScalar.o, file is not of required architecture
ld: warning: in scalar.o, file is not of required architecture
ld: warning: in labelVector.o, file is not of required architecture
ld: warning: in vector.o, file is not of required architecture
ld: warning: in vector2D.o, file is not of required architecture
ld: warning: in sphericalTensor.o, file is not of required architecture
ld: warning: in symmTensor.o, file is not of required architecture
ld: warning: in labelSphericalTensor.o, file is not of required architecture
ld: warning: in labelSymmTensor.o, file is not of required architecture
ld: warning: in complex.o, file is not of required architecture
ld: warning: in complexVector.o, file is not of required architecture
ld: warning: in string.o, file is not of required architecture
ld: warning: in stringIO.o, file is not of required architecture
ld: warning: in word.o, file is not of required architecture
ld: warning: in wordIO.o, file is not of required architecture
ld: warning: in fileName.o, file is not of required architecture
ld: warning: in fileNameIO.o, file is not of required architecture
ld: warning: in HashTableName.o, file is not of required architecture
ld: warning: in StaticHashTableName.o, file is not of required architecture
ld: warning: in ParSortableListName.o, file is not of required architecture
ld: warning: in PackedListName.o, file is not of required architecture
ld: warning: in SLListBase.o, file is not of required architecture
ld: warning: in DLListBase.o, file is not of required architecture
ld: warning: in boolList.o, file is not of required architecture
ld: warning: in labelIOList.o, file is not of required architecture
ld: warning: in scalarList.o, file is not of required architecture
ld: warning: in vectorList.o, file is not of required architecture
ld: warning: in sphericalTensorList.o, file is not of required architecture
ld: warning: in symmTensorList.o, file is not of required architecture
ld: warning: in wordIOList.o, file is not of required architecture
ld: warning: in tokenIO.o, file is not of required architecture
ld: warning: in IOstream.o, file is not of required architecture
ld: warning: in versionNumber.o, file is not of required architecture
ld: warning: in Istream.o, file is not of required architecture
ld: warning: in IOprint.o, file is not of required architecture
ld: warning: in IOcheck.o, file is not of required architecture
ld: warning: in Ostream.o, file is not of required architecture
ld: warning: in ISread.o, file is not of required architecture
ld: warning: in ISnextValid.o, file is not of required architecture
ld: warning: in ISreadToken.o, file is not of required architecture
ld: warning: in readHexLabel.o, file is not of required architecture
ld: warning: in OSwrite.o, file is not of required architecture
ld: warning: in Sprint.o, file is not of required architecture
ld: warning: in prefixOSwrite.o, file is not of required architecture
ld: warning: in prefixOSprint.o, file is not of required architecture
ld: warning: in gzstream.o, file is not of required architecture
ld: warning: in IFstream.o, file is not of required architecture
ld: warning: in OFstream.o, file is not of required architecture
ld: warning: in ITread.o, file is not of required architecture
ld: warning: in Tprint.o, file is not of required architecture
ld: warning: in StringStreamPrint.o, file is not of required architecture
ld: warning: in Pstream.o, file is not of required architecture
ld: warning: in PstreamCommsStruct.o, file is not of required architecture
ld: warning: in IPread.o, file is not of required architecture
ld: warning: in OPwrite.o, file is not of required architecture
ld: warning: in Pprint.o, file is not of required architecture
ld: warning: in IPreadToken.o, file is not of required architecture
ld: warning: in dictionary.o, file is not of required architecture
ld: warning: in dictionaryIO.o, file is not of required architecture
ld: warning: in entry.o, file is not of required architecture
ld: warning: in entryIO.o, file is not of required architecture
ld: warning: in primitiveEntry.o, file is not of required architecture
ld: warning: in primitiveEntryIO.o, file is not of required architecture
ld: warning: in dictionaryEntry.o, file is not of required architecture
ld: warning: in dictionaryEntryIO.o, file is not of required architecture
ld: warning: in functionEntry.o, file is not of required architecture
ld: warning: in includeEntry.o, file is not of required architecture
ld: warning: in inputModeEntry.o, file is not of required architecture
ld: warning: in removeEntry.o, file is not of required architecture
ld: warning: in IOdictionaryIO.o, file is not of required architecture
ld: warning: in IOMapName.o, file is not of required architecture
ld: warning: in IOobjectIO.o, file is not of required architecture
ld: warning: in IOobjectReadHeader.o, file is not of required architecture
ld: warning: in IOobjectWriteHeader.o, file is not of required architecture
ld: warning: in functionObject.o, file is not of required architecture
ld: warning: in CallbackRegistryName.o, file is not of required architecture
ld: warning: in dlLibraryTable.o, file is not of required architecture
ld: warning: in Switch.o, file is not of required architecture
ld: warning: in SwitchIO.o, file is not of required architecture
ld: warning: in TimePaths.o, file is not of required architecture
ld: warning: in scalarRange.o, file is not of required architecture
ld: warning: in dimensionSet.o, file is not of required architecture
ld: warning: in dimensionSetIO.o, file is not of required architecture
ld: warning: in dimensionSets.o, file is not of required architecture
ld: warning: in dimensionedScalar.o, file is not of required architecture
ld: warning: in dimensionedSphericalTensor.o, file is not of required architecture
ld: warning: in scalarConstraint.o, file is not of required architecture
ld: warning: in scalarMatrix.o, file is not of required architecture
ld: warning: in lduAddressing.o, file is not of required architecture
ld: warning: in lduInterface.o, file is not of required architecture
ld: warning: in GAMGInterface.o, file is not of required architecture
ld: warning: in line.o, file is not of required architecture
ld: warning: in intersection.o, file is not of required architecture
ld: warning: in patchIdentifier.o, file is not of required architecture
ld: warning: in polyBoundaryMeshEntries.o, file is not of required architecture
ld: warning: in commSchedule.o, file is not of required architecture
ld: warning: in mapAddedPolyMesh.o, file is not of required architecture
ld: warning: in labelField.o, file is not of required architecture
ld: warning: in scalarField.o, file is not of required architecture
ld: warning: in scalarIOField.o, file is not of required architecture
ld: warning: in vectorIOField.o, file is not of required architecture
ld: warning: in vector2DIOField.o, file is not of required architecture
ld: warning: in sphericalTensorIOField.o, file is not of required architecture
ld: warning: in bandCompression.o, file is not of required architecture
ld: warning: in preservePatchTypes.o, file is not of required architecture
ld: warning: in SutherlandHodgman.o, file is not of required architecture
ld: warning: in HormannAgathos.o, file is not of required architecture
ld: warning: in /Users/rich/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libOSspecific.o, file is not of required architecture
ld: warning: in /Users/rich/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/dummy/libPstream.so, file is not of required architecture
'/Users/rich/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libOpenFOAM.so' is up to date.

-----------------------------------end-----------------------------------------------

after which a chain of errors (undefines) are produced when attempting to compile the solvers and mesh utilities.

The platform is Mac OSX 10.6.2 using gcc 4.2.1.

I wonder, are these problems unique to what I have? The above warnings
suggest some option has not been set by a possible mistake though.

Regards,

Richard K.
richpaj is offline   Reply With Quote

Old   November 23, 2009, 14:55
Default
  #109
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
Quote:
Originally Posted by richpaj View Post
Latest revision (1504) yields the following when "wmake libso OpenFOAM" is issued:

-----------------------------------begin-----------------------------------------------

SOURCE=global/global.Cver ; sed s/WM_PROJECT_VERSION/\"1.5-dev\"/ $SOURCE > Make/darwinIntelGccDPOpt/global.C ; g++-4.2 -DdarwinIntel -DDP -DFOAM_DEV_REVISION_NUMBER= -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/Users/rich/OpenFOAM/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/Users/rich/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/Users/rich/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -Ddarwin -c Make/darwinIntelGccDPOpt/global.C -o Make/darwinIntelGccDPOpt/global.o
svn: '/Users/rich/OpenFOAM' is not a working copy
ld: warning: in dimensionedConstants.o, file is not of required architecture
ld: warning: in argList.o, file is not of required architecture
<snip>
ld: warning: in SutherlandHodgman.o, file is not of required architecture
ld: warning: in HormannAgathos.o, file is not of required architecture
ld: warning: in /Users/rich/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libOSspecific.o, file is not of required architecture
ld: warning: in /Users/rich/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/dummy/libPstream.so, file is not of required architecture
'/Users/rich/OpenFOAM/OpenFOAM-1.5-dev/lib/darwinIntelGccDPOpt/libOpenFOAM.so' is up to date.

-----------------------------------end-----------------------------------------------

after which a chain of errors (undefines) are produced when attempting to compile the solvers and mesh utilities.

The platform is Mac OSX 10.6.2 using gcc 4.2.1.

I wonder, are these problems unique to what I have? The above warnings
suggest some option has not been set by a possible mistake though.

Regards,

Richard K.
Is the following chain of events correct:
1. Installation/compilation of OF-15-dev
2. Upgrade to Mac OS X from 10.5.x to 10.6
3. svn update and trying to recompile -> error

The problem is that with 10.6 OS X 64-bit binaries became the default. The compiler now produces 64-bit object-files by default. When linking these objects with 32-bit objects from "before the flood" it chokes in the way you described above (to test this hypothesis use the command "file <someObjectFile>" to see whether the files he complains about are 32-bit (and some newer files are 64-bit))

I'd recommend remove ALL the object-files from your installation and recompiling. Or force the compiler to generate 32-binaries with the -m32 flag

Bernhard
gschaider is offline   Reply With Quote

Old   November 23, 2009, 21:14
Default
  #110
Member
 
Richard Kenny
Join Date: Mar 2009
Posts: 64
Rep Power: 18
richpaj is on a distinguished road
Is the following chain of events correct:
1. Installation/compilation of OF-15-dev
2. Upgrade to Mac OS X from 10.5.x to 10.6
3. svn update and trying to recompile -> error

The problem is that with 10.6 OS X 64-bit binaries became the default. The compiler now produces 64-bit object-files by default. When linking these objects with 32-bit objects from "before the flood" it chokes in the way you described above (to test this hypothesis use the command "file <someObjectFile>" to see whether the files he complains about are 32-bit (and some newer files are 64-bit))

I'd recommend remove ALL the object-files from your installation and recompiling. Or force the compiler to generate 32-binaries with the -m32 flag


-----------------------------------------------------------------------------------

Yes, well done, the events 1. -> 3. as you list them are exactly what happened.

I just confirmed that the compilation proceeds smoothly on another
pre-10.6 intel Mac (same revision number, 1504)

The post-10.6 machine is 600Km away at the moment and I won't be able to try "file <someObjectFile>" until the week-end.

Am otherwise pretty sure though you're spot on, I forgot that all apps now default to 64bit with 10.6.

Many thanks indeed,

Richard K.
richpaj is offline   Reply With Quote

Old   December 1, 2009, 14:56
Default OpenFOAM-1.4.1-dev flex++ FlexLexer.h error
  #111
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi again,

My OF-1.5-dev works nicely on my Mac, but I'd like to compile OF-1.4.1-dev on it too (I realise this thread is for OF-1.5 but this is probably the best place to put this question).

So I've been trying my best for the last few days and there is one error with flex++ that I can't fix (I have battled with flex++ in the past compiling on OpenSUSE but the same fixes don't seem to be helping).

I have flex and flex++ version 2.5.4 in '/sw/bin'.

OK, when flex++ is set to 'Ltoo = flex++ -f $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -DYY_SKIP_YYWRAP -c $*.C -o $@' in 'wmake/rules/General/flex++' and 'wmake/rules/darwin/flex++' (I change both files cause Im not sure which to change), I get this error (I couln't fit the whole compilation output in the thread but i can upload it if it might help):

Code:
dhcp-892b97dc:src philipcardiff$ wmake libso triSurface
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:10: warning: overriding commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:10: warning: ignoring old commands for target `.L.dep'
...
warnings
...

SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex++ -f $SOURCE ; mv lex.yy.cc Make/darwinDPOpt/readSTLASCII.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math  -DNoRepository -ftemplate-depth-30  -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude   -fPIC -DYY_SKIP_YYWRAP -c Make/darwinDPOpt/readSTLASCII.C -o Make/darwinDPOpt/readSTLASCII.o
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:65: error: ‘yy_create_buffer’ declared as a ‘virtual’ field
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:65: error: expected ‘;’ before ‘(’ token
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:67: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:72: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-

...
errors
...

dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: note: candidates are: yyFlexLexer::yyFlexLexer(const yyFlexLexer&)
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: note:                 yyFlexLexer::yyFlexLexer()
lex.yy.cc: In member function ‘int STLLexer::lex()’:
lex.yy.cc:5464: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5472: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5472: error: ‘yy_create_buffer’ was not declared in this scope
lex.yy.cc:5491: warning: use of old-style cast
lex.yy.cc:5491: warning: use of old-style cast
lex.yy.cc:5507: warning: use of old-style cast
lex.yy.cc:5721: warning: use of old-style cast
lex.yy.cc:5739: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5812: error: ‘yyin’ was not declared in this scope
triSurface/interfaces/STL/readSTLASCII.L:208: warning: unused variable ‘endPtr’
lex.yy.cc: At global scope:
lex.yy.cc:5847: error: prototype for ‘yyFlexLexer::yyFlexLexer(std::istream*, std::ostream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: error: candidates are: yyFlexLexer::yyFlexLexer()
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: error:                 yyFlexLexer::yyFlexLexer(const yyFlexLexer&)
lex.yy.cc: In constructor ‘yyFlexLexer::yyFlexLexer(std::istream*, std::ostream*)’:
lex.yy.cc:5849: error: ‘yyin’ was not declared in this scope
lex.yy.cc: At global scope:
lex.yy.cc:5882: error: prototype for ‘void yyFlexLexer::switch_streams(std::istream*, std::ostream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:118: error: candidate is: virtual void yyFlexLexer::switch_streams(int*, std::ostream*)
lex.yy.cc: In member function ‘void yyFlexLexer::switch_streams(std::istream*, std::ostream*)’:
lex.yy.cc:5887: error: ‘yy_create_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘virtual int yyFlexLexer::LexerInput(char*, int)’:
lex.yy.cc:5900: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5915: error: ‘yyin’ was not declared in this scope
lex.yy.cc: In member function ‘int yyFlexLexer::yy_get_next_buffer()’:
lex.yy.cc:5970: warning: use of old-style cast
lex.yy.cc:5997: warning: use of old-style cast
lex.yy.cc:6010: warning: use of old-style cast
lex.yy.cc:6011: warning: use of old-style cast
lex.yy.cc:6032: warning: use of old-style cast
lex.yy.cc:6043: error: ‘yyin’ was not declared in this scope
lex.yy.cc: In member function ‘yy_state_type yyFlexLexer::yy_get_previous_state()’:
lex.yy.cc:6080: warning: use of old-style cast
lex.yy.cc:6080: warning: use of old-style cast
lex.yy.cc: In member function ‘void yyFlexLexer::yyunput(int, char*)’:
lex.yy.cc:6141: warning: use of old-style cast
lex.yy.cc:6142: warning: use of old-style cast
lex.yy.cc:6150: warning: use of old-style cast
lex.yy.cc: In member function ‘int yyFlexLexer::yyinput()’:
lex.yy.cc:6194: error: ‘yyin’ was not declared in this scope
lex.yy.cc:6204: error: no matching function for call to ‘yyFlexLexer::yyrestart(<type error>)’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:115: note: candidates are: virtual void yyFlexLexer::yyrestart(int*)
lex.yy.cc:6219: warning: use of old-style cast
lex.yy.cc: At global scope:
lex.yy.cc:6228: error: prototype for ‘void yyFlexLexer::yyrestart(std::istream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:115: error: candidate is: virtual void yyFlexLexer::yyrestart(int*)
lex.yy.cc: In member function ‘void yyFlexLexer::yyrestart(std::istream*)’:
lex.yy.cc:6231: error: ‘yyin’ was not declared in this scope
lex.yy.cc:6231: error: ‘yy_create_buffer’ was not declared in this scope
lex.yy.cc:6233: error: no matching function for call to ‘yyFlexLexer::yy_init_buffer(yy_buffer_state*&, std::istream*&)’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:129: note: candidates are: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, int*)
lex.yy.cc: In member function ‘void yyFlexLexer::yy_load_buffer_state()’:
lex.yy.cc:6267: error: ‘yyin’ was not declared in this scope
lex.yy.cc: At global scope:
lex.yy.cc:6272: error: no ‘yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int)’ member function declared in class ‘yyFlexLexer’
lex.yy.cc: In member function ‘yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int)’:
lex.yy.cc:6276: warning: use of old-style cast
lex.yy.cc:6285: warning: use of old-style cast
lex.yy.cc:6291: error: no matching function for call to ‘yyFlexLexer::yy_init_buffer(yy_buffer_state*&, std::istream*&)’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:129: note: candidates are: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, int*)
lex.yy.cc: In member function ‘virtual void yyFlexLexer::yy_delete_buffer(yy_buffer_state*)’:
lex.yy.cc:6303: warning: use of old-style cast
lex.yy.cc:6306: warning: use of old-style cast
lex.yy.cc:6308: warning: use of old-style cast
lex.yy.cc: At global scope:
lex.yy.cc:6313: error: prototype for ‘void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:129: error: candidate is: void 
...
warnings and errors
...
lex.yy.cc:5317: warning: ‘void yy_pop_state()’ declared ‘static’ but never defined
lex.yy.cc:5320: warning: ‘int yy_top_state()’ declared ‘static’ but never defined
make: *** [Make/darwinDPOpt/readSTLASCII.o] Error 1

When flex++ is set to 'Ltoo = foamFlex++ -f $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@ ' in 'wmake/rules/General/flex++' and 'wmake/rules/darwin/flex++', I get the following error:

Code:
dhcp-892b97dc:src philipcardiff$ wmake libso triSurface
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:10: warning: overriding commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:10: warning: ignoring old commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:10: warning: overriding commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:10: warning: ignoring old commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:10: warning: overriding commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:10: warning: ignoring old commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:10: warning: overriding commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:10: warning: ignoring old commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:10: warning: overriding commands for target `.L.dep'
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:10: warning: ignoring old commands for target `.L.dep'
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/darwinDPOpt/readSTLASCII.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math  -DNoRepository -ftemplate-depth-30  -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude   -fPIC -c Make/darwinDPOpt/readSTLASCII.C -o Make/darwinDPOpt/readSTLASCII.o 
dyld: Symbol not found: __ZN4Foam8OPstream5writeEPKc
  Referenced from: /Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/openmpi-1.3.3/libPstream.dylib
  Expected in: dynamic lookup

/bin/sh: line 1: 56341 Trace/BPT trap          foamFlex++ -f $SOURCE
mv: lex.yy.cc: No such file or directory
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:65: error: ‘yy_create_buffer’ declared as a ‘virtual’ field
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:65: error: expected ‘;’ before ‘(’ token
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:67: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:72: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:80: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:108: error: expected `)' before ‘*’ token
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:113: error: expected ‘;’ before ‘(’ token
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:115: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:118: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:129: error: ‘istream’ has not been declared
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:144: error: ISO C++ forbids declaration of ‘istream’ with no type
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:144: error: expected ‘;’ before ‘*’ token
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/IOstream.H:61: error: ‘istream’ is already declared in this scope
triSurface/interfaces/STL/readSTLASCII.L: In constructor ‘STLLexer::STLLexer(std::istream*, Foam::label)’:
triSurface/interfaces/STL/readSTLASCII.L:137: error: no matching function for call to ‘yyFlexLexer::yyFlexLexer(std::istream*&)’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: note: candidates are: yyFlexLexer::yyFlexLexer(const yyFlexLexer&)
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: note:                 yyFlexLexer::yyFlexLexer()
lex.yy.cc: In member function ‘int STLLexer::lex()’:
lex.yy.cc:5464: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5472: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5472: error: ‘yy_create_buffer’ was not declared in this scope
lex.yy.cc:5491: warning: use of old-style cast
lex.yy.cc:5491: warning: use of old-style cast
lex.yy.cc:5507: warning: use of old-style cast
lex.yy.cc:5721: warning: use of old-style cast
lex.yy.cc:5739: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5812: error: ‘yyin’ was not declared in this scope
triSurface/interfaces/STL/readSTLASCII.L:208: warning: unused variable ‘endPtr’
lex.yy.cc: At global scope:
lex.yy.cc:5847: error: prototype for ‘yyFlexLexer::yyFlexLexer(std::istream*, std::ostream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: error: candidates are: yyFlexLexer::yyFlexLexer()
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:104: error:                 yyFlexLexer::yyFlexLexer(const yyFlexLexer&)
lex.yy.cc: In constructor ‘yyFlexLexer::yyFlexLexer(std::istream*, std::ostream*)’:
lex.yy.cc:5849: error: ‘yyin’ was not declared in this scope
lex.yy.cc: At global scope:
lex.yy.cc:5882: error: prototype for ‘void yyFlexLexer::switch_streams(std::istream*, std::ostream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:118: error: candidate is: virtual void yyFlexLexer::switch_streams(int*, std::ostream*)
lex.yy.cc: In member function ‘void yyFlexLexer::switch_streams(std::istream*, std::ostream*)’:
lex.yy.cc:5887: error: ‘yy_create_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘virtual int yyFlexLexer::LexerInput(char*, int)’:
lex.yy.cc:5900: error: ‘yyin’ was not declared in this scope
lex.yy.cc:5915: error: ‘yyin’ was not declared in this scope
lex.yy.cc: In member function ‘int yyFlexLexer::yy_get_next_buffer()’:
lex.yy.cc:5970: warning: use of old-style cast
lex.yy.cc:5997: warning: use of old-style cast
lex.yy.cc:6010: warning: use of old-style cast
lex.yy.cc:6011: warning: use of old-style cast
lex.yy.cc:6032: warning: use of old-style cast
lex.yy.cc:6043: error: ‘yyin’ was not declared in this scope
lex.yy.cc: In member function ‘yy_state_type yyFlexLexer::yy_get_previous_state()’:
lex.yy.cc:6080: warning: use of old-style cast
lex.yy.cc:6080: warning: use of old-style cast
lex.yy.cc: In member function ‘void yyFlexLexer::yyunput(int, char*)’:
lex.yy.cc:6141: warning: use of old-style cast
lex.yy.cc:6142: warning: use of old-style cast
lex.yy.cc:6150: warning: use of old-style cast
lex.yy.cc: In member function ‘int yyFlexLexer::yyinput()’:
lex.yy.cc:6194: error: ‘yyin’ was not declared in this scope
lex.yy.cc:6204: error: no matching function for call to ‘yyFlexLexer::yyrestart(<type error>)’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:115: note: candidates are: virtual void yyFlexLexer::yyrestart(int*)
lex.yy.cc:6219: warning: use of old-style cast
lex.yy.cc: At global scope:
lex.yy.cc:6228: error: prototype for ‘void yyFlexLexer::yyrestart(std::istream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:115: error: candidate is: virtual void yyFlexLexer::yyrestart(int*)
lex.yy.cc: In member function ‘void yyFlexLexer::yyrestart(std::istream*)’:
lex.yy.cc:6231: error: ‘yyin’ was not declared in this scope
lex.yy.cc:6231: error: ‘yy_create_buffer’ was not declared in this scope
lex.yy.cc:6233: error: no matching function for call to ‘yyFlexLexer::yy_init_buffer(yy_buffer_state*&, std::istream*&)’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:129: note: candidates are: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, int*)
lex.yy.cc: In member function ‘void yyFlexLexer::yy_load_buffer_state()’:
lex.yy.cc:6267: error: ‘yyin’ was not declared in this scope
lex.yy.cc: At global scope:
lex.yy.cc:6272: error: no ‘yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int)’ member function declared in class ‘yyFlexLexer’
lex.yy.cc: In member function ‘yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int)’:
lex.yy.cc:6276: warning: use of old-style cast
lex.yy.cc:6285: warning: use of old-style cast
lex.yy.cc:6291: error: no matching function for call to ‘yyFlexLexer::yy_init_buffer(yy_buffer_state*&, std::istream*&)’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:129: note: candidates are: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, int*)
lex.yy.cc: In member function ‘virtual void yyFlexLexer::yy_delete_buffer(yy_buffer_state*)’:
lex.yy.cc:6303: warning: use of old-style cast
lex.yy.cc:6306: warning: use of old-style cast
lex.yy.cc:6308: warning: use of old-style cast
lex.yy.cc: At global scope:
lex.yy.cc:6313: error: prototype for ‘void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)’ does not match any in class ‘yyFlexLexer’
/Volumes/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FlexLexer.h:129: error: candidate is: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, int*)
lex.yy.cc: In member function ‘void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)’:
lex.yy.cc:6318: error: cannot convert ‘std::istream*’ to ‘istream*’ in assignment
lex.yy.cc: In member function ‘void yyFlexLexer::yy_push_state(int)’:
lex.yy.cc:6372: warning: use of old-style cast
lex.yy.cc:6376: warning: use of old-style cast
lex.yy.cc:6376: warning: use of old-style cast
lex.yy.cc: In function ‘void* yy_flex_alloc(yy_size_t)’:
lex.yy.cc:6478: warning: use of old-style cast
lex.yy.cc: In function ‘void* yy_flex_realloc(void*, yy_size_t)’:
lex.yy.cc:6496: warning: use of old-style cast
lex.yy.cc:6496: warning: use of old-style cast
lex.yy.cc: In member function ‘virtual int yyFlexLexer::LexerInput(char*, int)’:
lex.yy.cc:5922: warning: control reaches end of non-void function
lex.yy.cc: At global scope:
lex.yy.cc:5310: warning: ‘yy_start_stack_ptr’ defined but not used
lex.yy.cc:5311: warning: ‘yy_start_stack_depth’ defined but not used
lex.yy.cc:5312: warning: ‘yy_start_stack’ defined but not used
lex.yy.cc:5314: warning: ‘void yy_push_state(int)’ declared ‘static’ but never defined
lex.yy.cc:5317: warning: ‘void yy_pop_state()’ declared ‘static’ but never defined
lex.yy.cc:5320: warning: ‘int yy_top_state()’ declared ‘static’ but never defined
make: *** [Make/darwinDPOpt/readSTLASCII.o] Error 1
After making the changes to the 'wmake/rules/General/flex++' and 'wmake/rules/darwin/flex++', I './Allwmake' in the OpenFOAM-1.4.1-dev directory (twice just in case).


Also as Hrv sugegsted in a previous post, I copied FlexLexer.H from the foamFlex directory to the one of the others (I cannot remember off-hand and I cannot seem to re-find the post), but this didn't seem to make a difference.

And the warnings at the start of the compilation appear for other libraries that seem to compile fine.

Hopefully someone has a few thoughts or ideas that might help,


Philip

...I think flex doesn't like me.
bigphil is offline   Reply With Quote

Old   December 1, 2009, 21:07
Default
  #112
Member
 
Richard Kenny
Join Date: Mar 2009
Posts: 64
Rep Power: 18
richpaj is on a distinguished road
I think there's some related commentary on this issue at:

http://www.cfd-online.com/Forums/ope...n-104-a-5.html

though perhaps you've already scanned that.

Richard
richpaj is offline   Reply With Quote

Old   December 2, 2009, 08:38
Default
  #113
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Richard,

Thanks somehow I missed that,

I will go through it and hopefully find a solution,

Philip
bigphil is offline   Reply With Quote

Old   December 2, 2009, 11:23
Default
  #114
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
OK great, triSurface is compiling now!

Basically, I downloaded the sources again from https://openfoam-extend.svn.sourcefo...OAM-1.4.1-dev/, which was recommended on the OF-1-4 Mac thread.

Then there were just a few fixes required to get it all working, like those mentioned previously in the OF-1.4 thread.

Thanks,
Philip
bigphil 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
New version fluent file open in Old version ? MANOJKUMAR FLUENT 2 July 10, 2013 05:43
Difference between Version 6.3 and Version 6.2 erikaj FLUENT 0 October 11, 2007 13:36
LES with version 6.3 Steve FLUENT 0 April 26, 2007 16:00
SEM in the 3.5 version Anis Phoenics 0 May 5, 2006 13:41
BUG IN VERSION 3.5!!!!!!!! AERODYNAMIFUN Phoenics 0 May 17, 2004 20:24


All times are GMT -4. The time now is 17:52.