RE: progress on Freebsd-amd64 (Was: .hc files for building ghc-6.4.1 onamd64 ?)

On 21 September 2005 21:14, Wilhelm B. Kloke wrote:
Simon Marlow
schrieb: Int64# primitive type (it's the same as Int#). You might want to make sure that ghc/includes/ghcautoconf.h on the host machine is the right one - it should have been copied from the target machine.
Yes. ghcautoconf.h had been rebuilt accidentally.
Now I have an unregisterised ghc-inplace. What is the fastest way to test its usability?
congratulations! You should be able to build a simple Haskell program and run it, like so: $ cat >hello.hs main = putStrLn "hello world!" ^D $ $target/ghc/compiler/ghc-inplace hello.hs $ ./a.out hello world!
The next failure is at Control/Arrow.hc after reconfiguration in hc-build:
==fptools== gmake all -wr; in /data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/libraries/base
------------------------------------------------------------------------
gcc -x c Control/Arrow.hc -o Control/Arrow.raw_s -S -O -D__GLASGOW_HASKELL__=604 -O -I/data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/ghc/includes -I/data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/libraries/base/include -I/data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/libraries/unix/include
-I/data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/libraries/parsec/include
-I/data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/libraries/readline/inclu de
-I. `echo | sed 's/^$/-DSTOLEN_X86_REGS=4/'` Control/Arrow.hc: In function `s39r_entry': Control/Arrow.hc:25: error: `stg_ap_p_ret' undeclared (first use in this function) Control/Arrow.hc:25: error: (Each undeclared identifier is reported only once Control/Arrow.hc:25: error: for each function it appears in.) Control/Arrow.hc: In function `s39v_entry': Control/Arrow.hc:46: error: `stg_ap_p_ret' undeclared (first use in this function) ...
Just to confirm - this is at the stage after "*** Building libraries..." in hc-build? I don't think the reconfigure step has worked properly. It still seems to be attempting to compile the .hc file, when in fact it should be using ghc-inplace to compile the .hs file. Check that mk/config.mk has BootingFromUnregisterisedHc=NO and BootingFromHc=NO. Cheers, Simon
participants (1)
-
Simon Marlow