[Boost-bugs] [Boost C++ Libraries] #11548: Crosscompiling 1.59 with i686-w64-mingw32-g++ fails

Subject: [Boost-bugs] [Boost C++ Libraries] #11548: Crosscompiling 1.59 with i686-w64-mingw32-g++ fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-18 09:07:18


#11548: Crosscompiling 1.59 with i686-w64-mingw32-g++ fails
-------------------------------------------------+-------------------------
 Reporter: Alexander Zimmermann <zimmermann@…> | Type: Bugs
   Status: new | Milestone: To Be
Component: Building Boost | Determined
 Severity: Problem | Version: Boost
                                                 | 1.59.0
                                                 | Keywords:
-------------------------------------------------+-------------------------
 Using
   using gcc : i686 : i686-w64-mingw32-g++ ;
 in tools/build/src/user-config.jam

 with
 i686-w64-mingw32-g++ (GCC) 4.8.2

 and calling

 ./b2 toolset=gcc-i686 address-model=32 link=shared --stagedir=Win32
 target-os=windows threading=multi threadapi=win32 variant=release --with-
 date_time --with-filesystem --with-graph --with-math --with-
 program_options --with-serialization --with-system --with-thread --with-
 timer

 gives compiler errors

 gcc.compile.c++ bin.v2/libs/serialization/build/gcc-mingw-i686/release
 /target-os-windows/threadapi-win32/threading-multi/text_woarchive.o
 In file included from ./boost/archive/detail/common_oarchive.hpp:21:0,
                  from ./boost/archive/basic_text_oarchive.hpp:29,
                  from ./boost/archive/text_woarchive.hpp:36,
                  from libs/serialization/src/text_woarchive.cpp:17:
 ./boost/archive/detail/basic_oarchive.hpp:64:5: error: function
 â€˜boost::archive::detail::helper_collection&
 boost::archive::detail::basic_oarchive::get_helper_collection()’
 definition is marked dllimport
      get_helper_collection(){
      ^
 In file included from ./boost/archive/detail/common_oarchive.hpp:22:0,
                  from ./boost/archive/basic_text_oarchive.hpp:29,
                  from ./boost/archive/text_woarchive.hpp:36,
                  from libs/serialization/src/text_woarchive.cpp:17:
 ./boost/archive/detail/interface_oarchive.hpp:32:38: warning: type
 attributes ignored after type is already defined [-Wattributes]
  class BOOST_ARCHIVE_OR_WARCHIVE_DECL basic_pointer_oserializer;
                                       ^

 Crosscompiling 64bit version with
 x86_64-w64-mingw32-g++ (GCC) 4.8.2
 also fails.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11548>
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