PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

makelocalrc for Ubuntu 11.10

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



Joined: 20 Jun 2011
Posts: 58

PostPosted: Sun Oct 23, 2011 4:23 am    Post subject: makelocalrc for Ubuntu 11.10 Reply with quote

Here is changes to makelocalrc for Ubuntu 11.10 from 11.9 compilers, to make it work:

Code:

*** makelocalrc.bak   Wed Oct  5 01:08:17 2011
--- makelocalrc   Sun Oct 23 15:20:31 2011
***************
*** 128,133 ****
--- 128,135 ----
      LIBC=/lib64/libc.so.6  # should only exist on a 64-bit Linux OS.
    elif test -r /lib64/x86_64-linux-gnu/libc.so.6 ; then
      LIBC=/lib64/x86_64-linux-gnu/libc.so.6  # new Ubuntu 64-bit Linux OS.
+   elif test -r /lib/x86_64-linux-gnu/libc.so.6 ; then
+     LIBC=/lib/x86_64-linux-gnu/libc.so.6  # new Ubuntu 64-bit Linux OS.   
    elif test -r /lib/libc.so.6 ; then
      LIBC=/lib/libc.so.6    # should exist on any Linux OS.
    elif test -r /lib/i386-linux-gnu/libc.so.6 ; then
***************
*** 391,398 ****
    linux86-64:x86_64 )
      gccopt="-o $scratch/a.out -v"
      g77opt=$gccopt
!     lib=/lib64
!     ublib=/lib64/x86_64-linux-gnu
      usrlib=/usr/lib64
      install_64_bit=1
      use_64bit_rcfiles=0
--- 393,400 ----
    linux86-64:x86_64 )
      gccopt="-o $scratch/a.out -v"
      g77opt=$gccopt
!     lib=/lib
!     ublib=/lib/x86_64-linux-gnu
      usrlib=/usr/lib64
      install_64_bit=1
      use_64bit_rcfiles=0
***************
*** 539,545 ****
    echo "ERROR: gcc failed to execute for reasons unknown."
    quit 1
  fi
!
  gccbase=`"$gcc" -print-search-dirs | sed -e 's/^install: //' -e 's/\/$//' -e 1q`
  if test -d "$gccbase"$subdir ; then
    GCCDIR="$gccbase$subdir"
--- 541,548 ----
    echo "ERROR: gcc failed to execute for reasons unknown."
    quit 1
  fi
! LANG=en_US
! export LANG
  gccbase=`"$gcc" -print-search-dirs | sed -e 's/^install: //' -e 's/\/$//' -e 1q`
  if test -d "$gccbase"$subdir ; then
    GCCDIR="$gccbase$subdir"
Back to top
View user's profile
Senya



Joined: 20 Jun 2011
Posts: 58

PostPosted: Sun Oct 23, 2011 4:44 am    Post subject: Reply with quote

Also, localrc requires extra pointing two variables for crt1.o:
Code:

set DEFLIBDIR=/usr/lib/x86_64-linux-gnu;
set DEFSTDOBJDIR=/usr/lib/x86_64-linux-gnu;
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