Repository navigation
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
Reacted by TheWhoAreYouPerson, Terry, Malcolm and Kael
Metadata
Metadata
Assignees
Labels
No labels
Activity
Warblefly commentedon Dec 1, 2017
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 directoryBut the file is alive and well, where it is supposed to be.
Warblefly commentedon Dec 1, 2017
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:but:
nutcasev15 commentedon Dec 2, 2017
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.
Warblefly commentedon Dec 2, 2017
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.
therealkenc commentedon Dec 2, 2017
#2484 (sic).
Warblefly commentedon Dec 2, 2017
Well spotted, therealkenc.
nutcasev15 commentedon Dec 3, 2017
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.
Warblefly commentedon Dec 3, 2017
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.
AnneTheAgile commentedon Dec 6, 2017
yarn installfails 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
Warblefly commentedon Dec 6, 2017
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)
DHowett-MSFT commentedon Dec 7, 2017
A few members of my team (myself, Raj Seshasankaran (@rajsesh), yiyang-msft) are seeing this as well, on builds in the 1705x-1706x range.
Warblefly commentedon Dec 8, 2017
Correction: I mis-typed the build. Here, it's 17046.
heldchen commentedon Dec 31, 2017
this can be "reproduced" fairly "consistently" in my setup in several completely different use cases, see (duplicate) issue John Warburton (@Warblefly) linked above.
DavidCizek commentedon Jan 10, 2018
This issue can be reproduced in my environment during GCC crosscompiling (Windows version 17063). Version 17040 works fine.
heldchen commentedon Jan 12, 2018
still an issue in 17074
45 remaining items
sunilmut commentedon May 29, 2018
This rest of this bug should be fixed in 17677. Do let us know if this issue is completely resolved.
jowadmax commentedon May 31, 2018
Sunil Muthuswamy (@sunilmut) thanks for the fix!
Will this bugfix get backported to 1803?
sunilmut commentedon May 31, 2018
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.
nkokla commentedon Jun 11, 2018
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 ?
pgroke-dt commentedon Jun 25, 2018
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.)
jowadmax commentedon Jun 26, 2018
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.
WillsonHaw commentedon Jun 26, 2018
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.
pgroke-dt commentedon Jul 2, 2018
jowadmax (@jowadmax) Thanks for the tip, unfortunately I don't have enough space for another Windows installation in a VM on my system.
pgroke-dt commentedon Aug 20, 2018
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.
Mike-Horwitz commentedon Aug 20, 2018
Sunil Muthuswamy (@sunilmut) A backport would be great. My 1803 is frustrating me.
tstackhouse commentedon Aug 20, 2018
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.
therealkenc commentedon Aug 20, 2018
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.