PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Correct install fails to link correct gcc-lib

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
David Gunter



Joined: 15 Sep 2005
Posts: 25

PostPosted: Mon Apr 10, 2006 5:57 pm    Post subject: Correct install fails to link correct gcc-lib Reply with quote

I have installed 6.1-3 and now 6.1-4 on a 64-bit AMD Opteron platform. The install runs to completion in both cases.

I try to compile a simple C++ code and the compile balks:
------------------------------------------------
(ffe-64 247%) pgCC -v -g sample.cc

/net/scratch1/dog/flash64/PGI/pgi_6.1-4/linux86-64/6.1/bin/pgcpp1 --llalign -Dunix -D__unix -D__unix__ -Dlinux -D__linux -D__linux__ -D__inline__= -D__NO_INLINE__ -D__NO_MATH_INLINES -D__x86_64__ -D__LONG_MAX__=9223372036854775807L '-D__SIZE_TYPE__=unsigned long int' '-D__PTRDIFF_TYPE__=long int' -D__THROW= -D__amd64__ -D__PGI -I/net/scratch1/dog/flash64/PGI/pgi_6.1-4/linux86-64/6.1/include/CC -I/net/scratch1/dog/flash64/PGI/pgi_6.1-4/linux86-64/6.1/include -I/usr/local/include -I/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include -I/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include -I/usr/include -g --dwarf2 -q -o /tmp/pgCCaaaaanFhai.il sample.cc
"/net/scratch1/dog/flash64/PGI/pgi_6.1-4/linux86-64/6.1/include/float.h", line 55: catastrophic error:
could not open source file "float.h"
#include_next<float.h>
^

1 catastrophic error detected in the compilation of "sample.cc".
Compilation terminated.
pgCC-Fatal-cpp1 completed with exit code 4

Unlinking /tmp/pgCCaaaaanFhai.il
-----------------------------------------------

Notice the "-I/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include" line in that output? How did that get in there? There isn't even such a directory on this system. There is a /usr/lib/gcc-lib/i386-redhat-linux/3.3.4/include.

The localrc that is created contains this info:

set LFC=-lg2c;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib/gcc/x86_64-redhat-linux/3.4.4/;
set GCCINC=/usr/lib/gcc/x86_64-redhat-linux/3.4.4/include;
set G77DIR=/usr/lib/gcc/x86_64-redhat-linux/3.4.4/;
set LOCALRC=YES;
set THROW=__THROW=;

Why isn't any of that info being used?

This system is running FC3 with glibc 2.3.5.

Before you ask me to look at the install logs, tell me where those logs are kept or what they're named because I see no such logs.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Thu Apr 13, 2006 4:48 pm    Post subject: Reply with quote

Hi David,

I think your install is ok, but the driver appears to be getting it's GCCDIR information from a different rc file than the one you have listed, perhaps a ".mypgcpprc" in your home directory or a "siterc" file. Please post the output of the following command.
Code:
pgCC -dryrun -c x.cpp

"-dryrun" prints out the steps the driver performs, including which rc files it uses, but does not execute these steps.

Thanks,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group