Comments (5)
This issue to be updated by @cwjohnston
from sensu-omnibus.
Branch feature/tk-windows
contains changes needed to add Windows builds to our test-kitchen-driven Travis CI pipeline.
In the Travis CI pipeline we use kitchen-ec2 driver to spin up EC2 instances in AWS. When we attempt to do so using Amazon's Windows 2012r2 AMI, Chef run fails trying to install the Windows SDK:
[WinRM] Processing output
================================================================================
Error executing action `install` on resource 'windows_sdk_feature[windows_software_development_kit]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '-2147023294'
---- Begin output of "C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe" /norestart /quiet /features OptionId.WindowsDesktopSoftwareDevelopmentKit ----
STDOUT:
STDERR:
---- End output of "C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe" /norestart /quiet /features OptionId.WindowsDesktopSoftwareDevelopmentKit ----
Ran "C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe" /norestart /quiet /features OptionId.WindowsDesktopSoftwareDevelopmentKit returned -2147023294
Resource Declaration:
---------------------
# In C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/windows-sdk/recipes/windows_sdk.rb
7: windows_sdk_feature :windows_software_development_kit do
8: install_path node["windows-sdk"]["install_path"]
9: end
Compiled Resource:
------------------
# Declared in C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/windows-sdk/recipes/windows_sdk.rb:7:in `from_file'
windows_sdk_feature("windows_software_development_kit") do
action :install
retries 0
retry_delay 2
default_guard_interpreter :default
features [:windows_software_development_kit]
declared_type :windows_sdk_feature
cookbook_name "windows-sdk"
recipe_name "windows_sdk"
end
Platform:
---------
x64-mingw32
Running handlers:
[2016-12-19T19:28:41+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-12-19T19:28:41+00:00] ERROR: Exception handlers complete
Chef Client failed. 58 resources updated in 09 minutes 51 seconds
[2016-12-19T19:28:41+00:00] FATAL: Stacktrace dumped to C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
[2016-12-19T19:28:41+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-12-19T19:28:41+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: windows_sdk_feature[windows_software_development_kit] (windows-sdk::windows_sdk line 7) had an error: Mixlib::ShellOut::ShellCommandF
ailed: Expected process to exit with [0], but received '-2147023294'
---- Begin output of "C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe" /norestart /quiet /features OptionId.WindowsDesktopSoftwareDevelopmentKit ----
STDOUT:
STDERR:
---- End output of "C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe" /norestart /quiet /features OptionId.WindowsDesktopSoftwareDevelopmentKit ----
Ran "C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe" /norestart /quiet /features OptionId.WindowsDesktopSoftwareDevelopmentKit returned -2147023294
D [WinRM] cleaning up command_id: 1F2C0133-ACB5-4D61-927F-AD2F5F1C9C78 on shell_id DE8C071E-47A7-46A2-A132-67C15ABF4D73
See this gist for a complete log of the installation failure.
After the Chef run failure I can successfully install the Windows SDK manually (using RDP). With the Windows SDK installed, I have seen a couple of additional failures.
patch
fails when it can't find a patch file, although the next Chef run seems to move past this:
Error: patch: **** Can't open patch file ../../../../opt/sensu-omnibus/config/patches/zlib/zlib-windows-relocate.patch : No such file or directory
- Chef run fails due to a linker error:
Error executing action `execute` on resource 'omnibus_build[sensu]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[sensu: bundle exec omnibus build sensu --log-level info --config /opt/sensu-omnibus/omnibus.rb ] (dynamically defined) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of call C:\omnibus\load-omnibus-toolchain.bat && bundle exec omnibus build sensu --log-level info --config /opt/sensu-omnibus/omnibus.rb ----
STDOUT: ========================================
= Environment
========================================
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\vagrant\AppData\Roaming
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=Tue Dec 20 05:01:43 2016
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=WIN-8L32U235J5V
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOME=C:/Users/vagrant
HOMEDRIVE=C:
HOMEPATH=\omnibus
LOCALAPPDATA=C:\Users\vagrant\AppData\Local
LOGONSERVER=\\WIN-8L32U235J5V
MSYSTEM=MINGW64
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\msys2\bin;C:\msys2\mingw64\bin;C:\msys2\usr\bin;C:\Program Files (x86)\Git\Cmd;C:\Program Files (x86)\Git\libexec\git-core;C:\languages\ruby\2.1.8\bin;C:\wix;C:\Program Files\7-zip;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\wix;C:\Program Files (x86)\Git\Cmd;C:\Program Files (x86)\Git\libexec\git-core;C:\Program Files\7-zip;C:\Program Files\Git\Cmd;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\opscode\chef\bin\;C:\Program Files\Git\cmd;C:/opscode/chef/embedded/bin;C:/opscode/chef/embedded/bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW;.CPL
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=4501
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSExecutionPolicyPreference=Bypass
PSModulePath=C:\Users\vagrant\Documents\WindowsPowerShell\Modules;C:\Users\vagrant\AppData\Roaming\Boxstarter;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SSL_CERT_FILE=C:\languages\ruby\2.1.8\ssl\certs\cacert.pem
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\vagrant\AppData\Local\Temp
TEST_KITCHEN=1
TMP=C:\Users\vagrant\AppData\Local\Temp
USER=omnibus
USERDOMAIN=WIN-8L32U235J5V
USERDOMAIN_ROAMINGPROFILE=WIN-8L32U235J5V
USERNAME=omnibus
USERPROFILE=C:\Users\vagrant
windir=C:\Windows
LC_ALL=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
SENSU_VERSION=0.27.0.beta.2
BUILD_NUMBER=3006
GPG_PASSPHRASE=
OMNIBUS_WINDOWS_ARCH=x86
LOGNAME=omnibus
========================================
= Tool Versions
========================================
7-Zip..........7-Zip [64] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31
Bundler........Bundler version 1.13.7
GCC............gcc (Rev2, Built by MSYS2 project) 6.2.0
Git............git version 2.6.2.windows.1
Make...........GNU Make 4.2.1
Ruby...........ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32]
RubyGems.......2.2.5
WiX:Candle.....Windows Installer XML Toolset Compiler version 3.10.2.2516
WiX:Heat.......Windows Installer XML Toolset Toolset Harvester version 3.10.2.2516
WiX:Light......Windows Installer XML Toolset Linker version 3.10.2.2516
========================================
[CLI] I | 2016-12-27T21:37:33+00:00 | Using config from '/opt/sensu-omnibus/omnibus.rb'
[Software: config_guess] W | 2016-12-27T21:37:35+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: eventmachine] W | 2016-12-27T21:37:35+00:00 | Version v1.2.1 for software eventmachine was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: ruby-windows-devkit] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for ruby-windows-devkit
[Software: ruby-windows-devkit] W | 2016-12-27T21:37:35+00:00 | DEPRECATED: project_file (DSL). This is a property of the NetFetcher and will not be publically exposed in the next major release. In general, you should not be using this method in your software definitions as it is an internal implementation detail of the NetFetcher. If you disagree with this statement, you should open an issue on the Omnibus repository on GitHub an explain your use case. For now, I will return the path to the downloaded file on disk, but please rethink the problem you are trying to solve :).
Building sensu 0.27.0.beta.2...
[Software: zlib] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for zlib
[Software: cacerts] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for cacerts
[Software: preparation] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for preparation
[NullFetcher: preparation] I | 2016-12-27T21:37:35+00:00 | Fetching `preparation' (nothing to fetch)
[Software: openssl] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for openssl
[Software: libffi] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for libffi
[Software: libyaml] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for libyaml
[Software: config_guess] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for config_guess
[Software: config_guess] W | 2016-12-27T21:37:35+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: config_guess] W | 2016-12-27T21:37:35+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: libiconv] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for libiconv
[Software: ruby] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for ruby
[Software: rubygems] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for rubygems
[NullFetcher: rubygems] I | 2016-12-27T21:37:35+00:00 | Fetching `rubygems' (nothing to fetch)
[Software: rb-readline-gem] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for rb-readline-gem
[NullFetcher: rb-readline-gem] I | 2016-12-27T21:37:35+00:00 | Fetching `rb-readline-gem' (nothing to fetch)
[Software: libstdc++] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for libstdc++
[NullFetcher: libstdc++] I | 2016-12-27T21:37:35+00:00 | Fetching `libstdc++' (nothing to fetch)
[Software: eventmachine] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for eventmachine
[Software: eventmachine] W | 2016-12-27T21:37:35+00:00 | Version v1.2.1 for software eventmachine was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: eventmachine] W | 2016-12-27T21:37:35+00:00 | Version v1.2.1 for software eventmachine was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: package-scripts] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for package-scripts
[Software: package-scripts] W | 2016-12-27T21:37:35+00:00 | Version b6d1d08b748fc72fc4ad435bf80df003c1cedea8
for software package-scripts was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: package-scripts] W | 2016-12-27T21:37:35+00:00 | Version b6d1d08b748fc72fc4ad435bf80df003c1cedea8
for software package-scripts was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[NullFetcher: package-scripts] I | 2016-12-27T21:37:35+00:00 | Fetching `package-scripts' (nothing to fetch)
[Software: sensu-gem] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for sensu-gem
[NullFetcher: sensu-gem] I | 2016-12-27T21:37:35+00:00 | Fetching `sensu-gem' (nothing to fetch)
[Software: version-manifest] I | 2016-12-27T21:37:35+00:00 | Resolving manifest entry for version-manifest
[NullFetcher: version-manifest] I | 2016-12-27T21:37:35+00:00 | Fetching `version-manifest' (nothing to fetch)
[Licensing] W | 2016-12-27T21:37:36+00:00 | Project 'sensu' does not point to a license file.
[Licensing] I | 2016-12-27T21:37:36+00:00 | Project 'sensu' is using 'MIT License' which is not one of the standard licenses identified in https://opensource.org/licenses/alphabetical. Consider using one of the standard licenses.
[Software: package-scripts] W | 2016-12-27T21:37:36+00:00 | Version b6d1d08b748fc72fc4ad435bf80df003c1cedea8
for software package-scripts was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: config_guess] W | 2016-12-27T21:37:36+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: eventmachine] W | 2016-12-27T21:37:36+00:00 | Version v1.2.1 for software eventmachine was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'preparation' does not contain licensing information.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'cacerts' does not contain licensing information.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'libffi' does not contain licensing information.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'libyaml' does not contain licensing information.
[Licensing] I | 2016-12-27T21:37:36+00:00 | Software 'config_guess' uses license 'GPL-3.0 (with exception)' which is not one of the standard licenses identified in https://opensource.org/licenses/alphabetical. Consider using one of the standard licenses.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'rb-readline-gem' does not contain licensing information.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'libstdc++' does not contain licensing information.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'eventmachine' does not contain licensing information.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'sensu-gem' does not contain licensing information.
[Licensing] W | 2016-12-27T21:37:36+00:00 | Software 'version-manifest' does not contain licensing information.
[Software: preparation] I | 2016-12-27T21:37:36+00:00 | Restored from cache
[Software: zlib] I | 2016-12-27T21:37:36+00:00 | Could not restore from cache
[NetFetcher: zlib] I | 2016-12-27T21:37:36+00:00 | Cleaning project directory `C:/omnibus-ruby/src/zlib'
[NetFetcher: zlib] I | 2016-12-27T21:37:36+00:00 | Extracting `C:\omnibus-ruby\cache\zlib-1.2.8.tar.gz' to `C:\omnibus-ruby\src\zlib'
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | Starting build
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | Environment:
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | BINARY_PATH="/bin"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | CFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | CPPFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | CXXFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | DESTDIR="C:/sensu/embedded"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | INCLUDE_PATH="/include"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | LDFLAGS="-LC:/sensu/embedded/lib -m32 -fno-lto"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | LD_RUN_PATH="C:/sensu/embedded/lib"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | LIBRARY_PATH="/lib"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | PKG_CONFIG_PATH="C:/sensu/embedded/lib/pkgconfig"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | Path="C:/sensu/bin;C:/sensu/embedded/bin;C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bin;C:\\msys2\\bin;C:\\msys2\\mingw64\\bin;C:\\msys2\\usr\\bin;C:\\Program Files (x86)\\Git\\Cmd;C:\\Program Files (x86)\\Git\\libexec\\git-core;C:\\languages\\ruby\\2.1.8\\bin;C:\\wix;C:\\Program Files\\7-zip;C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64;C:\\Program Files\\Git\\Cmd;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\chocolatey\\bin;C:\\opscode\\chef\\bin\\;C:\\Program Files\\Git\\cmd;C:/opscode/chef/embedded/bin"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | $ bash -c 'patch -p1 -i ../../../../opt/sensu-omnibus/config/patches/zlib/zlib-windows-relocate.patch'
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | Apply patch `zlib-windows-relocate.patch': 0.3601s
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | Environment:
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | BINARY_PATH="/bin"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | CFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | CPPFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | CXXFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | DESTDIR="C:/sensu/embedded"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | INCLUDE_PATH="/include"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | LDFLAGS="-LC:/sensu/embedded/lib -m32 -fno-lto"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | LD_RUN_PATH="C:/sensu/embedded/lib"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | LIBRARY_PATH="/lib"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | PKG_CONFIG_PATH="C:/sensu/embedded/lib/pkgconfig"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | Path="C:/sensu/bin;C:/sensu/embedded/bin;C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bin;C:\\msys2\\bin;C:\\msys2\\mingw64\\bin;C:\\msys2\\usr\\bin;C:\\Program Files (x86)\\Git\\Cmd;C:\\Program Files (x86)\\Git\\libexec\\git-core;C:\\languages\\ruby\\2.1.8\\bin;C:\\wix;C:\\Program Files\\7-zip;C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64;C:\\Program Files\\Git\\Cmd;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\ProgramData\\chocolatey\\bin;C:\\opscode\\chef\\bin\\;C:\\Program Files\\Git\\cmd;C:/opscode/chef/embedded/bin"
[Builder: zlib] I | 2016-12-27T21:37:37+00:00 | $ bash -c 'make -fwin32/Makefile.gcc SHARED_MODE=1 CFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall" ASFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall" LDFLAGS="-LC:/sensu/embedded/lib -m32 -fno-lto"'
[Builder: zlib] I | 2016-12-27T21:37:40+00:00 | Execute: `make -fwin32/Makefile.gcc SHARED_MODE=1 CFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall" ASFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall" LDFLAGS="-LC:/sensu/embedded/lib -m32 -fno-lto"': 3.3281s
[Builder: zlib] I | 2016-12-27T21:37:40+00:00 | Build zlib: 3.7497s
STDERR: C:/opt/sensu-omnibus/omnibus.rb:11: warning: already initialized constant OpenSSL::SSL::VERIFY_PEER
The following shell command exited with status 2:
$ BINARY_PATH=/bin CFLAGS=-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 CPPFLAGS=-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 CXXFLAGS=-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 DESTDIR=C:/sensu/embedded INCLUDE_PATH=/include LDFLAGS=-LC:/sensu/embedded/lib -m32 -fno-lto LD_RUN_PATH=C:/sensu/embedded/lib LIBRARY_PATH=/lib PKG_CONFIG_PATH=C:/sensu/embedded/lib/pkgconfig Path=C:/sensu/bin;C:/sensu/embedded/bin;C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bin;C:\msys2\bin;C:\msys2\mingw64\bin;C:\msys2\usr\bin;C:\Program Files (x86)\Git\Cmd;C:\Program Files (x86)\Git\libexec\git-core;C:\languages\ruby\2.1.8\bin;C:\wix;C:\Program Files\7-zip;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files\Git\Cmd;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\opscode\chef\bin\;C:\Program Files\Git\cmd;C:/opscode/chef/embedded/bin bash -c 'make -fwin32/Makefile.gcc SHARED_MODE=1 CFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall" ASFLAGS="-IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall" LDFLAGS="-LC:/sensu/embedded/lib -m32 -fno-lto"'
Output:
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o adler32.o adler32.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o compress.o compress.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o crc32.o crc32.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o deflate.o deflate.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o gzclose.o gzclose.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o gzlib.o gzlib.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o gzread.o gzread.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o gzwrite.o gzwrite.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o infback.o infback.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o inffast.o inffast.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o inflate.o inflate.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o inftrees.o inftrees.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o trees.o trees.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o uncompr.o uncompr.c
gcc -IC:/sensu/embedded/include -m32 -O2 -fno-lto -march=i686 -Wall -c -o zutil.o zutil.c
ar rcs libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc
gcc -shared -Wl,--out-implib,libz.dll.a,--image-base,0x63300000 -LC:/sensu/embedded/lib -m32 -fno-lto \
-o zlib1.dll win32/zlib.def adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o zlibrc.o
Error:
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmingw32.a when searching for -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc_s.a when searching for -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0\libgcc_s.a when searching for -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc_s.a when searching for -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc.a when searching for -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0\libgcc.a when searching for -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc.a when searching for -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libpthread.dll.a when searching for -lpthread
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libpthread.a when searching for -lpthread
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libpthread.a when searching for -lpthread
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libpthread.dll.a when searching for -lpthread
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libpthread.a when searching for -lpthread
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpthread
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libadvapi32.a when searching for -ladvapi32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ladvapi32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libshell32.a when searching for -lshell32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lshell32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libuser32.a when searching for -luser32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -luser32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libkernel32.a when searching for -lkernel32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lkernel32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmingw32.a when searching for -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc_s.a when searching for -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0\libgcc_s.a when searching for -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc_s.a when searching for -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc.a when searching for -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0\libgcc.a when searching for -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc.a when searching for -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
collect2.exe: error: ld returned 1 exit status
make: *** [win32/Makefile.gcc:98: zlib1.dll] Error 1
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/util.rb:101:in `rescue in shellout!'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/util.rb:97:in `shellout!'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:814:in `shellout!'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:84:in `block in command'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:1001:in `instance_eval'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:1001:in `run'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:832:in `block (3 levels) in execute'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:854:in `with_retries'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:831:in `block (2 levels) in execute'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/instrumentation.rb:23:in `measure'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:830:in `block in execute'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:904:in `with_clean_env'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:829:in `execute'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:713:in `block (2 levels) in build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:712:in `each'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:712:in `block in build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/instrumentation.rb:23:in `measure'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/builder.rb:711:in `build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/software.rb:1235:in `execute_build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/software.rb:1096:in `build_me'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/project.rb:1077:in `block (2 levels) in build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/project.rb:1076:in `each'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/project.rb:1076:in `block in build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/licensing.rb:62:in `block in create_incrementally'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/licensing.rb:57:in `tap'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/licensing.rb:57:in `create_incrementally'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/project.rb:1075:in `build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/cli.rb:84:in `build'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/cli/base.rb:33:in `dispatch'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/lib/omnibus/cli.rb:42:in `execute!'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bundler/gems/omnibus-2e1d28daaa73/bin/omnibus:16:in `<top (required)>'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bin/omnibus:23:in `load'
C:/opt/sensu-omnibus/vendor/bundle/ruby/2.1.0/bin/omnibus:23:in `<main>'
---- End output of call C:\omnibus\load-omnibus-toolchain.bat && bundle exec omnibus build sensu --log-level info --config /opt/sensu-omnibus/omnibus.rb ----
Ran call C:\omnibus\load-omnibus-toolchain.bat && bundle exec omnibus build sensu --log-level info --config /opt/sensu-omnibus/omnibus.rb returned 1
Resource Declaration:
---------------------
# In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/omnibus_sensu/recipes/default.rb
94: omnibus_build "sensu" do
95: project_dir node["omnibus_sensu"]["project_dir"]
96: log_level :info
97: build_user "root" unless windows?
98: environment shared_env
99: live_stream true
100: end
101:
Compiled Resource:
------------------
# Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/omnibus_sensu/recipes/default.rb:94:in `from_file'
omnibus_build("sensu") do
action [:execute]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :omnibus_build
cookbook_name "omnibus_sensu"
recipe_name "default"
project_dir "/opt/sensu-omnibus"
log_level :info
environment {"SENSU_VERSION"=>"0.27.0.beta.2", "BUILD_NUMBER"=>"3006", "GPG_PASSPHRASE"=>"", "OMNIBUS_WINDOWS_ARCH"=>"x86", "USER"=>"omnibus", "USERNAME"=>"omnibus", "LOGNAME"=>"omnibus"}
live_stream true
base_dir "C:/omnibus-ruby"
project_name "sensu"
install_dir "C:/sensu"
build_user "omnibus"
config_file "/opt/sensu-omnibus/omnibus.rb"
end
Platform:
---------
x64-mingw32
Running handlers:
[2016-12-27T21:37:40+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-12-27T21:37:40+00:00] ERROR: Exception handlers complete
Chef Client failed. 15 resources updated in 45 seconds
[2016-12-27T21:37:40+00:00] FATAL: SystemCallError: The parameter is incorrect. - ReportEvent
from sensu-omnibus.
We've moved past the above build errors by upgrading omnibus to 5.0 release, which unifies build tools between windows and unix-like platforms.
As a result, the feature/tk-windows
branch can now be used to kick off builds in AWS via Test Kitchen as we are doing with Linux builds.
Known caveats:
- Windows package artifacts install new version of winsw and an XML configuration for same which do not start successfully as a WIndows Service out of the box.
- Windows builds take too long for us to add them to the Travis pipeline
- Windows publishing process fails more often than it succeeds, which means we usually have to manually intervene to push build artifacts to S3.
- Our current configuration is building packages for x86_64 where previously our Windows builds were 32bit (i386) only. We probably need to figure out how to get an 32bit build out of a 64bit Windows instance, as our options for 32bit Windows instances mostly revolve around rolling our own image.
from sensu-omnibus.
#85 includes the changes to add this build to our travis pipeline. The build succeeds, but omnibus publish
does not successfully upload an artifact to S3, nor does it raise an error in attempting to do so.
from sensu-omnibus.
We're going to call this one done ✅
Will track publishing issue separately. 🏈
from sensu-omnibus.
Related Issues (20)
- Ruby 2.4 issue #13794 affects sensu-client on AIX HOT 4
- [REGRESSION] EMBEDDED_RUBY default changed? HOT 4
- Broken SSL certificate handling in Linux packages HOT 2
- Copy sensu-translate to omnibus bin dir HOT 1
- Build packages for Ubuntu 18.04
- Service fail to run after package upgrade HOT 5
- Add builds for Ubuntu 18.04 HOT 2
- FreeBSD 11 builds are failing in CI HOT 2
- RPM packages should include changelog HOT 2
- postinstall scriptlet breaks LDAP sensu user on Linux
- Mac builds are failing HOT 2
- Solaris 10 packages do not install service manifest in /lib/svc/manifest/site HOT 1
- Solaris 10 packages fail to install cleanly due to missing directories HOT 1
- Packages for Ubuntu 16.04 and 18.04 collide HOT 1
- Update sensu-translator gem to 1.0.0 (for Sensu Go GA)
- Sensu Core 1.x packages conflict with Sensu Go packages
- sc command fails on Windows 2003 HOT 1
- rubygems-2.7.9 breaks --source option HOT 2
- Ruby version in README too low? HOT 1
- Upgraded embedded Ruby version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensu-omnibus.