Alexander Dreyer wrote:
> Dear Dave,
>> The C++ compiler supports the ISO standard for C++, ISO IS 14882:1998, 
>> Programming Language C++. The following list describes requirements in the 
>> standard that are not supported in this release:
>>   * The export model of template compilation
>>   * Some functionality of the C++ library is not implemented in the default 
>> libCstd to preserve binary compatibility between the current and earlier 
>> releases of the C++ compiler. For more information, check the C++ FAQ. I 
>> can't 
>> see anything relevant looking in the FAQ.
> From
> http://developers.sun.com/solaris/articles/cmp_stlport_libCstd.html
> I read, that one might have to build with  -library=stlport4 .
> 
> I'll try it out.
> 
> Best regards,
>   Alexander
> 

I tried it, but simply hard-coding the flag in custom.py (no checking what 
compiler it is). It still fails to build, though the previous error message has 
gone, there are still other error messages. See below.

Not knowing C++, I can't really comment on this.

One thing I did note, is that if library=stlport4 is added as an option in one 
file, then it needs to be done in them all. So clearly this is something that 
needs to be set globally as a CFLAG, and not implemented just in PolyBoRi.

Dave


/opt/xxxsunstudio12.1/bin/CC -o polybori/src/BoolePolyRing.o -c -O3 -g -fPIC -g 
-fPIC -library=stlport4 -O3 -g -fPIC -DNDEBUG -DHAVE_GD -DPACKED -DHAVE_M4RI 
-DHAVE_GD -DHAVE_IEEE_754 -DBSD 
-I/export/home/drkirkby/sage-4.3.alpha0-sun-compiler/spkg/build/polybori-0.6.3-20090827.p0/src/boost_1_34_1.cropped
 
-I/export/home/drkirkby/sage-4.3.alpha0-sun-compiler/local/include 
-I/export/home/drkirkby/sage-4.3.alpha0-sun-compiler/local/include/python2.6 
-Ipolybori/include -IM4RI -ICudd/obj -ICudd/util -ICudd/cudd -ICudd/mtr 
-ICudd/st -ICudd/epd polybori/src/BoolePolyRing.cc
CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
"polybori/include/CDDManager.h", line 103: Warning: Last line in file 
"polybori/include/cacheopts.h" is not terminated with a newline.
"polybori/include/CCuddZDD.h", line 308: Warning (Anachronism): Formal argument 
func of type DdNode*(*)(DdManager*,DdNode*,int) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::apply(DdNode*(*)(DdManager*,DdNode*,int),
 
int) const is being passed extern "C" DdNode*(*)(DdManager*,DdNode*,int).
"polybori/include/CCuddZDD.h", line 308: Warning (Anachronism): Formal argument 
func of type DdNode*(*)(DdManager*,DdNode*,int) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::apply(DdNode*(*)(DdManager*,DdNode*,int),
 
int) const is being passed extern "C" DdNode*(*)(DdManager*,DdNode*,int).
"polybori/include/CCuddZDD.h", line 308: Warning (Anachronism): Formal argument 
func of type DdNode*(*)(DdManager*,DdNode*,int) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::apply(DdNode*(*)(DdManager*,DdNode*,int),
 
int) const is being passed extern "C" DdNode*(*)(DdManager*,DdNode*,int).
"polybori/include/CCuddZDD.h", line 313: Warning (Anachronism): Formal argument 
func of type DdNode*(*)(DdManager*,DdNode*,DdNode*,DdNode*) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::apply(DdNode*(*)(DdManager*,DdNode*,DdNode*,DdNode*),
 
const polybori::CCuddZDD&, const polybori::CCuddZDD&) const is being passed 
extern "C" DdNode*(*)(DdManager*,DdNode*,DdNode*,DdNode*).
"polybori/include/CCuddZDD.h", line 322: Warning (Anachronism): Formal argument 
func of type int(*)(DdManager*,DdNode*) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::apply(int(*)(DdManager*,DdNode*)) 
const is being passed extern "C" int(*)(DdManager*,DdNode*).
"polybori/include/CCuddZDD.h", line 323: Warning (Anachronism): Formal argument 
func of type int(*)(DdManager*,DdNode*) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::apply(int(*)(DdManager*,DdNode*)) 
const is being passed extern "C" int(*)(DdManager*,DdNode*).
"polybori/include/CCuddZDD.h", line 327: Warning (Anachronism): Formal argument 
func of type int(*)(DdManager*,DdNode*) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::memApply<int>(int(*)(DdManager*,DdNode*))
 
const is being passed extern "C" int(*)(DdManager*,DdNode*).
"polybori/include/CCuddZDD.h", line 330: Warning (Anachronism): Formal argument 
func of type double(*)(DdManager*,DdNode*) in call to 
polybori::CCuddDDBase<polybori::CCuddZDD>::memApply<double>(double(*)(DdManager*,DdNode*))
 
const is being passed extern "C" double(*)(DdManager*,DdNode*).
"polybori/include/CCuddInterface.h", line 192: Warning (Anachronism): Formal 
argument func of type DdNode*(*)(DdManager*,int) in call to 
polybori::CCuddInterface::apply(DdNode*(*)(DdManager*,int), int) const is being 
passed extern "C" DdNode*(*)(DdManager*,int).
"polybori/include/CCuddInterface.h", line 195: Warning (Anachronism): Formal 
argument func of type DdNode*(*)(DdManager*,int) in call to 
polybori::CCuddInterface::apply(DdNode*(*)(DdManager*,int), int) const is being 
passed extern "C" DdNode*(*)(DdManager*,int).
"polybori/include/CCuddInterface.h", line 198: Warning (Anachronism): Formal 
argument func of type DdNode*(*)(DdManager*) in call to 
polybori::CCuddInterface::apply(DdNode*(*)(DdManager*)) const is being passed 
extern "C" DdNode*(*)(DdManager*).
"polybori/include/BooleEnv.h", line 119: Error: The type 
"polybori::BoolePolyRing" is incomplete.
"polybori/include/CTermGenerator.h", line 86: Error: TermType is not defined.
"polybori/include/CTermGenerator.h", line 259: Error: The base 
"polybori::CTermGeneratorBase<polybori::BooleMonomial, int>" must be a 
previously defined class or struct.
"polybori/include/CTermGenerator.h", line 86: Error: TermType is not defined.
"polybori/include/CTermGenerator.h", line 263: Error: data_type is not a member 
of polybori::CTermGeneratorBase<polybori::BooleMonomial, int>.
"polybori/include/CTermGenerator.h", line 265: Error: 
polybori::CTermGenerator<polybori::BooleMonomial>::base is not a direct base 
class of polybori::CTermGenerator<polybori::BooleMonomial>.
"polybori/include/CTermGenerator.h", line 266: Error: 
polybori::CTermGenerator<polybori::BooleMonomial>::base is not a direct base 
class of polybori::CTermGenerator<polybori::BooleMonomial>.
"polybori/include/CTermGenerator.h", line 267: Error: 
polybori::CTermGenerator<polybori::BooleMonomial>::base is not a direct base 
class of polybori::CTermGenerator<polybori::BooleMonomial>.
"polybori/include/BlockDegLexOrder.h", line 143: Warning: 
polybori::BlockDegLexOrder::appendBlock hides the virtual function 
polybori::COrderBase::appendBlock(int) const.
"polybori/include/BlockDegLexOrder.h", line 143: Warning: 
polybori::BlockDegLexOrder::clearBlocks hides the virtual function 
polybori::COrderBase::clearBlocks() const.
"polybori/include/BlockDegRevLexAscOrder.h", line 152: Warning: 
polybori::BlockDegRevLexAscOrder::appendBlock hides the virtual function 
polybori::COrderBase::appendBlock(int) const.
"polybori/include/BlockDegRevLexAscOrder.h", line 152: Warning: 
polybori::BlockDegRevLexAscOrder::clearBlocks hides the virtual function 
polybori::COrderBase::clearBlocks() const.
8 Error(s) and 16 Warning(s) detected.
scons: *** [polybori/src/BoolePolyRing.o] Error 8
scons: building terminated because of errors.
Error building PolyBoRi.


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to