{"action":"opened","issue":{"url":"https://api.github.com/repos/mxe/mxe/issues/905","labels_url":"https://api.github.com/repos/mxe/mxe/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/mxe/mxe/issues/905/comments","events_url":"https://api.github.com/repos/mxe/mxe/issues/905/events","html_url":"https://github.com/mxe/mxe/issues/905","id":109754000,"number":905,"title":"boost fails to find mingw64 in cygwin","user":{"login":"rr-","id":1045476,"avatar_url":"https://avatars.githubusercontent.com/u/1045476?v=3","gravatar_id":"","url":"https://api.github.com/users/rr-","html_url":"https://github.com/rr-","followers_url":"https://api.github.com/users/rr-/followers","following_url":"https://api.github.com/users/rr-/following{/other_user}","gists_url":"https://api.github.com/users/rr-/gists{/gist_id}","starred_url":"https://api.github.com/users/rr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr-/subscriptions","organizations_url":"https://api.github.com/users/rr-/orgs","repos_url":"https://api.github.com/users/rr-/repos","events_url":"https://api.github.com/users/rr-/events{/privacy}","received_events_url":"https://api.github.com/users/rr-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-05T08:48:44Z","updated_at":"2015-10-05T08:48:44Z","closed_at":null,"body":"In my case, the issue was resolved if I changed the paths in `user-config.jam` to absolute:\r\n\r\n    diff --git a/src/boost.mk b/src/boost.mk\r\n    index 1d3c060..2d58b95 100644\r\n    --- a/src/boost.mk\r\n    +++ b/src/boost.mk\r\n    @@ -23,7 +23,7 @@ define $(PKG)_BUILD\r\n         rm -f \"$(PREFIX)/$(TARGET)/lib/libboost\"*\r\n    \r\n         # create user-config\r\n    -    echo 'using gcc : mxe : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar <ranlib>$(TARGET)-ranlib ;' > '$(1)/user-config.jam'\r\n    +    echo 'using gcc : mxe : $(PREFIX)/bin/$(TARGET)-g++ : <rc>$(PREFIX)/bin/$(TARGET)-windres <archiver>$(PREFIX)/bin/$(TARGET)-ar <ranlib>$(PREFIX)/bin/$(TARGET)-ranlib ;' > '$(1)/user-config.jam'\r\n    \r\n         # compile boost build (b2)\r\n         cd '$(1)/tools/build/' && ./bootstrap.sh\r\n\r\nHere's full log:\r\n\r\n    cat log/boost_i686-w64-mingw32.static\r\n    make[1]: Entering directory '/home/rr-/mxe'\r\n    [using autodetected 1 job(s)]\r\n    uname -a\r\n    CYGWIN_NT-6.1-WOW bozeus2 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin\r\n    git show-branch --list --reflog=1\r\n      [refs/heads/master@{0}] (19 hours ago) (none)\r\n    lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true\r\n    autoconf --version 2>/dev/null | head -1\r\n    autoconf (GNU Autoconf) 2.69\r\n    automake --version 2>/dev/null | head -1\r\n    automake (GNU automake) 1.14.1\r\n    rm -rf   '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static'\r\n    mkdir -p '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static'\r\n    cd '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static' &&    tar xjf '/home/rr-/mxe/pkg/boost_1_57_0.tar.bz2'\r\n    cd '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0'\r\n    (cd '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0' && patch -p1 -u) < ./src/boost-1-fixes.patch\r\n    patching file boost/detail/interlocked.hpp\r\n    patching file boost/detail/interlocked.hpp.orig\r\n    patching file libs/context/build/Jamfile.v2\r\n    patching file libs/context/build/Jamfile.v2.orig\r\n    patching file libs/context/src/asm/jump_i386_ms_pe_gas.S\r\n    patching file libs/context/src/asm/jump_x86_64_ms_pe_gas.S\r\n    patching file libs/context/src/asm/make_i386_ms_pe_gas.S\r\n    patching file libs/context/src/asm/make_x86_64_ms_pe_gas.S\r\n    patching file boost/interprocess/detail/win32_api.hpp\r\n    patching file boost/detail/interlocked.hpp\r\n    # old version appears to interfere\r\n    rm -rf '/home/rr-/mxe/usr/i686-w64-mingw32.static/include/boost/'\r\n    rm -f \"/home/rr-/mxe/usr/i686-w64-mingw32.static/lib/libboost\"*\r\n    # create user-config\r\n    echo 'using gcc : mxe : /home/rr-/mxe/usr/i686-w64-mingw32.static-g++ : <rc>/home/rr-/mxe/usr/i686-w64-mingw32.static-windres <archiver>/home/rr-/mxe/usr/i686-w64-mingw32.static-ar <ranlib>/home/rr-/mxe/usr/i686-w64-mingw32.static-ranlib ;' > '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/user-config.jam'\r\n    # compile boost build (b2)\r\n    cd '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/' && ./bootstrap.sh\r\n    Bootstrapping the build engine with toolset gcc... engine/bin.cygwinx86/b2\r\n    \r\n    Bootstrapping is done. To build and install, run:\r\n    \r\n        ./b2 install --prefix=<DIR>\r\n    \r\n    # cross-build, see b2 options at:\r\n    # http://www.boost.org/build/doc/html/bbv2/overview/invocation.html\r\n    cd '/home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0' && ./tools/build/b2 -a -q -j '1' --ignore-site-config --user-config=user-config.jam address-model=32 architecture=x86 binary-format=pe link=static target-os=windows threadapi=win32 threading=multi variant=release toolset=gcc-mxe --layout=tagged --disable-icu --without-mpi --without-python --prefix='/home/rr-/mxe/usr/i686-w64-mingw32.static' --exec-prefix='/home/rr-/mxe/usr/i686-w64-mingw32.static/bin' --libdir='/home/rr-/mxe/usr/i686-w64-mingw32.static/lib' --includedir='/home/rr-/mxe/usr/i686-w64-mingw32.static/include' -sEXPAT_INCLUDE='/home/rr-/mxe/usr/i686-w64-mingw32.static/include' -sEXPAT_LIBPATH='/home/rr-/mxe/usr/i686-w64-mingw32.static/lib' install\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/tools/gcc.jam:83: in gcc.init from module gcc\r\n    error: toolset gcc initialization:\r\n    error: provided command '/home/rr-/mxe/usr/i686-w64-mingw32.static-g++' not found\r\n    error: initialized from /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/user-config.jam:1\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/build/toolset.jam:43: in toolset.using from module toolset\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/build/project.jam:1007: in using from module project-rules\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/user-config.jam:1: in modules.load from module user-config\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/build-system.jam:249: in load-config from module build-system\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/build-system.jam:385: in load-configuration-files from module build-system\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/build-system.jam:524: in load from module build-system\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/kernel/modules.jam:289: in import from module modules\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module\r\n    /home/rr-/mxe/tmp-boost-i686-w64-mingw32.static/boost_1_57_0/boost-build.jam:17: in module scope from module\r\n"}}