#11084: Singular 3-1-1-4.p6 fails to build with gcc 4.6.0.
-------------------------------------------------------------+--------------
    Reporter:  drkirkby                                      |         Owner:  
GeorgSWeber                     
        Type:  defect                                        |        Status:  
closed                          
    Priority:  blocker                                       |     Milestone:  
sage-4.7                        
   Component:  build                                         |    Resolution:  
fixed                           
    Keywords:                                                |   Work_issues:   
                               
    Upstream:  None of the above - read trac for reasoning.  |      Reviewer:  
Alexander Dreyer, Jeroen Demeyer
      Author:  David Kirkby, Jeroen Demeyer                  |        Merged:  
sage-4.7.rc0                    
Dependencies:                                                |  
-------------------------------------------------------------+--------------
Description changed by drkirkby:

Old description:

> After trying to build Sage with 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.  The same issue occurs on various other systems.
>
> {{{
> 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.
>
> A revised package, which reduces the optimisation level, which at least
> allows this to build on !OpenSolaris may be found at
>
> New spkg, based on #9497:
> [http://boxen.math.washington.edu/home/jdemeyer/spkg/singular-3-1-1-4.p8.spkg]
>
> This needs further testing on other platforms.

New description:

 After trying to build Sage with 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.  The same issue occurs on various other systems.

 {{{
 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.

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

 New spkg, based on #9497:
 [http://boxen.math.washington.edu/home/jdemeyer/spkg/singular-3-1-1-4.p8.spkg]

 This needs further testing on other platforms.

 Other problems related to gcc 4.6.0 can be found on #11216

--

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