So I checked out ~/.ccache, and there was no such file/directory in my home folder.
I tried configuring/building from both bash and tcsh, neither worked. This is really strange, since I was able to build successfully on a RHEL 6.7 machine using:
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
GNU Make 3.8.1
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
But on the RHEL 6.4 machine using:
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
GNU Make 3.81
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
the build fails. I even tried using a different compiler version (gcc (GCC) 4.7.1) to no avail.
I did finally get a working build of pg_config with no errors or warning by removing the single quotes in the path variables. I don't know if this is correct or not, since I'm not familiar with the mechanics used by make/pg_config. But changing
-DVAL_CONFIGURE="\"'--prefix=/glade/p/work/nfrazie1/CI-WATER-tools/'\""
to
-DVAL_CONFIGURE="\"--prefix=/glade/p/work/nfrazie1/CI-WATER-tools/\""
and -DVAL_LDFLAGS="\"-Wl,--as-needed -Wl,-rpath,'/glade/p/work/nfrazie1/CI-WATER-tools/lib',--enable-new-dtags\""
to
-DVAL_LDFLAGS="\"-Wl,--as-needed -Wl,-rpath,/glade/p/work/nfrazie1/CI-WATER-tools/lib,--enable-new-dtags\""
I was able to build pg_config. I hacked the Makefile to strip the quotes out (see attached patch if interested.)
An interesting note: I checked to compile line for the build on the 6.7 machine, and it has the single quotes in the compile line.
Should it be ok to proceed using the patch to get a build completed?
Nels