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

Ld problems with openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2008, 13:23
Default Hello I am trying to compil
  #1
Member
 
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 91
Rep Power: 17
srinath is on a distinguished road
Hello

I am trying to compile openfoam on ubuntu-fiesty fawn.
I am using gcc-4.1, and have followed the instructions on the openfam website and README exactly. But i get these strange ld errors.
I would appreciate it if someone could help me with this.

Regards
Srinath
Errors are below
`.L1705' referenced in section `.rodata' of globalMeshData.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of globalMeshData.o
collect2: ld returned 1 exit status
make: *** [/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so] Error 1
.L945' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o
`.L954' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o
`.L955' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o
`.L956' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o
collect2: ld returned 1 exit status
make: *** [/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libmeshTools.so] Error 1
+ wmake libso finiteVolume
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make: *** [/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libfiniteVolume.so] Error 1
+ cd MGridGenGamgAgglomeration
+ ./Allwmake
`/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libIMlib.so' is up to date.
`/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libMGridGen.so' is up to date.
`/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libMGridGenGAMGAgglomer ation.so' is up to date.
+ wmake libso sampling
/usr/bin/ld: cannot find -lfiniteVolume
srinath is offline   Reply With Quote

Old   May 2, 2008, 08:49
Default Hi Srinath, A short questio
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi Srinath,

A short question.... which version of GNU GCC are you using for compiling OpenFOAM?

If you are using GCC-4.2.2 as asked for in the OpenFOAM "buildinstructions.txt", are you sure you sourced the .bashrc file after you made the required changes to it ?

Personally, thats one of the most common things that hit me.... forgetting to source the latest .bashrc.

I have resorted to always closing the console and opening a new one (so that the .bashrc gets sourced, and all the changes are activated), before finally starting the actual OpenFOAM compilation with the "./Allwmake" script.

Probably you could check with a "gcc --version" on the console to make sure you are actually using the version of gcc you think you are using.

Have a nice day!

Philippose
philippose 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
Problems with installation of OpenFoam sheyer OpenFOAM Installation 8 July 28, 2008 04:45
[General] OpenFoam - problems MateuszZb ParaView 8 July 21, 2008 17:16
Confused by Problems when reinstalling OPenFoam 13 jin_xu OpenFOAM Installation 2 June 2, 2008 21:53
OpenFOAM 141 gccicoFoamnsd problems sippycup OpenFOAM Installation 1 August 29, 2007 09:59
Problems in Compiling OpenFOAM in IRIX lakeat OpenFOAM Installation 0 June 7, 2007 22:44


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