CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

LiftDrag utility from v12 to v141

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2007, 13:25
Default Hi, I've been viewing some
  #1
New Member
 
cfdphil
Join Date: Mar 2009
Posts: 8
Rep Power: 17
cfdphil is on a distinguished road
Hi,

I've been viewing some of the previous threads about using the liftDrag utility from v1.2 and porting it to a newer version. I've been following the instructions kindly supplied by users and when I try and run 'ALLwmake' in the src/postProcessing directory I get the following error and messages:

/home/phil/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to /home/phil/OpenFOAM/OpenFOAM-1.4.1/src/postProcessing/incompressible/lnInclude

Making dependency list for source file liftDrag/liftDrag.C
SOURCE=liftDrag/liftDrag.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/phil/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/phil/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -I/home/phil/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/home/phil/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels -I/home/phil/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/phil/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/liftDrag.o
/tmp/ccVZCGcj.s: Assembler messages:
/tmp/ccVZCGcj.s:5: Warning: setting incorrect section attributes for .text._ZN4Foam4endlERNS_7OstreamE
/tmp/ccVZCGcj.s:33: Warning: setting incorrect section attributes for .text._ZN4Foam4ListINS_10SymmTensorIdEEEaSERKNS_5U ListIS2_EE
/tmp/ccVZCGcj.s:174: Warning: setting incorrect section attributes for .text._ZN4Foam5FieldINS_10SymmTensorIdEEEaSERKS3_
/tmp/ccVZCGcj.s:273: Warning: setting incorrect section attributes for .text._ZN4Foam16DimensionedFieldINS_10SymmTensorId EENS_7volMeshEEaSERKS4_
/tmp/ccVZCGcj.s:372: Warning: setting incorrect section attributes for .text._ZN4Foam4ListINS_6VectorIdEEEC2Ei
/tmp/ccVZCGcj.s:451: Warning: setting incorrect section attributes for .text._ZN4Foam14GeometricFieldINS_10SymmTensorIdEE NS_12fvPatchFieldENS_7volMeshE E22GeometricBoundaryFieldeqERKS6_
/tmp/ccVZCGcj.s:581: Warning: setting incorrect section attributes for .text._ZN4Foam14GeometricFieldINS_10SymmTensorIdEE NS_12fvPatchFieldENS_7volMeshE EeqERKNS_3tmpIS5_EE
/tmp/ccVZCGcj.s:714: Warning: setting incorrect section attributes for .text._ZNK4Foam14GeometricFieldINS_10SymmTensorIdE ENS_12fvPatchFieldENS_7volMesh EE12storeOldTimeEv
/tmp/ccVZCGcj.s:836: Warning: ignoring changed section attributes for .text._ZNK4Foam14GeometricFieldINS_10SymmTensorIdE ENS_12fvPatchFieldENS_7volMesh EE12storeOldTimeEv
/tmp/ccVZCGcj.s:842: Warning: setting incorrect section attributes for .text._ZNK4Foam14GeometricFieldINS_10SymmTensorIdE ENS_12fvPatchFieldENS_7volMesh EE13storeOldTimesEv
/tmp/ccVZCGcj.s:1071: Warning: ignoring changed section attributes for .text._ZNK4Foam14GeometricFieldINS_10SymmTensorIdE ENS_12fvPatchFieldENS_7volMesh EE13storeOldTimesEv
/tmp/ccVZCGcj.s:1072: Warning: setting incorrect section attributes for .text._ZN4Foam3sumINS_6VectorIdEEEET_RKNS_3tmpINS_ 5FieldIS3_EEEE
/tmp/ccVZCGcj.s:1193: Warning: setting incorrect section attributes for .text._ZN4FoameoINS_6VectorIdEES2_EENS_3tmpINS_5Fi eldINS_12crossProductIT_T0_E4t ypeEEEEERKNS_5UListIS6_EERKNS3_INS4_IS7_EEEE
/tmp/ccVZCGcj.s:1464: Warning: ignoring changed section attributes for .text._ZN4FoameoINS_6VectorIdEES2_EENS_3tmpINS_5Fi eldINS_12crossProductIT_T0_E4t ypeEEEEERKNS_5UListIS6_EERKNS3_INS4_IS7_EEEE
/tmp/ccVZCGcj.s:1465: Warning: setting incorrect section attributes for .text._ZN4FoamanINS_6VectorIdEENS_10SymmTensorIdEE EENS_3tmpINS_5FieldINS_12inner ProductIT_T0_E4typeEEEEERKNS5_INS6_IS8_EEEERKNS_5U ListIS9_EE
/tmp/ccVZCGcj.s:1745: Warning: ignoring changed section attributes for .text._ZN4FoamanINS_6VectorIdEENS_10SymmTensorIdEE EENS_3tmpINS_5FieldINS_12inner ProductIT_T0_E4typeEEEEERKNS5_INS6_IS8_EEEERKNS_5U ListIS9_EE
/tmp/ccVZCGcj.s:1746: Warning: setting incorrect section attributes for .text._ZN4FoamngINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKNS_5UListIS5_EE
/tmp/ccVZCGcj.s:1902: Warning: ignoring changed section attributes for .text._ZN4FoamngINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKNS_5UListIS5_EE
/tmp/ccVZCGcj.s:1903: Warning: setting incorrect section attributes for .text._ZN4FoammlINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKS7_RKNS_5UListIdEE
/tmp/ccVZCGcj.s:2164: Warning: ignoring changed section attributes for .text._ZN4FoammlINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKS7_RKNS_5UListIdEE
/tmp/ccVZCGcj.s:2165: Warning: setting incorrect section attributes for .text._ZN4FoammlINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKdRKS7_
/tmp/ccVZCGcj.s:2424: Warning: ignoring changed section attributes for .text._ZN4FoammlINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKdRKS7_
/tmp/ccVZCGcj.s:2425: Warning: setting incorrect section attributes for .text._ZN4FoammlINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKNS_5UListIdEERKNS8_IS 5_EE
/tmp/ccVZCGcj.s:2583: Warning: ignoring changed section attributes for .text._ZN4FoammlINS_6VectorIdEEEENS_3tmpINS_5Field IT_EEEERKNS_5UListIdEERKNS8_IS 5_EE
/tmp/ccVZCGcj.s:9642: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9643: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9644: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9645: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9646: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9647: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9648: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9649: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9650: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9651: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9652: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9653: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9654: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:9655: Error: unknown pseudo-op: `.weakref'
/tmp/ccVZCGcj.s:10582: Warning: setting incorrect section attributes for .data.DW.ref.__gxx_personality_v0
make: *** [Make/linux64GccDPOpt/liftDrag.o] Error 1



Can anyone suggest what may be wrong? I've checked some of the other threads and I can confirm that I am using the OpenFOAM version of GCC.

Thanks,

Phil
cfdphil is offline   Reply With Quote

Old   December 4, 2007, 13:43
Default Hi Phil, I had the same pro
  #2
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
Hi Phil,

I had the same problems with the "official" gcc-4.2.1 from OpenCFD so I changed back to my old gcc-4.1.2 self compiled version, which worked. So I stick with this version.

You may try to compile gcc yourself again. But the error may be somewhere else?

Jens
jens_klostermann is offline   Reply With Quote

Old   December 5, 2007, 06:49
Default Yes - this is a mis-match betw
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Yes - this is a mis-match between your version of the linker and the one used to compile the compiler. I recommend you re-build the compiler locally and all will be well. Instructions:

(download gcc sources from the web)


tar xzf gcc-4.2.2.tgz
mkdir gcc-4.2.2-obj
cd gcc-4.2.2-obj

../gcc-4.2.2/configure --prefix=/usr/tmp/gcc-4.2.2 --exec-prefix=/usr/tmp/gcc-4.2.2 --enable-languages=c,c++ --enable-shared

gmake bootstrap
gmake
gmake install

cd /usr/tmp/
tar cvzf ~/OpenFOAM/linux/gcc-4.2.2.bin.tgz gcc-4.2.2
cd ~/OpenFOAM/linux
tar xzf gcc-4.2.2.bin.tgz

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

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
TurbForce term in liftDrag utility kumar2 OpenFOAM Post-Processing 11 August 11, 2010 04:52
LiftDrag for 141 ryan_m OpenFOAM Running, Solving & CFD 2 August 24, 2009 22:26
LiftDrag Utility for Compressible Flow Fields shaun OpenFOAM Running, Solving & CFD 9 September 16, 2008 06:36
LiftDrag utility question msrinath80 OpenFOAM Running, Solving & CFD 8 March 28, 2008 11:55
LiftDrag utility not available guggi OpenFOAM Running, Solving & CFD 1 August 2, 2006 13:36


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