The problem seems to be with the pread calls in gtags. Here is a strace snip of the stuff:
225 1989051 [main] gtags 1812 fhandler_base::lseek: lseek (/home/nalla/livehttpheaders/GPATH, 0, 1) 77 1989128 [main] gtags 1812 fhandler_base::lseek: setting file pointer to 0 (high), 0 (low) 79 1989207 [main] gtags 1812 fhandler_base::lseek: lseek (/home/nalla/livehttpheaders/GPATH, 0, 0) 77 1989284 [main] gtags 1812 fhandler_base::lseek: setting file pointer to 0 (high), 0 (low) 89 1989373 [main] gtags 1812 fhandler_base::read: returning 8192, binary mode 77 1989450 [main] gtags 1812 fhandler_base::lseek: lseek (/home/nalla/livehttpheaders/GPATH, 24, 0) 76 1989526 [main] gtags 1812 fhandler_base::lseek: setting file pointer to 0 (high), 24 (low) 77 1989603 [main] gtags 1812 fhandler_disk_file::pread: -1 = pread (0x66671C, 8192, 0) 78 1989681 [main] gtags 1812 pread: -1 = pread (4, 0x66671C, 8192, 0), errno 0 150 1989831 [main] gtags 1812 close: close (4) 77 1989908 [main] gtags 1812 fhandler_base::close: closing '/home/nalla/livehttpheaders/GPATH' handle 0x2EC 354 1990262 [main] gtags 1812 close: 0 = close (4) 518 1990780 [main] gtags 1812 sig_send: sendsig 0x2FC, pid 1812, signal -34, its_me 1 Compile GNU Global after disabling pread and pwrite calls. I did it by removing the #define lines for pread and pwrite from the config.h file the configure script generates. - Can anyone tell me a better way of doing it from the CLI? - gtags will work fine after that. HTH. Ramakrishna Andrew Thomson wrote: > > I'm trying to run global in Windows XP using Cygwin. > > Repro steps: > Install cygwin with all packages enabled > Download global source tarball > unzip, ./configure, make, make install > go to source dir > gtags > > When I run gtags I always get the message "gtags: cannot create GPATH." > The program generates GPATH, GRTAGS, and GTAGS. > > I have found one other person with the same problem at > http://news.gmane.org/gmane.comp.gnu.global.general > > I have traced the program in gdb to see when it bails, here is the stack > trace: > > #0 die (s=0x41c0f7 "cannot create GPATH.") at die.c:63 > #1 0x00404eb7 in gtags_open (dbpath=0x22cb80 "/cygdrive/e/Documents and > Settings/t-andtho/My Documents/test", root=0x22ca70 > "/cygdrive/e/Documents and Settings/t-andtho/My Documents/test", db=2, > mode=1) at gtagsop.c:209 > #2 0x00401f4d in createtags (dbpath=0x22cb80 "/cygdrive/e/Documents and > Settings/t-andtho/My Documents/test", root=0x22ca70 > "/cygdrive/e/Documents and Settings/t-andtho/My Documents/test", db=2) > at gtags.c:801 > #3 0x004029e9 in main (argc=0, argv=0x6b238c) at gtags.c:414 > > > Just thought you guys should know. I'll continue to browse the source > and try to get more specifics. > > --Andrew Thomson > > > _______________________________________________ > Bug-global mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/bug-global > > -- View this message in context: http://www.nabble.com/global-gtags-file-location-error-in-cygwin-tf2088359.html#a5867852 Sent from the Gnu - Global - Bugs forum at Nabble.com. _______________________________________________ Bug-global mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-global
