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

Install section throws error cmd.exe failed with exit code 1 #103

Closed
coozoo opened this issue Jan 9, 2021 · 4 comments
Closed

Install section throws error cmd.exe failed with exit code 1 #103

coozoo opened this issue Jan 9, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@coozoo
Copy link

coozoo commented Jan 9, 2021

Hi,

I'm trying to setup actions to build app for windows with mingw and qt.

So tried to use this repo and got such error it's hard to say what is origin at least for me.

It is in install section

 install: >-
          mingw-w64-x86_64-toolchain
          base-devel
          git
          p7zip
          ruby 
          mingw-w64-x86_64-qt5
          mingw-w64-i686-qt5
          mingw-w64-i686-toolchain
          mingw-w64-i686-qwt-qt5
          mingw-w64-x86_64-zlib
          mingw-w64-i686-zlib
          zlib-devel
          mingw-w64-x86_64-openssl
          mingw-w64-i686-openssl
          openssl-devel
 C:\windows\system32\cmd.exe /D /S /C D:\a\_temp\msys\msys2.cmd -c "'pacman' '--noconfirm' '-S' '--needed' '--overwrite' '*' 'mingw-w64-x86_64-toolchain' 'base-devel' 'git' 'p7zip' 'ruby' '' 'mingw-w64-x86_64-qt5' 'mingw-w64-i686-qt5' 'mingw-w64-i686-toolchain' 'mingw-w64-i686-qwt-qt5' 'mingw-w64-x86_64-zlib' 'mingw-w64-i686-zlib' 'zlib-devel' 'mingw-w64-x86_64-openssl' 'mingw-w64-i686-openssl' 'openssl-devel'"
  :: There are 19 members in group mingw-w64-x86_64-toolchain:
  :: Repository mingw64
     1) mingw-w64-x86_64-binutils  2) mingw-w64-x86_64-crt-git  3) mingw-w64-x86_64-gcc  4) mingw-w64-x86_64-gcc-ada  5) mingw-w64-x86_64-gcc-fortran  6) mingw-w64-x86_64-gcc-libgfortran  7) mingw-w64-x86_64-gcc-libs  8) mingw-w64-x86_64-gcc-objc  9) mingw-w64-x86_64-gdb  10) mingw-w64-x86_64-gdb-multiarch  11) mingw-w64-x86_64-headers-git  12) mingw-w64-x86_64-libgccjit  13) mingw-w64-x86_64-libmangle-git  14) mingw-w64-x86_64-libwinpthread-git  15) mingw-w64-x86_64-make  16) mingw-w64-x86_64-pkgconf  17) mingw-w64-x86_64-tools-git  18) mingw-w64-x86_64-winpthreads-git  19) mingw-w64-x86_64-winstorecompat-git
  
  Enter a selection (default=all): warning: file-5.39-2 is up to date -- skipping
  warning: gawk-5.1.0-1 is up to date -- skipping
  warning: gettext-0.19.8.1-1 is up to date -- skipping
  warning: grep-3.0-2 is up to date -- skipping
  warning: pacman-5.2.2-9 is up to date -- skipping
  warning: perl-5.32.0-2 is up to date -- skipping
  warning: sed-4.8-1 is up to date -- skipping
  warning: 
  :: There are 48 members in group base-devel:
  wget-1.20.3-1 is up to date -- skipping
  :: Repository msys
     1) asciidoc  2) autoconf  3) autoconf2.13  4) autogen  5) automake-wrapper  6) automake1.10  7) automake1.11  8) automake1.12  9) automake1.13  10) automake1.14  11) automake1.15  12) automake1.16  13) automake1.6  14) automake1.7  15) automake1.8  16) automake1.9  17) bison  18) btyacc  19) diffstat  20) diffutils  21) dos2unix  22) flex  23) gdb  24) gettext-devel  25) gperf  26) groff  27) help2man  28) intltool  29) libtool  30) libunrar  31) libunrar-devel  32) m4  33) make  34) man-db  35) pactoys-git  36) patch  37) patchutils  38) pkgconf  39) pkgfile  40) quilt  41) reflex  42) scons  43) swig  44) texinfo  45) texinfo-tex  46) ttyrec  47) unrar  48) xmlto
  
  Enter a selection (default=all): error: target not found: 
  
  Error: The process 'C:\windows\system32\cmd.exe' failed with exit code 1
@eine
Copy link
Collaborator

eine commented Jan 10, 2021

If that is exactly the syntax you used, then It might be a syntax error. The following works:

      - uses: msys2/setup-msys2@v2
        with:
          update: true
          install: >-
              mingw-w64-x86_64-toolchain
              base-devel
              git
              p7zip
              ruby
              mingw-w64-x86_64-qt5
              mingw-w64-i686-qt5
              mingw-w64-i686-toolchain
              mingw-w64-i686-qwt-qt5
              mingw-w64-x86_64-zlib
              mingw-w64-i686-zlib
              zlib-devel
              mingw-w64-x86_64-openssl
              mingw-w64-i686-openssl
              openssl-devel

Which produces:

C:\windows\system32\cmd.exe /D /S /C D:\a\_temp\msys\msys2.cmd -c "'pacman' '--noconfirm' '-S' '--needed' '--overwrite' '*' 'mingw-w64-x86_64-toolchain' 'base-devel' 'git' 'p7zip' 'ruby' 'mingw-w64-x86_64-qt5' 'mingw-w64-i686-qt5' 'mingw-w64-i686-toolchain' 'mingw-w64-i686-qwt-qt5' 'mingw-w64-x86_64-zlib' 'mingw-w64-i686-zlib' 'zlib-devel' 'mingw-w64-x86_64-openssl' 'mingw-w64-i686-openssl' 'openssl-devel'"

@lazka
Copy link
Member

lazka commented Jan 11, 2021

there is a space after ruby. we ideally should ignore those imo

@coozoo
Copy link
Author

coozoo commented Jan 11, 2021

If that is exactly the syntax you used, then It might be a syntax error. The following works:
not really it's after copy/paste (that's why I don't like languages with indentations :) )

@coozoo
Copy link
Author

coozoo commented Jan 11, 2021

there is a space after ruby. we ideally should ignore those imo

Exactly, that's it, thank you! I screwed up with this one space after ruby

@eine eine closed this as completed Jan 18, 2021
@eine eine added the bug Something isn't working label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@lazka @eine @coozoo and others