Boost logo

Boost-Build :

From: William Ladwig (wladwig_at_[hidden])
Date: 2008-08-22 15:04:12


Thank you for your help. I was using the ./configure script that comes packaged with the Boost_1_36 gzipped file. There must be a little problem with its detection of the pgi compiler or some other minor bug. (Also, I have had no problems building with gcc, but hadn't had any success building with pgi).

I followed your advice and called bjam directly from the boost folder, and it invoked the correct compiler options. But, it failed immediately with errors similar to:

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

I opened up the pgi.hpp file and found this code:

#if (__PGIC__ == 7) && (__PGIC_MINOR__ == 1)

#define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
#define BOOST_NO_TWO_PHASE_NAME_LOOKUP
#define BOOST_NO_SWPRINTF

#else

# error "Pgi compiler not configured - please reconfigure"

#endif

It looks like pgi.hpp is only set-up for the pgi 7.1 compiler. I'm using 7.2, so I changed the __PGIC_MINOR__ value in this header file and tried compiling again, and it worked! There were a lot of compiler warnings, but it built the library. I haven't tried the library yet with the pgi build, but this is at least a start. Thanks!

Bill


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk