
Christian Maeder wrote:
Christian Maeder wrote:
OSThreads.c:(.text+0x88): undefined reference to `sched_yield' collect2: ld returned 1 exit status
I could fix this by adding "rt" to the extra-libraries of the rts package.conf file.
Now I have a stage2 compiler but "gmake binary-dist" does not work. I assume a couple of variables are not set up. What is going there? The Makefile has the line:
BIN_DIST_DIRS=$($(Project)BinDistDirs)
where I don't find "BinDistDirs"
Cheers Christian
--- ghc/rts/package.conf.inplace Thu Apr 13 15:49:49 2006 +++ ghc/rts/package.conf.inplace~ Wed Apr 12 19:44:55 2006 @@ -429,7 +429,6 @@
extra-libraries: "m" , "gmp" - , "rt" , "dl"
Ok, does this help instead (compile stage1 with this change): *** DriverState.hs.~1.116.2.2.~ 2005-10-13 10:02:19.000000000 +0100 --- DriverState.hs 2006-04-13 15:32:02.000000000 +0100 *************** *** 418,423 **** --- 418,425 ---- #if defined(freebsd_TARGET_OS) "-optc-pthread" , "-optl-pthread" + #elif defined(solaris_TARGET_OS) + "-optl-lrt" #endif ] ),
-bash-3.00$ gmake binary-dist Project=Ghc rm -rf /home/maeder/haskell/solaris/ghc-6.4.2.20060411/- rm -f /home/maeder/haskell/solaris/ghc-6.4.2.20060411/-.tar.gz echo "BIN_DIST_DIRS = " BIN_DIST_DIRS = /bin/sh: syntax error at line 1: `;' unexpected gmake: *** [binary-dist-pre] Error 2
Very strange. It works here, because I built two binary dists last night. GhcBinDistDirs is set by ghc/mk/config.mk, which is included by the top-level Makefile. $ make show Project=Ghc VALUE=GhcBinDistDirs GhcBinDistDirs="ghc libraries hslibs" what does this do in your tree? Cheers, Simon