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

code compilation problem with wmake

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 15, 2012, 10:54
Question code compilation problem with wmake
  #1
New Member
 
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 27
Rep Power: 5
bmikuz is on a distinguished road
Hello everyone,

I tried to compile a "test" program with wmake in OpenFoam1.7.1 which is installed on SUSE LINUX enterprise server 11 SP1 operating system. When I applied the wmake command, the error was found:

Quote:
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status
make: *** [/home/r4/mikuz/OpenFOAM/mikuz-1.7.1/applications/bin/linux64GccDPOpt/pisoFoamBlaz] Error 1
Then gdb and binutils utilities were added to the system and the error was avoided but another problem arised. Using wmake again, I get the error:

Quote:
/opt/openfoam171/lib/linux64GccDPOpt/libincompressibleTurbulenceModel.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
collect2: ld returned 1 exit status
Does anybody know how to solve the problem? Thanks a lot for your help!
Blaz
bmikuz is offline   Reply With Quote

Old   October 16, 2012, 11:13
Default
  #2
New Member
 
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 27
Rep Power: 5
bmikuz is on a distinguished road
To be more specific: the system has installed gcc version 4.3.4 and it seems that it uses GLIBCXX_3.4.10, which is too old. So we installed gcc version 4.5.0, which uses GLIBCXX_3.4.14, but I don't know how to switch openfoam from using the older to newer gcc and GLIBCXX?
Can anybody explain how switching the gcc (and GLIBCXX) is properly done?
bmikuz is offline   Reply With Quote

Old   October 17, 2012, 09:30
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
marupio is on a distinguished road
This sounds like that linking issue, but it started with GCC4.6. It has been fixed in 2.x.x and in 1.6-ext. Here's a 1.6-ext patch I threw into the repo a while back that addressed it. Maybe it will help...?

http://openfoam-extend.git.sourcefor...ed079f96c1c0b7

-Dave
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Reply

Tags
wmake error

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
Problem in k-eps turbulence code in complex geometry sontukaku Main CFD Forum 2 December 28, 2010 01:44
wmake compiling Problem with OF1.5 openTom OpenFOAM Installation 4 May 3, 2009 14:44
Wmake problem thumthae OpenFOAM Installation 12 December 3, 2008 10:30
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10


All times are GMT -4. The time now is 05:49.