测试protobuf失败,并显示权限被拒绝错误

时间:2018-11-30 02:25:32

标签: protocol-buffers nmake

我按照README指示在Windows 10上编译了protobuf 3.6.1-编译期间没有问题。现在我在测试部分,“ nmake检查”失败,权限被拒绝错误:

    [----------] 84 tests from CommandLineInterfaceTest
    (...)
    [ RUN      ] CommandLineInterfaceTest.DirectDependencies_ProvidedMultipleTimes
    [       OK ] CommandLineInterfaceTest.DirectDependencies_ProvidedMultipleTimes (17 ms)
    [ RUN      ] CommandLineInterfaceTest.DirectDependencies_CustomErrorMessage
    [libprotobuf FATAL D:\vms\mac\protobuf\protobuf-3.6.1\src\google\protobuf\testing\googletest.cc:215] CHECK failed: fd >= 0: open: Permission denied
    NMAKE : fatal error U1077: 'D:\vms\mac\protobuf\protobuf-3.6.1\cmake\build\release\tests.exe' : return code '0x3'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
    Stop.

我检查了googletest.cc文件的权限-看起来不错。不过,可以肯定的是,我修改了它们,以便所有用户都具有完全访问权限。没什么区别。任何指针如何解决它表示赞赏。

这是此文件的权限:

    D:\vms\mac\protobuf\protobuf-3.6.1\src\google\protobuf\testing>icacls googletest.cc
    googletest.cc NT AUTHORITY\Authenticated Users:(F)
          BUILTIN\Users:(F)
          BUILTIN\Administrators:(I)(F)
          NT AUTHORITY\SYSTEM:(I)(F)
          NT AUTHORITY\Authenticated Users:(I)(M)
          BUILTIN\Users:(I)(RX)

0 个答案:

没有答案