Compiling for windows: "configure: error: No working boost sleep implementation found" #10700

issue NicolasDorier opened this issue on June 29, 2017
  1. NicolasDorier commented at 4:26 AM on June 29, 2017: contributor

    Running ./configure --prefix=pwd/depends/x86_64-w64-mingw32 --without-gui --disable-zmq --disable-bench --enable-debug --disable-tests

    I am building on WSL.

    checking whether the Boost::Chrono library is available... yes
    checking for exit in -lboost_chrono-mt-s... yes
    checking for mismatched boost c++11 scoped enums... ok
    configure: error: No working boost sleep implementation found.
    

    I already ran sudo apt-get install libboost-all-dev.

    Config Log

    Doing the exact same commandline, on the exact same folder mounter to a docker container works fine. It seems to go wrong only on WSL.

    Here the Config Log of the working version.

  2. fanquake added the label Windows on Jun 29, 2017
  3. NicolasDorier commented at 4:36 AM on June 29, 2017: contributor

    Investigation seems to point on the version of mingw

    Working:

    /usr/lib/gcc/x86_64-w64-mingw32/4.8
    

    No working:

    /usr/lib/gcc/x86_64-w64-mingw32/5.3-win32
    
  4. NicolasDorier commented at 4:51 AM on June 29, 2017: contributor

    On the failing one, this seems to be the relevant part

    | #define HAVE_BOOST_CHRONO /**/
    | /* end confdefs.h.  */
    |
    |   #include <boost/thread/thread.hpp>
    |   #include <boost/version.hpp>
    |
    | int
    | main ()
    | {
    |
    |   #if BOOST_VERSION >= 105000 && (!defined(BOOST_HAS_NANOSLEEP) || BOOST_VERSION >= 105200)
    |       boost::this_thread::sleep_for(boost::chrono::milliseconds(0));
    |   #else
    |    choke me
    |   #endif
    |
    |   ;
    |   return 0;
    | }
    configure:28187: x86_64-w64-mingw32-g++ -std=c++11 -o conftest.exe -pipe -O2  -g3 -O0 -I/mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/  -DDEBUG -DDEBUG_LOCKORDER -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -D_FILE_OFFSET_BITS=64 -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -mthreads -I/mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include -L/mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../lib  conftest.cpp -L/mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../lib -lboost_system-mt-s -lboost_filesystem-mt-s -lboost_program_options-mt-s -lboost_thread_win32-mt-s -lboost_chrono-mt-s -lssp -lcrypt32 -liphlpapi -lshlwapi -lmswsock -lws2_32 -ladvapi32 -lrpcrt4 -luuid -loleaut32 -lole32 -lcomctl32 -lshell32 -lwinmm -lwinspool -lcomdlg32 -lgdi32 -luser32 -lkernel32 -lmingwthrd  >&5
    In file included from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/smart_ptr/shared_ptr.hpp:28:0,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/shared_ptr.hpp:17,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/date_time/time_clock.hpp:17,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/thread_time.hpp:9,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/win32/thread_data.hpp:10,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/thread_only.hpp:15,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/thread.hpp:12,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread.hpp:13,
                     from conftest.cpp:87:
    /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/smart_ptr/detail/shared_count.hpp:396:33: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
         explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                     ^
    In file included from /usr/lib/gcc/x86_64-w64-mingw32/5.3-win32/include/c++/memory:81:0,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/config/no_tr1/memory.hpp:21,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/smart_ptr/shared_ptr.hpp:23,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/shared_ptr.hpp:17,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/date_time/time_clock.hpp:17,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/thread_time.hpp:9,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/win32/thread_data.hpp:10,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/thread_only.hpp:15,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread/thread.hpp:12,
                     from /mnt/e/Sources/bitcoin-docker/bitcoin/depends/x86_64-w64-mingw32/share/../include/boost/thread.hpp:13,
                     from conftest.cpp:87:
    /usr/lib/gcc/x86_64-w64-mingw32/5.3-win32/include/c++/bits/unique_ptr.h:49:28: note: declared here
       template<typename> class auto_ptr;
    
  5. NicolasDorier commented at 4:58 AM on June 29, 2017: contributor

    Might be related to that #8732 my working VM is trusty. Other is xenial.

  6. laanwj commented at 12:18 PM on June 29, 2017: member

    That's a known issue indeed, 16.04 cross-windows build doesn't work.

  7. NicolasDorier closed this on Jun 29, 2017

  8. MarcoFalke locked this on Sep 8, 2021
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me