Boost C++ Libraries: Ticket #9772: [libs/context] make_i386_sysv_elf_gas.S:52: Error: invalid instruction suffix for `pop' https://svn.boost.org/trac10/ticket/9772 <p> Since you moves the develop repo to git I don't really know where to create this ticket so I make it here ad it is linked in the Wiki page, and I made it here aswell in the github submodule page: <a class="ext-link" href="https://github.com/boostorg/context/issues/1"><span class="icon">​</span>https://github.com/boostorg/context/issues/1</a> </p> <p> Issue: I fail to crosscompile the git 1.56 develop while it works on the 1.55 from a windows host targeting linux Compiling the 64-bit lib also worked, I think it is affecting only the linux target with address-model=32 (a similar issue I got with OSX32_64 and 1.55 that I think you have fixed, but now occurs for me on linux32 and 1.56) </p> <p> Command used: </p> <pre class="wiki">b2 -j1 -d2 -q toolset=gcc variant=release abi=sysv address-model=32 binary-format=elf link=static,shared pch=off strip=on target-os=linux threading=multi threadapi=pthread cxxflags="-w -m32" linkflags="-w -m32" --stagedir=stage32 --with-context </pre><p> 1.56 returns </p> <pre class="wiki">Jamfile&lt;X:\libs\boost-dev\libs\context\build&gt;.gas bin.v2\libs\context\build\gcc-4.8.2\release\abi-sysv\address-model-32\architecture-x86\binary-format-elf\link-static\pch-off\strip-on\target-os-linux\threadap i-pthread\threading-multi\asm\make_i386_sysv_elf_gas.o cpp -x assembler-with-cpp "libs\context\src\asm\make_i386_sysv_elf_gas.S" | as -am -o "bin.v2\libs\context\build\gcc-4.8.2\release\abi-sysv\address-model-32\architecture-x86\binary-format-elf\link-static\ pch-off\strip-on\target-os-linux\threadapi-pthread\threading-multi\asm\make_i386_sysv_elf_gas.o" libs\context\src\asm\make_i386_sysv_elf_gas.S: Assembler messages: libs\context\src\asm\make_i386_sysv_elf_gas.S:52: Error: invalid instruction suffix for `pop' libs\context\src\asm\make_i386_sysv_elf_gas.S:64: Error: invalid instruction suffix for `pop' ...failed Jamfile&lt;X:\libs\boost-dev\libs\context\build&gt;.gas bin.v2\libs\context\build\gcc-4.8.2\release\abi-sysv\address-model-32\architecture-x86\binary-format-elf\link-static\pch-off\strip-on\target-os-linu x\threadapi-pthread\threading-multi\asm\make_i386_sysv_elf_gas.o... ...failed updating 1 target... ...updated 23 targets... </pre><p> 1.55 final returns success </p> <p> As a workaround I'm changing </p> <pre class="wiki">cpp -x assembler-with-cpp "$(&gt;)" | as -am -o "$(&lt;)" </pre><p> to </p> <pre class="wiki">cpp -x assembler-with-cpp "$(&gt;)" | as --32 -am -o "$(&lt;)" </pre><p> But I'm unsure if that's the right thing to do in my case, at least it compiles fine 32bit with this </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9772 Trac 1.4.3 ad@… Wed, 12 Mar 2014 20:26:05 GMT <link>https://svn.boost.org/trac10/ticket/9772#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:1</guid> <description> <p> I have the three windows hosted toolchains targeting win/linux/max ready on my googledrive let me know if you need any of them for testing purpose you are welcome </p> </description> <category>Ticket</category> </item> <item> <author>ad@…</author> <pubDate>Wed, 12 Mar 2014 22:30:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:2</guid> <description> <p> also another inconsistency I note building a darwin target with clang-darwin-4.2.1 and this change: </p> <p> cpp -x assembler-with-cpp "$(&gt;)" | as --32 -am -o "$(&lt;)" </p> <p> "cpp" does not exists with clang and "as" doesn't know the switch -a </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Thu, 13 Mar 2014 12:21:36 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/9772#comment:3 https://svn.boost.org/trac10/ticket/9772#comment:3 <ul> <li><strong>summary</strong> <span class="trac-field-old">[libs/context] make_i386_sysv_elf_gas.S:52: Error: invalid instruction suffix for `pop'</span> → <span class="trac-field-new">[FIXED] [libs/context] make_i386_sysv_elf_gas.S:52: Error: invalid instruction suffix for `pop'</span> </li> </ul> <p> You can close this ticket, it has been fixed in this report <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> </p> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/9774#comment:2"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/9774#comment:2</a> </p> Ticket olli Thu, 13 Mar 2014 13:14:47 GMT <link>https://svn.boost.org/trac10/ticket/9772#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:4</guid> <description> <p> I've added --32, --64, --x32 to GNU as command line - could you verify that the code is still working, please? </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Thu, 13 Mar 2014 13:34:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:5</guid> <description> <p> Sure it works all the build I did in <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> are after this last commit </p> <p> Revision: 2775fe1c5d38b49e9554ea485b8a6ada0dc6461a Author: olk &lt;oliver.kowalke@…&gt; Date: 13/03/2014 08:50:36 Message: Update Jamfile.v2 </p> <ul><li>add word size specifier to GNU as command line (required for cross-compiling; ELF only) </li></ul><ul><li>use property &lt;abi&gt; in file selection </li></ul><hr /> <p> Modified: build/Jamfile.v2 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Thu, 13 Mar 2014 14:11:28 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9772#comment:6 https://svn.boost.org/trac10/ticket/9772#comment:6 <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">fixed</span> </li> </ul> <p> OK, thx </p> Ticket class101 <ad@…> Thu, 13 Mar 2014 14:41:52 GMT <link>https://svn.boost.org/trac10/ticket/9772#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:7</guid> <description> <p> A bit offtopic but olli I have a question </p> <p> When you write "untested.cpp - code for this platform is untested - please remove this file from build/Jamfile.v2 and report the test-result on boost-track !" </p> <p> What is the boost-track ? I can't seem to find a mailing list with this exact name </p> <p> Reporting to you anyway this untested proc worked fine here with the combined build I have tested in link <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> </p> <pre class="wiki">--- "a/X:\\libs\\boost-dev\\libs\\context\\build\\Jamfile.v2" +++ "b/X:\\libs\\boost-dev\\libs\\context\\build\\Jamfile.v2" @@ -400,7 +400,6 @@ alias asm_context_sources alias asm_context_sources : asm/make_i386_x86_64_sysv_macho_gas.S asm/jump_i386_x86_64_sysv_macho_gas.S - untested.cpp : &lt;abi&gt;sysv &lt;address-model&gt;32_64 &lt;architecture&gt;x86 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Thu, 13 Mar 2014 15:00:32 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:8</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9772#comment:7" title="Comment 7">class101 &lt;ad@…&gt;</a>: </p> <blockquote class="citation"> <p> When you write "untested.cpp - code for this platform is untested - please remove this file from build/Jamfile.v2 and report the test-result on boost-track !" What is the boost-track ? </p> </blockquote> <p> boost's bug tracking system at <a class="ext-link" href="https://svn.boost.org/trac/boost"><span class="icon">​</span>https://svn.boost.org/trac/boost</a> </p> <blockquote class="citation"> <p> Reporting to you anyway this untested proc worked fine here with the combined build I have tested in link <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> </p> <pre class="wiki">--- "a/X:\\libs\\boost-dev\\libs\\context\\build\\Jamfile.v2" +++ "b/X:\\libs\\boost-dev\\libs\\context\\build\\Jamfile.v2" @@ -400,7 +400,6 @@ alias asm_context_sources alias asm_context_sources : asm/make_i386_x86_64_sysv_macho_gas.S asm/jump_i386_x86_64_sysv_macho_gas.S - untested.cpp : &lt;abi&gt;sysv &lt;address-model&gt;32_64 &lt;architecture&gt;x86 </pre></blockquote> <p> yes, I've to remove untested.cpp from those entries which are verified to work </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Mon, 17 Mar 2014 15:48:16 GMT</pubDate> <title>status, summary changed; resolution deleted https://svn.boost.org/trac10/ticket/9772#comment:9 https://svn.boost.org/trac10/ticket/9772#comment:9 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>summary</strong> <span class="trac-field-old">[FIXED] [libs/context] make_i386_sysv_elf_gas.S:52: Error: invalid instruction suffix for `pop'</span> → <span class="trac-field-new">[libs/context] make_i386_sysv_elf_gas.S:52: Error: invalid instruction suffix for `pop'</span> </li> </ul> <p> Reopening because I caught today the same error with Apple's gcc-5666.3 (4.2.1) It seems -m32 is not passed, because 64-bit generation works fine and I could work around the problem with address-model=64 and fixing -m32 in the flags but that's a bit ugly hehe </p> <p> Issue: </p> <pre class="wiki"> "g++" -x assembler-with-cpp -O3 -finline-functions -Wno-inline -Wall -gdwarf-2 -fexceptions -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_SOURCE -DNDEBUG -I"." -c -o "bin.v2\libs\context\build\darwin-4.2.1\release \abi-sysv\address-model-32\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\asm\make_i386_sysv_macho_gas.o" "libs\context\src\asm\make_i386_sysv_macho_gas.S " libs\context\src\asm\make_i386_sysv_macho_gas.S:51:suffix or operands invalid for `pop' ...failed darwin.compile.asm bin.v2\libs\context\build\darwin-4.2.1\release\abi-sysv\address-model-32\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\asm\m ake_i386_sysv_macho_gas.o... ...failed updating 1 target... ...updated 82 targets... </pre><p> Command used: </p> <pre class="wiki">b2 -j1 -d2 -q toolset=darwin variant=release abi=sysv address-model=32 binary-format=mach-o link=static,shared pch=off strip=on target-os=darwin threading=multi threadapi=pthread cxxflags="-w -m32" linkflags="-w -m32 -lstdc++" --without-python --without-mpi </pre><p> Configuration used: </p> <pre class="wiki">import option ; using gcc : : "X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/g++.exe" : &lt;archiver&gt;X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/ar.exe &lt;ranlib&gt;X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/ranlib.exe &lt;rc&gt;X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/as.exe &lt;linker-type&gt;darwin ; option.set keep-going : false ; </pre> Ticket olli Mon, 17 Mar 2014 16:43:52 GMT <link>https://svn.boost.org/trac10/ticket/9772#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:10</guid> <description> <p> boost.context compiles only assembler code - if gcc is invoked with the wrong flags on your platform then create an bug-report for boost.build. </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Mon, 17 Mar 2014 16:50:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:11</guid> <description> <p> ok thank you I will do that sorry </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Tue, 18 Mar 2014 11:56:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:12</guid> <description> <p> You can close this ticket </p> <p> It seems related to a wrong toolset because just after adding to the command line architecture=x86, boost attempted to use -arch that do not exist in gcc-5666.3 </p> <p> But unfortunately it does not compile too with toolset=gcc target-os=darwin, it always fall in the unsupported.cpp of context </p> <p> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/9786#comment:1"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/9786#comment:1</a> </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Tue, 18 Mar 2014 15:20:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:13</guid> <description> <p> Hey olli I have been able to compile with gcc-5666.3 both 32-bit and 64-bit libs with </p> <p> toolset=gcc linker-type=darwin </p> <p> and the patch below </p> <p> Not sure why gcc is left out support here because I don't get troubles compiling clangs 32, 64 and combined with the patch below too </p> <pre class="wiki">--- Jamfile.v2.a 2014-03-18 15:33:05.377689400 +0100 +++ Jamfile.v2.b 2014-03-18 15:44:18.098748400 +0100 @@ -312,17 +312,6 @@ &lt;address-model&gt;32 &lt;architecture&gt;x86 &lt;binary-format&gt;mach-o - &lt;toolset&gt;darwin - ; - -alias asm_context_sources - : asm/make_i386_sysv_macho_gas.S - asm/jump_i386_sysv_macho_gas.S - : &lt;abi&gt;sysv - &lt;address-model&gt;32 - &lt;architecture&gt;x86 - &lt;binary-format&gt;mach-o - &lt;toolset&gt;clang ; alias asm_context_sources @@ -362,17 +351,6 @@ &lt;address-model&gt;64 &lt;architecture&gt;x86 &lt;binary-format&gt;mach-o - &lt;toolset&gt;darwin - ; - -alias asm_context_sources - : asm/make_x86_64_sysv_macho_gas.S - asm/jump_x86_64_sysv_macho_gas.S - : &lt;abi&gt;sysv - &lt;address-model&gt;64 - &lt;architecture&gt;x86 - &lt;binary-format&gt;mach-o - &lt;toolset&gt;clang ; alias asm_context_sources </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 18 Mar 2014 17:47:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:14</guid> <description> <p> does the lib compile for clang and darwin with this modification too? </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Tue, 18 Mar 2014 18:49:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:15 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:15</guid> <description> <p> For clang yes I can confirm it works for </p> <p> toolset=clang-darwin target-os=darwin address-model=64 architecture=x86 toolset=clang-darwin target-os=darwin address-model=32 architecture=x86 toolset=clang-darwin target-os=darwin address-model=32_64 architecture=x86 </p> <p> toolset=gcc target-os=darwin linker-type=darwin address-model=64 architecture=x86 (gcc-4.2.1) toolset=gcc target-os=darwin linker-type=darwin address-model=32 architecture=x86 (gcc-4.2.1) </p> <p> toolset=gcc target-os=linux address-model=64 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=linux address-model=32 architecture=x86 (gcc-4.8.2) </p> <p> toolset=gcc target-os=windows address-model=64 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=windows address-model=32 architecture=x86 (gcc-4.8.2) </p> <p> I could not test your set toolset=darwin because this set assumes it's a gcc supporting the -arch flag but the gcc-4.2.1 I have is gcc-5666.3 and -arch is unrecognized on this one, this is why I have to use toolset=gcc + &lt;linker-type&gt;darwin to work around this problem </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Tue, 18 Mar 2014 18:51:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:16 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:16</guid> <description> <p> For clang yes I can confirm it works for </p> <pre class="wiki">toolset=clang-darwin target-os=darwin address-model=64 architecture=x86 toolset=clang-darwin target-os=darwin address-model=32 architecture=x86 toolset=clang-darwin target-os=darwin address-model=32_64 architecture=x86 toolset=gcc target-os=darwin linker-type=darwin address-model=64 architecture=x86 (gcc-4.2.1) toolset=gcc target-os=darwin linker-type=darwin address-model=32 architecture=x86 (gcc-4.2.1) toolset=gcc target-os=linux address-model=64 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=linux address-model=32 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=windows address-model=64 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=windows address-model=32 architecture=x86 (gcc-4.8.2) </pre><p> I could not test your set toolset=darwin because this set assumes it's a gcc supporting the -arch flag but the gcc-4.2.1 I have is gcc-5666.3 and -arch is unrecognized on this one, this is why I have to use toolset=gcc + &lt;linker-type&gt;darwin to work around this problem </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Tue, 18 Mar 2014 19:07:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:17 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:17</guid> <description> <p> I'm trying deeper with an untested set </p> <p> toolset=gcc target-os=darwin linker-type=darwin address-model=32_64 architecture=x86 (gcc-4.2.1) </p> <p> but this one doesn't seem to work, the produced libs are not multiarch, been searching around it seems someone works around with lipo but not sure it is worth working on this, anyway just sharing my links if you are interested in looking to gcc-5666.3 (4.2.1) and combined support: <a class="ext-link" href="http://www.implbits.com/About/Blog/tabid/78/post/building-with-gcc-4-6-on-osx/Default.aspx"><span class="icon">​</span>http://www.implbits.com/About/Blog/tabid/78/post/building-with-gcc-4-6-on-osx/Default.aspx</a> </p> <p> I doubt I will be using multiarch libs here anyway, I prefer to stick with gcc for all the three targeted arch rather than switching to clang just for the purpose of using multiarch </p> <p> Anyway let me know if you happen to need so test build here I have compilers ready here </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Wed, 19 Mar 2014 03:47:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:18 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:18</guid> <description> <p> little correction </p> <p> I realized gcc-5666.3 supports -arch </p> <p> <a class="ext-link" href="http://opensource.apple.com/source/gcc/gcc-5666.3/driverdriver.c"><span class="icon">​</span>http://opensource.apple.com/source/gcc/gcc-5666.3/driverdriver.c</a> </p> <pre class="wiki">Administrator@WIN81PRO /x/libs/ $ gcc -arch i386 -arch x86_64 x86_64-apple-darwin10-gcc.exe: no input files Administrator@WIN81PRO /x/libs/ $ g++ -arch i386 -arch x86_64 x86_64-apple-darwin10-g++.exe: no input files </pre><p> will investigate then why I'm getting the -arch is unrecognized with toolset=darwin tomorrow and let you know </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Wed, 19 Mar 2014 11:14:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:19 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:19</guid> <description> <p> toolset=darwin is not suitable to the gcc-5666.3 I have here </p> <pre class="wiki"> "X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/ar.exe" -static -o "bin.v2/libs/context/build/darwin-4.2.1/release/abi-sysv/address-model-64/binary-format-mach-o/link-static/pch-off/strip-on/target-os-darwi n/threadapi-pthread/threading-multi/libboost_context-xgcc42-mt-1_56.a" "bin.v2/libs/context/build/darwin-4.2.1/release/abi-sysv/address-model-64/binary-format-mach-o/link-static/pch-off/strip-on/target-os- darwin/threadapi-pthread/threading-multi/asm/make_x86_64_sysv_macho_gas.o" "bin.v2/libs/context/build/darwin-4.2.1/release/abi-sysv/address-model-64/binary-format-mach-o/link-static/pch-off/strip-on/target-os -darwin/threadapi-pthread/threading-multi/asm/jump_x86_64_sysv_macho_gas.o" only one of -a and -[bi] options allowed usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] ...failed darwin.archive bin.v2\libs\context\build\darwin-4.2.1\release\abi-sysv\address-model-64\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\libboost_ context-xgcc42-mt-1_56.a... ...failed updating 1 target... ...updated 18 targets... </pre><p> Well anyway as this is a very old version I'm fine using toolset=gcc + &lt;linker-type&gt;darwin, it works fine for 32-bit, 64-bit, what it misses maybe a a toolset like toolset=gcc5663 to not require the need of setting &lt;linker-type&gt;darwin in a jam file </p> <p> I will let you know if I can get a 32_64 build under gcc5666 working </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Wed, 19 Mar 2014 11:38:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:20 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:20</guid> <description> <p> and gcc-5666.3 with -arch returns </p> <pre class="wiki"> "X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/gcc.exe" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -arch x86_64 -w -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_SOURCE -DNDEBUG -I"." -c -o "bin .v2\libs\context\build\gcc-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\unsupported.o" "libs\context\src\unsu pported.cpp" cc1plus.exe: error: unrecognized command line option "-arch" ...failed gcc.compile.c++ bin.v2\libs\context\build\gcc-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\unsuppor ted.o... ...skipped &lt;pbin.v2\libs\context\build\gcc-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi&gt;libboost_context-gcc4 2-mt-1_56.a for lack of &lt;pbin.v2\libs\context\build\gcc-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi&gt;unsuppor ted.o... ...failed updating 1 target... ...skipped 1 target... ...updated 14 targets... </pre><p> I think it is a specific issue to my gcc-5666.3 cross compiler because I have used Ray Donnely's crosstool-ng to build it and I see he made patches to the driverdriver.c file so maybe something went wrong with such patch. </p> <p> Will look with him if we eventually can get this fixed </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Wed, 19 Mar 2014 11:52:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:21 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:21</guid> <description> <p> OK Finally </p> <p> Disregard my error on gcc-5666.3 and 32_64, it is technically a known issue with the cross compiler, here is my may to Ray </p> <pre class="wiki">Hi Ray, While compiling boost I think I have found an issue in gcc-5666.3 It compiles fine the 32-bit or 64-bit libs separately but when attempting to use Apple's argument to build a fat lib -arch i386 -arch x86_64 I'm getting "X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/g++.exe" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -arch x86_64 -w -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_SOURCE -DNDEBUG -I"." -c -o "bin.v2\libs\context\build\gcc-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o\link-static\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\unsupported.o" "libs\context\src\unsupported.cpp" cc1plus.exe: error: unrecognized command line option "-arch" Is rejected by cc1plus.exe but when you try "X:/libs/gcc-5666.3-x86_64-apple-darwin10/bin/g++.exe" -arch alone it does not complain of an unknown parameter As I see you have made patches on driverdriver.c with 5666.3/130-relocatable.patch maybe do you have an idea what could cause this </pre><p> Ray </p> <pre class="wiki">Yeah, this is a known issue, and you have got close to identifying the cause. Basically we don't use driverdriver.c in ctng (my old toolchain4 project did use it though!) If you look here: https://github.com/mingwandroid/toolchain4/blob/master/toolchain.sh#L1380 .. you can see how I compiled it in that project. .. but really I want to (and started to) make the Autotools/Makefile system in Apple's GCC build it automatically the way it should be done. .. but also, since GCC is fast becoming deprecated in the Apple world, I wonder if I'll ever get round to that .. quite likely I wont. </pre><p> So in short with a gcc-5666.3 crosscompiler, stick with toolset=gcc &lt;linker-type&gt;darwin and the patch in comment<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/13" title="#13: Bugs: iterator_adapter and abstract classes (closed: Out of Date)">#13</a> and all is fine </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Wed, 19 Mar 2014 16:11:02 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9772#comment:22 https://svn.boost.org/trac10/ticket/9772#comment:22 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> commit pushed to branch develop - please verify (for merge with branch master required) and report, thx </p> <p> PS: if possible please test it for universal build and combined architectures too </p> Ticket class101 <ad@…> Wed, 19 Mar 2014 16:19:17 GMT <link>https://svn.boost.org/trac10/ticket/9772#comment:23 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:23</guid> <description> <p> I dont get you with (for merge with branch master required) </p> <p> I got this on the develop branch </p> <pre class="wiki">git.exe submodule update --init Submodule path 'libs/atomic': checked out 'c56a76c0841b52ae1b962d1e4fc3e723b5d574ce' Submodule path 'libs/log': checked out '7513db8bfe2fe4b33ef2e9d73635fce38d7840e9' Success (47344 ms @ 19/03/2014 17:18:26) </pre> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Wed, 19 Mar 2014 16:38:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:24 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:24</guid> <description> <p> nvm I think I got it I do (correct me if I'm wrong Im not very familiar with git) </p> <pre class="wiki">git checkout develop git branch -vv git pull git submodule update --init </pre><p> and then switching to master </p> <pre class="wiki">git checkout master git branch -vv git pull git submodule update --init </pre> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Wed, 19 Mar 2014 18:41:32 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:25 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:25</guid> <description> <p> For me all is ok on develop - a28a807afe362440a75e18acbd716a9d0ac57323 </p> <p> cross-compiled all these builds without problems </p> <pre class="wiki">toolset=clang-darwin target-os=darwin address-model=64 architecture=x86 (clang-3.4) toolset=clang-darwin target-os=darwin address-model=32 architecture=x86 (clang-3.4) toolset=clang-darwin target-os=darwin address-model=32_64 architecture=x86 (clang-3.4) toolset=gcc target-os=darwin linker-type=darwin address-model=64 architecture=x86 (gcc-5666.3-4.2.1) toolset=gcc target-os=darwin linker-type=darwin address-model=32 architecture=x86 (gcc-5666.3-4.2.1) toolset=gcc target-os=linux address-model=64 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=linux address-model=32 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=windows address-model=64 architecture=x86 (gcc-4.8.2) toolset=gcc target-os=windows address-model=32 architecture=x86 (gcc-4.8.2) </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Wed, 19 Mar 2014 20:09:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:26 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:26</guid> <description> <p> OK, thx - will merge to branch master </p> </description> <category>Ticket</category> </item> <item> <author>class101 <ad@…></author> <pubDate>Wed, 19 Mar 2014 20:38:31 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:27 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:27</guid> <description> <p> what is the difference between master and develop ? Is the develop branch where all days commits are made and the master is a much stabler branch where you merge verified things from the develop branch right ? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 01 Jun 2014 00:07:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:28 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:28</guid> <description> <p> PPC/x86 - 32-64 was tested both with both clang-apple and gcc-apple </p> <ul><li>please refer to <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/8266"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/8266</a> </li></ul><p> Toolsets are different from the vanilla gcc. </p> </description> <category>Ticket</category> </item> <item> <author>marco.serantoni@…</author> <pubDate>Sun, 01 Jun 2014 00:26:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:29 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:29</guid> <description> <pre class="wiki">10.9.1 - uses clang 10.6.8 - uses gcc </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Sun, 01 Jun 2014 08:24:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9772#comment:30 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9772#comment:30</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9772#comment:28" title="Comment 28">anonymous</a>: </p> <blockquote class="citation"> <p> PPC/x86 - 32-64 was tested both with both clang-apple and gcc-apple </p> <ul><li>please refer to <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/8266"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/8266</a> </li></ul><p> Toolsets are different from the vanilla gcc. </p> </blockquote> <p> architectures universal (32_64) and combined enabled for PPC in branch develop and master </p> </description> <category>Ticket</category> </item> </channel> </rss>