【问题标题】:Cygwin: Linux kernel make clean not workingCygwin:Linux内核make clean不起作用
【发布时间】:2020-06-05 16:10:17
【问题描述】:

我正在尝试使用 Cygwin 在 Windows 上编译 Linux 内核。当我尝试 make distclean 时,它给了我以下错误:

 make distclean
 make[1]: *** Documentation/Kbuild: Is a directory.  Stop.
 Makefile:1188: recipe for target '_clean_Documentation' failed
 make: *** [_clean_Documentation] Error 2

【问题讨论】:

标签: linux-kernel cygwin


【解决方案1】:

有类似的问题。

正如@Daniel Griscom@Sniffleh 所提到的,这看起来确实是由于文件系统不区分大小写导致的问题,而 fsutil 确实可以解决这个问题。

让我分享一些有用的命令:

  • 如果fsutil.exe file SetCaseSensitiveInfo YourDestinationFolder enable 不起作用,请尝试 在 PowerShell 中使用 Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  • fsutil 无法递归启用区分大小写,因此您可以在 PowerShell 中使用 (Get-ChildItem -Recurse -Directory).FullName | ForEach-Object {fsutil.exe file setCaseSensitiveInfo $_ enable}

【讨论】:

  • 这应该是公认的答案,因为它提供了一个命令来完全使用 fsutil.exe 来解决这个问题:)
【解决方案2】:

根据unrouted.io/2016/08/09/docker-osx-linux-kernel-building,这是由于不区分大小写的文件系统(Windows 和 macOS 一样)。

【讨论】:

    【解决方案3】:

    尝试使用 fsutil.exe 文件 queryCaseSensitiveInfo 启用? 来源:https://devblogs.microsoft.com/commandline/per-directory-case-sensitivity-and-wsl/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-10
      • 1970-01-01
      • 2014-01-19
      • 1970-01-01
      • 2014-05-27
      • 1970-01-01
      相关资源
      最近更新 更多