Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files in DrvFs still reporting wrong type? #2464

Closed
Warblefly opened this issue Aug 31, 2017 · 14 comments
Closed

Files in DrvFs still reporting wrong type? #2464

Warblefly opened this issue Aug 31, 2017 · 14 comments
Assignees

Comments

@Warblefly
Copy link

In Build 16278, I'm seeing plenty of compilations fail with GCC complaining in ways such as:

/usr/include/x86_64-linux-gnu/sys/select.h:33:25: fatal error: lto/bits/sigset.h: Invalid argument

...which is the type of error that used to happen when DrvFs-mounted drives were borked a few flights ago. "Invalid argument" meaning a file is a wrong type (e.g. directory) not merely missing. Is this still happening?

@benhillis
Copy link
Member

@Warblefly - That issue should be fixed. Can you give us some reproducible steps so we can check this out locally?

Adding @SvenGroot.

@SvenGroot
Copy link
Member

This actually looks like an LxFs issue, since it's referring to a file under /usr. LxFs was not affected by the previous issue, and hasn't received any real changes recently.

As @benhillis said, we need a repro to look into this.

@Warblefly
Copy link
Author

OK, I'll try. Just got this, though, in a make -j 8 situation... (and the "fork: Invalid argument" has been happening for a while, too so I should write this up separately?)

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../source/gmp-6.1.2/printf -I.. -D__GMP_WITHIN_GMP -I../../source/gmp-6.1.2 -fexceptions -O2 -pedantic -fomit-frame-pointer -m64 -c ../../source/gmp-6.1.2/printf/doprnti.c -o doprnti.o
../libtool: fork: Invalid argument
../libtool: line 1: wait_for: No record of process 23189
Makefile:435: recipe for target 'obvprintf.lo' failed

@Warblefly
Copy link
Author

And every time I try to compile GCC from a directory on the DevFs system, a different file has been transformed into something wrong:

In file included from /usr/include/stdio.h:35:0,
                 from ../../source/gcc-7.2.0/gcc/system.h:46,
                 from ../../source/gcc-7.2.0/gcc/cp/expr.c:23:
/usr/include/x86_64-linux-gnu/bits/types.h:121:62: fatal error: cp/bits/typesizes.h: Invalid argument
compilation terminated.
Makefile:1099: recipe for target 'cp/expr.o' failed

@Warblefly
Copy link
Author

Warblefly commented Sep 1, 2017

As for steps to a reproducible error, mine are to compile GCC 7.2.0 as a cross-compiler, using -j 8 to make, though the failure with "Invalid argument" occurs on a different file each time.

@Warblefly
Copy link
Author

Completely uninstalled the subsystem, deleted lxss, removed all working directories, re-installed, and #include directives still randomly fail with "invalid argument":

g++ -fno-PIE -c  -DIN_GCC_FRONTEND -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. -Icp -I../../source/gcc-svn/gcc -I../../source/gcc-svn/gcc/cp -I../../source/gcc-svn/gcc/../include -I../../source/gcc-svn/gcc/../libcpp/include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/pkgs/gmp/gmp-6.1.2-x86_64/include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/pkgs/mpfr/mpfr-3.1.5-x86_64/include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/pkgs/mpc/mpc-1.0.3-x86_64/include  -I../../source/gcc-svn/gcc/../libdecnumber -I../../source/gcc-svn/gcc/../libdecnumber/bid -I../libdecnumber -I../../source/gcc-svn/gcc/../libbacktrace -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/pkgs/isl/isl-0.18-x86_64/include  -o cp/decl.o -MT cp/decl.o -MMD -MP -MF cp/.deps/decl.TPo ../../source/gcc-svn/gcc/cp/decl.c
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
                 from /usr/include/x86_64-linux-gnu/sys/param.h:26,
                 from ../../source/gcc-svn/gcc/system.h:298,
                 from ../../source/gcc-svn/gcc/cp/call.c:26:
/usr/include/limits.h:151:29: fatal error: cp/bits/xopen_lim.h: Invalid argument
compilation terminated.
Makefile:1099: recipe for target 'cp/call.o' failed
make[1]: *** [cp/call.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rm gcov.pod fsf-funding.pod gpl.pod cpp.pod gfdl.pod gfortran.pod gcc.pod gcov-dump.pod gcov-tool.pod
make[1]: Leaving directory '/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/pkgs/gcc/build/gcc'
Makefile:4225: recipe for target 'all-gcc' failed
make: *** [all-gcc] Error 2

@Warblefly
Copy link
Author

The same problem occurs on Build 16281, which landed on my machine today. The host GCC is the supplied Ubuntu GCC, which is version 5.4.0

g++ -fno-PIE -c  -DIN_GCC_FRONTEND -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. -Ic -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/c -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libcpp/include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/bld/gcc/./gmp -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gmp -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/bld/gcc/./mpfr/src -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/mpfr/src -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/mpc/src  -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libdecnumber -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libdecnumber/bid -I../libdecnumber -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libbacktrace -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/bld/gcc/./isl/include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/isl/include  -o c/c-decl.o -MT c/c-decl.o -MMD -MP -MF c/.deps/c-decl.TPo /mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/c/c-decl.c
In file included from /mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/coretypes.h:369:0,
                 from /mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/c/c-lang.c:23:
/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/hash-table.h:237:21: fatal error: c/hashtab.h: Invalid argument
compilation terminated.
Makefile:1099: recipe for target 'c/c-lang.o' failed

@Warblefly
Copy link
Author

Warblefly commented Sep 2, 2017

Is this issue #1735 again, perhaps? As before, in this issue, not only is the file 'missing' but the path searched is wrong. This also occurs using a freshly-compiled gcc-7.2.0 as the compiler, as well as the stock Ubuntu 5.4.0.

g++ -fno-PIE -c  -DIN_GCC_FRONTEND -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. -Ic -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/c -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libcpp/include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/bld/gcc/./gmp -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gmp -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/bld/gcc/./mpfr/src -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/mpfr/src -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/mpc/src  -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libdecnumber -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libdecnumber/bid -I../libdecnumber -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/../libbacktrace -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/bld/gcc/./isl/include -I/mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/isl/include  -o c/c-typeck.o -MT c/c-typeck.o -MMD -MP -MF c/.deps/c-typeck.TPo /mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/c/c-typeck.c
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include-fixed/limits.h:194:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include-fixed/limits.h:34,
                 from /usr/include/x86_64-linux-gnu/sys/param.h:26,
                 from /mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/system.h:298,
                 from /mnt/e/Users/john/Documents/MultimediaTools-mingw-w64/sandbox/src/gcc-7.2.0/gcc/c/c-typeck.c:27:
/usr/include/limits.h:143:11: fatal error: c/bits/posix1_lim.h: Invalid argument
 # include <bits/posix1_lim.h>
           ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:1099: recipe for target 'c/c-typeck.o' failed
make[1]: *** [c/c-typeck.o] Error 1

@Warblefly
Copy link
Author

Compiling GCC on the 'native' Linux filesystem entirely within lxss does not fail. But on DrvFs, it does.

@nutcasev15
Copy link

nutcasev15 commented Nov 27, 2017

Experiencing the same issue on build 16299.64.

Compiling Linux kernel 3.10 with GCC 7.1 custom toolchain.

The compiler errors on a different file each time but the error code is always the same.

In file included from drivers/external_drivers/intel_media/bld/merrifield/tng/../../../display/tng/drv/mdfld_csc.c:28:0: drivers/external_drivers/intel_media/bld/merrifield/tng/../../../display/tng/drv/psb_drv.h:35:10: fatal error: drivers/external_drivers/intel_media/graphics/rgx/services/shared/devices/rgx/ttm/ttm_object.h: Invalid argument #include "ttm/ttm_object.h" ^~~~~~~~~~~~~~~~~~ CC net/ipv4/tcp_sociopath.o compilation terminated. CC drivers/external_drivers/intel_media/bld/merrifield/tng/../../../display/tng/drv/psb_socket.o scripts/Makefile.build:308: recipe for target 'drivers/external_drivers/intel_media/bld/merrifield/tng/../../../display/tng/drv/mdfld_csc.o' failed make[4]: *** [drivers/external_drivers/intel_media/bld/merrifield/tng/../../../display/tng/drv/mdfld_csc.o] Error 1

A better formatted version: https://hastebin.com/qigevusihu.coffeescript

The source for the same is here https://github.com/nutcasev15/Holo-N/tree/RW
The TC is here https://github.com/nutcasev15/Custom-TC

The issue is resolved if I delete all the files in the git repo with rm -rf * & then force checkout the branch. But it only stays as long as the laptop is on. If I shut down and try to compile after rebooting the issue appears again.

The source & the TC are both on /mnt/d i.e. DrvFs.

@kwaegel
Copy link

kwaegel commented Nov 29, 2017

This just started happening to me too, build 16299.rs3_release. I keep getting Invalid argument errors for paths that do not exist, and it's always a different file.

@brlin-tw
Copy link

brlin-tw commented Sep 8, 2018

Got a similar error here when building a snap package under Ubuntu 16.04 WSL(Windows 10 version 1803 build 17134.254):

make[3]: Entering directory '/home/brlin/utsushi-snap/parts/utsushi/build/lib'
  CXX      exception.lo
  CXX      connexion.lo
  CXX      device-info.lo
  CXX      log.lo
../libtool: fork: Invalid argument
g++: error: : 沒有此一檔案或目錄(No such file or directory)
Makefile:678: recipe for target 'connexion.lo' failed
make[3]: *** [connexion.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

The file should be in lxfs instead of drvfs, though.

@HinTak
Copy link

HinTak commented Sep 8, 2018

What is underneath drvfs? Ntfs or?

@bpulliam
Copy link

bpulliam commented May 7, 2021

Much has changed in the WSL world since this was filed. If you still see this issue, please file a new one. Thanks!

@bpulliam bpulliam closed this as completed May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants