Re: Portland Group cpp fails sanity check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2008-01-09, Brad Larsen <brad.larsen@xxxxxxxxx> wrote:
> I have a project that has been mostly switched to use autotools.  Seems to  
> work OK with the GNU compilers.  When attempting to build on a cluster we  
> have using the Portland Group toolchain, configure bails out saying the  
> preprocessor is no good.
>
> Anyone have insight?  I've attached the relevant segment of config.log.

The error messsages suggest that pgcpp is a C++ compiler, not a C
preprocessor.  A quick Google for "pgcpp" would appear to confirm this.

> configure:4274: /opt/pgi/linux86-64/7.1-1/bin/pgcpp  conftest.c
> "conftest.c", line 16: error: identifier "Syntax" is undefined
>               Syntax error
>               ^

A C preprocessor wouldn't look for identifiers here.

> At end of source: error: expected a ";"

A C preprocessor doesn't expect a ";" anywhere.

> 2 errors detected in the compilation of "conftest.c".
                           ^^^^^^^^^^^

The error talks about "compilation", which seems a bit suspicious.

Try something like CPP="pgcc -E" perhaps?

Cheers,
    Olly



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux