continuing from:
http://www.haskell.org/pipermail/glasgow-haskell-users/2009-April/017036.html

Okay, I manually pulled in those definitions for RTLD_NEXT and RTLD_DEFAULT and got the host to build through the steps without
the RTS; brought over the ghc-6.4.2-powerpc-unknown-openbsd-hc.tar.gz
and started the unregistered build on the target os via
./distrib/hc-build --enable-hc-boot-unregisterised
it made all the way to rts's linker.

Since this is not linux, we don't have MREMAP_MAYMOVE, yet
ocAllocateJumpIslands() doesn't like USE_MMAP,
line 1416 in ghc-6.4.2/ghc/rts/Linker.c

suggestions on how to proceed?


=fptools== gmake all -wr;
 in /x/ghc-6.4.2/ghc/rts
------------------------------------------------------------------------
gmake -C gmp MAKEFLAGS=
gmake  all-recursive
gmake[3]: Entering directory `/x/ghc-6.4.2/ghc/rts/gmp'
Making all in mpn
gmake[4]: Entering directory `/x/ghc-6.4.2/ghc/rts/gmp/mpn'
gmake[5]: Entering directory `/x/ghc-6.4.2/ghc/rts/gmp/mpn'
gmake[5]: Nothing to be done for `all-am'.
gmake[5]: Leaving directory `/x/ghc-6.4.2/ghc/rts/gmp/mpn'
gmake[4]: Leaving directory `/x/ghc-6.4.2/ghc/rts/gmp/mpn'
Making all in mpz
gmake[4]: Entering directory `/x/ghc-6.4.2/ghc/rts/gmp/mpz'
gmake[5]: Entering directory `/x/ghc-6.4.2/ghc/rts/gmp/mpz'
gmake[5]: Nothing to be done for `all-am'.
gmake[5]: Leaving directory `/x/ghc-6.4.2/ghc/rts/gmp/mpz'
gmake[4]: Leaving directory `/x/ghc-6.4.2/ghc/rts/gmp/mpz'
gmake[4]: Entering directory `/x/ghc-6.4.2/ghc/rts/gmp'
gmake[4]: Leaving directory `/x/ghc-6.4.2/ghc/rts/gmp'
gmake[3]: Leaving directory `/x/ghc-6.4.2/ghc/rts/gmp'
gcc -O -I/x/ghc-6.4.2/ghc/includes -I/x/ghc-6.4.2/libraries/base/include -I/x/ghc-6.4.2/libraries/unix/include -I/x/ghc-6.4.2/libraries/parsec/include -finhibit-size-directive -DNO_REGS -DUSE_MINIINTERPRETER -static -D__GLASGOW_HASKELL__=604 -I/x/ghc-6.4.2/libraries/readline/include -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Winline -Waggregate-return -Wbad-function-cast -I../includes -I. -Iparallel -DCOMPILING_RTS -fomit-frame-pointer -c Linker.c -o Linker.o
Linker.c: In function `addDLL':
Linker.c:877: warning: assignment discards qualifiers from pointer target type Linker.c:1416:10: #error ocAllocateJumpIslands doesnt want USE_MMAP to be defined
Linker.c: In function `ocAllocateJumpIslands':
Linker.c:1440: warning: implicit declaration of function `mremap'
Linker.c:1440: error: `MREMAP_MAYMOVE' undeclared (first use in this function)
Linker.c:1440: error: (Each undeclared identifier is reported only once
Linker.c:1440: error: for each function it appears in.)
Linker.c:1440: warning: assignment makes pointer from integer without a cast Linker.c:1449: error: `MAP_ANONYMOUS' undeclared (first use in this function)
Linker.c: In function `do_Elf_Rela_relocations':
Linker.c:3255: error: `R_PPC_ADDR16_LO' undeclared (first use in this function) Linker.c:3259: error: `R_PPC_ADDR16_HI' undeclared (first use in this function) Linker.c:3263: error: `R_PPC_ADDR16_HA' undeclared (first use in this function) Linker.c:3267: error: `R_PPC_ADDR32' undeclared (first use in this function) Linker.c:3271: error: `R_PPC_REL32' undeclared (first use in this function) Linker.c:3275: error: `R_PPC_REL24' undeclared (first use in this function)
Linker.c: In function `ocAllocateJumpIslands_ELF':
Linker.c:3506: warning: int format, long unsigned int arg (arg 3)
gmake[1]: *** [Linker.o] Error 1
gmake: *** [all] Error 1
gmake: Leaving directory `/x/ghc-6.4.2/ghc'

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to