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

OF library installation : undefined reference to `pthread_create'

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   July 1, 2013, 11:18
Default OF library installation : undefined reference to `pthread_create'
  #1
New Member
 
Luca Franceschini
Join Date: Aug 2012
Posts: 24
Rep Power: 4
Luchini is on a distinguished road
Hello EveryBody,

Its me again ...

So i am trying to install a OF new solver that requires BLAS. I have not noticed anything wrong in the BLAS installation. ( i have installed putting CC=mpicc and FC=mpif77 and forcing multithreat USE_THREAD = 1 )

but when i compile the OF application i have this error?

blas_server.c.text+0x50a): undefined reference to `pthread_create'

Note that OF is already installed.
Where do you think is the mistake in the BLAS installation or in the OF options?

Thank you a lot

P.S. installation is on a normal desktop running Ubuntu 12.04
Luchini is offline   Reply With Quote

Old   July 1, 2013, 17:47
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Luca,

The error message is indicating that the file "blas_server.c" that is already compiled, needs a function named "pthread_create", for the application to be fully linked to all of the libraries it needs.

In other words, it's telling you that you need to indicate in which library is the function "pthread_create". Something like:
Code:
-lpthread
Best regards,
Bruno
Luchini likes this.
wyldckat is offline   Reply With Quote

Old   July 2, 2013, 07:21
Default
  #3
New Member
 
Luca Franceschini
Join Date: Aug 2012
Posts: 24
Rep Power: 4
Luchini is on a distinguished road
Hi Bruno,

it is you again ?
problem solved.

Thank you as always.
Luchini 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
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 10 May 1, 2014 16:26
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 01:06.