This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cygwin v1.1.1 + gcc snapshots/CVS building tip


Many of the Cygwin v1.1.0 users have had trouble bootstrapping GCC CVS
(or snapshots), where it hangs and/or crashes during garbage collect 
when using stage1 compiler, and the problem turns out to be a bug in 
Cygwin v1.1.0 mmap/munmap implementation. The solution is one of the 
following:

1. Update Cygwin DLL from snapshots (http://sourceware.cygnus.com/cygwin/
has details). Snapshots newer than 2000-05-11 will work.

  $ [get GCC say in /usr/local/src/gcc-2.96 via CVS or snapshot distro]
  $ mkdir /tmp/gcc-BUILD
  $ cd /tmp/gcc-BUILD
  $ /usr/local/src/gcc-2.96/configure --prefix=/usr -v 
  $ make bootstrap
  [ or bootstrap-lean]
  $ make prefix=/usr/local/gcc-2.96 install

2. Configure using --with-gc=simple option to tell gcc not to use the
faster GC. This is much much slower, and not recommended.

  $ [get GCC say in /usr/local/src/gcc-2.96 via CVS or snapshot distro]
  $ mkdir /tmp/gcc-BUILD
  $ cd /tmp/gcc-BUILD
  $ /usr/local/src/gcc-2.96/configure --prefix=/usr -v --with-gc=simple
  $ make bootstrap
  [ or bootstrap-lean]
  $ make prefix=/usr/local/gcc-2.96 install

Note the --prefix=/usr -- it's needed due to the placement of system
includes and libraries on Cygwin (/usr/i686-pc-cygwin/{include,lib}
instead of the usual /usr/{include/lib}). You should of course not
install to /usr, but rather pick a different place at install time
as I've done above (`make prefix=/usr/local/gcc-2.96 install').

Regards,
Mumit



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]