where is ghcautoconf.h, DerivedConstants.h and GHCConstants.h

following wiki to make an unregistered build of ghc 6.6.1 on openbsd-powerpc-current target = powerpc_unknown_openbsd host = x86_64_unknown_linux with ghc-6.10.2 "Copy <T>/includes/ghcautoconf.h, <T>/includes/DerivedConstants.h, and <T>/includes/GHCConstants.h to <H>/includes. Note that we are building on the host machine, using the target machine's configuration files. This is so that the intermediate C files generated here will be suitable for compiling on the target system." looking in the target tree after doing ./configure --enable-hc-boot --enable-hc-boot-unregisterised those 3 files doesn't exist, what step am I missing? Jake

Okay, I worked through the .h issue(it was late at night), but wasn't able to make headway with 6.6.1(exception type ambiguities), so I switched platforms and downgraded to earlier versions: take 2 ------ target = powerpc-unknown-openbsd host = i386-unknown-linux with a running ghc 6.4.2 following the instruction here: http://www.haskell.org/ghc/docs/6.4.2/html/building/sec-porting-ghc.html#id2... it finished the compiler phase's make boot && make (it didn't build RTS as the instruction fortold) however, it now fails in the phase $ cd H/libraries $ make boot && make ------------------------------------------------------------------------ ==fptools== make boot -r; in /j/ghc-6.4.2/libraries/unix ------------------------------------------------------------------------ ../../ghc/utils/hsc2hs/hsc2hs-inplace -Iinclude -I../../mk/ -I. System/Posix/DynamicLinker.hsc In file included from DynamicLinker.hsc:48: include/HsUnix.h: In function '__hsunix_rtldNext': include/HsUnix.h:103: error: 'RTLD_NEXT' undeclared (first use in this function) include/HsUnix.h:103: error: (Each undeclared identifier is reported only once include/HsUnix.h:103: error: for each function it appears in.) include/HsUnix.h: In function '__hsunix_rtldDefault': include/HsUnix.h:107: error: 'RTLD_DEFAULT' undeclared (first use in this function) make[1]: *** [System/Posix/DynamicLinker.hs] Error 1 make: *** [boot] Error 1 some digging appears what I have ran into this bug: http://hackage.haskell.org/trac/ghc/ticket/729 any suggestions? Jake

Hi Jake, On Mon, Apr 13, 2009 at 03:58:42AM -0400, Jake L wrote:
following wiki to make an unregistered build of ghc 6.6.1 on openbsd-powerpc-current
target = powerpc_unknown_openbsd host = x86_64_unknown_linux with ghc-6.10.2
You'll probably need to use 6.6.1 on the host.
"Copy <T>/includes/ghcautoconf.h, <T>/includes/DerivedConstants.h, and <T>/includes/GHCConstants.h to <H>/includes.
looking in the target tree after doing ./configure --enable-hc-boot --enable-hc-boot-unregisterised
those 3 files doesn't exist, what step am I missing?
This one: $ cd <T>/includes $ make Thanks Ian
participants (2)
-
Ian Lynagh
-
Jake L