Re: How to produce a statically linked binary with GHC?

2008-08-15 Thread Agent Zhang
On Fri, Aug 15, 2008 at 4:20 PM, Peter Gammie <[EMAIL PROTECTED]> wrote: > Nicola: I had the same problem using the GHC 6.8.2 Debian package. > Igloo promises me that GHC 6.8.3 fixes this problem, but I haven't > seen that in the Debian repository yet. > GHC 6.8.3 does not have this problem at lea

Re: How to produce a statically linked binary with GHC?

2008-08-15 Thread Peter Gammie
Nicola: I had the same problem using the GHC 6.8.2 Debian package. Igloo promises me that GHC 6.8.3 fixes this problem, but I haven't seen that in the Debian repository yet. cheers peter 2008/8/15 Nicola Squartini <[EMAIL PROTECTED]>: > It works! This is much easier, thank you > > Nicola

Re: How to produce a statically linked binary with GHC?

2008-08-14 Thread Nicola Squartini
It works! This is much easier, thank you Nicola On Thu, Aug 14, 2008 at 11:30 PM, Agent Zhang <[EMAIL PROTECTED]> wrote: > 2008/8/15 Nicola Squartini <[EMAIL PROTECTED]> > > > > So I run that gcc command manually adding -lpthread at the end of it end > it works, > > I get the static binary. Isn

Re: How to produce a statically linked binary with GHC?

2008-08-14 Thread Agent Zhang
2008/8/15 Nicola Squartini <[EMAIL PROTECTED]> > > So I run that gcc command manually adding -lpthread at the end of it end it > works, > I get the static binary. Isn't it strange? It could be a gcc problem. Well, it needn't be that hacky ;) The following command works for me and it does essenti

Re: How to produce a statically linked binary with GHC?

2008-08-14 Thread Nicola Squartini
Same result. When I type $> runhaskell Setup build --verbose=3 I see this ... gcc -v -o dist/build/lambdaInit/lambdaInit dist/build/lambdaInit/lambdaInit-tmp/Main.o -static -L/usr/lib/ghc-6.8.2/lib/hinotify-0.2 -L/usr/lib/ghc-6.8.2/lib/containers-0.1.0.1 -L/home/nicola/ghc//lib/VolumeID-0.1/ghc-

Re: How to produce a statically linked binary with GHC?

2008-08-14 Thread Brandon S. Allbery KF8NH
On 2008 Aug 15, at 1:02, Nicola Squartini wrote: I did the following in my project and this is what I get: $> runhaskell Setup configure --user --ghc-option="-optl -static" No space between "-optl" and "-static". The "-pthread" is probably being misrecognized as a result of the generated

Re: How to produce a statically linked binary with GHC?

2008-08-14 Thread Nicola Squartini
I did the following in my project and this is what I get: $> runhaskell Setup configure --user --ghc-option="-optl -static" $> runhaskell Setup build ... ... /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.1/../../../../lib/librt.a(timer_create.o): In function `timer_create': (.text+0x124): undefined refere

Re: How to produce a statically linked binary with GHC?

2008-08-12 Thread Don Stewart
tensor5: >It seems that the -static flag serves a different purpose: according to >the GHC manual it forces the compiler use the static Haskell libraries, >but the resulting binary is still dynamically linked to the C libraries. >What is the correct flag to create a static binary? T

How to produce a statically linked binary with GHC?

2008-08-12 Thread Nicola Squartini
It seems that the -static flag serves a different purpose: according to the GHC manual it forces the compiler use the static Haskell libraries, but the resulting binary is still dynamically linked to the C libraries. What is the correct flag to create a static binary? Thanks Best Regards Nicola __

Re: Statically linked binary?

2004-05-21 Thread Glynn Clements
Jochen L. Leidner wrote: > sorry for an urgent newbie question: how can I create a statically > compiled version of a Haskell program on Linux with GHC that does not rely > on external shared libs (also for any of its libraries it uses)? Possibly with a great deal of difficulty, depending upon

RE: Statically linked binary?

2004-05-21 Thread Simon Marlow
On 21 May 2004 14:17, Jochen L. Leidner wrote: > sorry for an urgent newbie question: how can I create a statically > compiled version of a Haskell program on Linux with GHC that does not > rely on external shared libs (also for any of its libraries it uses)? > > I would like to build a binary th

Statically linked binary?

2004-05-21 Thread Jochen L. Leidner
Hi, sorry for an urgent newbie question: how can I create a statically compiled version of a Haskell program on Linux with GHC that does not rely on external shared libs (also for any of its libraries it uses)? I would like to build a binary that works on a 3-processor machine with an older Li