Skip to content

DrvFs: compiler reports file missing, but it is present #2712

Closed

Description

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?

The error:

g++ -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
In file included from /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/tree.h:23:0,
                 from /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/tree-streamer.c:27:
/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
compilation terminated.
Makefile:1099: recipe for target 'tree-streamer.o' failed
make[1]: *** [tree-streamer.o] Error 1
make[1]: *** Waiting for unfinished jobs....

But the file reported as missing is present.

ls -l /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/builtins.def
-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

Activity

  1. Warblefly commented on Dec 1, 2017

    @Warblefly
    Author

    After a clean re-start, the compilation has failed again, exactly as above, but with a different file:

    /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/builtins.def:1001:29: fatal error: chkp-builtins.def: No such file or directory

    But the file is alive and well, where it is supposed to be.

  2. Warblefly commented on Dec 1, 2017

    @Warblefly
    Author

    After a further clean re-start, the same compilation fails in a different place. A file appears to be missing, but it is safely in the right place when found with ls:

    In file included from /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/libgfortran/libgfortran.h:44:0,
                     from /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/libgfortran/generated/pack_c16.c:26:
    /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/bld/gcc/gcc/include/stddef.h:1:15: fatal error: stddef.h: No such file or directory
     #include_next <stddef.h>
                   ^~~~~~~~~~
    

    but:

    $ ls -l /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/bld/gcc/gcc/include/stddef.h
    -rwxrwxrwx 1 root root 14165 Dec  1 23:08 /mnt/e/Users/john/Documents/ffmpeg/MultimediaTools-mingw-w64/sandbox/bld/gcc/gcc/include/stddef.h
    
  3. nutcasev15 commented on Dec 2, 2017

    @nutcasev15

    John Warburton (@Warblefly)
    The workaround posted in this link fixes this problem temporarily.
    #2448 (comment)
    It worked for me. I'm on build 16299.64. Need to see if the cumulative patch of 16299.98 fixes this.

  4. Warblefly commented on Dec 2, 2017

    @Warblefly
    Author

    Thank you for replying. I'm afraid this workaround, which I've already tried, is unsuccessful in build 17046.

    It is a slightly different problem: the file is occasionally simply "not found"; this isn't an EINVAL return.

  5. therealkenc commented on Dec 2, 2017

    @therealkenc

    #2484 (sic).

  6. Warblefly commented on Dec 2, 2017

    @Warblefly
    Author

    Well spotted, therealkenc.

  7. nutcasev15 commented on Dec 3, 2017

    @nutcasev15

    John Warburton (@Warblefly) Seems like you got all the compilation issues one can get. Lel
    Sorry to hear it doesn't fix your problem. My theory is its a fallback as the command states. It remounts the drive with a previous version of the DrvFS driver. Since I'm on 1709 16299.98, the fallback driver for me is the 1607 driver module. Which works great.

    Maybe for you since you are beyond 1709, your fallback is the faulty one present in 16299 because its the current stable one.

    Anyway my issue was this one: #2464 (comment)

    I just posted in related threads to see if someone knew about it because there was no specific issue for it until now.

    therealkenc The cumulative update to 16299.98 fixes this issue. But it seems performance has taken a hit. Kernel compile went from 240~ with ccache to ~350 with ccache.

  8. Warblefly commented on Dec 3, 2017

    @Warblefly
    Author

    Thanks for the info Yuvraj Jain (@nutcasev15) — indeed, whether or not the DrvFs filesystem is mounted with, or without, the "fallback" workaround given some time ago, the fault occurs. It makes the job impossible, unfortunately.

  9. AnneTheAgile commented on Dec 6, 2017

    @AnneTheAgile
    1. John Warburton (@Warblefly) are you on the latest, per yarn install fails inside /mnt with EINVAL for lstat during step 3 #2448 : " The November 30th, 2017 Cumulative Update (KB4051963) for the Fall Creator's Update contains the fix for this issue [2448]. Please install this update, and let us know if you encounter any further issues. To verify if you have installed the update, your OS build number should be 16299.98 or later."

    2.Crossref, possibly related; RoliSoft/WSL-Distribution-Switcher#69

  10. Warblefly commented on Dec 6, 2017

    @Warblefly
    Author

    AnneTheAgile Thank you for asking these questions. I am happy to offer this information:

    (1) The build is 17046.rs_prerelease.171118-1403.
    (2) It is difficult to say precisely at this point, but there was an earlier build on which my compilation did work correctly and repeatedly (other than the occasional instance of "fork" not working as reported in #2469)

  11. DHowett-MSFT commented on Dec 7, 2017

    @DHowett-MSFT

    A few members of my team (myself, Raj Seshasankaran (@rajsesh), yiyang-msft) are seeing this as well, on builds in the 1705x-1706x range.

  12. Warblefly commented on Dec 8, 2017

    @Warblefly
    Author

    Correction: I mis-typed the build. Here, it's 17046.

  13. heldchen commented on Dec 31, 2017

    @heldchen

    this can be "reproduced" fairly "consistently" in my setup in several completely different use cases, see (duplicate) issue John Warburton (@Warblefly) linked above.

  14. DavidCizek commented on Jan 10, 2018

    @DavidCizek

    This issue can be reproduced in my environment during GCC crosscompiling (Windows version 17063). Version 17040 works fine.

  15. heldchen commented on Jan 12, 2018

    @heldchen

    still an issue in 17074

  16. 45 remaining items

  17. sunilmut commented on May 29, 2018

    @sunilmut
    Member

    This rest of this bug should be fixed in 17677. Do let us know if this issue is completely resolved.

  18. jowadmax commented on May 31, 2018

    @jowadmax

    Sunil Muthuswamy (@sunilmut) thanks for the fix!
    Will this bugfix get backported to 1803?

  19. sunilmut commented on May 31, 2018

    @sunilmut
    Member

    jowadmax (@jowadmax) - Once we get some kind of confirmation (from the community) that the issue is fully resolved by the fixes, yes, the fix will be considered for backporting to 1803.

  20. nkokla commented on Jun 11, 2018

    @nkokla

    Sunil Muthuswamy (@sunilmut) - Hello and thanks for the fix !
    I am also impacted by this issue after1803 update and this is very restrictive on my job. I am not sur I can wait the patch. Do you know if a fresh installation (reinstall Windows) can solve this problem ?

  21. pgroke-dt commented on Jun 25, 2018

    @pgroke-dt

    Sunil Muthuswamy (@sunilmut) Is there a way to install the insider build without permanently enabling preview builds? I might be able to convince my company to let me install one preview build so I can check if the fix works, but I sure don't want to get preview builds all the time.
    (I'm seeing this problem many times during one build job, i.e. I have to re-start the build a dozen times or so until it finally succeeds. So if it's fixed, I should be able to tell with good accuracy.)

  22. jowadmax commented on Jun 26, 2018

    @jowadmax

    Paul Groke (@pgroke-dt) you might be able to install the preview on a virtual machine and run your compile job for testing. You can use VirtualBox's shared directory feature to access your local files from the VM.

    Unfortunately there are no ISOs available for the Insider Builds (afaik), so you'll need to enroll the Windows version that's on the virtual machine into the Insiders Program.

  23. WillsonHaw commented on Jun 26, 2018

    @WillsonHaw

    Can confirm this issue is fixed for me on build 17692. Would love to have this backported to 1803 so I don't have to leave my work machine on a Insider build.

  24. pgroke-dt commented on Jul 2, 2018

    @pgroke-dt

    jowadmax (@jowadmax) Thanks for the tip, unfortunately I don't have enough space for another Windows installation in a VM on my system.

  25. pgroke-dt commented on Aug 20, 2018

    @pgroke-dt

    Sunil Muthuswamy (@sunilmut)
    How are things looking regarding a back-port? It's still some months until 1809 RTM and then some months until it's tested and green-lighted by our IT, so a back-port to 1803 would really help us.

  26. Mike-Horwitz commented on Aug 20, 2018

    @Mike-Horwitz

    Sunil Muthuswamy (@sunilmut) A backport would be great. My 1803 is frustrating me.

  27. tstackhouse commented on Aug 20, 2018

    @tstackhouse

    therealkenc Seeing this in 17134 (1803), confirming your suspicion. A backport or workaround would be wonderful as I'm unable/unwilling (requirement of Microsoft Account/non-system local account) to install one of the insider builds.

    Update: Jumped through the hoops to get on insiders and installed build 17741. Confirmed fixed for me.

  28. therealkenc commented on Aug 20, 2018

    @therealkenc

    Yeah the December OP reported 17046 (before 17134) so there was no real reason to expect it to work on the April Update. My marking it insidertransient for a few days was just "wrong" on my part; apologies. It was reported that 16299 is okay, fueling the incorrect assumption. At the time it was somewhat confusing as to what broke when, what was being fixed precisely, and in what release (#2484 still flaps in the wind uncategorized).

    Beyond that, four asks for a backport is now three too many. I don't have any specific insight on the interworkings of the backport process (and, I get the impression it is somewhat opaque to the WSL devs as well and not entirely in their control). But, given that it was fixed in late May, this is mid-August, and the Redstone 5 (1809) release is already starting to be locked down for October... if it were me, I wouldn't place a large bet on a QFE. Who knows. Could happen. Either way, rest assured all the devs get all the issue updates whether you ping them or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions