Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-08-23 13:16:56


On Friday 22 August 2008 23:04:12 William Ladwig wrote:
> 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!

I suggest you contact the C++ Boost developers and demand that pgi.hpp be open-coded
so that version 7.N+1 is considered as good as 7.N. At the very least, pgi.hpp
should be modified to allow 7.2. Using svn.boost.org to report such a bug
seems the best approach.

- Volodya


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