Boost C++ Libraries: Ticket #8761: Build boost 1.54 on Mac with clang and c++11 https://svn.boost.org/trac10/ticket/8761 <p> using ./bootstrap.sh cxxflags="-std=c++11 -stdlib=libc++" --with-toolset=clang ./b2 cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" toolset=clang -a -q </p> <p> to compile boost 1.54 complains about Jamfile&lt;/Users/schiffi/Downloads/builds/boost_1_54_0/libs/context/build&gt;.gas bin.v2/libs/context/build/clang-darwin-4.2.1/release/address-model-64/architecture-x86/threading-multi/asm/make_x86_64_sysv_macho_gas.o libs/context/src/asm/make_x86_64_sysv_macho_gas.S:7:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:40:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:41:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:42:Rest of line ignored. 1st junk character valued 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:43:Rest of line ignored. 1st junk character valued 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:44:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:46:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:49:invalid character (0xd) in operand 2 libs/context/src/asm/make_x86_64_sysv_macho_gas.S:50:invalid character (0xd) in operand 2 libs/context/src/asm/make_x86_64_sysv_macho_gas.S:51:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:55:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:58:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:61:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:65:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:67:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:68:Junk character 13 (). </p> <p> removing the empty line number 7 from </p> <p> libs/context/src/asm/make_x86_64_sysv_macho_gas.S </p> <p> fixes the error </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8761 Trac 1.4.3 viboes Sun, 07 Jul 2013 16:26:21 GMT component changed; owner set https://svn.boost.org/trac10/ticket/8761#comment:1 https://svn.boost.org/trac10/ticket/8761#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> </ul> Ticket anonymous Sun, 07 Jul 2013 17:01:13 GMT <link>https://svn.boost.org/trac10/ticket/8761#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8761#comment:2</guid> <description> <p> I've some doubt that this is a bug because <a href="http://www.boost.org/development/tests/release/developer/context.html">http://www.boost.org/development/tests/release/developer/context.html</a> reports that the regression tests pass (marshall-mac). </p> </description> <category>Ticket</category> </item> <item> <author>matt@…</author> <pubDate>Wed, 24 Jul 2013 12:44:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8761#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8761#comment:3</guid> <description> <p> I'm seeing exactly the same bug as stefan while trying to build boost using the latest non-beta developer tools from Apple. </p> <p> clang version: Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)) </p> <p> as version: Apple Inc version cctools-839, GNU assembler version 1.38 </p> <p> It looks like both: </p> <blockquote> <p> libs/context/src/asm/make_x86_64_sysv_macho_gas.S </p> </blockquote> <p> and </p> <blockquote> <p> libs/context/src/asm/jump_x86_64_sysv_macho_gas.S </p> </blockquote> <p> are saved with Windows CRLFs and 'as' is objecting to every CR in the file. If you confert the CRLFs to to Unix LFs, the problems go away. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Wed, 24 Jul 2013 14:48:40 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8761#comment:4 https://svn.boost.org/trac10/ticket/8761#comment:4 <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">worksforme</span> </li> </ul> <p> code is edited under UNIX - vi does not show CRLF clang- darwin- 4.2.1 compiles the code </p> Ticket Chris Newbold Tue, 20 Aug 2013 00:39:49 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/8761#comment:5 https://svn.boost.org/trac10/ticket/8761#comment:5 <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">worksforme</span> </li> </ul> <p> The file is clearly wrong and won't assemble using the tools in Xcode 4.6. The following is from a fresh 1.54 download: </p> <pre class="wiki">$ file libs/context/src/asm/make_x86_64_sysv_macho_gas.S libs/context/src/asm/make_x86_64_sysv_macho_gas.S: ASCII c program text, with CRLF line terminators </pre><p> I don't know how the Windows line endings are getting in there, but they are in the 1.54 distribution. </p> <p> Here is the error I see: </p> <pre class="wiki">Jamfile&lt;homes/boost/boost_1_54_0/libs/context/build&gt;.gas /tmp/build-boost/boost/bin.v2/libs/context/build/clang-darwin-osx/release/address-model-64/architecture-x86/link-static/threading-multi/asm/make_x86_64_sysv_macho_gas.o libs/context/src/asm/make_x86_64_sysv_macho_gas.S:7:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:40:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:41:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:42:Rest of line ignored. 1st junk character valued 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:43:Rest of line ignored. 1st junk character valued 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:44:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:46:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:49:invalid character (0xd) in operand 2 libs/context/src/asm/make_x86_64_sysv_macho_gas.S:50:invalid character (0xd) in operand 2 libs/context/src/asm/make_x86_64_sysv_macho_gas.S:51:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:55:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:58:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:61:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:65:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:67:Junk character 13 (). libs/context/src/asm/make_x86_64_sysv_macho_gas.S:68:Junk character 13 (). as -o "/tmp/build-boost/boost/bin.v2/libs/context/build/clang-darwin-osx/release/address-model-64/architecture-x86/link-static/threading-multi/asm/make_x86_64_sysv_macho_gas.o" "libs/context/src/asm/make_x86_64_sysv_macho_gas.S" </pre> Ticket Chris Newbold Tue, 20 Aug 2013 00:52:27 GMT <link>https://svn.boost.org/trac10/ticket/8761#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8761#comment:6</guid> <description> <p> Confirmed. Running sometime like the following over the distributed files resolves the build errors: </p> <pre class="wiki">perl -pe 's/\r\n|\n|\r/\n/g' inputfile &gt; outputfile </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 20 Aug 2013 05:57:31 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8761#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8761#comment:7</guid> <description> <p> please do a 'svn co <a class="ext-link" href="http://svn.boost.org/svn/boost/branches/release/"><span class="icon">​</span>http://svn.boost.org/svn/boost/branches/release/</a>' and check the lib and tell me the result. I realy don't see a <sup>M (CRLF representation in vi) if I look into file make_x86_64_sysv_macho_gas.S! And, more important, all regression tests in trunk and release on Darwin (using clang) pass! Take a look at: <a href="http://www.boost.org/development/tests/release/developer/context.html">http://www.boost.org/development/tests/release/developer/context.html</a> <a href="http://www.boost.org/development/tests/trunk/developer/context.html">http://www.boost.org/development/tests/trunk/developer/context.html</a> </sup></p> </description> <category>Ticket</category> </item> <item> <dc:creator>Michel Morin</dc:creator> <pubDate>Tue, 20 Aug 2013 06:16:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8761#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8761#comment:8</guid> <description> <p> <code>.zip</code> and <code>.7z</code> files are shipped with CR-LF newline codes and <code>.tar.bz2</code> and <code>.tar.gz</code> are shipped with LF newline codes. </p> <p> I think the reporter downloaded <code>.zip</code> or <code>.7z</code> one. If so, please download <code>.tar.bz2</code> or <code>.tar.gz</code> one and try again! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Tue, 20 Aug 2013 10:41:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8761#comment:9 https://svn.boost.org/trac10/ticket/8761#comment:9 <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">invalid</span> </li> </ul> Ticket lhusselmann@… Tue, 20 Aug 2013 12:26:52 GMT <link>https://svn.boost.org/trac10/ticket/8761#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8761#comment:10</guid> <description> <p> Hi All I'm trying to install Boost_1_54_0, have downloaded the latest version, boost_1_54_0.tar.bz2, unpacked it. I got the an error when trying to use ./bootstrap.sh. "./bootstrap.sh: line 212: rm: command not found -n Building Boost.Build engine with toolset darwin... </p> <p> Failed to build Boost.Build build engine Consult 'bootstrap.log' for more details". In the log file it says rm -rf bootstrap ./build.sh: line 16: rm: command not found. </p> <p> The same question was posted years ago at this link, </p> <p> Installing boost library in /usr/lib: sudo ./bootstrap.sh command not found </p> <p> The solution was to type, chmod 755 bootstrap.sh , to make it executable. I've tried to do that but it says "command not found". The chmod command was not found. Even trying to do Boost.build in the v2 directory, it says the bootstrap.sh and chmod 755 to make it executable was not found. I stuck!!! Could you please help me. I need to install boost in order to run Tophat2. Thanks in advance. Kind regards </p> </description> <category>Ticket</category> </item> </channel> </rss>