So, recently I should wait for next release 10.5. But, is anybody from PortlandGroup able to confirm, that my problem with incompatibility of the glibc library is real?
The 10.5 installer has been updated to recognize glibc 2.11. For earlier versions of the compiler, please contact PGI Customer Support (trs@pgroup.com) for a work around.
The 10.5 release was modified to handle glibc 2.11 and higher, and we tested it
on Fedora 12. But we did not test Ubuntu 10.04. We will do that - Ubuntu changes
more things than other Linux versions, and it could be a change we did not
anticipate. For example, ‘arch’ does not work on Ubuntu, so we had to replace it with ‘uname -m’ in our install scripts.
You will need to apply a patch for Ubuntu 10.04 support.
Save the code included below to a file (pgi-ubuntu.patch) and place it in the directory where you extracted the PGI 10.5 tar file.
Run:
patch -p0 --dry-run < pgi-ubuntu.patch
If the patch is successful, remove “–dry-run” and apply the patch. Then install normally.
Note: You will need to add a single space after the line “! #! /bin/sh” in the code below (line 53) since the forum is parsing it out. It should read "! #! /bin/sh " without quotations.
pgi-ubuntu.patch:
*** linux86/10.5/bin/makelocalrc 2010-05-06 17:45:26.000000000 -0700
--- makelocalrc 2010-05-11 17:41:25.332909367 -0700
***************
*** 133,144 ****
quit
fi
! y=`strings $LIBC | grep 'GNU C Library (EGLIBC)'`
! if test $? -ne 0; then
! x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $7}'`
! else
! x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $8}'`
! fi
if test -n "$x" ; then
GLIBC_VERSION=$x
--- 133,139 ----
quit
fi
! x=`strings $LIBC | grep 'GNU C Library' | sed -e 's/.*version //' -e 's/,/ /' | awk '{print $1}'`
if test -n "$x" ; then
GLIBC_VERSION=$x
*** linux86-64/10.5/bin/makelocalrc 2010-05-06 17:45:26.000000000 -0700
--- makelocalrc 2010-05-11 17:41:25.332909367 -0700
***************
*** 133,144 ****
quit
fi
! y=`strings $LIBC | grep 'GNU C Library (EGLIBC)'`
! if test $? -ne 0; then
! x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $7}'`
! else
! x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $8}'`
! fi
if test -n "$x" ; then
GLIBC_VERSION=$x
--- 133,139 ----
quit
fi
! x=`strings $LIBC | grep 'GNU C Library' | sed -e 's/.*version //' -e 's/,/ /' | awk '{print $1}'`
if test -n "$x" ; then
GLIBC_VERSION=$x
*** install_mpich 2010-05-11 17:34:09.132871887 -0700
--- install_mpich.new 2010-05-11 17:34:22.252883448 -0700
***************
*** 1,4 ****
! #! /bin/sh
##
## Copyright 1990-2000, The Portland Group, Incorporated.
--- 1,4 ----
! #! /bin/bash
##
## Copyright 1990-2000, The Portland Group, Incorporated.
In my attempt though, copying and pasting the patch from the forum left trailing spaces on every line… Took me some time to notice that and get the patch to work. Just writing this in case anyone else experiences the same issue.
That patch installed but did not work for me. I ran the patch with and without the dry_run flags, reinstalled and then upon using the compiler, I first get:
pgfortran-Error-Please run makelocalrc to complete your installation
Then form ./makelocalrc -x /opt/pgi/linux86-64/10.5
ERROR: unknown glibc version (stable).