#7932: _Complex_I undeclared - a new bug totally stops a Solaris 10 build.
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: new
Priority: blocker | Milestone: sage-4.3.1
Component: solaris | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
------------------------+---------------------------------------------------
#6595 fixed a long standing bug which prevented Sage building on Solaris
10 (SPARC) if Sun Studio was installed. That allowed Sage to build
properly on Solaris 10, so I set up
http://t2nb.math.washington.edu:8000/
which clearly states
''v4.3-patched-for-Solaris(SPARC)''
'''Some changes(s) between Sage 4.3 and sage-4.3.1.alpha2 have completely
broken the build on Solaris, so sage-4.3.1.alpha2 will not build on
Solaris 10 (SPARC)'''. I noticed this on my own Sun Blade 2000, but have
also observed it on 't2'.
Both my Sun Blade 2000 and 't2' use gcc 4.4.1. Neither compiler has been
changed in any way since 4.3 was released.
I'm marking this as a blocker, as Sage would have built for the first time
in years on Solaris 10 if this bug had not been introduced. This newly
introduced bug needs fixing.
I have created a tar file /rootpool2/local/kirkby/newly-broken-Solaris-
build-sage-4.3.1.alpha2.tar on 't2' so I have record of this. I've made
the permissions on /rootpool2/local/kirkby/sage-4.3.1.alpha2 world
writable, so anyone who feels able to try to test this. (or grab the tar
file and do it elsewhere).
Dave
{{{
gcc -shared
build/temp.solaris-2.10-sun4v-2.6/sage/quadratic_forms/quadratic_form__evaluate.o
-L/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//lib -lcsage -lstdc++
-lntl -o
build/lib.solaris-2.10-sun4v-2.6/sage/quadratic_forms/quadratic_form__evaluate.so
building 'sage.rings.bernmm' extension
creating build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DUSE_THREADS=1 -DTHREAD_STACK_SIZE=4096
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include/csage
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/devel//sage/sage/ext
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local/include/python2.6 -c
sage/rings/bernmm.cpp -o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm.o -w
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DUSE_THREADS=1 -DTHREAD_STACK_SIZE=4096
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include/csage
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/devel//sage/sage/ext
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local/include/python2.6 -c
sage/rings/bernmm/bern_modp.cpp -o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm/bern_modp.o -w
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DUSE_THREADS=1 -DTHREAD_STACK_SIZE=4096
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include/csage
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/devel//sage/sage/ext
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local/include/python2.6 -c
sage/rings/bernmm/bern_modp_util.cpp -o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm/bern_modp_util.o -w
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DUSE_THREADS=1 -DTHREAD_STACK_SIZE=4096
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include/csage
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/devel//sage/sage/ext
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local/include/python2.6 -c
sage/rings/bernmm/bern_rat.cpp -o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm/bern_rat.o -w
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
g++ -shared build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm.o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm/bern_modp.o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm/bern_modp_util.o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernmm/bern_rat.o
-L/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//lib -lcsage -lgmp -lntl
-lstdc++ -lpthread -lstdc++ -lntl -o
build/lib.solaris-2.10-sun4v-2.6/sage/rings/bernmm.so
building 'sage.rings.bernoulli_mod_p' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-Isage/libs/ntl/
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include/csage
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/devel//sage/sage/ext
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local/include/python2.6 -c
sage/rings/bernoulli_mod_p.cpp -o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernoulli_mod_p.o -w
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
g++ -shared build/temp.solaris-2.10-sun4v-2.6/sage/rings/bernoulli_mod_p.o
-L/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//lib -lcsage -lntl
-lstdc++ -lstdc++ -lntl -o
build/lib.solaris-2.10-sun4v-2.6/sage/rings/bernoulli_mod_p.so
building 'sage.rings.complex_double' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local//include/csage
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/devel//sage/sage/ext
-I/rootpool2/local/kirkby/sage-4.3.1.alpha2/local/include/python2.6 -c
sage/rings/complex_double.c -o
build/temp.solaris-2.10-sun4v-2.6/sage/rings/complex_double.o -std=c99
-D_XPG6 -w
sage/rings/complex_double.c: In function
‘__pyx_t_double_complex_from_parts’:
sage/rings/complex_double.c:14891: error: ‘_Complex_I’ undeclared (first
use in this function)
sage/rings/complex_double.c:14891: error: (Each undeclared identifier is
reported only once
sage/rings/complex_double.c:14891: error: for each function it appears
in.)
error: command 'gcc' failed with exit status 1
sage: There was an error installing modified sage library code.
ERROR installing SAGE
real 181m48.343s
user 147m51.334s
sys 7m45.185s
sage: An error occurred while installing sage-4.3.1.alpha2
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /rootpool2/local/kirkby/sage-4.3.1.alpha2/install.log. Describe your
computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/rootpool2/local/kirkby/sage-4.3.1.alpha2/spkg/build/sage-4.3.1.alpha2 and
type 'make check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd
'/rootpool2/local/kirkby/sage-4.3.1.alpha2/spkg/build/sage-4.3.1.alpha2'
&& '/rootpool2/local/kirkby/sage-4.3.1.alpha2/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
make[1]: *** [installed/sage-4.3.1.alpha2] Error 1
make[1]: Leaving directory
`/rootpool2/local/kirkby/sage-4.3.1.alpha2/spkg'
real 1536m11.177s
user 1092m45.904s
sys 102m19.699s
Error building Sage.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7932>
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.