semaphore functions in the wrong place during cross-build

Hi, I'm not sure where the right place is to configure this. While linking hsunix + some others, the compiler assumes that -lrt is the appropriate library to find semaphore-related functions, but for the particular toolchain i'm building against, those functions are actually in -lpthread. Is there an easy way i can configure this? Thanks.

hsunix? What version of GHC are you building? teeler:
Hi,
I'm not sure where the right place is to configure this. While linking hsunix + some others, the compiler assumes that -lrt is the appropriate library to find semaphore-related functions, but for the particular toolchain i'm building against, those functions are actually in -lpthread.
Is there an easy way i can configure this?
Thanks.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Fri, Mar 4, 2011 at 10:49 AM, Don Stewart
hsunix? What version of GHC are you building?
7.0.1? ;) I'm talking about one specific target: ./dist-install/build/HSunix-2.4.1.0.o in libraries/unix.
teeler:
Hi,
I'm not sure where the right place is to configure this. While linking hsunix + some others, the compiler assumes that -lrt is the appropriate library to find semaphore-related functions, but for the particular toolchain i'm building against, those functions are actually in -lpthread.
Is there an easy way i can configure this?
Thanks.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Fri, Mar 04, 2011 at 10:46:13AM -0800, Tyler Pirtle wrote:
I'm not sure where the right place is to configure this. While linking hsunix + some others, the compiler assumes that -lrt is the appropriate library to find semaphore-related functions, but for the particular toolchain i'm building against, those functions are actually in -lpthread.
Is there an easy way i can configure this?
What version are you using? This sounds like it might be: http://hackage.haskell.org/trac/ghc/ticket/4523 Fixed in 7.0.2 and HEAD. Thanks Ian

On Sat, Mar 5, 2011 at 4:39 PM, Ian Lynagh
On Fri, Mar 04, 2011 at 10:46:13AM -0800, Tyler Pirtle wrote:
I'm not sure where the right place is to configure this. While linking hsunix + some others, the compiler assumes that -lrt is the appropriate library to find semaphore-related functions, but for the particular toolchain i'm building against, those functions are actually in -lpthread.
Is there an easy way i can configure this?
What version are you using? This sounds like it might be: http://hackage.haskell.org/trac/ghc/ticket/4523
Ah! It was a bug in 7.0.1 indeed. 7.0.2 fixed it. Thanks, Ian!
Fixed in 7.0.2 and HEAD.
Thanks Ian
participants (3)
-
Don Stewart
-
Ian Lynagh
-
Tyler Pirtle