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

OF library installation : undefined reference to `pthread_create'

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

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2013, 12:18
Default OF library installation : undefined reference to `pthread_create'
  #1
New Member
 
Luca Franceschini
Join Date: Aug 2012
Posts: 29
Rep Power: 13
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, 18:47
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 and SHUBHAM9595 like this.
__________________
wyldckat is offline   Reply With Quote

Old   July 2, 2013, 08:21
Default
  #3
New Member
 
Luca Franceschini
Join Date: Aug 2012
Posts: 29
Rep Power: 13
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 05:28
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34


All times are GMT -4. The time now is 14:10.