[Boost-bugs] [Boost C++ Libraries] #11246: boost.coroutine 1.58 fails to build for mingw because of undefined symbols in boost.context

Subject: [Boost-bugs] [Boost C++ Libraries] #11246: boost.coroutine 1.58 fails to build for mingw because of undefined symbols in boost.context
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-29 08:09:47


#11246: boost.coroutine 1.58 fails to build for mingw because of undefined symbols
in boost.context
------------------------------+---------------------
 Reporter: anonymous | Owner: olli
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: context
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 Hello,

 I'm trying to cross-compile boost 1.58 from linux for mingw from tarball
 for archlinux (aur.archlinux.org/packages/mingw-w64-boost/).

 I'm stuck when linking boost.coroutine because I've got undefined
 references to symbols in boost.context (make_fcontext, jump_fcontext):
 {{{
 gcc.link.dll bin.v2/libs/coroutine/build/gcc-mingw-mingw64/release/binary-
 format-pe/target-os-windows/threadapi-win32/threading-multi
 /libboost_coroutine-mt.dll.a
 bin.v2/libs/coroutine/build/gcc-mingw-mingw64/release/binary-format-pe
 /target-os-windows/threadapi-win32/threading-
 multi/detail/coroutine_context.o:coroutine_context.cpp:(.text+0x4a):
 undefined reference to `_imp__make_fcontext'
 bin.v2/libs/coroutine/build/gcc-mingw-mingw64/release/binary-format-pe
 /target-os-windows/threadapi-win32/threading-
 multi/detail/coroutine_context.o:coroutine_context.cpp:(.text+0xc7):
 undefined reference to `_imp__jump_fcontext'
 }}}

 It looks exactly like this issue github.com/boostorg/context/pull/12 that
 was fixed for AIX.

 Prior to the build I applied the fedora patch used to successfully build
 previous versions of boost for mingw: pkgs.fedoraproject.org/cgit/mingw-
 boost.git/tree/boost-mingw.patch, but maybe it needs updating.
 Also I wonder why it wasn't submited or accepted upstream.

 Regards,
 xan

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11246>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC