Boost C++ Libraries: Ticket #2250: pgi.hpp and configure script https://svn.boost.org/trac10/ticket/2250 <p> I ran into several problems trying to build boost with the PGI compiler v7.2-3 and the Boost 1.36.0 library. </p> <p> <strong>1) ./configure --with-toolset=pgi does not correctly use the pgi configuration</strong> </p> <p> Using the ./configure script which comes with the Boost 1.36.0 package does not setup the build system to use the pgi compiler properly. Using the commands "./configure --with-toolset=pgi" and "make install" generates errors which look like (in this case when compiling boost python): </p> <p> -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/home/wdt/Python2.5/include/python2.5" -c -o "bin.v2/libs/python/build/gcc/release/threading-multi/numeric.o" "libs/python/src/numeric.cpp" </p> <p> ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc/release/threading-multi/n umeric.o... gcc.compile.c++ bin.v2/libs/python/build/gcc/release/threading-multi/list.o /bin/sh: line 1: -ftemplate-depth-128: command not found </p> <p> It looks like it's trying to use the gcc configuration without calling the executable. </p> <p> <strong>2) pgi.hpp does not allow for versions greater than 7.1</strong> </p> <p> I then tried to build the boost python module by calling bjam directly, using "bjam toolset=pgi --with-python". This failed with: </p> <p> "./boost/config/compiler/pgi.hpp", line 27: catastrophic error: #error </p> <blockquote> <p> directive: "Pgi compiler not configured - please reconfigure" </p> </blockquote> <blockquote> <p> # error "Pgi compiler not configured - please reconfigure" </p> </blockquote> <p> It appears that pgi.hpp is coded to only use v7.1 of the compiler. After I made the change to the header file to use v7.2, it built the boost python library successfully (but with many compiler warnings). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2250 Trac 1.4.3 Vladimir Prus Sun, 24 Aug 2008 05:05:13 GMT owner changed https://svn.boost.org/trac10/ticket/2250#comment:1 https://svn.boost.org/trac10/ticket/2250#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Vladimir Prus</span> to <span class="trac-author">John Maddock</span> </li> </ul> <p> John, assigning this to you as pgi.hpp tweaks are part of Boost.Config. </p> Ticket John Maddock Mon, 25 Aug 2008 09:44:13 GMT owner changed https://svn.boost.org/trac10/ticket/2250#comment:2 https://svn.boost.org/trac10/ticket/2250#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">doug_gregor</span> </li> </ul> <p> The changes to pgi.hpp are already in Trunk. </p> <p> Reassigning to Doug Gregor, as I believe he wrote the top level ./configure script? </p> <p> John. </p> Ticket Vladimir Prus Sat, 21 Mar 2009 23:17:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2250#comment:3 https://svn.boost.org/trac10/ticket/2250#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> I do not think Doug is active here, and configure script is likely to be gone for 1.39. </p> Ticket