2439 2864191 [main] callgcc 4544 find_exec: find_exec (gcc) 143 2864334 [main] callgcc 4544 find_exec: PATH=\\scicily\altdev\t;h:\bin\i686-pc-cygwin;h:\bin;h:\;h:\ref\util-5.0\bin\i686-pc-cygwin;h:\ref\gcm-3.1\ bin\i686-pc-cygwin;\\scicily\altdev\ref\gcc-3\bin\i686-pc-cygwin;\\scicily\altdev\ref\gcm-3.1\bin\i686-pc-cygwin;c:\cygwin\usr\local\bin;C:\cygwin\bin;c :\cygwin\bin;c:\cygwin\usr\X11R6\bin;c:\cygwin\usr\sbin;c:\WINNT\system32;h:\WINDOWS;.;\\scicily\altdev\bin\i686-pc-cygwin;\\scicily\altdev\bin 105 2864439 [main] callgcc 4544 find_exec: trying \\scicily\altdev\t\gcc 276 2864715 [main] callgcc 4544 perhaps_suffix: prog '\\scicily\altdev\t\gcc' 230 2864945 [main] callgcc 4544 normalize_posix_path: src \\scicily\altdev\t\gcc 98 2865043 [main] callgcc 4544 normalize_win32_path: \\scicily\altdev\t\gcc = normalize_win32_path (\\scicily\altdev\t\gcc) 89 2865132 [main] callgcc 4544 mount_info::conv_to_win32_path: conv_to_win32_path (\\scicily\altdev\t\gcc) 85 2865217 [main] callgcc 4544 mount_info::conv_to_win32_path: \\scicily\altdev\t\gcc already win32 83 2865300 [main] callgcc 4544 normalize_win32_path: \\scicily\altdev\t\gcc = normalize_win32_path (\\scicily\altdev\t\gcc) 88 2865388 [main] callgcc 4544 set_flags: flags: binary (0x2) 82 2865470 [main] callgcc 4544 mount_info::conv_to_win32_path: src_path \\scicily\altdev\t\gcc, dst \\scicily\altdev\t\gcc, flags 0x2, rc 0 4087 2869557 [main] callgcc 4544 symlink_info::check: GetFileAttributes (\\scicily\altdev\t\gcc.exe) failed 232 2869789 [main] callgcc 4544 geterrno_from_win_error: windows error 2 == errno 2 923 2870712 [main] callgcc 4544 symlink_info::check: GetFileAttributes (\\scicily\altdev\t\gcc) failed 188 2870900 [main] callgcc 4544 geterrno_from_win_error: windows error 2 == errno 2 4772 2875672 [main] callgcc 4544 symlink_info::check: 12 = symlink.check (\\scicily\altdev\t\gcc.exe.lnk, 0x22F520) (0x1000001) The problem can be seen on the next line: src should be '\\scicily\altdev\t\../t/foo.exe' ... 221 2875893 [main] callgcc 4544 normalize_posix_path: src ../t/foo.exe and we should not need to get the current working directory 91 2875984 [main] callgcc 4544 cwdstuff::get: posix /home/danielv 86 2876070 [main] callgcc 4544 cwdstuff::get: (/home/danielv) = cwdstuff::get (0x22F860, 260, 1, 0), errno 0 leading to this nonsense: 86 2876156 [main] callgcc 4544 normalize_posix_path: /home/t/foo.exe = normalize_posix_path (../t/foo.exe) 106 2876262 [main] callgcc 4544 mount_info::conv_to_win32_path: conv_to_win32_path (/home/t/foo.exe) 100 2876362 [main] callgcc 4544 set_flags: flags: binary (0x2) 84 2876446 [main] callgcc 4544 mount_info::conv_to_win32_path: src_path /home/t/foo.exe, dst c:\cygwin\home\t\foo.exe, flags 0xA, rc 0 588 2877034 [main] callgcc 4544 symlink_info::check: GetFileAttributes (c:\cygwin\home\t\foo.exe) failed 153 2877187 [main] callgcc 4544 geterrno_from_win_error: windows error 3 == errno 2 301 2877488 [main] callgcc 4544 symlink_info::check: GetFileAttributes (c:\cygwin\home\t\foo.exe.lnk) failed 117 2877605 [main] callgcc 4544 geterrno_from_win_error: windows error 3 == errno 2 85 2877690 [main] callgcc 4544 symlink_info::check: 0 = symlink.check (c:\cygwin\home\t\foo.exe, 0x22F520) (0xA) 89 2877779 [main] callgcc 4544 mount_info::conv_to_win32_path: conv_to_win32_path (/home/t) 1993 2879772 [main] callgcc 4544 set_flags: flags: binary (0x2) 129 2879901 [main] callgcc 4544 mount_info::conv_to_win32_path: src_path /home/t, dst c:\cygwin\home\t, flags 0xA, rc 0 317 2880218 [main] callgcc 4544 symlink_info::check: GetFileAttributes (c:\cygwin\home\t) failed 119 2880337 [main] callgcc 4544 geterrno_from_win_error: windows error 2 == errno 2 193 2880530 [main] callgcc 4544 symlink_info::check: GetFileAttributes (c:\cygwin\home\t.lnk) failed 111 2880641 [main] callgcc 4544 geterrno_from_win_error: windows error 2 == errno 2 85 2880726 [main] callgcc 4544 symlink_info::check: 0 = symlink.check (c:\cygwin\home\t, 0x22F520) (0xA) 86 2880812 [main] callgcc 4544 mount_info::conv_to_win32_path: conv_to_win32_path (/home) 93 2880905 [main] callgcc 4544 set_flags: flags: binary (0x2) 83 2880988 [main] callgcc 4544 mount_info::conv_to_win32_path: src_path /home, dst c:\cygwin\home, flags 0xA, rc 0 151 2881139 [main] callgcc 4544 symlink_info::check: not a symlink 94 2881233 [main] callgcc 4544 symlink_info::check: 0 = symlink.check (c:\cygwin\home, 0x22F520) (0xA) 87 2881320 [main] callgcc 4544 path_conv::check: root_dir(c:\), this->path(c:\cygwin\home\t\foo.exe), set_has_acls(8) 87 2881407 [main] callgcc 4544 perhaps_suffix: buf c:\cygwin\home\t\foo.exe, suffix found '(null)' 88 2881495 [main] callgcc 4544 find_exec: trying h:\bin\i686-pc-cygwin\gcc