#11084: Singular 3-1-1-4.p4 fails to build with gcc 4.6.0.
----------------------------------------------------------------------------------------+
   Reporter:  drkirkby                                                          
        |       Owner:  GeorgSWeber                              
       Type:  defect                                                            
        |      Status:  needs_info                               
   Priority:  critical                                                          
        |   Milestone:  sage-4.7                                 
  Component:  build                                                             
        |    Keywords:                                           
     Author:  David Kirkby                                                      
        |    Upstream:  Reported upstream. Little or no feedback.
   Reviewer:                                                                    
        |      Merged:                                           
Work_issues:  Testing on  Linux, OS X, Solaris 10 (both x86 and SPARC) with gcc 
4.6.0.  |  
----------------------------------------------------------------------------------------+
Description changed by drkirkby:

Old description:

> After trying to build Sage with the latest gcc (4.6.0) on !OpenSolaris, I
> find it fails when building Singular, despite Singular (and all of Sage)
> builds with gcc-4.5.0.
>
> {{{
> In file included from ../kernel/ring.h:13:0,
>                  from ../kernel/ideals.h:11,
>                  from ipshell.h:12,
>                  from tesths.cc:20:
> ../kernel/polys-impl.h:177:0: warning: "pPolyAssumeReturn" redefined
> [enabled by default]
> ../kernel/polys-impl.h:176:0: note: this is the location of the previous
> definition
> mpsr_Tok.cc: In function 'void mpsr_ttGen()':
> mpsr_Tok.cc:551:29: warning: deprecated conversion from string constant
> to 'char*' [-Wwrite-strings]
> Undefined                       first referenced
>  symbol                             in file
> uniFactorizer(CanonicalForm const&, Variable const&, bool const&)
> /export/home/drkirkby/sage-new-
> gcc/sage-4.7.alpha2/local/lib/libsingcf.a(facFqFactorize.o)
> ld: fatal: symbol referencing errors. No output written to gentable1
> collect2: ld returned 1 exit status
> make[4]: *** [iparith.inc] Error 1
> Undefined                       first referenced
>  symbol                             in file
> uniFactorizer(CanonicalForm const&, Variable const&, bool const&)
> /export/home/drkirkby/sage-new-
> gcc/sage-4.7.alpha2/local/lib/libsingcf.a(facFqFactorize.o)
> ld: fatal: symbol referencing errors. No output written to gentable2
> collect2: ld returned 1 exit status
> make[4]: *** [mpsr_Tok.inc] Error 1
> make[4]: Target `install' not remade because of errors.
> make[4]: Leaving directory `/export/home/drkirkby/sage-new-
> gcc/sage-4.7.alpha2/spkg/build/singular-3-1-1-4.p4/src/Singular'
> make[3]: *** [install] Error 1
> make[3]: Leaving directory `/export/home/drkirkby/sage-new-
> gcc/sage-4.7.alpha2/spkg/build/singular-3-1-1-4.p4/src'
> make[2]: *** [/export/home/drkirkby/sage-new-
> gcc/sage-4.7.alpha2/local/bin/Singular-3-1-1] Error 2
> make[2]: Leaving directory `/export/home/drkirkby/sage-new-
> gcc/sage-4.7.alpha2/spkg/build/singular-3-1-1-4.p4/src'
> Unable to build Singular.
>
> real    3m22.783s
> user    6m14.242s
> sys     0m22.671s
> sage: An error occurred while installing singular-3-1-1-4.p4
> }}}
>
> A full log is attached.
>
> The same issue has been reported on Linux - see below.

New description:

 After trying to build Sage with the latest gcc (4.6.0) on !OpenSolaris, I
 find it fails when building Singular, despite Singular (and all of Sage)
 builds with gcc-4.5.0.

 {{{
 In file included from ../kernel/ring.h:13:0,
                  from ../kernel/ideals.h:11,
                  from ipshell.h:12,
                  from tesths.cc:20:
 ../kernel/polys-impl.h:177:0: warning: "pPolyAssumeReturn" redefined
 [enabled by default]
 ../kernel/polys-impl.h:176:0: note: this is the location of the previous
 definition
 mpsr_Tok.cc: In function 'void mpsr_ttGen()':
 mpsr_Tok.cc:551:29: warning: deprecated conversion from string constant to
 'char*' [-Wwrite-strings]
 Undefined                       first referenced
  symbol                             in file
 uniFactorizer(CanonicalForm const&, Variable const&, bool const&)
 /export/home/drkirkby/sage-new-
 gcc/sage-4.7.alpha2/local/lib/libsingcf.a(facFqFactorize.o)
 ld: fatal: symbol referencing errors. No output written to gentable1
 collect2: ld returned 1 exit status
 make[4]: *** [iparith.inc] Error 1
 Undefined                       first referenced
  symbol                             in file
 uniFactorizer(CanonicalForm const&, Variable const&, bool const&)
 /export/home/drkirkby/sage-new-
 gcc/sage-4.7.alpha2/local/lib/libsingcf.a(facFqFactorize.o)
 ld: fatal: symbol referencing errors. No output written to gentable2
 collect2: ld returned 1 exit status
 make[4]: *** [mpsr_Tok.inc] Error 1
 make[4]: Target `install' not remade because of errors.
 make[4]: Leaving directory `/export/home/drkirkby/sage-new-
 gcc/sage-4.7.alpha2/spkg/build/singular-3-1-1-4.p4/src/Singular'
 make[3]: *** [install] Error 1
 make[3]: Leaving directory `/export/home/drkirkby/sage-new-
 gcc/sage-4.7.alpha2/spkg/build/singular-3-1-1-4.p4/src'
 make[2]: *** [/export/home/drkirkby/sage-new-
 gcc/sage-4.7.alpha2/local/bin/Singular-3-1-1] Error 2
 make[2]: Leaving directory `/export/home/drkirkby/sage-new-
 gcc/sage-4.7.alpha2/spkg/build/singular-3-1-1-4.p4/src'
 Unable to build Singular.

 real    3m22.783s
 user    6m14.242s
 sys     0m22.671s
 sage: An error occurred while installing singular-3-1-1-4.p4
 }}}

 A full log is attached.

 The same issue has been reported on Linux - see below.

 A revised package, which reduces the optimisation level, which at least
 allows this to build on !OpenSolaris may be found at

 http://boxen.math.washington.edu/home/kirkby/patches/singular-3-1-1-4.p5.spkg

 This needs further testing on other platforms.

--

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