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#id2931737

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
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to