build failure with gcc-4.6.0 on solaris

6 views
Skip to first unread message

Burcin Erocal

unread,
Mar 31, 2011, 10:19:44 AM3/31/11
to libsingular-devel
Hi,

on sage-devel [1], David Kirkby reports about the problems he
encountered while compiling Sage with gcc-4.6.0 on solaris.

[1] http://groups.google.com/group/sage-devel/t/c8465f62d0c3832d

One of the issues is with Singular:

http://trac.sagemath.org/sage_trac/ticket/11084

Here is the error message from the ticket description (probably
mangled by my mail client's line wrapping):

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

Any ideas?


Burcin

Alexander Dreyer

unread,
Mar 31, 2011, 11:33:36 AM3/31/11
to libsingu...@googlegroups.com
Hi Burcin,
meanwhile I got access to an Opensolaris machine with gcc 4.6.0.

> Any ideas?
The C++ function name demangling of the function shows something funny:
> nm factory/facFqBivar.o > out ; c++filt out|grep uniFactorizer
> [15] | 272| 5397|FUNC |LOCL |0 |1 |uniFactorizer(const CanonicalForm&, const Variable&, const bool&).constprop.36

There is an additional suffix .constprop.36 after the declaration.
From
http://google-glog.googlecode.com/svn-history/r91/trunk/src/demangle_unittest.cc
I understand, that the suffix is something new from gcc 4.5/4.6, maybe
the sun linker doesn't like it?

My best,
Alexander

--
Dr. rer. nat. Dipl.-Math. Alexander Dreyer

Abteilung "Systemanalyse, Prognose und Regelung"
Fraunhofer Institut f�r Techno- und Wirtschaftsmathematik (ITWM)
Fraunhofer-Platz 1
67663 Kaiserslautern

Telefon +49 (0) 631-31600-4318
Fax +49 (0) 631-31600-1099
E-Mail alexande...@itwm.fraunhofer.de
Internet http://www.itwm.fhg.de/de/

Volker Braun

unread,
Mar 31, 2011, 11:57:40 AM3/31/11
to libsingu...@googlegroups.com
I got the same error with the Fedora 15 alpha (which uses gcc 4.6), so its not a Solaris issue.

Volker

Reply all
Reply to author
Forward
0 new messages