Boost C++ Libraries: Ticket #6746: Boost fails to build 64-bit on Solaris sparc with toolset=gcc https://svn.boost.org/trac10/ticket/6746 <p> Boost 1.38.0 is needed in order to build PowerDNS, as PowerDNS specifically looks for libboost_program_options_*gcc*.so. </p> <p> I have tried each and every permutation to convince the Boost build system that it is really OK to use GCC on the sparc platform with Solaris's linker and assembler, but to no avail. </p> <p> The following is used: </p> <p> tools/jam/src/bin.solaris/bjam -d4 -j2 --without-mpi --toolset=gcc --prefix=/opt/boost --libdir=/opt/boost/lib/64 address-model=64 cxxflags=-m64 linkflags=-m64 </p> <p> ...and here is one of many identical failures during the build process: </p> <blockquote> <p> "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthreads -fPIC -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/math/build/gcc-3.4.3/release/address-model-64/threading-multi/expm1.o" "libs/math/build/../src/tr1/expm1.cpp" </p> </blockquote> <p> /usr/ccs/bin/as: error: unknown option '-' /usr/ccs/bin/as: error: unknown option 't' /usr/ccs/bin/as: error: unknown option 'aditional-format' /usr/ccs/bin/as: error: unknown option '6' /usr/ccs/bin/as: error: unknown option '4' /usr/ccs/bin/as: error: unknown option 'A' /usr/ccs/bin/as: error: unknown option '9' usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-q] [-s] </p> <blockquote> <p> [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T] [-P <a class="missing wiki">-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname</a>...] [-m [-Ym,path]] [-n] [-ul] [-xF] [-m32] [-m64] [-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9a,v9b,sparc,sparcvis,sparcvis2,sparcvis3,sparcfmaf,sparcima}] [-xcode={pic13,pic32}] file.s... </p> </blockquote> <p> 0.000129 sec system; 0.003178 sec user ...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-3.4.3/release/address-model-64/threading-multi/expm1.o... </p> <p> Upgrading to newer version of Boost has been unsuccessful, as PowerDNS's ./configure specifically looks for library version in the .so file name, and this has changed sometime after the 1.38.0 revision. </p> <p> Where is the linker getting the "-t aditional-format 64A9' from, and why does this happen only on sparc? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6746 Trac 1.4.3 Steven Watanabe Thu, 29 Mar 2012 22:16:33 GMT <link>https://svn.boost.org/trac10/ticket/6746#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6746#comment:1</guid> <description> <p> Replying to <a class="new ticket" href="https://svn.boost.org/trac10/ticket/6746" title="#6746: Bugs: Boost fails to build 64-bit on Solaris sparc with toolset=gcc (new)">tripivceta@…</a>: </p> <blockquote class="citation"> <p> Where is the linker getting the "-t aditional-format 64A9' from, and why does this happen only on sparc? </p> </blockquote> <p> I have no idea. Forget about Boost.Build for now. Can you find a g++ command line that works? I don't see anything odd about it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 30 Mar 2012 22:16:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6746#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6746#comment:2</guid> <description> <p> No, unfortunately there are no results written to either stage/ or the target install directory. </p> <p> Should I crank up the logging with -d9? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 09 Jun 2012 16:38:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6746#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6746#comment:3</guid> <description> <p> I tracked down the as(1) error to SUNWgcc: for some reason, Sun compiled GCC --with-as=/usr/sfw/bin/gas --with-gnu-as, but "SUNWgcc" does not declare "SUNWbinutils", which brings on /usr/sfw/bin/gas as a dependency. Installing "SUNWbinutils" resolves the "/usr/ccs/bin/as: error: unknown option '-' /usr/ccs/bin/as: error: unknown option 't' /usr/ccs/bin/as: error: unknown option" since GNU as(1) is now avabilable, but "bjam" still ignores any combination of options to build 64-bit. </p> <p> The following combinations have all been tried by passing them to "bjam": </p> <p> -sBUILD='&lt;cxxflags&gt;-m64 &lt;linkflags&gt;-m64 &lt;address-model&gt;64' </p> <p> as well as </p> <p> "cxxflags=-m64 linkflags=-m64 adress-model=-m64" </p> <p> all to no avail. All of those invocations are simply ignored, and bjam builds a 32-bit version of the libraries. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 03 Jan 2013 17:56:54 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/6746#comment:4 https://svn.boost.org/trac10/ticket/6746#comment:4 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">build</span> </li> </ul> Ticket