Boost C++ Libraries: Ticket #7289: [Context] Cross compiling for Windows on Linux using gcc fails https://svn.boost.org/trac10/ticket/7289 <p> When cross compiling boost 1.51.0 for target Win32 on Linux using mxe, the new "Context"-Lib fails to build. It seems that the problem is different from <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7287" title="#7287: Bugs: [Context] Fix compatability with MinGW (closed: wontfix)">#7287</a> and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7262" title="#7262: Bugs: Boost.Context fails to build using MinGW (closed: wontfix)">#7262</a>, so I am opening a new ticket. The following errors occur: </p> <pre class="wiki">gcc.compile.asm bin.v2/libs/context/build/gcc-mingw-4.7.1/debug/link-static/target-os-windows/threadapi-win32/threading-multi/asm/fcontext_i386_sysv_elf_gas.o libs/context/src/asm/fcontext_i386_sysv_elf_gas.S: Assembler messages: libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:37: Warning: .type pseudo-op used outside of .def/.endef ignored. libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:37: Error: junk at end of line, first unrecognized character is `j' libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:72: Warning: .size pseudo-op used outside of .def/.endef ignored. libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:72: Error: junk at end of line, first unrecognized character is `j' libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:77: Warning: .type pseudo-op used outside of .def/.endef ignored. libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:77: Error: junk at end of line, first unrecognized character is `m' libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:122: Warning: .size pseudo-op used outside of .def/.endef ignored. libs/context/src/asm/fcontext_i386_sysv_elf_gas.S:122: Error: junk at end of line, first unrecognized character is `m' </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7289 Trac 1.4.3 viboes Thu, 03 Jan 2013 16:52:45 GMT component, description changed; owner set https://svn.boost.org/trac10/ticket/7289#comment:1 https://svn.boost.org/trac10/ticket/7289#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">olli</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">context</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/7289?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket olli Thu, 03 Jan 2013 17:10:31 GMT <link>https://svn.boost.org/trac10/ticket/7289#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7289#comment:2</guid> <description> <p> as the output show fcontext_i386_sysv_elf_gas.S is selected - that indicates that the build-properties are not set correctly for the cross-compiling. boost.context requires: </p> <blockquote> <p> &lt;address-model&gt;=32, &lt;architecture&gt;=x86, &lt;binary-format=&gt;pe, &lt;target-os&gt;=windows </p> </blockquote> <p> please post the bjam/b2 command line and the output if bjam/b2 is invoked with the additional argument --debug-building </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Thu, 07 Feb 2013 06:38:27 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7289#comment:3 https://svn.boost.org/trac10/ticket/7289#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> no response - so I close the bug as wont fix </p> Ticket kai-boost@… Tue, 31 Mar 2015 18:11:19 GMT <link>https://svn.boost.org/trac10/ticket/7289#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7289#comment:4</guid> <description> <p> Quoting <a href="http://www.boost.org/build/doc/html/bbv2/tasks/crosscompile.html">http://www.boost.org/build/doc/html/bbv2/tasks/crosscompile.html</a> , </p> <blockquote> <p> # On Linux box<br /> b2 toolset=gcc-mingw target-os=windows </p> </blockquote> <p> Using </p> <blockquote> <p> b2 --layout=system --prefix=/home/kai/appsv2/bindir/i686-w64-mingw32/external/boost variant=release link=static toolset=gcc-mingw target-os=windows install </p> </blockquote> <p> fails in the manner described, with 1.57. </p> <p> Using </p> <blockquote> <p> b2 --layout=system --prefix=/home/kai/appsv2/bindir/i686-w64-mingw32/external/boost variant=release link=static toolset=gcc-mingw target-os=windows binary-format=pe install </p> </blockquote> <p> fails with </p> <blockquote> <p> libs/context/src/unsupported.cpp:7:2: error: #error "platform not supported" </p> </blockquote> </description> <category>Ticket</category> </item> <item> <author>kai-boost@…</author> <pubDate>Tue, 31 Mar 2015 19:03:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7289#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7289#comment:5</guid> <description> <p> Ok, here's something new. </p> <p> Adding "abi=ms" now fails with </p> <blockquote> <p> /bin/sh: 2: ml: not found </p> </blockquote> <p> Has this ever been tested at all? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Tue, 31 Mar 2015 20:05:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7289#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7289#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/7289#comment:5" title="Comment 5">kai-boost@…</a>: </p> <blockquote class="citation"> <p> Ok, here's something new. </p> <p> Adding "abi=ms" now fails with </p> <blockquote> <p> /bin/sh: 2: ml: not found </p> </blockquote> <p> Has this ever been tested at all? </p> </blockquote> <p> yes - see boost regression test. </p> <p> 'ml: not found': means that MASM (assembler) is not installed or in the search path </p> </description> <category>Ticket</category> </item> <item> <author>peppard+boost@…</author> <pubDate>Tue, 21 Apr 2015 15:40:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7289#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7289#comment:7</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/7289#comment:6" title="Comment 6">olli</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/7289#comment:5" title="Comment 5">kai-boost@…</a>: </p> <blockquote class="citation"> <p> Ok, here's something new. </p> <p> Adding "abi=ms" now fails with </p> <blockquote> <p> /bin/sh: 2: ml: not found </p> </blockquote> <p> Has this ever been tested at all? </p> </blockquote> <p> yes - see boost regression test. </p> <p> 'ml: not found': means that MASM (assembler) is not installed or in the search path </p> </blockquote> <p> MASM seems to be Windows-only, does this mean that cross compiling from Linux to Windows is currently not possible? </p> <p> According to the boost mailinglist a year ago you considered adding support for GAS on Windows, I'd be very happy if this would be working, too. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Tue, 28 Apr 2015 06:13:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7289#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7289#comment:8</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/7289#comment:7" title="Comment 7">peppard+boost@…</a>: </p> <blockquote class="citation"> <p> MASM seems to be Windows-only, does this mean that cross compiling from Linux to Windows is currently not possible? </p> </blockquote> <p> probably yes </p> <blockquote class="citation"> <p> According to the boost mailinglist a year ago you considered adding support for GAS on Windows, I'd be very happy if this would be working, too. </p> </blockquote> <p> I'm sorry - I'm too busy, but you are welcome to provide a port. </p> </description> <category>Ticket</category> </item> </channel> </rss>