On Mar 26, 12:42 pm, Gokhan Sever <[email protected]> wrote: > On Mar 26, 11:07 am, William Stein <[email protected]> wrote: > > > > > > > I just tried PyGSL -- I downloaded the tarball, change into the > > pygsl-0.9.5 directory, and typed > > > sage -python setup.py > > > Unfortunately, the build fails for me under OS X and Ubuntu 8.10 Linux > > with Sage-4.3.4: > > > In file included from testing/src/sf/sfmodule_testing.c:49: > > testing/src/sf/sf__data.c:779: error: ‘gsl_sf_exprel_n_CF_e’ > > undeclared here (not in a function) > > testing/src/sf/sfmodule_testing.c:102: warning: initialization from > > incompatible pointer type > > testing/src/sf/sfmodule_testing.c:102: warning: initialization from > > incompatible pointer type > > testing/src/sf/sfmodule_testing.c:145: warning: initialization from > > incompatible pointer type > > testing/src/sf/sfmodule_testing.c:145: warning: initialization from > > incompatible pointer type > > testing/src/sf/sfmodule_testing.c: In function ‘init_ufuncs’: > > testing/src/sf/sfmodule_testing.c:167: warning: cast from pointer to > > integer of different size > > error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall > > -Wstrict-prototypes -fPIC -DSWIG_COBJECT_TYPES=1 -DGSL_RANGE_CHECK=1 > > -DDEBUG=1 -DNUMERIC=0 -DPYGSL_GSL_MAJOR_VERSION=1 > > -DPYGSL_GSL_MINOR_VERSION=10 -UNDEBUG > > -I/home/wstein/build/production/sage/local/include -IInclude -I. > > -I/home/wstein/build/production/sage/local/lib/python2.6/site-packages/numpy/core/include > > -I/home/wstein/build/production/sage/local/include/python2.6 -c > > testing/src/sf/sfmodule_testing.c -o > > build/temp.linux-x86_64-2.6/testing/src/sf/sfmodule_testing.o" failed > > with exit status 1 > > > --- > > > If somebody gets PyGSL to work, that would be very good (it would be > > great to have an optional spkg!). Please note one issue though, which > > is that SWIG wrappers (PyGSL is a swig wrapper) have a significant > > *performance* penalty. > > > -- William > > > -- > > William Stein > > Associate Professor of Mathematics > > University of Washingtonhttp://wstein.org > > I get it working through a local installation (Fedora 12). Only some > tests fail in tests/block_test.py when I run python run_test.py > > I will see if I can install it from within the Sage.
Peh, I hit the same error using Sage v4.3.3 on Fedora 12 (2.6.31.9-174.fc12.i686.PAE) In file included from testing/src/sf/sfmodule_testing.c:49: testing/src/sf/sf__data.c:779: error: ‘gsl_sf_exprel_n_CF_e’ undeclared here (not in a function) In file included from testing/src/sf/sfmodule_testing.c:49: testing/src/sf/sf__data.c:779: error: ‘gsl_sf_exprel_n_CF_e’ undeclared here (not in a function) error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall - Wstrict-prototypes -fPIC -DSWIG_COBJECT_TYPES=1 -DGSL_RANGE_CHECK=1 - DDEBUG=1 -DNUMERIC=0 -DPYGSL_GSL_MAJOR_VERSION=1 - DPYGSL_GSL_MINOR_VERSION=10 -UNDEBUG -I/home/gsever/Desktop/python- repo/sage-4.3.3/local/include -IInclude -I. -I/home/gsever/Desktop/ python-repo/sage-4.3.3/local/lib/python2.6/site-packages/numpy/core/ include -I/home/gsever/Desktop/python-repo/sage-4.3.3/local/include/ python2.6 -c testing/src/sf/sfmodule_testing.c -o build/temp.linux- i686-2.6/testing/src/sf/sfmodule_testing.o" failed with exit status 1 Will compiling the package in this fashion mean its ready for integration with Sage? I was thinking instead of having a separate package that achieves the same thing have efforts combined in one place. You mentioned about the slowness, however PyGSL guy was telling about the advantage of their wrapping method over Cython's. It would be nice to get some more feedback from both side. -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-devel+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
