タグ: go

  • zlog Tips


    >zbuild-windows.exe compile

    go: creating new go.mod: module cwtrainer-main
    go: to add module requirements and sums:
    go mod tidy
    go: downloading gopkg.in/ini.v1 v1.66.6
    go: downloading github.com/hajimehoshi/oto v0.7.1
    go: downloading github.com/pkg/errors v0.9.1
    go: downloading github.com/hajimehoshi/oto v1.0.1
    go: downloading golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756
    go: downloading golang.org/x/mobile v0.0.0-20190415191353-3e0bab5405d6
    go: downloading golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105
    go: downloading golang.org/x/sys v0.0.0-20220730100132-1609e554cd39
    go: downloading golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8
    go: downloading golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e
    go: downloading golang.org/x/exp/shiny v0.0.0-20220722155223-a9213eeb770e
    go: downloading golang.org/x/image v0.0.0-20190227222117-0694c2d4d067
    go: downloading golang.org/x/image v0.0.0-20220722155232-062f8c9fd539
    go: downloading golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56
    go: added github.com/faiface/beep v1.1.0
    go: added github.com/hajimehoshi/oto v1.0.1
    go: added github.com/pkg/errors v0.9.1
    go: added golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56
    go: added golang.org/x/exp/shiny v0.0.0-20220722155223-a9213eeb770e
    go: added golang.org/x/image v0.0.0-20220722155232-062f8c9fd539
    go: added golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105
    go: added golang.org/x/sys v0.0.0-20220730100132-1609e554cd39
    go: added gopkg.in/ini.v1 v1.66.6
    go: finding module for package github.com/stretchr/testify/require
    go: finding module for package github.com/stretchr/testify/assert
    go: downloading github.com/stretchr/testify v1.8.0
    go: found github.com/stretchr/testify/assert in github.com/stretchr/testify v1.8.0
    go: found github.com/stretchr/testify/require in github.com/stretchr/testify v1.8.0
    go: downloading github.com/pmezard/go-difflib v1.0.0
    go: downloading gopkg.in/yaml.v3 v3.0.1
    go: downloading github.com/davecgh/go-spew v1.1.1
    cwtrainer-main imports
    github.com/faiface/beep/speaker imports
    github.com/hajimehoshi/oto imports
    golang.org/x/mobile/app imports
    golang.org/x/exp/shiny/driver/gldriver: ambiguous import: found package golang.org/x/exp/shiny/driver/gldriver in multiple modules:
    golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56 (C:\Users\user\go\pkg\mod\golang.org\x\exp@v0.0.0-20190731235908-ec7cb31e5a56\shiny\driver\gldriver)
    golang.org/x/exp/shiny v0.0.0-20220722155223-a9213eeb770e (C:\Users\user\go\pkg\mod\golang.org\x\exp\shiny@v0.0.0-20220722155223-a9213eeb770e\driver\gldriver)
    cwtrainer-main imports
    github.com/faiface/beep/speaker imports
    github.com/hajimehoshi/oto imports
    golang.org/x/mobile/app imports
    golang.org/x/exp/shiny/screen: ambiguous import: found package golang.org/x/exp/shiny/screen in multiple modules:
    golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56 (C:\Users\user\go\pkg\mod\golang.org\x\exp@v0.0.0-20190731235908-ec7cb31e5a56\shiny\screen)
    golang.org/x/exp/shiny v0.0.0-20220722155223-a9213eeb770e (C:\Users\user\go\pkg\mod\golang.org\x\exp\shiny@v0.0.0-20220722155223-a9213eeb770e\screen)
    Ultimate Packer for eXecutables
    Copyright (C) 1996 – 2020
    UPX 3.96w Markus Oberhumer, Laszlo Molnar & John Reiser Jan 23rd 2020

    File size Ratio Format Name

    ——————– —— ———– ———–
    5516234 -> 1776074 32.20% win64/pe cwtrainer-main.dll Packed 1 file.


    go: downloading github.com/faiface/beep v1.1.0
    package github.com/faiface/beep is not a main package


    >zbuild-Windows.exe setup
    Chocolatey v1.1.0
    Installing the following packages:
    mingw;golang;upx
    By installing, you accept licenses for the packages.

    mingw v11.2.0.07112021 [Approved]
    mingw package files install completed. Performing other installation steps.
    The package mingw wants to run ‘chocolateyinstall.ps1’.
    Note: If you don’t run this script, the installation will fail.
    Note: To confirm automatically next time, use ‘-y’ or consider:
    choco feature enable -n allowGlobalConfirmation
    Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y

    Downloading mingw 64 bit
    from ‘https://github.com/brechtsanders/winlibs_mingw/releases/download/11.2.0-12.0.1-9.0.0-r1/winlibs-x86_64-posix-seh-gcc-11.2.0-mingw-w64-9.0.0-r1.7z’
    Progress: 100% – Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\mingw\11.2.0.07112021\winlibs-x86_64-posix-seh-gcc-11.2.0-mingw-w64-9.0.0-r1.7z (63.33 MB).
    Download of winlibs-x86_64-posix-seh-gcc-11.2.0-mingw-w64-9.0.0-r1.7z (63.33 MB) completed.
    Hashes match.
    Extracting C:\Users\user\AppData\Local\Temp\chocolatey\mingw\11.2.0.07112021\winlibs-x86_64-posix-seh-gcc-11.2.0-mingw-w64-9.0.0-r1.7z to C:\ProgramData\chocolatey\lib\mingw\tools\install…
    C:\ProgramData\chocolatey\lib\mingw\tools\install
    Testing path: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw32\bin
    Testing path: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
    PATH environment variable does not have C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin in it. Adding…
    Environment Vars (like PATH) have changed. Close/reopen your shell to
    see the changes (or in powershell/cmd.exe just type refreshenv).
    ShimGen has successfully created a shim for addr2line.exe
    ShimGen has successfully created a shim for ar.exe
    ShimGen has successfully created a shim for as.exe
    ShimGen has successfully created a shim for c++.exe
    ShimGen has successfully created a shim for c++filt.exe
    ShimGen has successfully created a shim for ccache.exe
    ShimGen has successfully created a shim for cpp.exe
    ShimGen has successfully created a shim for dlltool.exe
    ShimGen has successfully created a shim for dllwrap.exe
    ShimGen has successfully created a shim for dos2unix.exe
    ShimGen has successfully created a shim for doxygen.exe
    ShimGen has successfully created a shim for elfedit.exe
    ShimGen has successfully created a shim for g++.exe
    ShimGen has successfully created a shim for gcc-ar.exe
    ShimGen has successfully created a shim for gcc-nm.exe
    ShimGen has successfully created a shim for gcc-ranlib.exe
    ShimGen has successfully created a shim for gcc.exe
    ShimGen has successfully created a shim for gcov-dump.exe
    ShimGen has successfully created a shim for gcov-tool.exe
    ShimGen has successfully created a shim for gcov.exe
    ShimGen has successfully created a shim for gdb.exe
    ShimGen has successfully created a shim for gdbserver.exe
    ShimGen has successfully created a shim for gdc.exe
    ShimGen has successfully created a shim for gendef.exe
    ShimGen has successfully created a shim for genidl.exe
    ShimGen has successfully created a shim for gfortran.exe
    ShimGen has successfully created a shim for gprof.exe
    ShimGen has successfully created a shim for iconv.exe
    ShimGen has successfully created a shim for ld.bfd.exe
    ShimGen has successfully created a shim for ld.exe
    ShimGen has successfully created a shim for lto-dump.exe
    ShimGen has successfully created a shim for mac2unix.exe
    ShimGen has successfully created a shim for mingw32-make.exe
    ShimGen has successfully created a shim for ninja.exe
    ShimGen has successfully created a shim for nm.exe
    ShimGen has successfully created a shim for objcopy.exe
    ShimGen has successfully created a shim for objdump.exe
    ShimGen has successfully created a shim for pexports.exe
    ShimGen has successfully created a shim for ranlib.exe
    ShimGen has successfully created a shim for readelf.exe
    ShimGen has successfully created a shim for size.exe
    ShimGen has successfully created a shim for strings.exe
    ShimGen has successfully created a shim for strip.exe
    ShimGen has successfully created a shim for unix2dos.exe
    ShimGen has successfully created a shim for unix2mac.exe
    ShimGen has successfully created a shim for windmc.exe
    ShimGen has successfully created a shim for windres.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-c++.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-g++.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-11.2.0.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-ar.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-nm.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-ranlib.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-gdc.exe
    ShimGen has successfully created a shim for x86_64-w64-mingw32-gfortran.exe
    ShimGen has successfully created a shim for cc1.exe
    ShimGen has successfully created a shim for cc1obj.exe
    ShimGen has successfully created a shim for cc1objplus.exe
    ShimGen has successfully created a shim for cc1plus.exe
    ShimGen has successfully created a shim for collect2.exe
    ShimGen has successfully created a shim for d21.exe
    ShimGen has successfully created a shim for f951.exe
    ShimGen has successfully created a shim for g++-mapper-server.exe
    ShimGen has successfully created a shim for lto-wrapper.exe
    ShimGen has successfully created a shim for lto1.exe
    ShimGen has successfully created a shim for fixincl.exe
    ShimGen has successfully created a shim for gengtype.exe
    ShimGen has successfully created a shim for ar.exe
    ShimGen has successfully created a shim for as.exe
    ShimGen has successfully created a shim for dlltool.exe
    ShimGen has successfully created a shim for ld.bfd.exe
    ShimGen has successfully created a shim for ld.exe
    ShimGen has successfully created a shim for nm.exe
    ShimGen has successfully created a shim for objcopy.exe
    ShimGen has successfully created a shim for objdump.exe
    ShimGen has successfully created a shim for ranlib.exe
    ShimGen has successfully created a shim for readelf.exe
    ShimGen has successfully created a shim for strip.exe
    The install of mingw was successful.
    Software installed to ‘C:\ProgramData\chocolatey\lib\mingw\tools\install’

    golang v1.18.4 [Approved]
    golang package files install completed. Performing other installation steps.
    The package golang wants to run ‘chocolateyInstall.ps1’.
    Note: If you don’t run this script, the installation will fail.
    Note: To confirm automatically next time, use ‘-y’ or consider:
    choco feature enable -n allowGlobalConfirmation
    Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y

    Downloading golang 64 bit
    from ‘https://golang.org/dl/go1.18.4.windows-amd64.msi’
    Progress: 100% – Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\golang\1.18.4\go1.18.4.windows-amd64.msi (129.89 MB).
    Download of go1.18.4.windows-amd64.msi (129.89 MB) completed.
    Hashes match.
    Installing golang…
    golang has been installed.
    golang may be able to be automatically uninstalled.
    Environment Vars (like PATH) have changed. Close/reopen your shell to
    see the changes (or in powershell/cmd.exe just type refreshenv).
    The install of golang was successful.
    Software installed as ‘msi’, install location is likely default.

    upx v3.96 [Approved]
    upx package files install completed. Performing other installation steps.
    The package upx wants to run ‘chocolateyInstall.ps1’.
    Note: If you don’t run this script, the installation will fail.
    Note: To confirm automatically next time, use ‘-y’ or consider:
    choco feature enable -n allowGlobalConfirmation
    Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y

    Extracting 64-bit C:\ProgramData\chocolatey\lib\upx\tools\upx-3.96-win64_x64.zip to C:\ProgramData\chocolatey\lib\upx\tools…
    C:\ProgramData\chocolatey\lib\upx\tools
    ShimGen has successfully created a shim for upx.exe
    The install of upx was successful.
    Software installed to ‘C:\ProgramData\chocolatey\lib\upx\tools’

    Chocolatey installed 3/3 packages.
    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    >


    346 View Count