Vcpkg: [boost-locale:x64-mingw-static] build failure

Created on 26 Sep 2020  路  5Comments  路  Source: microsoft/vcpkg

Host Environment

  • OS: Windows (Insider Build 20221)
  • Compiler: x64-mingw-static

To Reproduce
Steps to reproduce the behavior:
./vcpkg --triplet x64-mingw-static install boost-locale

Failure logs
-Cut and past the appropriate build messages from the console output.

CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:141 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v
Working Directory: C:/vcpkg/buildtrees/boost-locale/x64-mingw-static-dbg
See logs for more information:
C:vcpkgbuildtreesboost-localeinstall-x64-mingw-static-dbg-out.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
installed/x64-mingw-static/share/boost-build/boost-modular-build.cmake:133 (vcpkg_install_cmake)
installed/x64-mingw-static/share/boost-build/boost-modular-build.cmake:138 (unix_build)
ports/boost-locale/portfile.cmake:13 (boost_modular_build)
scripts/ports.cmake:79 (include)

-Please attach any additional failure logs mentioned in the console output.
https://pastebin.com/qn8EQZFJ

community-triplet repro

Most helpful comment

Confirmed it's an error in the b2 options, will have a fix soon

All 5 comments

@comedinha, I'm not sure if it's related to mingw, however, the gcc-5.4.1 revision looks old, I can't repro this issue with gcc 7.5.0 on Unbuntu 18.04. This is not usual scenario we're working on now, but we accept PRs for fixing this issue. Sorry for that.

@comedinha, I'm not sure if it's related to mingw, however, the gcc-5.4.1 revision looks old, I can't repro this issue with gcc 7.5.0 on Unbuntu 18.04. This is not usual scenario we're working on now, but we accept PRs for fixing this issue. Sorry for that.

I didn't realize this, the version of gcc that I have on my machine is 10.2.0-3 installed by MSYS2

image

Failures:

C:/msys64/mingw64/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ..\src\posix\codecvt.cpp:14:
..\src\posix\all_generator.hpp:25:59: error: 'locale_t' was not declared in this scope; did you mean '_locale_t'?
   25 |                                         boost::shared_ptr<locale_t> lc,
      |                                                           ^~~~~~~~
      |                                                           _locale_t
..\src\posix\all_generator.hpp:25:67: error: template argument 1 is invalid
   25 |                                         boost::shared_ptr<locale_t> lc,
      |                                                                   ^
..\src\posix\all_generator.hpp:29:59: error: 'locale_t' was not declared in this scope; did you mean '_locale_t'?
   29 |                                         boost::shared_ptr<locale_t> lc,
      |                                                           ^~~~~~~~
      |                                                           _locale_t
..\src\posix\all_generator.hpp:29:67: error: template argument 1 is invalid
   29 |                                         boost::shared_ptr<locale_t> lc,
      |                                                                   ^
..\src\posix\all_generator.hpp:33:63: error: 'locale_t' was not declared in this scope; did you mean '_locale_t'?
   33 |                                             boost::shared_ptr<locale_t> lc,
      |                                                               ^~~~~~~~
      |                                                               _locale_t
..\src\posix\all_generator.hpp:33:71: error: template argument 1 is invalid
   33 |                                             boost::shared_ptr<locale_t> lc,
      |                                                                       ^
..\src\posix\all_generator.hpp:37:59: error: 'locale_t' was not declared in this scope; did you mean '_locale_t'?
   37 |                                         boost::shared_ptr<locale_t> lc,
      |                                                           ^~~~~~~~
      |                                                           _locale_t
..\src\posix\all_generator.hpp:37:67: error: template argument 1 is invalid
   37 |                                         boost::shared_ptr<locale_t> lc,
      |                                                                   ^

    "C:/msys64/mingw64/bin/c++.exe"   -g -m64 -mthreads -O0 -fno-inline -Wall -g  -DBOOST_ALL_NO_LIB=1 -DBOOST_LOCALE_WITH_ICONV=1 -DBOOST_THREAD_NO_LIB=1  -I"..\include" -I"C:\vcpkg\installed\x64-mingw-static\include" -I"C:\vcpkg\installed\x64-mingw-static\debug\lib\include" -c -o "C:\vcpkg\buildtrees\boost-locale\x64-mingw-static-dbg\boost\build\e3cde813a01d557174a1b469417f2150\posix\codecvt.o" "..\src\posix\codecvt.cpp"

...failed gcc.compile.c++ C:\vcpkg\buildtrees\boost-locale\x64-mingw-static-dbg\boost\build\e3cde813a01d557174a1b469417f2150\posix\codecvt.o...
gcc.compile.c++ C:\vcpkg\buildtrees\boost-locale\x64-mingw-static-dbg\boost\build\e3cde813a01d557174a1b469417f2150\shared\formatting.o
gcc.compile.c++ C:\vcpkg\buildtrees\boost-locale\x64-mingw-static-dbg\boost\build\e3cde813a01d557174a1b469417f2150\shared\format.o
gcc.compile.c++ C:\vcpkg\buildtrees\boost-locale\x64-mingw-static-dbg\boost\build\e3cde813a01d557174a1b469417f2150\posix\converter.o
..\src\posix\converter.cpp:23:10: fatal error: langinfo.h: No such file or directory
   23 | #include <langinfo.h>
      |          ^~~~~~~~~~~~
compilation terminated.

    "C:/msys64/mingw64/bin/c++.exe"   -g -m64 -mthreads -O0 -fno-inline -Wall -g  -DBOOST_ALL_NO_LIB=1 -DBOOST_LOCALE_WITH_ICONV=1 -DBOOST_THREAD_NO_LIB=1  -I"..\include" -I"C:\vcpkg\installed\x64-mingw-static\include" -I"C:\vcpkg\installed\x64-mingw-static\debug\lib\include" -c -o "C:\vcpkg\buildtrees\boost-locale\x64-mingw-static-dbg\boost\build\e3cde813a01d557174a1b469417f2150\posix\converter.o" "..\src\posix\converter.cpp"

...failed gcc.compile.c++ C:\vcpkg\buildtrees\boost-locale\x64-mingw-static-dbg\boost\build\e3cde813a01d557174a1b469417f2150\posix\converter.o...

Seems like a Boost error for me (note the langinfo.h, which is a POSIX header), can you try pulling latest master and retry? Boost just got updated to 1.74.0

Confirmed it's an error in the b2 options, will have a fix soon

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tzbo picture tzbo  路  3Comments

cjvaijo picture cjvaijo  路  3Comments

grandprixgp picture grandprixgp  路  3Comments

jack17529 picture jack17529  路  3Comments

invy picture invy  路  3Comments