catastrophic error: cannot open source file "float.h&am

I continue to receive the fatal compilation error below for this small test:

cat hello.cpp

#include <stdio.h>
#include <stdlib.h>
#include <float.h>

main() {
  int i = 5;
  printf("Hello, i = %d\n", i);

system_profiler -detailLevel mini SPSoftwareDataType

    System Software Overview:
      System Version: OS X 10.8.5 (12F37)
      Kernel Version: Darwin 12.5.0

pgcpp -V -v -o hello.x hello.cpp

pgcpp 13.10-0 64-bit target on Apple OS/X -tp nehalem
The Portland Group - PGI Compilers and Tools
Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.

/opt/pgi/osx86-64/13.10/bin/pgcpp1 --nollalign -v -Dunix -D__unix -D__unix__ -D__LITTLE_ENDIAN__ -D__inline__= -Dosx86 -D__osx86 -D__osx86__ -D__APPLE__ -D__LP64__ -D__x86_64__ -D_M_IX86 -D__NO_MATH_INLINES -D__amd64__ -D__extension__= -D__SSE__ -D__MMX__ -D__SSE2__ -D__SSE3__ -D__SSSE3__ -D__PGI_5XC__ -D__PGI -D__signed__=signed -I- -I/opt/pgi/osx86-64/13.10/include/CC -I/opt/pgi/osx86-64/13.10/include -I/usr/local/include -I/Applications/ -I/Applications/ -I/usr/include -q -o /var/folders/zz/zyxvpxvq6csfxvn_n0001vk0000fwh/T/ hello.cpp
Edison Design Group C/C++ Front End, version 4.5 (Oct 22 2013 22:49:08)
Copyright 1988-2012 Edison Design Group, Inc.

“/opt/pgi/osx86-64/13.10/include/float.h”, line 58: catastrophic error: cannot
open source file “float.h”

1 catastrophic error detected in the compilation of “hello.cpp”.
Compilation terminated.
pgcpp-Fatal-cpp1 completed with exit code 4

The solution posted in catastrophic error: cannot open source file "float.h&qu does not resolve this issue.

The same small test code compiles successfully on the machine with the pgcc command.

Hi David,

I’ve often found that pgcpp gives problems on linux, while pgc++ usually doesn’t. I’m not sure why (maybe someone from PGI could explain), but pgc++ might be worth a try. I’m not sure if the behaviour will be the same for OS X.


Hi David,

There is a bug in our include file in 13.10. If possible, please upgrade to latest PGI Workstation version. Otherwise, please contact for an updated version of include file.