question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] poco/1.10.1: MinGW build

See original GitHub issue

MinGW build fails with error:

CMake Error at cmake/PocoMacros.cmake:46 (message):
  message compiler not found: required to build

Package and Environment Details

  • Package Name/Version: poco/1.10.1
  • Operating System+version: Win 10
  • Compiler+version: g++.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
  • Conan version: Conan version 1.25.2
  • Python version: Python 3.7.4

Conan profile

conan profile show mingw
Configuration for profile mingw:

[settings]
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=8
compiler.exception=seh
compiler.libcxx=libstdc++11
compiler.threads=posix
os=Windows
os_build=Windows
[options]
[build_requires]
*: msys2/20190524, mingw_installer/1.0@conan/stable
[env]

Steps to reproduce

conanfile.txt:

conan profile show mingw
Configuration for profile mingw:

[settings]
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=8
compiler.exception=seh
compiler.libcxx=libstdc++11
compiler.threads=posix
os=Windows
os_build=Windows
[options]
[build_requires]
*: msys2/20190524, mingw_installer/1.0@conan/stable
[env]

Command:

conan install .. --profile mingw --build=missing

Logs (Include/Attach if Applicable)

Click to expand log
 conan install .. --profile mingw --build=missing
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.exception=seh
compiler.libcxx=libstdc++11
compiler.threads=posix
compiler.version=8
os=Windows
os_build=Windows
[options]
[build_requires]
*: msys2/20190524, mingw_installer/1.0@conan/stable
[env]

poco/1.10.1: WARN: Package is corrupted, removing folder: C:\Users\14610\.conan\data\poco\1.10.1\_\_\package\a95499d70430680638b7c8057bd99c945248b2bc
conanfile.txt: Installing package
Requirements
    openssl/1.1.1g from 'conan-center' - Cache
    poco/1.10.1 from 'conan-center' - Cache
Packages
    openssl/1.1.1g:4b8f5a096ecfd6aabff608521169f167b01837ec - Cache
    poco/1.10.1:a95499d70430680638b7c8057bd99c945248b2bc - Build
Build requirements
    mingw_installer/1.0@conan/stable from 'conan-center' - Cache
    msys2/20190524 from 'conan-center' - Cache
Build requirements packages
    mingw_installer/1.0@conan/stable:4b8f5a096ecfd6aabff608521169f167b01837ec - Cache
    msys2/20190524:3cbd862cb7a3ea47ed1220dc027f344262d5224f - Cache

Installing (downloading, building) binaries...
mingw_installer/1.0@conan/stable: Already installed!
msys2/20190524: Already installed!
msys2/20190524: Creating MSYS_ROOT env var : C:\.conan\14a688d\1\bin
msys2/20190524: Creating MSYS_BIN env var : C:\.conan\14a688d\1\bin\usr\bin
msys2/20190524: Appending PATH env var with : C:\.conan\14a688d\1\bin\usr\bin
msys2/20190524: Creating MSYS_ROOT env var : C:\.conan\14a688d\1\bin
msys2/20190524: Creating MSYS_BIN env var : C:\.conan\14a688d\1\bin\usr\bin
msys2/20190524: Appending PATH env var with : C:\.conan\14a688d\1\bin\usr\bin
openssl/1.1.1g: Already installed!
poco/1.10.1: Applying build-requirement: msys2/20190524
poco/1.10.1: Applying build-requirement: mingw_installer/1.0@conan/stable
poco/1.10.1: WARN: Build folder is dirty, removing it: C:\Users\14610\.conan\data\poco\1.10.1\_\_\build\a95499d70430680638b7c8057bd99c945248b2bc
poco/1.10.1: Copying sources to build folder
poco/1.10.1: Building your package in C:\Users\14610\.conan\data\poco\1.10.1\_\_\build\a95499d70430680638b7c8057bd99c945248b2bc
poco/1.10.1: Generator cmake created conanbuildinfo.cmake
poco/1.10.1: Calling build()
poco/1.10.1: OrderedDict([('CONAN_IN_LOCAL_CACHE', 'ON'), ('CONAN_COMPILER', 'gcc'), ('CONAN_COMPILER_VERSION', '8'), ('CONAN_CXX_FLAGS', '-m64'), ('CONAN_SHARED_LINKER_FLAGS', '-m64'), ('CONAN_C_FLAGS', '-m64'), ('CONAN_LIBCXX', 'libstdc++11'), ('BUILD_SHARED_LIBS', 'OFF'), ('CMAKE_INSTALL_PREFIX', 'C:\\Users\\14610\\.conan\\data\\poco\\1.10.1\\_\\_\\package\\a95499d70430680638b7c8057bd99c945248b2bc'), ('CMAKE_INSTALL_BINDIR', 'bin'), ('CMAKE_INSTALL_SBINDIR', 'bin'), ('CMAKE_INSTALL_LIBEXECDIR', 'bin'), ('CMAKE_INSTALL_LIBDIR', 'lib'), ('CMAKE_INSTALL_INCLUDEDIR', 'include'), ('CMAKE_INSTALL_OLDINCLUDEDIR', 'include'), ('CMAKE_INSTALL_DATAROOTDIR', 'share'), ('CMAKE_EXPORT_NO_PACKAGE_REGISTRY', 'ON'), ('CONAN_EXPORTED', '1'), ('CXX_14', 'OFF'), ('ENABLE_APACHECONNECTOR', 'OFF'), ('ENABLE_CPPPARSER', 'OFF'), ('ENABLE_CRYPTO', 'ON'), ('ENABLE_DATA', 'ON'), ('ENABLE_DATA_MYSQL', 'OFF'), ('ENABLE_DATA_ODBC', 'OFF'), ('ENABLE_DATA_POSTGRESQL', 'OFF'), ('ENABLE_DATA_SQLITE', 'ON'), ('ENABLE_ENCODINGS', 'ON'), ('ENABLE_JSON', 'ON'), ('ENABLE_JWT', 'ON'), ('ENABLE_MONGODB', 'ON'), ('ENABLE_NET', 'ON'), ('ENABLE_NETSSL', 'ON'), ('ENABLE_NETSSL_WIN', 'ON'), ('ENABLE_PAGECOMPILER', 'OFF'), ('ENABLE_PAGECOMPILER_FILE2PAGE', 'OFF'), ('ENABLE_PDF', 'OFF'), ('ENABLE_POCODOC', 'OFF'), ('ENABLE_REDIS', 'ON'), ('ENABLE_SEVENZIP', 'OFF'), ('ENABLE_TESTS', 'OFF'), ('ENABLE_UTIL', 'ON'), ('ENABLE_XML', 'ON'), ('ENABLE_ZIP', 'ON'), ('FORCE_OPENSSL', 'ON'), ('POCO_UNBUNDLED', 'OFF'), ('POCO_STATIC', 'ON'), ('CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP', True)])
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Users/14610/.conan/data/mingw_installer/1.0/conan/stable/package/4b8f5a096ecfd6aabff608521169f167b01837ec/bin/gcc.exe
-- Check for working C compiler: C:/Users/14610/.conan/data/mingw_installer/1.0/conan/stable/package/4b8f5a096ecfd6aabff608521169f167b01837ec/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/14610/.conan/data/mingw_installer/1.0/conan/stable/package/4b8f5a096ecfd6aabff608521169f167b01837ec/bin/g++.exe
-- Check for working CXX compiler: C:/Users/14610/.conan/data/mingw_installer/1.0/conan/stable/package/4b8f5a096ecfd6aabff608521169f167b01837ec/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan CMake Wrapper
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: Compiler GCC>=5, checking major version 8
-- Conan: Checking correct version: 8
-- Conan: C++ stdlib: libstdc++11
-- Checking for C++14 compiler
-- Checking for C++14 compiler - available
CMake Error at cmake/PocoMacros.cmake:46 (message):
  message compiler not found: required to build
Call Stack (most recent call first):
  CMakeListsOriginal.cmake:54 (include)
  CMakeLists.txt:11 (include)


-- Configuring incomplete, errors occurred!
See also "C:/Users/14610/.conan/data/poco/1.10.1/_/_/build/a95499d70430680638b7c8057bd99c945248b2bc/build_subfolder/CMakeFiles/CMakeOutput.log".
poco/1.10.1:
poco/1.10.1: ERROR: Package 'a95499d70430680638b7c8057bd99c945248b2bc' build failed
poco/1.10.1: WARN: Build folder C:\Users\14610\.conan\data\poco\1.10.1\_\_\build\a95499d70430680638b7c8057bd99c945248b2bc
ERROR: poco/1.10.1: Error in build() method, line 162
        cmake = self._configure_cmake()
while calling '_configure_cmake', line 157
        self._cmake.configure(build_dir=self._build_subfolder, source_dir=os.path.join("..", self._source_subfolder))
        ConanException: Error 1 while executing cd build_subfolder && cmake -G "MinGW Makefiles" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="8" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="C:\Users\14610\.conan\data\poco\1.10.1\_\_\package\a95499d70430680638b7c8057bd99c945248b2bc" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCXX_14="OFF" -DENABLE_APACHECONNECTOR="OFF" -DENABLE_CPPPARSER="OFF" -DENABLE_CRYPTO="ON" -DENABLE_DATA="ON" -DENABLE_DATA_MYSQL="OFF" -DENABLE_DATA_ODBC="OFF" -DENABLE_DATA_POSTGRESQL="OFF" -DENABLE_DATA_SQLITE="ON" -DENABLE_ENCODINGS="ON" -DENABLE_JSON="ON" -DENABLE_JWT="ON" -DENABLE_MONGODB="ON" -DENABLE_NET="ON" -DENABLE_NETSSL="ON" -DENABLE_NETSSL_WIN="ON" -DENABLE_PAGECOMPILER="OFF" -DENABLE_PAGECOMPILER_FILE2PAGE="OFF" -DENABLE_PDF="OFF" -DENABLE_POCODOC="OFF" -DENABLE_REDIS="ON" -DENABLE_SEVENZIP="OFF" -DENABLE_TESTS="OFF" -DENABLE_UTIL="ON" -DENABLE_XML="ON" -DENABLE_ZIP="ON" -DFORCE_OPENSSL="ON" -DPOCO_UNBUNDLED="OFF" -DPOCO_STATIC="ON" -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP="True" -Wno-dev ..\source_subfolder

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sourcedelicacommented, May 29, 2020
0reactions
bgsacommented, May 20, 2022

I have the same problem to build POCO with MSYS. If I remove “with_net” the SMTPClient goes away?

Read more comments on GitHub >

github_iconTop Results From Across the Web

mingw-w64-x86_64-poco - MSYS2 Packages
POrtable COmponents C++ Libraries (mingw-w64) ... Build Date: 2022-01-24 09:10:37; Signed By: Christoph Reiter; Signature Date: 2022-01-25 07:42:12; Package ...
Read more >
POCO C++ Libraries Release Notes
Added support for MinGW cross builds on Linux. Changed location of statically linked build products in the gmake-based build system. Statically linked ......
Read more >
Compile Poco with MinGW on Windows - Stack Overflow
With this enviroment: MinGW (GCC 4.7.0) + MSYS; Poco 1.4.6 (downloaded at 5 febrery 2013). This is how I configure and compile Poco...
Read more >
Downloads - MinGW-w64
Pre-built toolchains and packages ; LLVM-MinGW, 20220323, Windows, Linux ; w64devkit, 1.17.0, Windows ; MacPorts logo MacPorts, Rolling, macOS ; MingW-W64-builds ...
Read more >
WinLibs - GCC+MinGW-w64 compiler for Windows
WinLibs - MinGW-w64 personal build = GCC for Windows 32-bit and 64-bit - Coming soon: the largest collection of open source libraries ported...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found