[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Portland Group cpp fails sanity check
From: |
Olly Betts |
Subject: |
Re: Portland Group cpp fails sanity check |
Date: |
Thu, 10 Jan 2008 01:00:21 +0000 (UTC) |
User-agent: |
slrn/0.9.8.1pl1 (Debian) |
On 2008-01-09, Brad Larsen <address@hidden> 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