
On 12 September 2005 12:53, Wilhelm B. Kloke wrote:
Simon Marlow
schrieb: On 06 September 2005 15:33, Wilhelm B. Kloke wrote:
I have a FreeBSD box running FreeSD-amd64-6.0. Is there anybody who can give me a set of .hc files (probably from linux x86_64) to build GHC? I tried to follow the instructions to crossbuild from FreeBSD-i386, but my attempts failed for reasons I don't understand.
I have an account on a box, but haven't yet had time to do the port.
If you let us know where your build got stuck, we might be able to help you out.
Thank you for answering. This is more complicated to do it fast. I tried to follow the building guide for a new port. IIRC there were messages related to the difference in range for 64bit constants in the header files for amd64 and the range which 32bit GHC could handle. For now I have screwed up both build trees. I am going to restart the process with fresh copies to give the exact information.
I was just hoping that a set of Linux-64 .hc files would do the job for FreeBSD, too.
BTW, should I hold my breath for 6.4.1?
You should certainly bootstrap using a 6.4.1 snapshot source tree, because there have been plenty of amd64-related fixes. There won't be a lot of change between now and the 6.4.1 release. Cheers, Simon

Simon Marlow
On 12 September 2005 12:53, Wilhelm B. Kloke wrote:
BTW, should I hold my breath for 6.4.1?
You should certainly bootstrap using a 6.4.1 snapshot source tree, because there have been plenty of amd64-related fixes. There won't be a lot of change between now and the 6.4.1 release.
I tried it again today. One of my problems was related to gmake version. The configure script should warn, if gmake is older than 3.80 (I had 3.78). The building of the .hc bundle fails wirth the following messages: ... tar czf ghc-6.4.1-x86_64-unknown-freebsd-hc.tar.gz `cat hc-files-to-go` tar: ghc-6.4.1/ghc/rts/PrimOps.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/ghc/rts/StgStartup.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/ghc/rts/StgStdThunks.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/ghc/rts/Updates.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/ghc/rts/Apply.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/ghc/rts/Exception.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/ghc/rts/HeapStackCheck.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/ghc/rts/StgMiscClosures.hc: Cannot stat: No such file or directory tar: ghc-6.4.1/libraries/haskell-src/Language/Haskell/Parser.hs: Cannot stat: No such file or directory gmake: *** [hc-file-bundle] Fehler 1 I tried to go back to ghc/rts to build more files following the ipattern of the last steps before, but this destroys genapply. Further, there are some hsc.c files of length 0 like: ~/Haskell/fptools-i386amd64/ghc-6.4.1 0$ ls -l libraries/base/System/*hsc.c -rw-r--r-- 1 wb ifado 0 17 Sep 21:31 libraries/base/System/CPUTime_hsc.c -rw-r--r-- 1 wb ifado 0 17 Sep 21:31 libraries/base/System/Time_hsc.c The building process on the target system fails with messages that there is no rule to build those files. Also, I needed to have happy and alex on the target system, because make boot fails without them (catch 22). A final glitch is that (at least, my) FreeBSD-amd64-6.0 gcc does not include -I/usr/local/include and -L/usr/local/lib in the search path. So libgmp is not found. -- Dipl.-Math. Wilhelm Bernhard Kloke Institut fuer Arbeitsphysiologie an der Universitaet Dortmund Ardeystrasse 67, D-44139 Dortmund, Tel. 0231-1084-257
participants (2)
-
Simon Marlow
-
Wilhelm B. Kloke