nmake on windows, always error

I’m trying to compile a lib on an action based on windows.

when I do nmake install I obtain always the following error:

NMAKE : fatal error U1077: 'C:\windows\System32\WindowsPowerShell\v1.0\powershell.EXE' : return code '0x1'

the problem is that the lib is well installed.

here the output:

https://pipelines.actions.githubusercontent.com/UT2yWpLuhrv6cgpaswnxp6jutnlhEDPvneEZYuP7caf5ioqwy6/_apis/pipelines/1/runs/15/signedlogcontent/3?urlExpires=2020-03-31T22%3A50%3A04.2872483Z&urlSigningMethod=HMACV1&urlSignature=%2FqsGyRgX0ak%2F1CzdTmX8O3h6w9MV9iF1AUr5tYAOsgM%3D

here my makefile:

https://github.com/manang/windows-sdk/blob/master/Makefile

I’m launching:

make libparc

make hicn

On my local windows I don’t have problems.

Thanks

@manang ,

I tried the same nmake commands for the build step on GitHub Actions and on my local Windows machine, both of them returned the same error message as you reported. Looks like, this problem occurs on VS command-line tool nmake.exe .

I’m launching:

make libparc

make hicn

On my local windows I don’t have problems.

Did you try installing a self-hosted runner on your local Windows machine to run the workflow? And you can try to changes the workflow like as below to see if it can work:

jobs:
  build:
    runs-on: [self-hosted, windows]
    steps:
    - uses: actions/checkout@v2
    - name: Build
      run: |
        nmake init_vcpkg
        nmake openssl
        nmake libevent
        nmake libconfig
        nmake asio
        nmake pthreads
        make libparc
        make hicn
      shell: cmd

 Make sure the nmake  and make has been add to PATH  on your local Windows.

Sorry, I’m new on windows,

I was launchinc nmake and not make.

I’m using the visual studio cmd and I don’t have outputs about the error.

so, can you tell me if I can bypass the error?

it compiles and install the libraries in the right way.

I obtain the error after

nmake liparc: there is an error, but it continues

nmake hicn: there is an error, but it continues.

Thank you very much

@manang ,

Not sure what caused the problem, as I mentioned above, the same namke commands also failed on my local Windows, but they succeed on your local Windows. Maybe something went wrong for the required environment configurations.

I have reported this ticket to the appropriate engineering team for further investigation and evaluation. If they have any progress, I will notify you in time, and sometimes the appropriate engineers may directly reply you here.

In addition, have you tried using self-hosted runner? Does it work?

Only to know:

did you check my makefile?

do you think that there are errors?

This is my first makefile in a no-unix OS.

@manang ,

Of course, I have checked your Makefile, but I didn’t find where the problem may be located.

In the Microsoft Official docs about this error (NMAKE Fatal Error U1077), it does not explain the root cause of this error, but it has provided the workaround to suppress this error and continue the NMAKE session, using the /I option, the  .IGNORE  dot directive, or the dash ( - ) command modifier.

I have tested the workaround like as below (more details see here):

nmake libparc /I
nmake hicn /I

This can make the error disappear and let the lib continue being download. Maybe you can try it.

In addition, what is the version of Visual Studio on your local Windows?

Recently the Visual Studio has been upgraded to the latest VS 2019 (16.5) on GitHub-hosted runners, maybe it probably has something installed on your local machine that doesn’t ship with the hosted runners.