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.

[boost] boost/1.70: MinGW build tries to use MSVC

See original GitHub issue

Package and Environment Details

  • Package Name/Version: boost/1.70
  • Operating System+version: Windows 10 Version 1903
  • Compiler+version: MinGW 8.1.0
  • Conan version: conan 1.19.1
  • Python version: Python 3.7.4

Conan profile

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=8
compiler.libcxx=libstdc++11
build_type=Release
compiler.exception=seh
compiler.threads=posix
[options]
[build_requires]
*: mingw_installer/1.0@conan/stable, msys2_installer/latest@bincrafters/stable, cmake_installer/3.14.5@conan/stable
[env]

Steps to reproduce

Using MinGW I am no longer able to build. It selects gcc as the bootstrap compiler, but somehow falls back to msvc. This was working with an earlier recipe or boost version. I never had Visual Studio installed on this system.

I am using the following configuration in the conanfile.txt:

boost:bzip2 = False
boost:namespace = boost_ns
boost:namespace_alias = True
boost:magic_autolink = True

Logs

Click to expand log
boost/1.70.0@local/testing: Calling build()
boost/1.70.0@local/testing: bootstrap.bat gcc
Bootstrapping the build engine

Bootstrapping is done. To build, run:

    .\b2 --prefix=DIR install

boost/1.70.0@local/testing: WARN: C:\.conan\8011029\1\boost_1_70_0\tools\build\b2.exe -j8 --abbreviate-paths -d2
warning: No toolsets are configured.
warning: Configuring default toolset "msvc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html

warning: Did not find command for MSVC toolset. If you have Visual Studio 2017 installed you will need to specify the full path to the command, set VS150COMNTOOLS for your installation, or build from the 'Visual Studio Command Prompt for VS 2017'.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SSE4commented, Nov 14, 2019

@firewave I see now, if using namespace option, build of bcp doesn’t utilize the toolset

0reactions
danimtbcommented, Dec 12, 2019

Thanks for reporting @firewave. Glad it finally worked! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Boost 1_70_0 to MS V Studio 2019 C++ - Stack Overflow
1.- Run bootstrap from VS prompt. · 2.- In C:\boost_some_ver\project-config.jam , edit the line using msvc ; and change to using msvc :...
Read more >
Boost Getting Started on Windows - 1.70.0
To build the examples in this guide, you can use an Integrated Development Environment (IDE) like Visual Studio, or you can issue commands...
Read more >
Boost.Build V2 User Manual
If you're trying to build a project which uses Boost. ... using msvc : : echo Compiling && foo/bar/baz/cl ; will work.
Read more >
How to build Boost 1.60 with Visual Studio 2015
There are a couple ways to use Boost 1.60 with Visual Studio 2013 or 2015, here are two ways. Property pages and Property...
Read more >
Boost Getting Started on Windows
A note to Cygwin and MinGW users. If you plan to use your tools from the Windows command prompt, you're in the right...
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