#12223: the 'sage.rings.complex_mpc' optional extension is broken in
sage-4.8.alpha3 and over
---------------------------------+------------------------------------------
Reporter: fbissey | Owner: tbd
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-5.0
Component: optional packages | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Jeroen Demeyer
Merged: | Dependencies:
---------------------------------+------------------------------------------
Changes (by newvalueoldvalue):
* status: new => needs_review
* author: => Jeroen Demeyer
Old description:
> The optional mpc package installs fine but when I execute sage -b to
> built the sage code I get
> {{{
> Successfully installed mpc-0.8.3-dev-svn793
> Now cleaning up tmp files.
> Making Sage/Python scripts relocatable...
> Finished installing mpc-0.8.3-dev-svn793.spkg
> fbissey@QCD-nzi3 /home/work/fbissey/sandbox/sage-4.8.alpha4 $ ./sage -b
>
> ----------------------------------------------------------
> sage: Building and installing modified Sage library files.
>
> Installing c_lib
> scons: `install' is up to date.
> Updating Cython code....
> Building sage/rings/complex_mpc.pyx because it depends on
> /home/work/fbissey/sandbox/sage-4.8.alpha4/local/include/mpc.h.
> Execute 1 commands (using 1 threads)
> python `which cython` --old-style-globals --disable-function-
> redefinition --embed-positions --directive
> cdivision=True,autotestdict=False,fast_getattr=True
> -I/home/work/fbissey/sandbox/sage-4.8.alpha4/devel/sage-main -o
> sage/rings/complex_mpc.c sage/rings/complex_mpc.pyx
> sage/rings/complex_mpc.pyx -->
> /home/work/fbissey/sandbox/sage-4.8.alpha4/local/lib/python2.6/site-
> packages//sage/rings/complex_mpc.pyx
> Time to execute 1 commands: 3.12862586975 seconds
> Finished compiling Cython code (time = 4.00216197968 seconds)
> running install
> running build
> running build_py
> running build_ext
> building 'sage.rings.complex_mpc' extension
> Execute 1 commands (using 1 threads)
> gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
> -fPIC -I/home/work/fbissey/sandbox/sage-4.8.alpha4/local/include
> -I/home/work/fbissey/sandbox/sage-4.8.alpha4/local/include/csage
> -I/home/work/fbissey/sandbox/sage-4.8.alpha4/devel/sage/sage/ext
> -I/home/work/fbissey/sandbox/sage-4.8.alpha4/local/include/python2.6 -c
> sage/rings/complex_mpc.c -o
> build/temp.linux-x86_64-2.6/sage/rings/complex_mpc.o -w
> sage/rings/complex_mpc.c: In function
> '__pyx_pf_4sage_5rings_11complex_mpc_15MPComplexNumber_16__float__':
> sage/rings/complex_mpc.c:9720:48: error: cast specifies array type
> error: command 'gcc' failed with exit status 1
> sage: There was an error installing modified sage library code.
> }}}
> I suspect the recent cython upgrade is responsible.
New description:
The optional mpc package installs fine but when I execute sage -b to built
the sage code I get
{{{
Successfully installed mpc-0.8.3-dev-svn793
Now cleaning up tmp files.
Making Sage/Python scripts relocatable...
Finished installing mpc-0.8.3-dev-svn793.spkg
fbissey@QCD-nzi3 /home/work/fbissey/sandbox/sage-4.8.alpha4 $ ./sage -b
----------------------------------------------------------
sage: Building and installing modified Sage library files.
Installing c_lib
scons: `install' is up to date.
Updating Cython code....
Building sage/rings/complex_mpc.pyx because it depends on
/home/work/fbissey/sandbox/sage-4.8.alpha4/local/include/mpc.h.
Execute 1 commands (using 1 threads)
python `which cython` --old-style-globals --disable-function-redefinition
--embed-positions --directive
cdivision=True,autotestdict=False,fast_getattr=True
-I/home/work/fbissey/sandbox/sage-4.8.alpha4/devel/sage-main -o
sage/rings/complex_mpc.c sage/rings/complex_mpc.pyx
sage/rings/complex_mpc.pyx -->
/home/work/fbissey/sandbox/sage-4.8.alpha4/local/lib/python2.6/site-
packages//sage/rings/complex_mpc.pyx
Time to execute 1 commands: 3.12862586975 seconds
Finished compiling Cython code (time = 4.00216197968 seconds)
running install
running build
running build_py
running build_ext
building 'sage.rings.complex_mpc' extension
Execute 1 commands (using 1 threads)
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPIC -I/home/work/fbissey/sandbox/sage-4.8.alpha4/local/include
-I/home/work/fbissey/sandbox/sage-4.8.alpha4/local/include/csage
-I/home/work/fbissey/sandbox/sage-4.8.alpha4/devel/sage/sage/ext
-I/home/work/fbissey/sandbox/sage-4.8.alpha4/local/include/python2.6 -c
sage/rings/complex_mpc.c -o
build/temp.linux-x86_64-2.6/sage/rings/complex_mpc.o -w
sage/rings/complex_mpc.c: In function
'__pyx_pf_4sage_5rings_11complex_mpc_15MPComplexNumber_16__float__':
sage/rings/complex_mpc.c:9720:48: error: cast specifies array type
error: command 'gcc' failed with exit status 1
sage: There was an error installing modified sage library code.
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12223#comment:5>
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.