{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/2712","repository_url":"https://api.github.com/repos/Microsoft/WSL","labels_url":"https://api.github.com/repos/Microsoft/WSL/issues/2712/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WSL/issues/2712/comments","events_url":"https://api.github.com/repos/Microsoft/WSL/issues/2712/events","html_url":"https://github.com/Microsoft/WSL/issues/2712","id":278387935,"number":2712,"title":"DrvFs: compiler reports file missing, but it is present","user":{"login":"Warblefly","id":9024115,"avatar_url":"https://avatars3.githubusercontent.com/u/9024115?v=4","gravatar_id":"","url":"https://api.github.com/users/Warblefly","html_url":"https://github.com/Warblefly","followers_url":"https://api.github.com/users/Warblefly/followers","following_url":"https://api.github.com/users/Warblefly/following{/other_user}","gists_url":"https://api.github.com/users/Warblefly/gists{/gist_id}","starred_url":"https://api.github.com/users/Warblefly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Warblefly/subscriptions","organizations_url":"https://api.github.com/users/Warblefly/orgs","repos_url":"https://api.github.com/users/Warblefly/repos","events_url":"https://api.github.com/users/Warblefly/events{/privacy}","received_events_url":"https://api.github.com/users/Warblefly/received_events","type":"User","site_admin":false},"labels":[{"id":353748836,"url":"https://api.github.com/repos/Microsoft/WSL/labels/bug","name":"bug","color":"ee0701","default":true},{"id":490442079,"url":"https://api.github.com/repos/Microsoft/WSL/labels/fixedininsiderbuilds","name":"fixedininsiderbuilds","color":"a5d5ff","default":false}],"state":"open","locked":false,"assignee":{"login":"SvenGroot","id":18357361,"avatar_url":"https://avatars3.githubusercontent.com/u/18357361?v=4","gravatar_id":"","url":"https://api.github.com/users/SvenGroot","html_url":"https://github.com/SvenGroot","followers_url":"https://api.github.com/users/SvenGroot/followers","following_url":"https://api.github.com/users/SvenGroot/following{/other_user}","gists_url":"https://api.github.com/users/SvenGroot/gists{/gist_id}","starred_url":"https://api.github.com/users/SvenGroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvenGroot/subscriptions","organizations_url":"https://api.github.com/users/SvenGroot/orgs","repos_url":"https://api.github.com/users/SvenGroot/repos","events_url":"https://api.github.com/users/SvenGroot/events{/privacy}","received_events_url":"https://api.github.com/users/SvenGroot/received_events","type":"User","site_admin":false},"assignees":[{"login":"SvenGroot","id":18357361,"avatar_url":"https://avatars3.githubusercontent.com/u/18357361?v=4","gravatar_id":"","url":"https://api.github.com/users/SvenGroot","html_url":"https://github.com/SvenGroot","followers_url":"https://api.github.com/users/SvenGroot/followers","following_url":"https://api.github.com/users/SvenGroot/following{/other_user}","gists_url":"https://api.github.com/users/SvenGroot/gists{/gist_id}","starred_url":"https://api.github.com/users/SvenGroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvenGroot/subscriptions","organizations_url":"https://api.github.com/users/SvenGroot/orgs","repos_url":"https://api.github.com/users/SvenGroot/repos","events_url":"https://api.github.com/users/SvenGroot/events{/privacy}","received_events_url":"https://api.github.com/users/SvenGroot/received_events","type":"User","site_admin":false}],"milestone":null,"comments":40,"created_at":"2017-12-01T08:09:03Z","updated_at":"2018-05-24T23:58:41Z","closed_at":null,"author_association":"NONE","body":"On build 17046, while compiling the GCC cross-compiler, it bailed out with a \"No such file or directory\" error when referencing builtins.def — but the file is present. Could this be a variant of #2448 or #2464?\r\n\r\nThe error:\r\n\r\n```\r\ng++ -fno-PIE -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/. -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../include -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libcpp/include -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/bld/gcc/./gmp -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gmp -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/bld/gcc/./mpfr/src -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/mpfr/src -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/mpc/src  -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libdecnumber -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libdecnumber/bid -I../libdecnumber -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libbacktrace -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/bld/gcc/./isl/include -I/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/isl/include  -o tree-streamer-in.o -MT tree-streamer-in.o -MMD -MP -MF ./.deps/tree-streamer-in.TPo /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/tree-streamer-in.c\r\nIn file included from /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/tree.h:23:0,\r\n                 from /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/tree-streamer.c:27:\r\n/mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/tree-core.h:213:24: fatal error: /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/builtins.def: No such file or directory\r\ncompilation terminated.\r\nMakefile:1099: recipe for target 'tree-streamer.o' failed\r\nmake[1]: *** [tree-streamer.o] Error 1\r\nmake[1]: *** Waiting for unfinished jobs....\r\n\r\n```\r\nBut the file reported as missing _is_ present.\r\n\r\n```\r\nls -l /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/builtins.def\r\n-rwxrwxrwx 1 root root 83663 Dec  1 00:38 /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/builtins.def\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/comments/391901205","html_url":"https://github.com/Microsoft/WSL/issues/2712#issuecomment-391901205","issue_url":"https://api.github.com/repos/Microsoft/WSL/issues/2712","id":391901205,"user":{"login":"heldchen","id":299636,"avatar_url":"https://avatars2.githubusercontent.com/u/299636?v=4","gravatar_id":"","url":"https://api.github.com/users/heldchen","html_url":"https://github.com/heldchen","followers_url":"https://api.github.com/users/heldchen/followers","following_url":"https://api.github.com/users/heldchen/following{/other_user}","gists_url":"https://api.github.com/users/heldchen/gists{/gist_id}","starred_url":"https://api.github.com/users/heldchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heldchen/subscriptions","organizations_url":"https://api.github.com/users/heldchen/orgs","repos_url":"https://api.github.com/users/heldchen/repos","events_url":"https://api.github.com/users/heldchen/events{/privacy}","received_events_url":"https://api.github.com/users/heldchen/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T23:58:41Z","updated_at":"2018-05-24T23:58:41Z","author_association":"NONE","body":"I've managed to get a strace by replacing `$result = unlink($file)` with `exec(\"ls -al $file && strace -o /tmp/unlink.trace -f rm $file\", $output, $result);`:\r\n\r\n**$output**\r\n```\r\n-rw-rw-r-- 1 MyCustomer MyCustomer 10 May 25 01:50 /mnt/t/MyCompany/Projects/clients/MyCustomer/src/www/var/tmp/alternative-source-css.lock\r\n``` \r\n(just as proof that the file actually exists before trying to delete it)\r\n\r\n**unlink.strace**\r\n```\r\n4027  execve(\"/bin/rm\", [\"rm\", \"/mnt/t/MyCompany/Projects/clients\"...], [/* 29 vars */]) = 0\r\n4027  brk(NULL)                         = 0x7fffd4e84000\r\n4027  access(\"/etc/ld.so.nohwcap\", F_OK) = -1 ENOENT (No such file or directory)\r\n4027  mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3afb640000\r\n4027  access(\"/etc/ld.so.preload\", R_OK) = -1 ENOENT (No such file or directory)\r\n4027  open(\"/etc/ld.so.cache\", O_RDONLY|O_CLOEXEC) = 6\r\n4027  fstat(6, {st_mode=S_IFREG|0644, st_size=51925, ...}) = 0\r\n4027  mmap(NULL, 51925, PROT_READ, MAP_PRIVATE, 6, 0) = 0x7f3afb633000\r\n4027  close(6)                          = 0\r\n4027  access(\"/etc/ld.so.nohwcap\", F_OK) = -1 ENOENT (No such file or directory)\r\n4027  open(\"/lib/x86_64-linux-gnu/libc.so.6\", O_RDONLY|O_CLOEXEC) = 6\r\n4027  read(6, \"\\177ELF\\2\\1\\1\\3\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0>\\0\\1\\0\\0\\0\\0\\4\\2\\0\\0\\0\\0\\0\"..., 832) = 832\r\n4027  fstat(6, {st_mode=S_IFREG|0755, st_size=1689360, ...}) = 0\r\n4027  mmap(NULL, 3795296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x7f3afb060000\r\n4027  mprotect(0x7f3afb1f5000, 2097152, PROT_NONE) = 0\r\n4027  mmap(0x7f3afb3f5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x195000) = 0x7f3afb3f5000\r\n4027  mmap(0x7f3afb3fb000, 14688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3afb3fb000\r\n4027  close(6)                          = 0\r\n4027  mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3afb630000\r\n4027  arch_prctl(ARCH_SET_FS, 0x7f3afb630700) = 0\r\n4027  mprotect(0x7f3afb3f5000, 16384, PROT_READ) = 0\r\n4027  mprotect(0x7f3afba0e000, 4096, PROT_READ) = 0\r\n4027  mprotect(0x7f3afb623000, 4096, PROT_READ) = 0\r\n4027  munmap(0x7f3afb633000, 51925)     = 0\r\n4027  brk(NULL)                         = 0x7fffd4e84000\r\n4027  brk(0x7fffd4ea5000)               = 0x7fffd4ea5000\r\n4027  open(\"/usr/lib/locale/locale-archive\", O_RDONLY|O_CLOEXEC) = 6\r\n4027  fstat(6, {st_mode=S_IFREG|0644, st_size=2011712, ...}) = 0\r\n4027  mmap(NULL, 2011712, PROT_READ, MAP_PRIVATE, 6, 0) = 0x7f3afb437000\r\n4027  close(6)                          = 0\r\n4027  ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0\r\n4027  newfstatat(AT_FDCWD, \"/mnt/t/MyCompany/Projects/clients/MyCustomer/src/www/var/tmp/alternative-source-css.lock\", {st_mode=S_IFREG|0664, st_size=10, ...}, AT_SYMLINK_NOFOLLOW) = 0\r\n4027  geteuid()                         = 2103\r\n4027  newfstatat(AT_FDCWD, \"/mnt/t/MyCompany/Projects/clients/MyCustomer/src/www/var/tmp/alternative-source-css.lock\", {st_mode=S_IFREG|0664, st_size=10, ...}, AT_SYMLINK_NOFOLLOW) = 0\r\n4027  faccessat(AT_FDCWD, \"/mnt/t/MyCompany/Projects/clients/MyCustomer/src/www/var/tmp/alternative-source-css.lock\", W_OK) = 0\r\n4027  unlinkat(AT_FDCWD, \"/mnt/t/MyCompany/Projects/clients/MyCustomer/src/www/var/tmp/alternative-source-css.lock\", 0) = 0\r\n4027  lseek(0, 0, SEEK_CUR)             = -1 ESPIPE (Illegal seek)\r\n4027  close(0)                          = 0\r\n4027  close(1)                          = 0\r\n4027  close(2)                          = 0\r\n4027  exit_group(0)                     = ?\r\n4027  +++ exited with 0 +++\r\n```\r\n"}}
{"actor":{"display_login":"heldchen"}}