I’m seeing a compile warning when pgcc is invoked with -fPIC [on OSX]
Its not a critical issue - but wanted to reprot.
thanks,
balay@imav^~/junk $ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.2
BuildVersion: 13C64
balay@imav^~/junk $ clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
balay@imav^~/junk $ pgcc --version
pgcc 14.3-0 64-bit target on Apple OS/X developer
The Portland Group - PGI Compilers and Tools
Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
balay@imav^~/junk $ cat x.c #include <stdio.h>
int main(int argc,char **args)
{
printf(“testing\n”);
return 0;
}
balay@imav^~/junk $ pgcc x.c
balay@imav^~/junk $ pgcc -fPIC x.c
ld: warning: directory not found for option ‘-L/Applications/Free PGI.app/Contents/Resources/pgi/osx86-64/14.3/libso’
balay@imav^~/junk $ ls “/Applications/Free PGI.app/Contents/Resources/pgi/osx86-64/14.3/”
bin/ etc/ lib/ src/
doc/ include/ man/
Hmm. Looking at TPR#20337 which is the report Chris filed, this was fixed in the 14.9 release. Though I just checked and see the warning. We must have accidentally reintroduced this at some point. I’ve reopended the report and will have out engineers take a look.
Note that “-fPIC” is a no-op on MacOSX and the fix is for the compiler to ignore this flag.