Re: Running GHC 6.10.* on OpenBSD

2009-12-12 Thread Matthias Kilian
On Sat, Dec 12, 2009 at 05:30:44AM +0200, Thanos Tsouanas wrote:
 Up to now I've only used binary versions of GHC, but since
 my operating system's (OpenBSD) version of GHC is
 lagging behind (currently at 6.6.1), I need to update it.
 I tried using my system's ghc-6.6.1 to compile ghc-6.10.4
 but it failed due to haskeline not being installed (and trying
 to install it also failed).

I don't know wether the release tarball contains haskeline, but you
could always download the sources via darcs and use the darcs-all
script from the ghc tree to fetch all necessary libraries.

Here are some scripts I'm using to build all kinds of ghc versions
(6.10, 6.12, head, bootstrapping stuff etc.):

http://darcs.volkswurst.de/build/

You may have to edit the scripts for your purposes.

Or just wait for an update of the port ;-)

Ciao,
Kili
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Running GHC 6.10.* on OpenBSD

2009-12-12 Thread Matthias Kilian
On Sat, Dec 12, 2009 at 09:22:56AM +0100, Karel Gardas wrote:
 I somehow managed to first install everything what's required on system
 provided 6.6.1 to compile 6.10. I'm not sure if I went step by step
 6.6.1-6.8.3-6.10.3 as you try.

No need for 6.8, you can build 6.10 straight with 6.6.

 IMHO cross-compilation is no go
 in this case since I hope I'm right assuming this is not supported in
 6.10, but was fixed in 6.12 again.

Kind of. There are still issues with *real* porting to other platforms
(#3472, probably more), but it's possible to create hc bootstrapping
filesets and use them to bootstrap on the same platform. Even if
this sounds kind of useless, it'll help a lot updating the OpenBSD
port.

Ciao,
Kili
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Running GHC 6.10.* on OpenBSD

2009-12-12 Thread Thanos Tsouanas
On Sat, Dec 12, 2009 at 10:22 AM, Karel Gardas karel.gar...@centrum.cz wrote:
 Thanos Tsouanas wrote:
 Hello list.

 Up to now I've only used binary versions of GHC, but since
 my operating system's (OpenBSD) version of GHC is
 lagging behind (currently at 6.6.1), I need to update it.
 I tried using my system's ghc-6.6.1 to compile ghc-6.10.4
 but it failed due to haskeline not being installed (and trying
 to install it also failed).

 Hello,

 it's already a long time since I installed ghc-6.10.3.20090530 on my
 OpenBSD/amd64, but IIRC I really used system provided compiler and IIRC
 I somehow managed to first install everything what's required on system
 provided 6.6.1 to compile 6.10. I'm not sure if I went step by step
 6.6.1-6.8.3-6.10.3 as you try. Anyway I'm writing just to let you know
 that it was somehow possible in the past and that you shall perhaps
 concentrate on why it fails on your box. IMHO cross-compilation is no go
 in this case since I hope I'm right assuming this is not supported in
 6.10, but was fixed in 6.12 again.

Perhaps you are right, I should stay on my system instead of cross
compiling.  In any case, I could wait to crosscompile 6.12 once it's
officially out.

 In the worst case I can provide you my binary if your platform is the
 same, but it's 300MB unpacked tree so it'll take some time to pack and
 upload somewhere for you.

Thanks a lot, but unfortunately I'm on OpenBSD/i386.

Cheers.

-- 
Thanos Tsouanas
http://mpla.math.uoa.gr/~thanos/
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Running GHC 6.10.* on OpenBSD

2009-12-12 Thread Thanos Tsouanas
On Sat, Dec 12, 2009 at 11:23 AM, Matthias Kilian
k...@outback.escape.de wrote:
 On Sat, Dec 12, 2009 at 09:22:56AM +0100, Karel Gardas wrote:
 I somehow managed to first install everything what's required on system
 provided 6.6.1 to compile 6.10. I'm not sure if I went step by step
 6.6.1-6.8.3-6.10.3 as you try.

 No need for 6.8, you can build 6.10 straight with 6.6.

Ok, I guess I didn't try hard enough..

 IMHO cross-compilation is no go
 in this case since I hope I'm right assuming this is not supported in
 6.10, but was fixed in 6.12 again.

 Kind of. There are still issues with *real* porting to other platforms
 (#3472, probably more), but it's possible to create hc bootstrapping
 filesets and use them to bootstrap on the same platform. Even if
 this sounds kind of useless, it'll help a lot updating the OpenBSD
 port.

Then it's worth a shot.  How would I create those hc bootstrapping
filesets?  Using the system's ghc-6.6.1?

P.S.  Thanks for the scripts and for mentioning darcs-all in your other
mail.  They sure are helpful :)

-- 
Thanos Tsouanas
http://mpla.math.uoa.gr/~thanos/
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Running GHC 6.10.* on OpenBSD

2009-12-12 Thread Matthias Kilian
On Sat, Dec 12, 2009 at 03:29:09PM +0200, Thanos Tsouanas wrote:
  No need for 6.8, you can build 6.10 straight with 6.6.
 
 Ok, I guess I didn't try hard enough..

Probably just

--with-iconv-includes=/usr/local/include \
--with-iconv-libraries=/usr/local/lib

missing to ./configure. Everything else should work fine nowadays.

  IMHO cross-compilation is no go
  in this case since I hope I'm right assuming this is not supported in
  6.10, but was fixed in 6.12 again.
 
  Kind of. There are still issues with *real* porting to other platforms
  (#3472, probably more), but it's possible to create hc bootstrapping
  filesets and use them to bootstrap on the same platform. Even if
  this sounds kind of useless, it'll help a lot updating the OpenBSD
  port.
 
 Then it's worth a shot.  How would I create those hc bootstrapping
 filesets?  Using the system's ghc-6.6.1?

If all you want is a working ghc-6.10, please don't waste your time
with bootstrapping filesets. Just use ghc-6.6.1 and build ghc-6.10
from it (and, if you want to, build ghc-6.12 from ghc-6.10).


BTW: if you're using my scripts, you'll probably also have to install
(apart from ghc-6.6.1) alex, darcs, gmake, haddock, happy, hscolour
and python (version  2.5). All available as precompiled packages
for OpenBSD (amd64 and i386).

Ciao,
Kili
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Running GHC 6.10.* on OpenBSD

2009-12-12 Thread Thanos Tsouanas
On Sat, Dec 12, 2009 at 4:03 PM, Matthias Kilian k...@outback.escape.de wrote:
 On Sat, Dec 12, 2009 at 03:29:09PM +0200, Thanos Tsouanas wrote:
  No need for 6.8, you can build 6.10 straight with 6.6.

 Ok, I guess I didn't try hard enough..

 Probably just
        --with-iconv-includes=/usr/local/include \
        --with-iconv-libraries=/usr/local/lib
 missing to ./configure. Everything else should work fine nowadays.

[..snip..]

 If all you want is a working ghc-6.10, please don't waste your time
 with bootstrapping filesets. Just use ghc-6.6.1 and build ghc-6.10
 from it (and, if you want to, build ghc-6.12 from ghc-6.10).

I had added these options to ./configure indeed, but still had
problems.  I think the problem was haskeline.  Anyway, I'll try
again, and post more details.

 BTW: if you're using my scripts, you'll probably also have to install
 (apart from ghc-6.6.1) alex, darcs, gmake, haddock, happy, hscolour
 and python (version  2.5). All available as precompiled packages
 for OpenBSD (amd64 and i386).

Yeap, have them all installed already :)

-- 
Thanos Tsouanas
http://mpla.math.uoa.gr/~thanos/
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Running GHC 6.10.* on OpenBSD

2009-12-12 Thread kahl

On Sat, Dec 12, 2009 at 05:30:44AM +0200, Thanos Tsouanas wrote:
 Up to now I've only used binary versions of GHC, but since
 my operating system's (OpenBSD) version of GHC is
 lagging behind (currently at 6.6.1), I need to update it.
 I tried using my system's ghc-6.6.1 to compile ghc-6.10.4
 but it failed due to haskeline not being installed (and trying
 to install it also failed).

If Haskeline continues to make trouble
(it seems to at least contribute to the crashing of GHCi on PowerPC),
you could try to do a build without GHCi first ---
Haskeline is not needed for the compiler.

(I haven't tried that yet myself, since it only crashes at runtime.)


Wolfram

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: [Haskell-cafe] Hint causes GHCi linker error under Windows

2009-12-12 Thread Daniel Gorín

Hi, Martin

Do you have a complete example one can use to reproduce this behavior?  
(preferably a short one! :P)


In any case, I'm resending your message to the glasgow-haskell-users  
list to see if a ghc guru recognize the error message. It is strange  
that the problem only manifests on Windows


Daniel


On Dec 11, 2009, at 7:04 AM, Martin Hofmann wrote:


The following hint code causes GHCi to crash under Windows:


runInterpreter $ loadModules [SomeModule.hs]


The error message is:

GHCi runtime linker: fatal error: I found a duplicate definition for
symbol _hs_gtWord64 whilst processing object file
  C:\Programme\Haskell Platform\2009.2.0.2\ghc-prim-0.1.0.0
HSghc-prim-0.1.0.o
This could be caused by:
  * Loading two different object files which export the same symbol
  * Specifying the same object file twice on the GHCi command line
  * An incorrect `package.conf' entry, causing some object to be
loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.

The problem does not occur under Unix or with a compiled program. IMHO
hint tries to start a second instance of GHCi which is not
allowed/possible under Windows. If this is the case a more telling  
error

message would be helpful.

I used the Haskell Platform, version 2009.2.0.2 under Windows XP. My
package.conf is:

C:/Programme/Haskell Platform/2009.2.0.2\package.conf:
   Cabal-1.6.0.3, GHood-0.0.3, GLUT-2.1.1.2, HTTP-4000.0.6,
   HUnit-1.2.0.3, MonadCatchIO-mtl-0.2.0.0, OpenGL-2.2.1.1,
   QuickCheck-1.2.0.0, Win32-2.2.0.0, ansi-terminal-0.5.0,
   ansi-wl-pprint-0.5.1, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0,
   bimap-0.2.4, bytestring-0.9.1.4, cgi-3001.1.7.1,
   containers-0.2.0.1, cpphs-1.9, directory-1.0.0.3, (dph-base-0.3),
   (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3),
   (dph-prim-seq-0.3), (dph-seq-0.3), extensible-exceptions-0.1.1.0,
   fgl-5.4.2.2, filepath-1.1.0.2, (ghc-6.10.4), ghc-mtl-1.0.1.0,
   ghc-paths-0.1.0.6, ghc-prim-0.1.0.0, haddock-2.4.2,
   haskeline-0.6.2.2, haskell-src-1.0.1.3, haskell-src-exts-1.3.4,
   haskell98-1.0.1.0, hint-0.3.2.1, hpc-0.5.0.3, html-1.0.1.2,
   integer-0.1.0.1, mtl-1.1.0.2, network-2.2.1.4, old-locale-1.0.0.1,
   old-time-1.0.0.2, packedstring-0.1.0.1, parallel-1.1.0.1,
   parsec-2.1.0.1, pointless-haskell-0.0.1, pretty-1.0.1.0,
   process-1.0.1.1, random-1.0.0.1, regex-base-0.72.0.2,
   regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2,
   syb-0.1.0.1, template-haskell-2.3.0.1, time-1.1.2.4,
   utf8-string-0.3.6, xhtml-3000.2.0.1, zlib-0.5.0.0

Thanks,

Martin

___
Haskell-Cafe mailing list
haskell-c...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users