PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pgCC install, Fedora Core 3, dual Opteron
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
lharcke



Joined: 25 Jan 2005
Posts: 5

PostPosted: Wed Jan 26, 2005 8:41 am    Post subject: pgCC install, Fedora Core 3, dual Opteron Reply with quote

The ./install script didn't work well on Fedora Core 3 on a dual Opteron. I manually edited localrc as follows:

]$ cat /usr/pgi/linux86-64/5.2/bin/localrc
set LFC=-lg2c;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib/gcc/x86_64-redhat-linux/3.4.2;
set GCCINC=/usr/lib/gcc/x86_64-redhat-linux/3.4.2/include;
set G77DIR=/usr/lib/gcc/x86_64-redhat-linux/3.4.2;
set THROW=__THROW=;
# makelocalrc executed by root Tue Jan 25 17:48:23


And this gets pgcc, pgf77, and pgf90 compiling "hello world" but pgCC fails.

$ uname -a
Linux test-net.stanford.edu 2.6.10-1.741_FC3smp #1 SMP Thu Jan 13 16:58:29 EST 2005 x86_64 x86_64 x86_64 GNU/Linux


$ rpm -qi glibc | head -2
Name : glibc Relocations: (not relocatable)
Version : 2.3.4 Vendor: Red Hat, Inc.


$ env | grep pgi
PATH=/usr/pgi/linux86-64/5.2/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
PGI=/usr/pgi
MANPATH=/usr/pgi/linux86-64/5.2/man
LM_LICENSE_FILE=/usr/pgi/license.dat

$ cat hello.cc
#include <iostream>

int main() {
std::cout << "hello world\n";
return -1;
}

$ g++ hello.cc
$ ./a.out
hello world


$ pgCC hello.cc
"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=bool,
__imin=false, __imax=true, __idigits=1, __ismod=false]" at
line 245

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 252: error:
identifier "__SCHAR_MAX__" is undefined
: public _Integer_limits<char, CHAR_MIN, CHAR_MAX, -1, true>
^

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=char,
__imin=<error-constant>, __imax=<error-constant>,
__idigits=-1, __ismod=true]" at line 252

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=signed
char, __imin=<error-constant>, __imax=<error-constant>,
__idigits=-1, __ismod=true]" at line 258

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=unsigned
char, __imin=(unsigned char)'\000',
__imax=<error-constant>, __idigits=-1, __ismod=true]" at
line 264

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
pgCC-Fatal-/usr/pgi/linux86-64/5.2/bin/pgcpp1 TERMINATED by signal 11
Arguments to /usr/pgi/linux86-64/5.2/bin/pgcpp1
/usr/pgi/linux86-64/5.2/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/usr/pgi/linux86-64/5.2/include/CC -I/usr/pgi/linux86-64/5.2/include -I/usr/local/include -I/usr/lib/gcc/x86_64-redhat-linux/3.4.2/include -I/usr/lib/gcc/x86_64-redhat-linux/3.4.2/include -I/usr/include -q -o /tmp/pgCCaaaaanoAau.il hello.cc
Back to top
View user's profile
lharcke



Joined: 25 Jan 2005
Posts: 5

PostPosted: Wed Jan 26, 2005 9:11 am    Post subject: Reply with quote

Er, nevermind. Just saw the Core 3 patch on the release notes page.
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Jan 26, 2005 2:34 pm    Post subject: Reply with quote

PGI releases 5.2-4 and earlier are not compatable with Fedora core 3. As you found out, we do have a patch which corrects these issues. The patch can be found at ftp://ftp.pgroup.com/x86/linux86-patches/fedora3_patch.tar.gz

Thanks,
Mat
Back to top
View user's profile
lharcke



Joined: 25 Jan 2005
Posts: 5

PostPosted: Fri Jan 28, 2005 7:16 pm    Post subject: pgCC on Fedora Core 3 still not working Reply with quote

Hmmm, I'm still getting an error, even after re-installing the compilers. Any ideas?

-Leif


--------------------------
$ cat hello.cc
#include <iostream>

int main() {
std::cout << "hello world\n";
return -1;
}


$ pgCC hello.cc
"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=bool,
__imin=false, __imax=true, __idigits=1, __ismod=false]" at
line 245

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 252: error:
identifier "__SCHAR_MAX__" is undefined
: public _Integer_limits<char, CHAR_MIN, CHAR_MAX, -1, true>
^

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=char,
__imin=<error-constant>, __imax=<error-constant>,
__idigits=-1, __ismod=true]" at line 252

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=signed
char, __imin=<error-constant>, __imax=<error-constant>,
__idigits=-1, __ismod=true]" at line 258

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
detected during instantiation of class "std::_Integer_limits<_Int,
__imin, __imax, __idigits, __ismod> [with _Int=unsigned
char, __imin=(unsigned char)'\000',
__imax=<error-constant>, __idigits=-1, __ismod=true]" at
line 264

"/usr/pgi/linux86-64/5.2/include/CC/stl/_limits.h", line 155: error:
identifier "__CHAR_BIT__" is undefined
((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
^
pgCC-Fatal-/usr/pgi/linux86-64/5.2/bin/pgcpp1 TERMINATED by signal 11
Arguments to /usr/pgi/linux86-64/5.2/bin/pgcpp1
/usr/pgi/linux86-64/5.2/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/usr/pgi/linux86-64/5.2/include/CC -I/usr/pgi/linux86-64/5.2/include -I/usr/local/include -I/usr/lib/gcc/x86_64-redhat-linux/3.4.2/include -I/usr/lib/gcc/x86_64-redhat-linux/3.4.2/include -I/usr/include -q -o /tmp/pgCCaaaaaikqae.il hello.cc
[lharcke@test-net ~]$
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jan 31, 2005 11:54 am    Post subject: Reply with quote

Hi Leif,

Double check that "limits.h", "floats.h", and "bits/types.h" were installed in "/usr/pgi/linux86-64/5.2/include". You may need to copy them over from the install package. The "limits.h" file contains the definition of "__CHAR_BIT__" and "__SCHAR_MAX__".

- 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
Goto page 1, 2  Next
Page 1 of 2

 
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