LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1019 - ParallelJIT requires pthread library, makefiles don't handle it right.
Summary: ParallelJIT requires pthread library, makefiles don't handle it right.
Status: RESOLVED FIXED
Alias: None
Product: Build scripts
Classification: Unclassified
Component: Makefiles (show other bugs)
Version: 1.6
Hardware: All All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: build-problem
Depends on:
Blocks:
 
Reported: 2006-11-28 13:57 PST by Reid Spencer
Modified: 2010-03-06 14:00 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Fix (1.35 KB, patch)
2006-11-30 18:01 PST, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reid Spencer 2006-11-28 13:57:02 PST
On windows, without a pthread.h or libpthread.so we get:

make[2]: Entering directory `/d/Apps/llvm/examples/ParallelJIT'
> llvm[2]: Compiling ParallelJIT.cpp for Release build 
> ParallelJIT.cpp:20:21: pthread.h: No such file or directory
> ParallelJIT.cpp:212: error: `pthread_cond_t' does not name a type
> ParallelJIT.cpp:212: error: extra semicolon
> ParallelJIT.cpp:213: error: `pthread_mutex_t' does not name a type
> ParallelJIT.cpp:213: error: extra semicolon
> .... lots more errors

The configuration checks are there, but they are not exposed to the Makefiles
and consequently not being used by the ParallelJIT Makefile.
Comment 1 Anton Korobeynikov 2006-11-30 18:01:13 PST
Created attachment 489 [details]
Fix

This patch should fix the problem. Unfortunately, I cannot update configure's
by myself, because my system auto* machinery is too modern :)
Comment 2 Reid Spencer 2006-11-30 18:38:11 PST
Patches committed. Thanks, Anton.