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

Ld problems with openfoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 1, 2008, 12:23
Default Hello I am trying to compil
  #1
Member
 
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 7
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, 07:49
Default Hi Srinath, A short questio
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 525
Rep Power: 15
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

Thread Tools
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 On
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 03:45
OpenFoam - problems MateuszZb ParaView 8 July 21, 2008 16:16
Confused by Problems when reinstalling OPenFoam 13 jin_xu OpenFOAM Installation 2 June 2, 2008 20:53
OpenFOAM 141 gccicoFoamnsd problems sippycup OpenFOAM Installation 1 August 29, 2007 08:59
Problems in Compiling OpenFOAM in IRIX lakeat OpenFOAM Installation 0 June 7, 2007 21:44


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