Boost Testing :
Subject: Re: [Boost-testing] mingw serialization test issue
From: Robert Ramey (ramey_at_[hidden])
Date: 2016-05-06 14:07:17
On 4/27/16 1:08 PM, Robert Ramey wrote:
> On 1/17/16 9:35 AM, Robert Ramey wrote:
>> The serialization library is failing tests on all mingw versions. When I
>> try to discover the cause here:
>> it shows that a particular module compiles successfully, but otherwise
>> no other information of any kind. If anyone has any insight on what it
>> would take to pass on this platform, I'd be interested in hearing
>> about it.
>> Robert Ramey
> Note that problem also occurs with the file system tests. So it's not
> just a serialization issue. I'm suspecting that the import/export
> mechanism is mixed up for mingw - which contains elements of posix and
> Robert Ramey
More information. The tests which use codecvt have this problem on
mingw accross the board. Here's an example from the boost file tests.
the error output is
-ftemplate-depth-128 -pipe -std=c++0x -O0 -fno-inline -Wall
-march=i686 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_SYSTEM_DYN_LINK=1 -I".." -c -o
In file included from
../boost/detail/utf8_codecvt_facet.hpp:116:30: error: function
definition is marked dllimport
The problem is that this function SHOULD BE marked with dllimport as
it's imported from the boost file dll !
There's a few possibilities which occur to me for the source of this error:
a) compiler error - flags error when there isn't one
b) using dllimport on a static build. I can't tell from the test
report if we're testing the static or shared library build here.
c) some issue in config with the dynamic/shared import/export
d) some other thing which hasn't occured to me
e) some combination of the above.
One fact that is worthy of note is that this is only happening with the
mingw platform/system. Of course I don't have this plaform so it's even
harder to find the problem.