#9872: PolyBoRi incorrectly reports a GNU linker is used with gcc and produces
libraries with text relocations.
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  tbd
       Type:  defect    |      Status:  new
   Priority:  major     |   Milestone:     
  Component:  packages  |    Keywords:     
     Author:            |    Upstream:  N/A
   Reviewer:            |      Merged:     
Work_issues:            |  
------------------------+---------------------------------------------------
 When I try to build !PolyBoRi on a Sun Ultra 27 running !OpenSolaris, I
 notice the message:

 {{{
 GNU linker detected!
 }}}

 This message is in the SConstruct file and comes from some discussions on
 #6437.

 It would appear the test is not useful on !OpenSolaris, as the linker now
 takes the GNU options too. however, I don't feel this is a the cause of
 the main problem.

 A problem exists in that the link-editor thinks the library contains code
 which is not position independant - i.e. it is not PIC. This can be seen
 with the {{{elfdump}}} command.

 {{{
 drkir...@hawk:~/sage-4.5.3/local/lib$ elfdump -d libpolybori-0.6.4.so |
 grep TEXTREL
       [25]  TEXTREL           0
       [34]  FLAGS             0x4                 [ TEXTREL ]
 }}}

 and, what I assume is part of !PolyBoRi as the version number is
 identical.

 {{{
 drkir...@hawk:~/sage-4.5.3/local/lib$ elfdump -d libgroebner-0.6.4.so  |
 grep TEXTREL
       [25]  TEXTREL           0
       [34]  FLAGS             0x4                 [ TEXTREL ]
 }}}

 This is a bad sign - see for example

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

 There should be no output from the above command, which is the case with
 most libraries. (Only ECL, !PolyBoRi and Cliquer have this problem, but
 I've solved the Cliquer issue - see #9871)

 As far as I can tell, -fPIC is used when building all the files, so there
 must be another reason for this problem.

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9872>
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