moved from https://github.com/conan-community/community/issues/236, by @LunarWatcher
Very related to #188, with the main difference that I'm using Clang (not clang-cl) with MinGW. The stacktrace is actually identical:
ERROR: OpenSSL/1.0.2o@conan/stable: Error in build() method, line 124
raise Exception("Unsupported operating system: %s" % self.settings.os)
Exception: Unsupported operating system: Windows
Same issue with 1.1.1c and 1.1.1b.
ERROR: OpenSSL/1.1.1c@conan/stable: Error in build() method, line 101
raise Exception("Unsupported operating system: %s" % self.settings.os)
Exception: Unsupported operating system: Windows
Other packages compile fine (off the top of my head, fmt and I think zlib) with my setup as well, including packages from conan/stable (so this seems to be specific to this package, and maybe others I haven't tried).
pacman -Sy base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-glew mingw-w64-x86_64-SDL2. Not sure if I've left out any - I've installed a lot to get the environment working), Python 3, pip, and Conan)
export CXX=clang++ -target x86_64-pc-windows-gnu
export CC=clang -target x86_64-pc-windows-gnu
conan install OpenSSL/1.1.1c@conan/stable --build missingIt's working using Ninja. Do we need mingw?
https://gist.github.com/uilianries/b114b80aff1c7f8eb5b2e2ae0bd7fd9e
@uilianries MinGW isn't just a CMake generator. It's a toolchain, and can normally be used alongside ninja. I prefer ninja in general, but it's not comparable to MinGW. They're two different systems.
I see, I thought you are using clang + make.exe (that's why mingw was required)
This fails on Windows 10, gcc 8, mingw_installer/1.0@conan/stable
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.exception=seh
compiler.libcxx=libstdc++
compiler.threads=posix
compiler.version=8
os=Windows
os_build=Windows
[options]
[build_requires]
*: mingw_installer/1.0@conan/stable
[env]
The following error is shown:
openssl/1.1.1d: Configuring OpenSSL version 1.1.1d (0x1010104fL) for mingw-conan-Release-Windows-x86_64-gcc-8
openssl/1.1.1d: Using os-specific seed configuration
openssl/1.1.1d: Creating configdata.pm
openssl/1.1.1d: Creating Makefile
openssl/1.1.1d: Can't locate Pod/Usage.pm in @INC (you may need to install the Pod::Usage module) (@INC contains: . /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at configdata.pm line 13648.
openssl/1.1.1d: BEGIN failed--compilation aborted at configdata.pm line 13648.
openssl/1.1.1d: Compilation failed in require.
openssl/1.1.1d: BEGIN failed--compilation aborted.
openssl/1.1.1d:
openssl/1.1.1d: ERROR: Package '7c5dc145f1d2a7a4dae0800ece9117131c661244' build failed
Most helpful comment
This fails on Windows 10, gcc 8, mingw_installer/1.0@conan/stable
The following error is shown: