On 1/24/06, Rick Rankin <rrankin1424-xemacs(a)yahoo.com> wrote:
 ----- Original Message ----
 From: Vin Shelton <acs(a)xemacs.org>
 To: Rick Rankin <rrankin1424-xemacs(a)yahoo.com>
 Cc: xemacs-patches(a)xemacs.org; Dr. Volker Zell <dr.volker.zell(a)oracle.com>
 Sent: Tuesday, January 24, 2006 10:08:33 AM
 Subject: Re: [PATCH 21.4] Xpm no-X builds fail on current cygwin
 > On 1/24/06, Rick Rankin <rrankin1424-xemacs(a)yahoo.com> wrote:
 > > > > Thanks for following up.  I had even erased and re-installed cygwin
to
 > > > > try to make sure it wasn't something in my setup.  Attached is
the
 > > > > output of 'cygcheck -svr'.
 > > >
 > > > Hmmm.  I wonder if it's because my cygwin root is e:\cygwin.  I just
 > > > installed cygwin's gcc onto another machine here (with cygroot =
 > > > c:\cygwin) and 'gcc -print-file-name=libc.a' yielded
 > > > '/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libc.a'.
 > > >
 > > Probably not. On the machine where I build XEmacs all the time,
 > > cygwin in installed inD:\cygwin and I still get '/usr/lib/...' out
 > > of 'gcc -print-file-name=libc.a'.
 > >
 > > Nothing jumps out at me from your cygcheck output. In particular,
 > > I was looking at your mount table, but I don't see anything obviously
wrong
 > > with it. What does 'gcc -v' tell you?
 >
 > gcc -v
 > Reading specs from /bin/../lib/gcc/i686-pc-cygwin/3.4.4/specs
 > Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose
 > --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
 > --libexecdir=/usr/lib --mandir=/usr/share/man
 > --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc
 > --enable-nls --without-included-gettext
 > --enable-version-specific-runtime-libs --without-x
 > --enable-libgcj --disable-java-awt --with-system-zlib
 > --enable-interpreter --disable-libgcj-debug --enable-threads=posix
 > --enable-java-gc=boehm --disable-win32-registry
 > --enable-sjlj-exceptions --enable-hash-synchronization
 > --enable-libstdcxx-debug : (reconfigured)
 > Thread model: posix
 > gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
 Interesting. Here's what I get:
 $ gcc -v
 Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
 Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc --enable-nls --without-included-gettext
--enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt
--with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix
--enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions
--enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured)
 Thread model: posix
 gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
 Notice the 'Reading specs' line. Right now, I have no idea what would cause gcc
to get its path munged like this. I can't help but wonder if somehow your mount table
has something wrong, although I didn't see anything in your cygcheck output.
 The only thing I can think of to try would be to completely recreate your mount table.
   * run 'mount -m >remount.bat' from bash
   * exit all cygwin-related processes
   * blow away your mount table by using regedit to delete
     'HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions'
   * start cmd.exe and run 'remount.bat'
   * reboot (the Windows sysadmin mantra ;-)
 It wouldn't hurt anything, but based on what *I* see in your cygcheck output, it
shouldn't change anything, either. I guess the next step would be to ask on the cygwin
list. 
Aha!  It turns out it matters whether you run /bin/gcc or /usr/bin/gcc -
/usr/bin/gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose
--prefix=/usr --exec-
prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/s
hare/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc --ena
ble-nls --without-included-gettext
--enable-version-specific-runtime-libs --without-x
 --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable
-libgcj-debug --enable-threads=posix --enable-java-gc=boehm
--disable-win32-registry
--enable-sjlj-exceptions --enable-hash-synchronization
--enable-libstdcxx-debug: (re
configured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
/bin/gcc -v
Reading specs from /bin/../lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose
--prefix=/usr --exec-
prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/s
hare/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc --ena
ble-nls --without-included-gettext
--enable-version-specific-runtime-libs --without-x
 --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable
-libgcj-debug --enable-threads=posix --enable-java-gc=boehm
--disable-win32-registry
--enable-sjlj-exceptions --enable-hash-synchronization
--enable-libstdcxx-debug: (re
configured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
I think my patch is good, because it supports both /bin/gcc and
/usr/bin/gcc:-)
Rick and Volker - what do you think?
  - Vin