[Boost-bugs] [Boost C++ Libraries] #2250: pgi.hpp and configure script

Subject: [Boost-bugs] [Boost C++ Libraries] #2250: pgi.hpp and configure script
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-23 19:44:48


#2250: pgi.hpp and configure script
------------------------------------------------+---------------------------
 Reporter: wladwig_at_[hidden] | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: build
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: pgi portland group build configure |
------------------------------------------------+---------------------------
 I ran into several problems trying to build boost with the PGI compiler
 v7.2-3 and the Boost 1.36.0 library.

 '''1) ./configure --with-toolset=pgi does not correctly use the pgi
 configuration'''

 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):

 -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"

 ...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

 It looks like it's trying to use the gcc configuration without calling the
 executable.

 '''2) pgi.hpp does not allow for versions greater than 7.1'''

 I then tried to build the boost python module by calling bjam directly,
 using "bjam toolset=pgi --with-python". This failed with:

 "./boost/config/compiler/pgi.hpp", line 27: catastrophic error: #error
           directive: "Pgi compiler not configured - please reconfigure"
   # error "Pgi compiler not configured - please reconfigure"


 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).

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2250>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC