#4989: build error on mingw if pthreads is installed
---------------------------------+------------------------------------------
    Reporter:  int-e             |       Owner:                     
        Type:  bug               |      Status:  new                
    Priority:  normal            |   Component:  Build System       
     Version:  7.1               |    Keywords:                     
    Testcase:                    |   Blockedby:                     
          Os:  Windows           |    Blocking:                     
Architecture:  Unknown/Multiple  |     Failure:  Building GHC failed
---------------------------------+------------------------------------------
 (error from #ghc, by McManiaC)

 The build error is this,

 {{{
 In file included from
 \mingw\lib\gcc\mingw32\..\..\..\include\pthread.h:288:0:
     0,
                      from includes/rts/OSThreads.h:30,
                      from includes/Rts.h:178,
                      from rts\Adjustor.c:40:

 \mingw\lib\gcc\mingw32\..\..\..\include\sched.h:152:53:
      error: expected ')' before 'pid'

 \mingw\lib\gcc\mingw32\..\..\..\include\sched.h:154:53:
      error: expected ')' before 'pid'
 make[1]: *** [rts/dist/build/Adjustor.thr_o] Error 1
 make: *** [all] Error 2
 }}}

 From the error location in OSThreads.h we can conclude that HAVE_PTHREAD_H
 is set but WANT_NATIVE_WIN32_THREADS isn't.

 So this happens if configure finds pthreads (compare
 ftp://sourceware.org/pub/pthreads-
 win32/sources/pthreads-w32-2-8-0-release/sched.h).

 Perhaps the old build system used to set WANT_NATIVE_WIN32_THREADS when it
 detected mingw?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4989>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to