
I'm trying to do a registered hc-build on linux2.4 x86 with ghc 6.6.1. After fixing mk/bootstrap.mk to include "-lncurses" in HC_BOOT_LIBS to get past an undefined reference to "tputs" et al, I've gotten stuck with the following undefined reference error: ------------------------------------------------------------------------ == gmake all -wr; in /tmp/ghc-6.6.1/utils/runstdtest ------------------------------------------------------------------------ gmake[1]: Nothing to be done for `all'. Finished making all in runstdtest: 0 ------------------------------------------------------------------------ == gmake all -wr; in /tmp/ghc-6.6.1/utils/genapply ------------------------------------------------------------------------ gcc -o genapply -fno-defer-pop -fomit-frame-pointer -fno-builtin -DDONT_WANT_WIN32_DLL_SUPPORT -D__GLASGOW_HASKELL__=606 -O -I/tmp/ghc-6.6.1/includes -I/tmp/ghc-6.6.1/libraries/base/include -I/tmp/ghc-6.6.1/libraries/unix/include -I/tmp/ghc-6.6.1/libraries/parsec/include -I/tmp/ghc-6.6.1/libraries/readline/include -L/tmp/ghc-6.6.1/rts -L/tmp/ghc-6.6.1/libraries/base -L/tmp/ghc-6.6.1/libraries/base/cbits -L/tmp/ghc-6.6.1/libraries/haskell98 -L/tmp/ghc-6.6.1/libraries/parsec -L/tmp/ghc-6.6.1/libraries/regex-base -L/tmp/ghc-6.6.1/libraries/regex-compat -L/tmp/ghc-6.6.1/libraries/regex-posix -L/tmp/ghc-6.6.1/libraries/Cabal -L/tmp/ghc-6.6.1/libraries/template-haskell -L/tmp/ghc-6.6.1/libraries/readline -L/tmp/ghc-6.6.1/libraries/unix -L/tmp/ghc-6.6.1/libraries/unix/cbits -u "base_GHCziBase_Izh_static_info" -u "base_GHCziBase_Czh_static_info" -u "base_GHCziFloat_Fzh_static_info" -u "base_GHCziFloat_Dzh_static_info" -u "base_GHCziPtr_Ptr_static_info" -u "base_GHCziWord_Wzh_static_info" -u "base_GHCziInt_I8zh_static_info" -u "base_GHCziInt_I16zh_static_info" -u "base_GHCziInt_I32zh_static_info" -u "base_GHCziInt_I64zh_static_info" -u "base_GHCziWord_W8zh_static_info" -u "base_GHCziWord_W16zh_static_info" -u "base_GHCziWord_W32zh_static_info" -u "base_GHCziWord_W64zh_static_info" -u "base_GHCziStable_StablePtr_static_info" -u "base_GHCziBase_Izh_con_info" -u "base_GHCziBase_Czh_con_info" -u "base_GHCziFloat_Fzh_con_info" -u "base_GHCziFloat_Dzh_con_info" -u "base_GHCziPtr_Ptr_con_info" -u "base_GHCziStable_StablePtr_con_info" -u "base_GHCziBase_False_closure" -u "base_GHCziBase_True_closure" -u "base_GHCziPack_unpackCString_closure" -u "base_GHCziIOBase_stackOverflow_closure" -u "base_GHCziIOBase_heapOverflow_closure" -u "base_GHCziIOBase_NonTermination_closure" -u "base_GHCziIOBase_BlockedOnDeadMVar_closure" -u "base_GHCziIOBase_Deadlock_closure" -u "base_GHCziWeak_runFinalizzerBatch_closure" -u "__stginit_Prelude" GenApply.o -lHSreadline -lreadline -lHStemplate-haskell -lHSunix -lHSunix_cbits -lHSCabal -lHShaskell98 -lHSregex-compat -lHSregex-posix -lHSregex-base -lHSbase -lHSbase_cbits -lHSparsec -lHSrts -lgmp -lm -lncurses -ldl -lrt GenApply.o(.text+0x13a55): In function `s5cr_info': : undefined reference to `base_DataziList_zdsintersperse_info' GenApply.o(.text+0x14c11): In function `s58p_info': : undefined reference to `base_DataziList_zdsintersperse_info' GenApply.o(.text+0x17d79): In function `s54x_info': : undefined reference to `base_DataziList_zdsintersperse_info' collect2: ld returned 1 exit status gmake[1]: *** [genapply] Error 1 Failed making all in genapply: 1 gmake: *** [all] Error 1 gmake: Leaving directory `/tmp/ghc-6.6.1/utils' Does anyone know why this might be occuring? The only reference to "base_DataziList_zdsintersperse_info" on google didn't seem to have an answer. For reference my mk/build.mk is: SRC_HC_OPTS = -H32m -O -fvia-C -Rghc-timing -keep-hc-files GhcLibHcOpts = -O GhcLibWays = SplitObjs = NO just as the example one given on http://hackage.haskell.org/trac/ghc/wiki/Building/Porting. Also- in case this is related- I moved AutoApply_thr.thr_hc to AutoApply_thr.hc (and likewise for debug, thr_debug, and thr_p). Thanks, Joseph Re -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.