#12738: Singular fails to build with LTO
-------------------------------------------------------------+--------------
       Reporter:  SimonKing                                  |         Owner:  
tbd     
           Type:  defect                                     |        Status:  
new     
       Priority:  major                                      |     Milestone:  
sage-5.0
      Component:  packages                                   |    Resolution:   
       
       Keywords:  singular lto gcc                           |   Work issues:   
       
Report Upstream:  Reported upstream. Little or no feedback.  |     Reviewers:   
       
        Authors:                                             |     Merged in:   
       
   Dependencies:                                             |      Stopgaps:   
       
-------------------------------------------------------------+--------------

Comment (by leif):

 Replying to [comment:15 SimonKing]:
 > Replying to [comment:14 leif]:
 > > Replying to [comment:13 SimonKing]:
 > > > Just as I wrote the previous comment, building Singular failed
 again, with the same error `in lto_varpool_replace_node, bei lto-
 symtab.c:304`.
 > >
 > > As expected... :-(
 >
 > Why expected? I thought that the problem is that Singular does not take
 LDFLAGS into account!

 Because dropping `-flto` shouldn't have any effect except that LTO simply
 won't happen.

 Of course there are some other effects, e.g. regarding the size of the
 object files (and of course compile time), depending on ''where'' you drop
 it, if not everywhere.

 `-flto` ''during compilation'' just prepares the generated object files
 for LTO (i.e., adds the extra information needed later); `-flto` during
 the link phase then triggers LTO.  If some object files or libraries lack
 the special sections needed, they're just excluded from LTO, as there's no
 information available on them.  This is very similar to compiling with
 `-g`, and later using the debugger.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12738#comment:16>
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