#9040: fatal relocation error installing R on OpenSolaris x64 with gcc (OK with
Sun Studio).
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  drkirkby                                
    
       Type:  defect    |      Status:  new                                     
    
   Priority:  major     |   Milestone:  sage-4.7                                
    
  Component:  solaris   |    Keywords:                                          
    
     Author:            |    Upstream:  None of the above - read trac for 
reasoning.
   Reviewer:            |      Merged:                                          
    
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by drkirkby):

 I know more about this problem than was on the ticket. The shared
 libraries generated by R have non-PIC code in them. This is easy to prove,
 as detailed here

 http://blogs.sun.com/rie/entry/my_relocations_don_t_fit

 basically running

 {{{
 $ elfdump -d library | grep TEXTREL
 }}}

 should produce no output, but it does in the case of the three R libraries

 {{{
 drkirkby@hawk:~/sage-4.6.2.rc1/local/lib/R/lib$ elfdump -d libR.so | fgrep
 TEXTREL
       [25]  TEXTREL           0
       [34]  FLAGS             0x4                 [ TEXTREL ]
 drkirkby@hawk:~/sage-4.6.2.rc1/local/lib/R/lib$ elfdump -d libRblas.so |
 fgrep TEXTREL
       [19]  TEXTREL           0
       [28]  FLAGS             0x4                 [ TEXTREL ]
 drkirkby@hawk:~/sage-4.6.2.rc1/local/lib/R/lib$ elfdump -d libRlapack.so |
 fgrep TEXTREL
       [18]  TEXTREL           0
       [27]  FLAGS             0x4                 [ TEXTREL ]
 drkirkby@hawk:~/sage-4.6.2.rc1/local/lib/R/lib$
 }}}

 That blog page also describes how to track down the bad code, but its far
 from obvious to me what to do. I am totally lost.

 The problem is also seen on 32-bit code on both SPARC and x86, but it only
 causing linking issues on 64-bit code. So essentially one could debug this
 problem on t2.math with either a 32-bit or 64-bit build. But I can't
 follow the logic needed to do this debugging.


 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9040#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to