-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boost 1.71.0 can't be compiled with mingw #16
Comments
type erasure module build failed:
...failed clang-linux.archive bin.v2\libs\type_erasure\build\clng-lnx-andrd\rls\lnk-sttc\trgt-os-andrd\thrdp-pthrd\thrd-mlt\vsblt-hdn\libboost_type_erasure-clang-mt-a32-1_71.a... other module or version 1.70.0 is okay. type_erasure issue only occur inside conan, it is okay when build standalone without conan. |
The same issue for me
bootstrap.log
g:\boost_1_71_0>g++ --version
|
Same here. Anyone found a solution to this? |
Installed the 1_70 version of boost + installed mingw_64 instead of unmaintained mingw, now compiles smoothly. |
Same problem: D:\CppLib\boost_1_71_0\tools\build>bootstrap.bat mingw define use_environ environ
jam.cpp:561:37: note: in expansion of macro 'use_environ' define use_environ environ
jam.cpp:561:37: note: in expansion of macro 'use_environ' Failed to bootstrap the build engine D:\CppLib\boost_1_71_0\tools\build>g++ --version |
Same here - 3 months later. I'm surprised such a fundamental problem got through the release procedure. I'm also going to try reverting to 1.70 |
Thanks! it works for me to change the version. |
Same problem.
Thanks! |
The problem still there. We must use MinGW_64 g++ compiler? But there are some issues with MinGW_64/Windows 10/Code::Blocks g++ --version git source to most current one (sync with master. version boost-1.72.0) Building Boost.Build engine define use_environ environ
jam.cpp:561:37: note: in expansion of macro 'use_environ' define use_environ environ
jam.cpp:561:37: note: in expansion of macro 'use_environ' Failed to build Boost.Build engine. |
If you're posting code, use the code tags FFS. |
@mclow, @grafikrobot, I think this is an issue in Boost.Build rather than Boost.TypeErasure.
|
Not just MingW, it can't be compiled with anything. going to try 1.70 |
I don't remember about the B2 that shipped with 1.71.. But at least the current B2 (4.3) builds fine with MinGW.. Some important facts:
|
I have the same issue. |
I'm currently trying to build boost 1.75, running boostrap.sh, in MinGW with gcc 6.3.0 and I am running into the same error: sysinfo.cpp:93:21: error: 'std::thread' has not been declared I had previously had -std=c++11 but based on the recommendation above I changed it to "gnu++11" but there is no change the build still generates the same error. |
Pretty sure that's because the version of MinGW is old enough that it doesn't have std::thread in the stdlib. Strongly suggest switching to a maintained version as suggested earlier in the thread. I switched to MSYS2 and the mingw-w64 that is available via its package manager, and am very happy with it (also Boost is available, so really no need to compile it yourself anymore unless you have a special case). |
Thank you for your recommendation jungletek! I upgraded my version on MinGW and used the package manager to get the latest gcc tool set (10.2.0). I am no longer seeing this error when I execute ./bootstrap.sh. It still does not build but due to other errors that will be in another post. |
I don't know how helpful it will be for anyone but here is my boost successful installation and configuration. Please note that the following instructions are for MSVC 14.2 without Mingw
a. Building for x86 architecture use the following command b. Building Debug for x64 architecture use the following command
Explaining the build command arguments Arguments used in the previous two commands. Source: George Gkasdrogkas See the full guide. It's very clean and easy. Regards |
The build flags may be helpful for some, but this is a thread about MinGW, so providing MSVC-related stuff is of questionable utility. |
bootstrap.bat gcc #come from E:\MinGW\bin
Building Boost.Build engine
builtins.cpp: In function 'FILE* windows_popen_wrapper(const char*, const char*)':
builtins.cpp:2483:39: error: '_popen' was not declared in this scope
result = _popen( command, "r" );
^
builtins.cpp: In function 'LIST* builtin_shell(FRAME*, int)':
builtins.cpp:2549:29: error: '_pclose' was not declared in this scope
exit_status = pclose( p );
...
1.70.0 is okay.
The text was updated successfully, but these errors were encountered: