#11084: Singular 3-1-1-4.p6 fails to build with gcc 4.6.0.
--------------------------------------------------------------------------------------+
   Reporter:  drkirkby                                                          
      |       Owner:  GeorgSWeber                                 
       Type:  defect                                                            
      |      Status:  positive_review                             
   Priority:  blocker                                                           
      |   Milestone:  sage-4.7.1                                  
  Component:  build                                                             
      |    Keywords:                                              
     Author:  David Kirkby                                                      
      |    Upstream:  None of the above - read trac for reasoning.
   Reviewer:  AlexanderDreyer                                                   
      |      Merged:                                              
Work_issues:  Testing on Linux, OS X, Solaris 10 (both x86 and SPARC) with gcc 
4.6.0  |  
--------------------------------------------------------------------------------------+
Changes (by jdemeyer):

  * work_issues:  Testing on Linux, OS X, Solaris 10 (both x86 and SPARC)
                  with gcc 4.6.0.; rebase to #9497 =>
                  Testing on Linux, OS X, Solaris 10
                  (both x86 and SPARC) with gcc 4.6.0


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.
>
> 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.
>
> Merged with #9497:
> http://boxen.math.washington.edu/home/dreyer/spkg/singular-3-1-1-4.p7.spkg

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/dreyer/spkg/singular-3-1-1-4.p7.spkg]

 This needs further testing on other platforms.

--

Comment:

 Are we really supposed to '''overwrite''' CFLAGS instead of
 '''appending''' CLFAGS when SAGE64 is set?

 From `spkg-install`:
 {{{
 if [ "x$SAGE64" = xyes ]; then
     echo "Building a 64-bit version of Singular"
     CFLAGS="-O2 -g -m64 "
     CXXFLAGS="-O2 -g -m64"
     CPPFLAGS="-O2 -g -m64"
     LDFLAGS="-m64 "; export LDFLAGS
     if [ "x`uname`" = xSunOS ] ; then
       CC="$CC -m64"
       export CC
       CXX="$CXX -m64"
       export CXX
     fi
 fi
 }}}

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