Hi all,

I've got a bit further with building sage-3.0.3.alpha1. After a few
hacks to ntl and flint, I got problems when building polybori.

1) One of the problems that stops this working is in C++ code, and I
don't know C++ - only C.  Anyone who knows C++ feel they might be able
to fix polybori on Solaris? If they are a *regular* poster to sage-
devel, but do not have access to a Sun, I don't mind giving access to
a Sun Ultra 60 via SSH. I'd obviously ask my machine is not used as a
hacking platform and would want to know a narrowish range of IPs they
would use so I can restrict access in the firewall.

Just be aware, the Sun Ultra 60 is not the fastest machine in the
world - 2 x 450 MHz, 1 GB RAM. It will take *hours* to compile Sage
from scratch, so you might want to set off a compilation and return
later to check on progress.

2) Also worth noting is that there appears to be made a call to 'CC',
which is the name of the Sun C++ compiler. Given I've been using all
GNU tools up to this point, any compilation of C should have used gcc
and C++ used g++. The command CC should not have been called. I'm
guessing a makefile or some script is a bit broken. I'll probably be
able to sort that out without too much hassle.

3) The compiler flag -KPIC, which is used on Sun compilers, is being
passed to gcc  - usually one finds gcc specific flags passed to a Sun
compiler, but this is the opposite! I guess one might call it it
SUNism, which makes a change from GNUism!

I think gcc will simply ignore this, and since the GNU equivalent (-
fPIC) is also passed, don't think the compiler flag problem should
stop this compiling.

4) gcc reports Anachronism.

5) Due to work commitments, I am going to get far less chance to work
on this over the next few weeks. I will be working almost 24/7 on real
(paid) work!  Hence don't expect too much work from me.

Just for the record, this is a Sun Blade 2000, 2 x 1.2 GHz UltraSPARC
III+ CPUs, 8 GB RAM, Solaris 10 update 4, gcc 4.0.3, gmake 3.81.

Below is the errors recorded in install.log


gcc -o Cudd/dddmp/so_dddmpNodeAdd.o -c -O3 -ansi -Wno-long-long -
Wreturn-type -g -fPIC -KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -
DHAVE_IEEE_754 -DBSD -I/export/home/drkirkby/sage-3.0.3.alpha1/spkg/
build/polybori-0.3.1.p3/src/boost_1_34_1.cropped -I/export/home/
drkirkby/sage-3.0.3.alpha1/local/include/python2.5 -Ipolybori/include -
ICudd/obj -ICudd/util -ICudd/cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -
ICudd/epd Cudd/dddmp/dddmpNodeAdd.c
gcc: unrecognized option '-KPIC'
gcc -o Cudd/dddmp/so_dddmpLoadCnf.o -c -O3 -ansi -Wno-long-long -
Wreturn-type -g -fPIC -KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -
DHAVE_IEEE_754 -DBSD -I/export/home/drkirkby/sage-3.0.3.alpha1/spkg/
build/polybori-0.3.1.p3/src/boost_1_34_1.cropped -I/export/home/
drkirkby/sage-3.0.3.alpha1/local/include/python2.5 -Ipolybori/include -
ICudd/obj -ICudd/util -ICudd/cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -
ICudd/epd Cudd/dddmp/dddmpLoadCnf.c
gcc: unrecognized option '-KPIC'
gcc -o Cudd/dddmp/so_dddmpNodeCnf.o -c -O3 -ansi -Wno-long-long -
Wreturn-type -g -fPIC -KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -
DHAVE_IEEE_754 -DBSD -I/export/home/drkirkby/sage-3.0.3.alpha1/spkg/
build/polybori-0.3.1.p3/src/boost_1_34_1.cropped -I/export/home/
drkirkby/sage-3.0.3.alpha1/local/include/python2.5 -Ipolybori/include -
ICudd/obj -ICudd/util -ICudd/cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -
ICudd/epd Cudd/dddmp/dddmpNodeCnf.c
gcc: unrecognized option '-KPIC'
gcc -o Cudd/mtr/so_mtrGroup.o -c -O3 -ansi -Wno-long-long -Wreturn-
type -g -fPIC -KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -DHAVE_IEEE_754 -
DBSD -I/export/home/drkirkby/sage-3.0.3.alpha1/spkg/build/
polybori-0.3.1.p3/src/boost_1_34_1.cropped -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/python2.5 -Ipolybori/include -ICudd/
obj -ICudd/util -ICudd/cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -ICudd/
epd Cudd/mtr/mtrGroup.c
gcc: unrecognized option '-KPIC'
gcc -o Cudd/mtr/so_mtrBasic.o -c -O3 -ansi -Wno-long-long -Wreturn-
type -g -fPIC -KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -DHAVE_IEEE_754 -
DBSD -I/export/home/drkirkby/sage-3.0.3.alpha1/spkg/build/
polybori-0.3.1.p3/src/boost_1_34_1.cropped -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/python2.5 -Ipolybori/include -ICudd/
obj -ICudd/util -ICudd/cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -ICudd/
epd Cudd/mtr/mtrBasic.c
gcc: unrecognized option '-KPIC'
gcc -o Cudd/st/so_st.o -c -O3 -ansi -Wno-long-long -Wreturn-type -g -
fPIC -KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -DHAVE_IEEE_754 -DBSD -I/
export/home/drkirkby/sage-3.0.3.alpha1/spkg/build/polybori-0.3.1.p3/
src/boost_1_34_1.cropped -I/export/home/drkirkby/sage-3.0.3.alpha1/
local/include/python2.5 -Ipolybori/include -ICudd/obj -ICudd/util -
ICudd/cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -ICudd/epd Cudd/st/st.c
gcc: unrecognized option '-KPIC'
gcc -o Cudd/epd/so_epd.o -c -O3 -ansi -Wno-long-long -Wreturn-type -g -
fPIC -KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -DHAVE_IEEE_754 -DBSD -I/
export/home/drkirkby/sage-3.0.3.alpha1/spkg/build/polybori-0.3.1.p3/
src/boost_1_34_1.cropped -I/export/home/drkirkby/sage-3.0.3.alpha1/
local/include/python2.5 -Ipolybori/include -ICudd/obj -ICudd/util -
ICudd/cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -ICudd/epd Cudd/epd/epd.c
gcc: unrecognized option '-KPIC'
/opt/SUNWspro/bin/CC -o polybori/src/so_BoolePolyRing.o -c -O3 -ansi -
Wno-long-long -Wreturn-type -g -fPIC -ftemplate-depth-100 -g -fPIC -
KPIC -DNDEBUG -DPACKED -DHAVE_M4RI -DHAVE_IEEE_754 -DBSD -I/export/
home/drkirkby/sage-3.0.3.alpha1/spkg/build/polybori-0.3.1.p3/src/
boost_1_34_1.cropped -I/export/home/drkirkby/sage-3.0.3.alpha1/local/
include/python2.5 -Ipolybori/include -ICudd/obj -ICudd/util -ICudd/
cudd -ICudd/dddmp -ICudd/mtr -ICudd/st -ICudd/epd polybori/src/
BoolePolyRing.cc
CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -Wno-long-long passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -Wreturn-type 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 -ftemplate-depth-100 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 100: Warning: Last line in file
"polybori/include/cacheopts.h" is not terminated with a newline.
"polybori/include/pbori_func.h", line 166: Error: Could not open
include file<ext/hash_map>.
"polybori/include/pbori_func.h", line 166: Error: Could not open
include file<ext/hash_map>.
"polybori/include/CCuddZDD.h", line 305: 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 305: 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 305: 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 310: 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 319: 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 320: 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 324: 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 327: 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 189: 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 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*) in call to
polybori::CCuddInterface::apply(DdNode*(*)(DdManager*)) const is being
passed extern "C" DdNode*(*)(DdManager*).
"polybori/include/CCuddNavigator.h", line 148: Error: iterator_traits
is not a member of std.
"polybori/include/CCuddNavigator.h", line 148: Error: A declaration
does not specify a tag or an identifier.
"polybori/include/CCuddNavigator.h", line 148: Error: Use ";" to
terminate declarations.
"polybori/include/CCuddNavigator.h", line 148: Error: "}" expected
instead of "<".
"polybori/include/CCuddNavigator.h", line 148: Error: Use ";" to
terminate declarations.
"polybori/include/CCuddNavigator.h", line 148: Error: A declaration
was expected instead of "<".
"polybori/include/CCuddNavigator.h", line 148: Error: "," expected
instead of ">".
"polybori/include/CCuddNavigator.h", line 150: Error: value_type is
not defined.
"polybori/include/CCuddNavigator.h", line 154: Error: There must be an
identifier to declare.
"polybori/include/CCuddNavigator.h", line 162: Error: "explicit" is
not allowed here.
"polybori/include/CCuddNavigator.h", line 162: Error: ")" expected
instead of "&".
"polybori/include/CCuddNavigator.h", line 165: Error: ")" expected
instead of "&".
"polybori/include/CCuddNavigator.h", line 168: Error: Type name
expected instead of "CCuddNavigator".
"polybori/include/CCuddNavigator.h", line 168: Error: Illegal number
of arguments for ~file level().
"polybori/include/CCuddNavigator.h", line 171: Error: "," expected
instead of "&".
"polybori/include/CCuddNavigator.h", line 174: Error: self is not
defined.
"polybori/include/CCuddNavigator.h", line 174: Error: The function
"thenBranch() const" cannot be declared const.
"polybori/include/CCuddNavigator.h", line 174: Error: Can only use
this within a non-static member function.
"polybori/include/CCuddNavigator.h", line 174: Error: Only a function
may be called.
"polybori/include/CCuddNavigator.h", line 174: Error: Only a function
may be called.
"polybori/include/CCuddNavigator.h", line 177: Error: Multiple
declaration for self.
"polybori/include/CCuddNavigator.h", line 177: Error: "," expected
instead of "&".
"polybori/include/CCuddNavigator.h", line 180: Error: self is not
defined.
Compilation aborted, too many Error messages.
scons: *** [polybori/src/so_BoolePolyRing.o] Error 1
scons: building terminated because of errors.
Error building PolyBoRi.

real    8m30.097s
user    7m39.114s
sys     0m39.588s
sage: An error occurred while installing polybori-0.3.1.p3
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /export/home/drkirkby/sage-3.0.3.alpha1/install.log.  Describe your
computer, operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/export/home/drkirkby/sage-3.0.3.alpha1/spkg/build/polybori-0.3.1.p3
and type 'make'.
Instead type "/export/home/drkirkby/sage-3.0.3.alpha1/sage -sh"
in order to set all environment variables correctly, then cd to
/export/home/drkirkby/sage-3.0.3.alpha1/spkg/build/polybori-0.3.1.p3
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/polybori-0.3.1.p3] Error 1
make[1]: Leaving directory `/export/home/drkirkby/sage-3.0.3.alpha1/
spkg'

real     8:42.1
user     7:41.1
sys        37.2



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to