mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Question on cross-compiling boost context lib


From: Nagaev Boris
Subject: Re: [Mingw-cross-env-list] Question on cross-compiling boost context library
Date: Fri, 3 Feb 2017 02:05:49 +0000

Hey,

MXE provides GNU assembler (usr/bin/<target>-as). I suspect that it is
not what boost.context needs though...

Current version of boost in MXE is 1.60 and it builds on all my 64 bit
Linux machines (Debian) without errors. I do not use boost.context so
I don't know if it actually works. There is an open bug about support
of exceptions inside coroutines of boost.context [1].

I have tried to update boost to 1.62 and it failed with linking errors
because of boost.context [2]. There is a pull request [3] for
boost.context that is reported to fix it for release but not for
debug. It doesn't work for me (see my comments there) and it doesn't
look like a correct solution. According to one of comments, things are
the same in 1.63.

So I think that support of boost.context in MXE is broken if any.
Maybe we should disable it explicitly not to confuse people?

[1] https://github.com/mxe/mxe/issues/1559
[2] https://github.com/mxe/mxe/pull/1549
[3] https://github.com/boostorg/serialization/pull/42

On Thu, Feb 2, 2017 at 8:10 PM, Jack Kumba <address@hidden> wrote:
> Hello,
>
> I cannot cross-compile boost context library for windows 32 on my ubuntu 64
> bit using mingw32-w4.
> The compilation stops with some assembler errors about invalid charcters at
> the
> end of the file.
>
> However, your project seems to cross-compile boost version 1.60. However, I
> wonder how could you do that because the windows version of the assembler is
> not ported on linux.
> Is it a stripped version of boost context library that you're compiling?
>
> I tried to use your compiled boost context library but I see some "undefined
> references" error.
>
> Did somebody succeed to cross-compile boost libraries for 32-bit windows on
> linux 64-bit?
>
> Thanks,
> Jack



-- 
Best regards,
Boris Nagaev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]