building ghc from source

Mike Thomas miketh@brisbane.paradigmgeo.com
Mon, 19 May 2003 09:51:14 +1000


This is a multi-part message in MIME format.

------=_NextPart_000_00B4_01C31DEC.2F835790
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi Johannes.

Notice that the build fails the first time that "ghc-inplace" gets called.
Now look back at your configure output and see the line:

   checking whether we can open files in binary mode... no


which should read:

   checking whether we can open files in binary mode... yes

The problem is that when this step goes wrong on Windows, the compiler is
built in such a way that it can't read binary files (eg "*.hi")  correctly.

I'm afraid I can't remember what caused this configuration test to go wrong
for me in the past, but I solved it by looking at the file "configure.log",
which I suggest you do.  I seem to recall that, due to a compiler
configuration problem, a header or library was not found, which meant that
the test program was doomed to fail.

I can't say that this is the only problem you will have, but it is certainly
fatal on Windows so:

Best of luck!

Mike Thomas.


  -----Original Message-----
  From: glasgow-haskell-users-admin@haskell.org
[mailto:glasgow-haskell-users-admin@haskell.org]On Behalf Of johago@web.de
  Sent: Sunday, May 18, 2003 2:15 AM
  To: glasgow-haskell-users@haskell.org
  Subject: building ghc from source


  Hi there!

  I'm trying to build ghc from scratch under Windows XP... which gives me
  problems, problems, problems...

  Steps taken:

  1. Installed latest ghc (v5.04.3)
  2. Installed happy (v1.13)

  3. Unpacked current ghc source distribution (ghc-5.04.3-src.tar.bz2) to
  c:/build/ghc

  4. Downloaded the latest Cygwin distribution and installed it to c:/cygwin
  5. Got latest MinGW distribution (MinGW-2.0.0-3.exe) and installed it to
  c:/MinGW

  6. Added /cygdrive/c/MinGW/bin to path in /etc/profile

  7. Started Cygwin bash

  8. Changed directory to /cygdrive/c/build/ghc

  9. Entered


"./configure --host=i386-unknown-mingw32 --with-gcc=/cygdrive/c/MinGW/bin/gc
  c". No errors occurred.

  --- snip ---

  $


./configure --host=i386-unknown-mingw32 --with-gcc=/cygdrive/c/MinGW/bin/gcc
  creating cache ./config.cache

  *** The top of your build tree is: /cygdrive/c/build/ghc
  checking host system type... i386-unknown-mingw32
  checking target system type... i386-unknown-mingw32
  checking build system type... i386-unknown-mingw32
  Canonicalised to: i386-unknown-mingw32
  checking for ghc... /cygdrive/c/ghc/ghc-5.04.3/bin/ghc
  checking version of ghc... 5.04.3
  checking for nhc... no
  checking for nhc98... no
  checking for hbc... no
  checking whether #! works in shell scripts... yes
  checking for perl... /bin/perl
  checking if your perl works in shell scripts... yes
  checking for gcc... /cygdrive/c/MinGW/bin/gcc
  checking whether the C compiler (/cygdrive/c/MinGW/bin/gcc  ) works... yes
  checking whether the C compiler (/cygdrive/c/MinGW/bin/gcc  ) is a
  cross-compile
  r... no
  checking whether we are using GNU C... yes
  checking whether /cygdrive/c/MinGW/bin/gcc accepts -g... yes
  checking whether you have an ok gcc... yes
  checking how to run the C preprocessor... /cygdrive/c/MinGW/bin/gcc -E
  checking whether /cygdrive/c/MinGW/bin/gcc accepts -mno-cygwin... yes
  checking for ok way to do context diffs... diff -C 1
  checking for find... /usr/bin/find
  checking for bison... no
  checking for byacc... no
  checking if it is an OK yacc... checking for what... :
  yacc
  checking for flex... flex
  checking for a BSD compatible install... /usr/bin/install -c
  checking for ar... /cygdrive/c/MinGW/bin/ar
  checking whether ln -s works... yes
  checking for sed... /usr/bin/sed
  checking for time... /usr/bin/time
  checking for gtar... no
  checking for tar... /usr/bin/tar
  checking for gzip... /usr/bin/gzip
  checking for openjade... no
  checking for jade... no
  checking for DocBook CATALOG... no
  Warning: You will not be able to build the documentation.
  checking for happy... /cygdrive/c/happy/happy-1.13/bin/happy
  checking for version of happy... 1.13
  checking for haddock... no
  checking for ANSI C header files... yes
  checking for Files.h... no
  checking for arpa/inet.h... no
  checking for assert.h... yes
  checking for console.h... no
  checking for ctype.h... yes
  checking for dirent.h... yes
  checking for errno.h... yes
  checking for fcntl.h... yes
  checking for float.h... yes
  checking for ftw.h... no
  checking for grp.h... no
  checking for ieee754.h... no
  checking for inttypes.h... yes
  checking for limits.h... yes
  checking for malloc.h... yes
  checking for memory.h... yes
  checking for nlist.h... no
  checking for pascal.h... no
  checking for pwd.h... no
  checking for sgtty.h... no
  checking for siginfo.h... no
  checking for signal.h... yes
  checking for stat.h... no
  checking for stdint.h... yes
  checking for stdlib.h... yes
  checking for stddef.h... yes
  checking for stdarg.h... yes
  checking for string.h... yes
  checking for sys/fault.h... no
  checking for sys/file.h... yes
  checking for sys/ioctl.h... no
  checking for sys/limits.h... no
  checking for sys/mman.h... no
  checking for sys/param.h... yes
  checking for sys/procfs.h... no
  checking for sys/resource.h... no
  checking for sys/signal.h... no
  checking for sys/socket.h... no
  checking for netdb.h... no
  checking for netinet/in.h... no
  checking for netinet/tcp.h... no
  checking for sys/stat.h... yes
  checking for sys/syscall.h... no
  checking for sys/time.h... yes
  checking for sys/timeb.h... yes
  checking for sys/timers.h... no
  checking for sys/times.h... no
  checking for sys/types.h... yes
  checking for sys/un.h... no
  checking for sys/utsname.h... no
  checking for sys/vadvise.h... no
  checking for sys/wait.h... no
  checking for termio.h... no
  checking for termios.h... no
  checking for time.h... yes
  checking for types.h... no
  checking for unistd.h... yes
  checking for utime.h... no
  checking for values.h... yes
  checking for vfork.h... no
  checking for bfd.h... yes
  checking for winsock.h... yes
  checking for pthread.h... no
  checking for sys/uio.h... no
  checking for readline/readline.h... no
  checking for readline/history.h... no
  checking for dos.h... yes
  checking for conio.h... yes
  checking for io.h... yes
  checking for std.h... no
  checking for windows.h... yes
  checking for GL/gl.h... yes
  checking whether time.h and sys/time.h may both be included... yes
  checking for dlfcn.h... no
  checking for dl.h... no
  checking for alloc.h... no
  checking for malloc.h... (cached) yes
  checking for valloc... no
  checking for regex.h... no
  checking whether struct tm is in sys/time.h or time.h... time.h
  checking for tm_zone in struct tm... no
  checking for tzname... no
  checking timezone... yes
  checking type of timezone... time_t
  checking altzone... no
  checking for st_blksize in struct stat... no
  checking whether /cygdrive/c/MinGW/bin/gcc supports long long types... yes
  checking for msg_accrights in struct msghdr... no
  checking for msg_control in struct msghdr... no
  checking size of char... 1
  checking size of double... 8
  checking size of float... 4
  checking size of int... 4
  checking size of long... 4
  checking size of long long... 8
  checking size of short... 2
  checking size of unsigned char... 1
  checking size of unsigned int... 4
  checking size of unsigned long... 4
  checking size of unsigned long long... 8
  checking size of unsigned short... 2
  checking size of void *... 4
  checking alignment of char... 1
  checking alignment of double... 8
  checking alignment of float... 4
  checking alignment of int... 4
  checking alignment of long... 4
  checking alignment of long long... 8
  checking alignment of short... 2
  checking alignment of unsigned char... 1
  checking alignment of unsigned int... 4
  checking alignment of unsigned long... 4
  checking alignment of unsigned long long... 8
  checking alignment of unsigned short... 2
  checking alignment of void *... 4
  checking Haskell type for char... Int8
  checking Haskell type for signed char... Int8
  checking Haskell type for unsigned char... Word8
  checking Haskell type for short... Int16
  checking Haskell type for unsigned short... Word16
  checking Haskell type for int... Int32
  checking Haskell type for unsigned int... Word32
  checking Haskell type for long... Int32
  checking Haskell type for unsigned long... Word32
  checking Haskell type for long long... Int64
  checking Haskell type for unsigned long long... Word64
  checking Haskell type for float... Float
  checking Haskell type for double... Double
  checking Haskell type for ptrdiff_t... Int32
  checking Haskell type for size_t... Word32
  checking Haskell type for wchar_t... Word16
  checking Haskell type for sig_atomic_t... Int32
  checking Haskell type for clock_t... Int32
  checking Haskell type for time_t... Int32
  checking Haskell type for dev_t... Word32
  checking Haskell type for ino_t... Int16
  checking Haskell type for mode_t... Word16
  checking Haskell type for off_t... Int32
  checking Haskell type for pid_t... Int32
  checking Haskell type for gid_t... NotReallyAType
  checking Haskell type for uid_t... NotReallyAType
  checking Haskell type for cc_t... NotReallyAType
  checking Haskell type for speed_t... NotReallyAType
  checking Haskell type for tcflag_t... NotReallyAType
  checking Haskell type for nlink_t... NotReallyAType
  checking Haskell type for ssize_t... NotReallyAType
  checking whether we can open files in binary mode... no
  checking return type of signal handlers... void
  checking for strcasecmp... yes
  checking for _stricmp... yes
  checking for stricmp... yes
  checking for strcmpi... yes
  checking for strcmp... yes
  checking for realpath... no
  checking for _fullpath... yes
  checking for PBHSetVolSync... no
  checking for macsystem... no
  checking for fgetpos... yes
  checking for fsetpos... yes
  checking for fseek... yes
  checking for ftell... yes
  checking for vsnprintf... yes
  checking for _vsnprintf... yes
  checking for snprintf... yes
  checking for _snprintf... yes
  checking for popen... yes
  checking for _popen... yes
  checking for pclose... yes
  checking for _pclose... yes
  checking for access... yes
  checking for ftime... yes
  checking for getclock... no
  checking for getpagesize... yes
  checking for getrusage... no
  checking for gettimeofday... no
  checking for mktime... yes
  checking for mprotect... yes
  checking for readlink... no
  checking for setitimer... no
  checking for stat... yes
  checking for lstat... no
  checking for symlink... no
  checking for sysconf... no
  checking for timelocal... no
  checking for times... no
  checking for vadvise... no
  checking for vfork... no
  checking for localtime_r... no
  checking for gmtime_r... no
  checking for readdir_r... no
  checking for __gmpz_fdiv_qr in -lgmp... no
  checking for __gmpz_fdiv_qr in -lgmp3... no
  checking for closedir in -lmingwex... yes
  checking for GNU regex in libc... no
  checking for xmalloc in -liberty... yes
  checking for bfd_init in -lbfd... yes
  checking for tputs in -lncurses... no
  checking for tputs in -ltermcap... no
  checking for tputs in -lcurses... no
  checking for main in -lm... yes
  checking for library containing glEnd... no
  checking for library containing gluNewQuadric... no
  checking for library containing glXWaitX... no
  checking for library containing glutMainLoop... no
  checking OpenGL flags...
  checking OpenGL libs...   -lX11 -lXext -lXmu -lXt -lXi  -lm
  dl: not found
  checking for dlopen in -ldl... no
  checking for dlopen... no
  checking for RTLD_NEXT from dlfcn.h... no
  checking for RTLD_LOCAL from dlfcn.h... no
  checking for function_atan... yes
  checking for in_addr_t in netinet/in.h... no
  checking for gtk-config... no
  checking for gtk12-config... no
  configure: warning: GTK+ not usable; need at least version 1.2
  checking for working alloca.h... no
  checking for alloca... yes
  checking for working const... yes
  checking prototypes... yes
  checking whether byte ordering is bigendian... no
  checking for nlist in -lelf... no
  checking leading underscore in symbol names... yes
  checking for end of text section marker... etext
  checking for end of text section marker declaration... etext asm("etext")
  checking for end of data section marker... end
  checking for end of data section marker declaration... end
  checking if code section appears before data... yes
  checking for ld... /cygdrive/c/MinGW/bin/ld
  checking whether ld understands -x... yes
  updating cache ./config.cache
  creating ./config.status
  creating mk/config.mk
  creating mk/config.h
  configuring in ghc
  running /bin/sh
  ./configure  --host=i386-unknown-mingw32 --with-gcc=/cygdrive/c/
  MinGW/bin/gcc --cache-file=.././config.cache --srcdir=.
  loading cache .././config.cache
  updating cache .././config.cache
  creating ./config.status
  creating ghc.spec
  creating docs/index.html

  --- snap ---

  10. Entered "make". Some warnings were given frequently:

  --- snip ---
  Warning: foreign declaration uses deprecated non-standard syntax
  --- snap ---
  and
  --- snip ---
  Warning: .type pseudo-op used outside of .def/.endef ignored.
  --- snap ---
  and
  --- snip ---
  Warning: rest of line ignored; first ignored character is `_'
  --- snap ---

  Finally there was an error:

  --- snip ---
  [...]

  /bin/sh ./libtool --mode=link /cygdrive/c/MinGW/bin/gcc  -g -O2   -o
  libgmp.la -
  rpath /usr/local/lib -version-info 4:1:1 assert.lo compat.lo errno.lo
  memory.lo
  mp_set_fns.lo mp_clz_tab.lo mp_minv_tab.lo rand.lo randclr.lo randlc.lo
  randlc2x
  .lo randraw.lo randsd.lo randsdui.lo version.lo stack-alloc.lo mp_bpl.lo
  extract
  -dbl.lo insert-dbl.lo  mpz/abs.lo mpz/add.lo mpz/add_ui.lo
mpz/addmul_ui.lo
  mpz/
  and.lo mpz/array_init.lo mpz/bin_ui.lo mpz/bin_uiui.lo mpz/cdiv_q.lo
  mpz/cdiv_q_
  ui.lo mpz/cdiv_qr.lo mpz/cdiv_qr_ui.lo mpz/cdiv_r.lo mpz/cdiv_r_ui.lo
  mpz/cdiv_u
  i.lo mpz/clear.lo mpz/clrbit.lo mpz/cmp.lo mpz/cmp_si.lo mpz/cmp_ui.lo
  mpz/cmpab
  s.lo mpz/cmpabs_ui.lo mpz/com.lo mpz/divexact.lo mpz/dump.lo mpz/fac_ui.lo
  mpz/f
  div_q.lo mpz/fdiv_q_2exp.lo mpz/fdiv_q_ui.lo mpz/fdiv_qr.lo
  mpz/fdiv_qr_ui.lo mp
  z/fdiv_r.lo mpz/fdiv_r_2exp.lo mpz/fdiv_r_ui.lo mpz/fdiv_ui.lo
mpz/fib_ui.lo
  mpz
  /fits_sint_p.lo mpz/fits_slong_p.lo mpz/fits_sshort_p.lo
mpz/fits_uint_p.lo
  mpz/
  fits_ulong_p.lo mpz/fits_ushort_p.lo mpz/gcd.lo mpz/gcd_ui.lo
mpz/gcdext.lo
  mpz/
  get_d.lo mpz/get_si.lo mpz/get_str.lo mpz/get_ui.lo mpz/getlimbn.lo
  mpz/hamdist.
  lo mpz/init.lo mpz/inp_raw.lo mpz/inp_str.lo mpz/invert.lo mpz/ior.lo
  mpz/iset.l
  o mpz/iset_d.lo mpz/iset_si.lo mpz/iset_str.lo mpz/iset_ui.lo
mpz/jacobi.lo
  mpz/
  kronsz.lo mpz/kronuz.lo mpz/kronzs.lo mpz/kronzu.lo mpz/lcm.lo
  mpz/legendre.lo m
  pz/mod.lo mpz/mul.lo mpz/mul_2exp.lo mpz/mul_si.lo mpz/mul_ui.lo
mpz/neg.lo
  mpz/
  nextprime.lo mpz/out_raw.lo mpz/out_str.lo mpz/perfpow.lo mpz/perfsqr.lo
  mpz/pop
  count.lo mpz/pow_ui.lo mpz/powm.lo mpz/powm_ui.lo mpz/pprime_p.lo
  mpz/random.lo
  mpz/random2.lo mpz/realloc.lo mpz/remove.lo mpz/root.lo mpz/rrandomb.lo
  mpz/scan
  0.lo mpz/scan1.lo mpz/set.lo mpz/set_d.lo mpz/set_f.lo mpz/set_q.lo
  mpz/set_si.l
  o mpz/set_str.lo mpz/set_ui.lo mpz/setbit.lo mpz/size.lo mpz/sizeinbase.lo
  mpz/s
  qrt.lo mpz/sqrtrem.lo mpz/sub.lo mpz/sub_ui.lo mpz/swap.lo mpz/tdiv_ui.lo
  mpz/td
  iv_q.lo mpz/tdiv_q_2exp.lo mpz/tdiv_q_ui.lo mpz/tdiv_qr.lo
mpz/tdiv_qr_ui.lo
  mpz
  /tdiv_r.lo mpz/tdiv_r_2exp.lo mpz/tdiv_r_ui.lo mpz/tstbit.lo
  mpz/ui_pow_ui.lo mp
  z/urandomb.lo mpz/urandomm.lo mpz/xor.lo mpn/mp_bases.lo mpn/udiv.lo
  mpn/umul.lo
   mpn/inlines.lo mpn/add_n.lo mpn/sub_n.lo mpn/mul_1.lo mpn/addmul_1.lo
  mpn/submu
  l_1.lo mpn/lshift.lo mpn/rshift.lo mpn/diveby3.lo mpn/divrem.lo
  mpn/divrem_1.lo
  mpn/divrem_2.lo mpn/mod_1.lo mpn/mod_1_rs.lo mpn/pre_mod_1.lo mpn/dump.lo
  mpn/mu
  l.lo mpn/mul_fft.lo mpn/mul_n.lo mpn/mul_basecase.lo mpn/sqr_basecase.lo
  mpn/ran
  dom.lo mpn/random2.lo mpn/sqrtrem.lo mpn/get_str.lo mpn/set_str.lo
  mpn/scan0.lo
  mpn/scan1.lo mpn/popcount.lo mpn/hamdist.lo mpn/cmp.lo mpn/perfsqr.lo
  mpn/bdivmo
  d.lo mpn/gcd_1.lo mpn/gcd.lo mpn/gcdext.lo mpn/tdiv_qr.lo
mpn/bz_divrem_n.lo
  mpn
  /sb_divrem_mn.lo mpn/jacbase.lo mpn/copyi.lo mpn/copyd.lo
  mkdir .libs
  libtool: link: warning: undefined symbols not allowed in
  i386-unknown-mingw32 sh
  ared libraries
  rm -fr .libs/libgmp.la .libs/libgmp.* .libs/libgmp.*
  ar cru .libs/libgmp.a  assert.o compat.o errno.o memory.o mp_set_fns.o
  mp_clz_ta
  b.o mp_minv_tab.o rand.o randclr.o randlc.o randlc2x.o randraw.o randsd.o
  randsd
  ui.o version.o stack-alloc.o mp_bpl.o extract-dbl.o insert-dbl.o mpz/abs.o
  mpz/a
  dd.o mpz/add_ui.o mpz/addmul_ui.o mpz/and.o mpz/array_init.o mpz/bin_ui.o
  mpz/bi
  n_uiui.o mpz/cdiv_q.o mpz/cdiv_q_ui.o mpz/cdiv_qr.o mpz/cdiv_qr_ui.o
  mpz/cdiv_r.
  o mpz/cdiv_r_ui.o mpz/cdiv_ui.o mpz/clear.o mpz/clrbit.o mpz/cmp.o
  mpz/cmp_si.o
  mpz/cmp_ui.o mpz/cmpabs.o mpz/cmpabs_ui.o mpz/com.o mpz/divexact.o
  mpz/dump.o mp
  z/fac_ui.o mpz/fdiv_q.o mpz/fdiv_q_2exp.o mpz/fdiv_q_ui.o mpz/fdiv_qr.o
  mpz/fdiv
  _qr_ui.o mpz/fdiv_r.o mpz/fdiv_r_2exp.o mpz/fdiv_r_ui.o mpz/fdiv_ui.o
  mpz/fib_ui
  .o mpz/fits_sint_p.o mpz/fits_slong_p.o mpz/fits_sshort_p.o
  mpz/fits_uint_p.o mp
  z/fits_ulong_p.o mpz/fits_ushort_p.o mpz/gcd.o mpz/gcd_ui.o mpz/gcdext.o
  mpz/get
  _d.o mpz/get_si.o mpz/get_str.o mpz/get_ui.o mpz/getlimbn.o mpz/hamdist.o
  mpz/in
  it.o mpz/inp_raw.o mpz/inp_str.o mpz/invert.o mpz/ior.o mpz/iset.o
  mpz/iset_d.o
  mpz/iset_si.o mpz/iset_str.o mpz/iset_ui.o mpz/jacobi.o mpz/kronsz.o
  mpz/kronuz.
  o mpz/kronzs.o mpz/kronzu.o mpz/lcm.o mpz/legendre.o mpz/mod.o mpz/mul.o
  mpz/mul
  _2exp.o mpz/mul_si.o mpz/mul_ui.o mpz/neg.o mpz/nextprime.o mpz/out_raw.o
  mpz/ou
  t_str.o mpz/perfpow.o mpz/perfsqr.o mpz/popcount.o mpz/pow_ui.o mpz/powm.o
  mpz/p
  owm_ui.o mpz/pprime_p.o mpz/random.o mpz/random2.o mpz/realloc.o
  mpz/remove.o mp
  z/root.o mpz/rrandomb.o mpz/scan0.o mpz/scan1.o mpz/set.o mpz/set_d.o
  mpz/set_f.
  o mpz/set_q.o mpz/set_si.o mpz/set_str.o mpz/set_ui.o mpz/setbit.o
  mpz/size.o mp
  z/sizeinbase.o mpz/sqrt.o mpz/sqrtrem.o mpz/sub.o mpz/sub_ui.o mpz/swap.o
  mpz/td
  iv_ui.o mpz/tdiv_q.o mpz/tdiv_q_2exp.o mpz/tdiv_q_ui.o mpz/tdiv_qr.o
  mpz/tdiv_qr
  _ui.o mpz/tdiv_r.o mpz/tdiv_r_2exp.o mpz/tdiv_r_ui.o mpz/tstbit.o
  mpz/ui_pow_ui.
  o mpz/urandomb.o mpz/urandomm.o mpz/xor.o mpn/mp_bases.o mpn/udiv.o
  mpn/umul.o m
  pn/inlines.o mpn/add_n.o mpn/sub_n.o mpn/mul_1.o mpn/addmul_1.o
  mpn/submul_1.o m
  pn/lshift.o mpn/rshift.o mpn/diveby3.o mpn/divrem.o mpn/divrem_1.o
  mpn/divrem_2.
  o mpn/mod_1.o mpn/mod_1_rs.o mpn/pre_mod_1.o mpn/dump.o mpn/mul.o
  mpn/mul_fft.o
  mpn/mul_n.o mpn/mul_basecase.o mpn/sqr_basecase.o mpn/random.o
mpn/random2.o
  mpn
  /sqrtrem.o mpn/get_str.o mpn/set_str.o mpn/scan0.o mpn/scan1.o
  mpn/popcount.o mp
  n/hamdist.o mpn/cmp.o mpn/perfsqr.o mpn/bdivmod.o mpn/gcd_1.o mpn/gcd.o
  mpn/gcde
  xt.o mpn/tdiv_qr.o mpn/bz_divrem_n.o mpn/sb_divrem_mn.o mpn/jacbase.o
  mpn/copyi.
  o mpn/copyd.o
  creating libgmp.la
  (cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
  make[5]: Leaving directory `/cygdrive/c/build/ghc/ghc/rts/gmp'
  make[4]: Leaving directory `/cygdrive/c/build/ghc/ghc/rts/gmp'
  ../utils/ghc-pkg/ghc-pkg-inplace --update-package <rts.conf.inplace
  Reading package info from stdin... done.
  Expanding embedded variables...done.
  warning: can't find GHCi lib `HSrts.o'
  Saving old package config file... done.
  Writing new package config file... done.
  ../utils/ghc-pkg/ghc-pkg-inplace  -f
../driver/package.conf --update-package
  <rt
  s.conf.installed
  Reading package info from stdin... done.
  Expanding embedded variables...done.
  warning: can't find GHCi lib `HSrts.o'
  Saving old package config file... done.
  Writing new package config file... done.


../../ghc/compiler/ghc-inplace -optc-mno-cygwin -optc-O -optc-Wall -optc-W -
  optc
  -Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations 
-o
  ptc-


Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-Wcast-align -
  optc
  -I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-fr
am
  e-po
  inter -O2 -static -package-name rts -O -Rghc-timing     -c Adjustor.c -o
  Adjusto
  r.o
  <<ghc: 629196 bytes, 2 GCs, 19832/19832 avg/max bytes residency (1
samples),
  5M
  in use, 0.01 INIT (0.02 elapsed), 0.00 MUT (0.02 elapsed), 0.02 GC (0.03
  elapsed
  ) :ghc>>
  make[2]: *** [Adjustor.o] Error 1
  make[1]: *** [all] Error 1
  make[1]: Leaving directory `/cygdrive/c/build/ghc/ghc'
  make: *** [all] Error 1


  --- snap ---


  Thanks very much for your suggestions in advance

  Bye,
  Johannes
  johago@web.de





------=_NextPart_000_00B4_01C31DEC.2F835790
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Johannes.</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2>Notice=20
that the build fails the first time that "ghc-inplace" gets =
called.&nbsp; Now=20
look back at your configure output and see the line:</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003>&nbsp;&nbsp; checking whether we =
can open=20
files in binary mode... no<BR></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT><FONT =
face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN><SPAN class=3D407593223-18052003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2>which=20
should read:</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp; checking whether we can open files in binary =
mode...=20
yes<BR></FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2>The=20
problem is that when this step goes wrong on Windows, the compiler is =
built in=20
such a way that it can't read binary files (eg=20
"*.hi")&nbsp;&nbsp;correctly.</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2>I'm=20
afraid I can't remember what&nbsp;caused this configuration test to go =
wrong for=20
me in the past, but I solved it by looking at the file "configure.log", =
which I=20
suggest you do.&nbsp; I seem to recall that, due&nbsp;to a compiler=20
configuration problem,&nbsp;a header or library was not found, which =
meant that=20
the test program was doomed to fail.</DIV></FONT></SPAN>
<DIV><SPAN class=3D407593223-18052003></SPAN><SPAN =
class=3D407593223-18052003><FONT=20
face=3DArial color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff size=3D2>I =
can't say that=20
this is the only problem you&nbsp;will have, but it is certainly fatal =
on=20
Windows so:</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2>Best=20
of luck!</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =
size=3D2>Mike=20
Thomas.</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;</DIV></FONT></SPAN>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  glasgow-haskell-users-admin@haskell.org=20
  [mailto:glasgow-haskell-users-admin@haskell.org]<B>On Behalf Of=20
  </B>johago@web.de<BR><B>Sent:</B> Sunday, May 18, 2003 2:15 =
AM<BR><B>To:</B>=20
  glasgow-haskell-users@haskell.org<BR><B>Subject:</B> building ghc from =

  source<BR><BR></FONT></DIV>Hi there!<BR><BR>I'm trying to build ghc =
from=20
  scratch under Windows XP... which gives me<BR>problems, problems,=20
  problems...<BR><BR>Steps taken:<BR><BR>1. Installed latest ghc =
(v5.04.3)<BR>2.=20
  Installed happy (v1.13)<BR><BR>3. Unpacked current ghc source =
distribution=20
  (ghc-5.04.3-src.tar.bz2) to<BR>c:/build/ghc<BR><BR>4. Downloaded the =
latest=20
  Cygwin distribution and installed it to c:/cygwin<BR>5. Got latest =
MinGW=20
  distribution (MinGW-2.0.0-3.exe) and installed it =
to<BR>c:/MinGW<BR><BR>6.=20
  Added /cygdrive/c/MinGW/bin to path in /etc/profile<BR><BR>7. Started =
Cygwin=20
  bash<BR><BR>8. Changed directory to /cygdrive/c/build/ghc<BR><BR>9.=20
  Entered<BR>"./configure --host=3Di386-unknown-mingw32=20
  --with-gcc=3D/cygdrive/c/MinGW/bin/gc<BR>c". No errors =
occurred.<BR><BR>--- snip=20
  ---<BR><BR>$<BR>./configure --host=3Di386-unknown-mingw32=20
  --with-gcc=3D/cygdrive/c/MinGW/bin/gcc<BR>creating cache=20
  ./config.cache<BR><BR>*** The top of your build tree is:=20
  /cygdrive/c/build/ghc<BR>checking host system type...=20
  i386-unknown-mingw32<BR>checking target system type...=20
  i386-unknown-mingw32<BR>checking build system type...=20
  i386-unknown-mingw32<BR>Canonicalised to: =
i386-unknown-mingw32<BR>checking for=20
  ghc... /cygdrive/c/ghc/ghc-5.04.3/bin/ghc<BR>checking version of =
ghc...=20
  5.04.3<BR>checking for nhc... no<BR>checking for nhc98... =
no<BR>checking for=20
  hbc... no<BR>checking whether #! works in shell scripts... =
yes<BR>checking for=20
  perl... /bin/perl<BR>checking if your perl works in shell scripts...=20
  yes<BR>checking for gcc... /cygdrive/c/MinGW/bin/gcc<BR>checking =
whether the C=20
  compiler (/cygdrive/c/MinGW/bin/gcc&nbsp; ) works... yes<BR>checking =
whether=20
  the C compiler (/cygdrive/c/MinGW/bin/gcc&nbsp; ) is=20
  a<BR>cross-compile<BR>r... no<BR>checking whether we are using GNU =
C...=20
  yes<BR>checking whether /cygdrive/c/MinGW/bin/gcc accepts -g...=20
  yes<BR>checking whether you have an ok gcc... yes<BR>checking how to =
run the C=20
  preprocessor... /cygdrive/c/MinGW/bin/gcc -E<BR>checking whether=20
  /cygdrive/c/MinGW/bin/gcc accepts -mno-cygwin... yes<BR>checking for =
ok way to=20
  do context diffs... diff -C 1<BR>checking for find...=20
  /usr/bin/find<BR>checking for bison... no<BR>checking for byacc...=20
  no<BR>checking if it is an OK yacc... checking for what...=20
  :<BR>yacc<BR>checking for flex... flex<BR>checking for a BSD =
compatible=20
  install... /usr/bin/install -c<BR>checking for ar...=20
  /cygdrive/c/MinGW/bin/ar<BR>checking whether ln -s works... =
yes<BR>checking=20
  for sed... /usr/bin/sed<BR>checking for time... =
/usr/bin/time<BR>checking for=20
  gtar... no<BR>checking for tar... /usr/bin/tar<BR>checking for gzip... =

  /usr/bin/gzip<BR>checking for openjade... no<BR>checking for jade...=20
  no<BR>checking for DocBook CATALOG... no<BR>Warning: You will not be =
able to=20
  build the documentation.<BR>checking for happy...=20
  /cygdrive/c/happy/happy-1.13/bin/happy<BR>checking for version of =
happy...=20
  1.13<BR>checking for haddock... no<BR>checking for ANSI C header =
files...=20
  yes<BR>checking for Files.h... no<BR>checking for arpa/inet.h...=20
  no<BR>checking for assert.h... yes<BR>checking for console.h... =
no<BR>checking=20
  for ctype.h... yes<BR>checking for dirent.h... yes<BR>checking for =
errno.h...=20
  yes<BR>checking for fcntl.h... yes<BR>checking for float.h... =
yes<BR>checking=20
  for ftw.h... no<BR>checking for grp.h... no<BR>checking for =
ieee754.h...=20
  no<BR>checking for inttypes.h... yes<BR>checking for limits.h...=20
  yes<BR>checking for malloc.h... yes<BR>checking for memory.h...=20
  yes<BR>checking for nlist.h... no<BR>checking for pascal.h... =
no<BR>checking=20
  for pwd.h... no<BR>checking for sgtty.h... no<BR>checking for =
siginfo.h...=20
  no<BR>checking for signal.h... yes<BR>checking for stat.h... =
no<BR>checking=20
  for stdint.h... yes<BR>checking for stdlib.h... yes<BR>checking for=20
  stddef.h... yes<BR>checking for stdarg.h... yes<BR>checking for =
string.h...=20
  yes<BR>checking for sys/fault.h... no<BR>checking for sys/file.h...=20
  yes<BR>checking for sys/ioctl.h... no<BR>checking for sys/limits.h...=20
  no<BR>checking for sys/mman.h... no<BR>checking for sys/param.h...=20
  yes<BR>checking for sys/procfs.h... no<BR>checking for =
sys/resource.h...=20
  no<BR>checking for sys/signal.h... no<BR>checking for sys/socket.h...=20
  no<BR>checking for netdb.h... no<BR>checking for netinet/in.h...=20
  no<BR>checking for netinet/tcp.h... no<BR>checking for sys/stat.h...=20
  yes<BR>checking for sys/syscall.h... no<BR>checking for sys/time.h...=20
  yes<BR>checking for sys/timeb.h... yes<BR>checking for sys/timers.h... =

  no<BR>checking for sys/times.h... no<BR>checking for sys/types.h...=20
  yes<BR>checking for sys/un.h... no<BR>checking for sys/utsname.h...=20
  no<BR>checking for sys/vadvise.h... no<BR>checking for sys/wait.h...=20
  no<BR>checking for termio.h... no<BR>checking for termios.h... =
no<BR>checking=20
  for time.h... yes<BR>checking for types.h... no<BR>checking for =
unistd.h...=20
  yes<BR>checking for utime.h... no<BR>checking for values.h... =
yes<BR>checking=20
  for vfork.h... no<BR>checking for bfd.h... yes<BR>checking for =
winsock.h...=20
  yes<BR>checking for pthread.h... no<BR>checking for sys/uio.h...=20
  no<BR>checking for readline/readline.h... no<BR>checking for=20
  readline/history.h... no<BR>checking for dos.h... yes<BR>checking for=20
  conio.h... yes<BR>checking for io.h... yes<BR>checking for std.h...=20
  no<BR>checking for windows.h... yes<BR>checking for GL/gl.h... =
yes<BR>checking=20
  whether time.h and sys/time.h may both be included... yes<BR>checking =
for=20
  dlfcn.h... no<BR>checking for dl.h... no<BR>checking for alloc.h...=20
  no<BR>checking for malloc.h... (cached) yes<BR>checking for valloc...=20
  no<BR>checking for regex.h... no<BR>checking whether struct tm is in=20
  sys/time.h or time.h... time.h<BR>checking for tm_zone in struct tm... =

  no<BR>checking for tzname... no<BR>checking timezone... =
yes<BR>checking type=20
  of timezone... time_t<BR>checking altzone... no<BR>checking for =
st_blksize in=20
  struct stat... no<BR>checking whether /cygdrive/c/MinGW/bin/gcc =
supports long=20
  long types... yes<BR>checking for msg_accrights in struct msghdr...=20
  no<BR>checking for msg_control in struct msghdr... no<BR>checking size =
of=20
  char... 1<BR>checking size of double... 8<BR>checking size of float... =

  4<BR>checking size of int... 4<BR>checking size of long... =
4<BR>checking size=20
  of long long... 8<BR>checking size of short... 2<BR>checking size of =
unsigned=20
  char... 1<BR>checking size of unsigned int... 4<BR>checking size of =
unsigned=20
  long... 4<BR>checking size of unsigned long long... 8<BR>checking size =
of=20
  unsigned short... 2<BR>checking size of void *... 4<BR>checking =
alignment of=20
  char... 1<BR>checking alignment of double... 8<BR>checking alignment =
of=20
  float... 4<BR>checking alignment of int... 4<BR>checking alignment of =
long...=20
  4<BR>checking alignment of long long... 8<BR>checking alignment of =
short...=20
  2<BR>checking alignment of unsigned char... 1<BR>checking alignment of =

  unsigned int... 4<BR>checking alignment of unsigned long... =
4<BR>checking=20
  alignment of unsigned long long... 8<BR>checking alignment of unsigned =

  short... 2<BR>checking alignment of void *... 4<BR>checking Haskell =
type for=20
  char... Int8<BR>checking Haskell type for signed char... =
Int8<BR>checking=20
  Haskell type for unsigned char... Word8<BR>checking Haskell type for =
short...=20
  Int16<BR>checking Haskell type for unsigned short... =
Word16<BR>checking=20
  Haskell type for int... Int32<BR>checking Haskell type for unsigned =
int...=20
  Word32<BR>checking Haskell type for long... Int32<BR>checking Haskell =
type for=20
  unsigned long... Word32<BR>checking Haskell type for long long...=20
  Int64<BR>checking Haskell type for unsigned long long... =
Word64<BR>checking=20
  Haskell type for float... Float<BR>checking Haskell type for double... =

  Double<BR>checking Haskell type for ptrdiff_t... Int32<BR>checking =
Haskell=20
  type for size_t... Word32<BR>checking Haskell type for wchar_t...=20
  Word16<BR>checking Haskell type for sig_atomic_t... Int32<BR>checking =
Haskell=20
  type for clock_t... Int32<BR>checking Haskell type for time_t...=20
  Int32<BR>checking Haskell type for dev_t... Word32<BR>checking Haskell =
type=20
  for ino_t... Int16<BR>checking Haskell type for mode_t... =
Word16<BR>checking=20
  Haskell type for off_t... Int32<BR>checking Haskell type for pid_t...=20
  Int32<BR>checking Haskell type for gid_t... NotReallyAType<BR>checking =
Haskell=20
  type for uid_t... NotReallyAType<BR>checking Haskell type for cc_t...=20
  NotReallyAType<BR>checking Haskell type for speed_t...=20
  NotReallyAType<BR>checking Haskell type for tcflag_t...=20
  NotReallyAType<BR>checking Haskell type for nlink_t...=20
  NotReallyAType<BR>checking Haskell type for ssize_t...=20
  NotReallyAType<BR>checking whether we can open files in binary mode... =

  no<BR>checking return type of signal handlers... void<BR>checking for=20
  strcasecmp... yes<BR>checking for _stricmp... yes<BR>checking for =
stricmp...=20
  yes<BR>checking for strcmpi... yes<BR>checking for strcmp... =
yes<BR>checking=20
  for realpath... no<BR>checking for _fullpath... yes<BR>checking for=20
  PBHSetVolSync... no<BR>checking for macsystem... no<BR>checking for =
fgetpos...=20
  yes<BR>checking for fsetpos... yes<BR>checking for fseek... =
yes<BR>checking=20
  for ftell... yes<BR>checking for vsnprintf... yes<BR>checking for=20
  _vsnprintf... yes<BR>checking for snprintf... yes<BR>checking for =
_snprintf...=20
  yes<BR>checking for popen... yes<BR>checking for _popen... =
yes<BR>checking for=20
  pclose... yes<BR>checking for _pclose... yes<BR>checking for access... =

  yes<BR>checking for ftime... yes<BR>checking for getclock... =
no<BR>checking=20
  for getpagesize... yes<BR>checking for getrusage... no<BR>checking for =

  gettimeofday... no<BR>checking for mktime... yes<BR>checking for =
mprotect...=20
  yes<BR>checking for readlink... no<BR>checking for setitimer... =
no<BR>checking=20
  for stat... yes<BR>checking for lstat... no<BR>checking for symlink... =

  no<BR>checking for sysconf... no<BR>checking for timelocal... =
no<BR>checking=20
  for times... no<BR>checking for vadvise... no<BR>checking for vfork... =

  no<BR>checking for localtime_r... no<BR>checking for gmtime_r...=20
  no<BR>checking for readdir_r... no<BR>checking for __gmpz_fdiv_qr in =
-lgmp...=20
  no<BR>checking for __gmpz_fdiv_qr in -lgmp3... no<BR>checking for =
closedir in=20
  -lmingwex... yes<BR>checking for GNU regex in libc... no<BR>checking =
for=20
  xmalloc in -liberty... yes<BR>checking for bfd_init in -lbfd...=20
  yes<BR>checking for tputs in -lncurses... no<BR>checking for tputs in=20
  -ltermcap... no<BR>checking for tputs in -lcurses... no<BR>checking =
for main=20
  in -lm... yes<BR>checking for library containing glEnd... =
no<BR>checking for=20
  library containing gluNewQuadric... no<BR>checking for library =
containing=20
  glXWaitX... no<BR>checking for library containing glutMainLoop...=20
  no<BR>checking OpenGL flags...<BR>checking OpenGL libs...&nbsp;&nbsp; =
-lX11=20
  -lXext -lXmu -lXt -lXi&nbsp; -lm<BR>dl: not found<BR>checking for =
dlopen in=20
  -ldl... no<BR>checking for dlopen... no<BR>checking for RTLD_NEXT from =

  dlfcn.h... no<BR>checking for RTLD_LOCAL from dlfcn.h... =
no<BR>checking for=20
  function_atan... yes<BR>checking for in_addr_t in netinet/in.h...=20
  no<BR>checking for gtk-config... no<BR>checking for gtk12-config...=20
  no<BR>configure: warning: GTK+ not usable; need at least version=20
  1.2<BR>checking for working alloca.h... no<BR>checking for alloca...=20
  yes<BR>checking for working const... yes<BR>checking prototypes...=20
  yes<BR>checking whether byte ordering is bigendian... no<BR>checking =
for nlist=20
  in -lelf... no<BR>checking leading underscore in symbol names...=20
  yes<BR>checking for end of text section marker... etext<BR>checking =
for end of=20
  text section marker declaration... etext asm("etext")<BR>checking for =
end of=20
  data section marker... end<BR>checking for end of data section marker=20
  declaration... end<BR>checking if code section appears before data...=20
  yes<BR>checking for ld... /cygdrive/c/MinGW/bin/ld<BR>checking whether =
ld=20
  understands -x... yes<BR>updating cache ./config.cache<BR>creating=20
  ./config.status<BR>creating mk/config.mk<BR>creating=20
  mk/config.h<BR>configuring in ghc<BR>running =
/bin/sh<BR>./configure&nbsp;=20
  --host=3Di386-unknown-mingw32 =
--with-gcc=3D/cygdrive/c/<BR>MinGW/bin/gcc=20
  --cache-file=3D.././config.cache --srcdir=3D.<BR>loading cache=20
  .././config.cache<BR>updating cache .././config.cache<BR>creating=20
  ./config.status<BR>creating ghc.spec<BR>creating =
docs/index.html<BR><BR>---=20
  snap ---<BR><BR>10. Entered "make". Some warnings were given=20
  frequently:<BR><BR>--- snip ---<BR>Warning: foreign declaration uses=20
  deprecated non-standard syntax<BR>--- snap ---<BR>and<BR>--- snip=20
  ---<BR>Warning: .type pseudo-op used outside of .def/.endef =
ignored.<BR>---=20
  snap ---<BR>and<BR>--- snip ---<BR>Warning: rest of line ignored; =
first=20
  ignored character is `_'<BR>--- snap ---<BR><BR>Finally there was an=20
  error:<BR><BR>--- snip ---<BR>[...]<BR><BR>/bin/sh ./libtool =
--mode=3Dlink=20
  /cygdrive/c/MinGW/bin/gcc&nbsp; -g -O2&nbsp;&nbsp; -o<BR>libgmp.la =
-<BR>rpath=20
  /usr/local/lib -version-info 4:1:1 assert.lo compat.lo=20
  errno.lo<BR>memory.lo<BR>mp_set_fns.lo mp_clz_tab.lo mp_minv_tab.lo =
rand.lo=20
  randclr.lo randlc.lo<BR>randlc2x<BR>.lo randraw.lo randsd.lo =
randsdui.lo=20
  version.lo stack-alloc.lo mp_bpl.lo<BR>extract<BR>-dbl.lo =
insert-dbl.lo&nbsp;=20
  mpz/abs.lo mpz/add.lo mpz/add_ui.lo mpz/addmul_ui.lo<BR>mpz/<BR>and.lo =

  mpz/array_init.lo mpz/bin_ui.lo mpz/bin_uiui.lo=20
  mpz/cdiv_q.lo<BR>mpz/cdiv_q_<BR>ui.lo mpz/cdiv_qr.lo mpz/cdiv_qr_ui.lo =

  mpz/cdiv_r.lo mpz/cdiv_r_ui.lo<BR>mpz/cdiv_u<BR>i.lo mpz/clear.lo=20
  mpz/clrbit.lo mpz/cmp.lo mpz/cmp_si.lo =
mpz/cmp_ui.lo<BR>mpz/cmpab<BR>s.lo=20
  mpz/cmpabs_ui.lo mpz/com.lo mpz/divexact.lo mpz/dump.lo=20
  mpz/fac_ui.lo<BR>mpz/f<BR>div_q.lo mpz/fdiv_q_2exp.lo mpz/fdiv_q_ui.lo =

  mpz/fdiv_qr.lo<BR>mpz/fdiv_qr_ui.lo mp<BR>z/fdiv_r.lo =
mpz/fdiv_r_2exp.lo=20
  mpz/fdiv_r_ui.lo mpz/fdiv_ui.lo =
mpz/fib_ui.lo<BR>mpz<BR>/fits_sint_p.lo=20
  mpz/fits_slong_p.lo mpz/fits_sshort_p.lo=20
  mpz/fits_uint_p.lo<BR>mpz/<BR>fits_ulong_p.lo mpz/fits_ushort_p.lo =
mpz/gcd.lo=20
  mpz/gcd_ui.lo mpz/gcdext.lo<BR>mpz/<BR>get_d.lo mpz/get_si.lo =
mpz/get_str.lo=20
  mpz/get_ui.lo mpz/getlimbn.lo<BR>mpz/hamdist.<BR>lo mpz/init.lo =
mpz/inp_raw.lo=20
  mpz/inp_str.lo mpz/invert.lo mpz/ior.lo<BR>mpz/iset.l<BR>o =
mpz/iset_d.lo=20
  mpz/iset_si.lo mpz/iset_str.lo mpz/iset_ui.lo=20
  mpz/jacobi.lo<BR>mpz/<BR>kronsz.lo mpz/kronuz.lo mpz/kronzs.lo =
mpz/kronzu.lo=20
  mpz/lcm.lo<BR>mpz/legendre.lo m<BR>pz/mod.lo mpz/mul.lo =
mpz/mul_2exp.lo=20
  mpz/mul_si.lo mpz/mul_ui.lo mpz/neg.lo<BR>mpz/<BR>nextprime.lo =
mpz/out_raw.lo=20
  mpz/out_str.lo mpz/perfpow.lo mpz/perfsqr.lo<BR>mpz/pop<BR>count.lo=20
  mpz/pow_ui.lo mpz/powm.lo mpz/powm_ui.lo=20
  mpz/pprime_p.lo<BR>mpz/random.lo<BR>mpz/random2.lo mpz/realloc.lo=20
  mpz/remove.lo mpz/root.lo mpz/rrandomb.lo<BR>mpz/scan<BR>0.lo =
mpz/scan1.lo=20
  mpz/set.lo mpz/set_d.lo mpz/set_f.lo mpz/set_q.lo<BR>mpz/set_si.l<BR>o =

  mpz/set_str.lo mpz/set_ui.lo mpz/setbit.lo mpz/size.lo=20
  mpz/sizeinbase.lo<BR>mpz/s<BR>qrt.lo mpz/sqrtrem.lo mpz/sub.lo =
mpz/sub_ui.lo=20
  mpz/swap.lo mpz/tdiv_ui.lo<BR>mpz/td<BR>iv_q.lo mpz/tdiv_q_2exp.lo=20
  mpz/tdiv_q_ui.lo mpz/tdiv_qr.lo mpz/tdiv_qr_ui.lo<BR>mpz<BR>/tdiv_r.lo =

  mpz/tdiv_r_2exp.lo mpz/tdiv_r_ui.lo mpz/tstbit.lo<BR>mpz/ui_pow_ui.lo=20
  mp<BR>z/urandomb.lo mpz/urandomm.lo mpz/xor.lo mpn/mp_bases.lo=20
  mpn/udiv.lo<BR>mpn/umul.lo<BR>&nbsp;mpn/inlines.lo mpn/add_n.lo =
mpn/sub_n.lo=20
  mpn/mul_1.lo mpn/addmul_1.lo<BR>mpn/submu<BR>l_1.lo mpn/lshift.lo=20
  mpn/rshift.lo mpn/diveby3.lo=20
  mpn/divrem.lo<BR>mpn/divrem_1.lo<BR>mpn/divrem_2.lo mpn/mod_1.lo=20
  mpn/mod_1_rs.lo mpn/pre_mod_1.lo mpn/dump.lo<BR>mpn/mu<BR>l.lo =
mpn/mul_fft.lo=20
  mpn/mul_n.lo mpn/mul_basecase.lo =
mpn/sqr_basecase.lo<BR>mpn/ran<BR>dom.lo=20
  mpn/random2.lo mpn/sqrtrem.lo mpn/get_str.lo=20
  mpn/set_str.lo<BR>mpn/scan0.lo<BR>mpn/scan1.lo mpn/popcount.lo =
mpn/hamdist.lo=20
  mpn/cmp.lo mpn/perfsqr.lo<BR>mpn/bdivmo<BR>d.lo mpn/gcd_1.lo =
mpn/gcd.lo=20
  mpn/gcdext.lo mpn/tdiv_qr.lo =
mpn/bz_divrem_n.lo<BR>mpn<BR>/sb_divrem_mn.lo=20
  mpn/jacbase.lo mpn/copyi.lo mpn/copyd.lo<BR>mkdir .libs<BR>libtool: =
link:=20
  warning: undefined symbols not allowed in<BR>i386-unknown-mingw32 =
sh<BR>ared=20
  libraries<BR>rm -fr .libs/libgmp.la .libs/libgmp.* =
.libs/libgmp.*<BR>ar cru=20
  .libs/libgmp.a&nbsp; assert.o compat.o errno.o memory.o=20
  mp_set_fns.o<BR>mp_clz_ta<BR>b.o mp_minv_tab.o rand.o randclr.o =
randlc.o=20
  randlc2x.o randraw.o randsd.o<BR>randsd<BR>ui.o version.o =
stack-alloc.o=20
  mp_bpl.o extract-dbl.o insert-dbl.o mpz/abs.o<BR>mpz/a<BR>dd.o =
mpz/add_ui.o=20
  mpz/addmul_ui.o mpz/and.o mpz/array_init.o =
mpz/bin_ui.o<BR>mpz/bi<BR>n_uiui.o=20
  mpz/cdiv_q.o mpz/cdiv_q_ui.o mpz/cdiv_qr.o=20
  mpz/cdiv_qr_ui.o<BR>mpz/cdiv_r.<BR>o mpz/cdiv_r_ui.o mpz/cdiv_ui.o =
mpz/clear.o=20
  mpz/clrbit.o mpz/cmp.o<BR>mpz/cmp_si.o<BR>mpz/cmp_ui.o mpz/cmpabs.o=20
  mpz/cmpabs_ui.o mpz/com.o mpz/divexact.o<BR>mpz/dump.o =
mp<BR>z/fac_ui.o=20
  mpz/fdiv_q.o mpz/fdiv_q_2exp.o mpz/fdiv_q_ui.o=20
  mpz/fdiv_qr.o<BR>mpz/fdiv<BR>_qr_ui.o mpz/fdiv_r.o mpz/fdiv_r_2exp.o=20
  mpz/fdiv_r_ui.o mpz/fdiv_ui.o<BR>mpz/fib_ui<BR>.o mpz/fits_sint_p.o=20
  mpz/fits_slong_p.o mpz/fits_sshort_p.o<BR>mpz/fits_uint_p.o=20
  mp<BR>z/fits_ulong_p.o mpz/fits_ushort_p.o mpz/gcd.o mpz/gcd_ui.o=20
  mpz/gcdext.o<BR>mpz/get<BR>_d.o mpz/get_si.o mpz/get_str.o =
mpz/get_ui.o=20
  mpz/getlimbn.o mpz/hamdist.o<BR>mpz/in<BR>it.o mpz/inp_raw.o =
mpz/inp_str.o=20
  mpz/invert.o mpz/ior.o mpz/iset.o<BR>mpz/iset_d.o<BR>mpz/iset_si.o=20
  mpz/iset_str.o mpz/iset_ui.o mpz/jacobi.o =
mpz/kronsz.o<BR>mpz/kronuz.<BR>o=20
  mpz/kronzs.o mpz/kronzu.o mpz/lcm.o mpz/legendre.o mpz/mod.o=20
  mpz/mul.o<BR>mpz/mul<BR>_2exp.o mpz/mul_si.o mpz/mul_ui.o mpz/neg.o=20
  mpz/nextprime.o mpz/out_raw.o<BR>mpz/ou<BR>t_str.o mpz/perfpow.o =
mpz/perfsqr.o=20
  mpz/popcount.o mpz/pow_ui.o mpz/powm.o<BR>mpz/p<BR>owm_ui.o =
mpz/pprime_p.o=20
  mpz/random.o mpz/random2.o mpz/realloc.o<BR>mpz/remove.o =
mp<BR>z/root.o=20
  mpz/rrandomb.o mpz/scan0.o mpz/scan1.o mpz/set.o=20
  mpz/set_d.o<BR>mpz/set_f.<BR>o mpz/set_q.o mpz/set_si.o mpz/set_str.o=20
  mpz/set_ui.o mpz/setbit.o<BR>mpz/size.o mp<BR>z/sizeinbase.o =
mpz/sqrt.o=20
  mpz/sqrtrem.o mpz/sub.o mpz/sub_ui.o mpz/swap.o<BR>mpz/td<BR>iv_ui.o=20
  mpz/tdiv_q.o mpz/tdiv_q_2exp.o mpz/tdiv_q_ui.o=20
  mpz/tdiv_qr.o<BR>mpz/tdiv_qr<BR>_ui.o mpz/tdiv_r.o mpz/tdiv_r_2exp.o=20
  mpz/tdiv_r_ui.o mpz/tstbit.o<BR>mpz/ui_pow_ui.<BR>o mpz/urandomb.o=20
  mpz/urandomm.o mpz/xor.o mpn/mp_bases.o mpn/udiv.o<BR>mpn/umul.o=20
  m<BR>pn/inlines.o mpn/add_n.o mpn/sub_n.o mpn/mul_1.o=20
  mpn/addmul_1.o<BR>mpn/submul_1.o m<BR>pn/lshift.o mpn/rshift.o =
mpn/diveby3.o=20
  mpn/divrem.o mpn/divrem_1.o<BR>mpn/divrem_2.<BR>o mpn/mod_1.o =
mpn/mod_1_rs.o=20
  mpn/pre_mod_1.o mpn/dump.o mpn/mul.o<BR>mpn/mul_fft.o<BR>mpn/mul_n.o=20
  mpn/mul_basecase.o mpn/sqr_basecase.o mpn/random.o=20
  mpn/random2.o<BR>mpn<BR>/sqrtrem.o mpn/get_str.o mpn/set_str.o =
mpn/scan0.o=20
  mpn/scan1.o<BR>mpn/popcount.o mp<BR>n/hamdist.o mpn/cmp.o =
mpn/perfsqr.o=20
  mpn/bdivmod.o mpn/gcd_1.o mpn/gcd.o<BR>mpn/gcde<BR>xt.o mpn/tdiv_qr.o=20
  mpn/bz_divrem_n.o mpn/sb_divrem_mn.o mpn/jacbase.o<BR>mpn/copyi.<BR>o=20
  mpn/copyd.o<BR>creating libgmp.la<BR>(cd .libs &amp;&amp; rm -f =
libgmp.la=20
  &amp;&amp; ln -s ../libgmp.la libgmp.la)<BR>make[5]: Leaving directory =

  `/cygdrive/c/build/ghc/ghc/rts/gmp'<BR>make[4]: Leaving directory=20
  =
`/cygdrive/c/build/ghc/ghc/rts/gmp'<BR>../utils/ghc-pkg/ghc-pkg-inplace=20
  --update-package &lt;rts.conf.inplace<BR>Reading package info from =
stdin...=20
  done.<BR>Expanding embedded variables...done.<BR>warning: can't find =
GHCi lib=20
  `HSrts.o'<BR>Saving old package config file... done.<BR>Writing new =
package=20
  config file... done.<BR>../utils/ghc-pkg/ghc-pkg-inplace&nbsp; -f=20
  ../driver/package.conf=20
  --update-package<BR>&lt;rt<BR>s.conf.installed<BR>Reading package info =
from=20
  stdin... done.<BR>Expanding embedded variables...done.<BR>warning: =
can't find=20
  GHCi lib `HSrts.o'<BR>Saving old package config file... =
done.<BR>Writing new=20
  package config file... done.<BR>../../ghc/compiler/ghc-inplace=20
  -optc-mno-cygwin -optc-O -optc-Wall -optc-W =
-<BR>optc<BR>-Wstrict-prototypes=20
  -optc-Wmissing-prototypes -optc-Wmissing-declarations =
-o<BR>ptc-<BR>Winline=20
  -optc-Waggregate-return -optc-Wbad-function-cast -optc-Wcast-align=20
  -<BR>optc<BR>-I../includes -optc-I. -optc-Iparallel =
-optc-DCOMPILING_RTS=20
  -optc-fomit-fram<BR>e-po<BR>inter -O2 -static -package-name rts -O=20
  -Rghc-timing&nbsp;&nbsp;&nbsp;&nbsp; -c Adjustor.c=20
  -o<BR>Adjusto<BR>r.o<BR>&lt;&lt;ghc: 629196 bytes, 2 GCs, 19832/19832 =
avg/max=20
  bytes residency (1 samples),<BR>5M<BR>in use, 0.01 INIT (0.02 =
elapsed), 0.00=20
  MUT (0.02 elapsed), 0.02 GC (0.03<BR>elapsed<BR>) =
:ghc&gt;&gt;<BR>make[2]: ***=20
  [Adjustor.o] Error 1<BR>make[1]: *** [all] Error 1<BR>make[1]: Leaving =

  directory `/cygdrive/c/build/ghc/ghc'<BR>make: *** [all] Error=20
  1<BR><BR><BR>--- snap ---<BR><BR><BR>Thanks very much for your =
suggestions in=20
  advance<BR><BR>Bye,<BR>Johannes<BR><A=20
  href=3D"mailto:johago@web.de">johago@web.de</A><BR><BR><BR>
  <DIV><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_00B4_01C31DEC.2F835790--