CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   LiftDrag utility from v12 to v141 (http://www.cfd-online.com/Forums/openfoam-solving/59301-liftdrag-utility-v12-v141.html)

cfdphil December 4, 2007 13:25

Hi, I've been viewing some
 
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

jens_klostermann December 4, 2007 13:43

Hi Phil, I had the same pro
 
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

hjasak December 5, 2007 06:49

Yes - this is a mis-match betw
 
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



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