#6391: libGAP! -- create a Cython library interface to gap
----------------------------------------------------------------------------+
Reporter: was |
Owner: was
Type: enhancement |
Status: needs_review
Priority: major |
Milestone: sage-5.3
Component: group theory |
Resolution:
Keywords: |
Work issues:
Report Upstream: N/A |
Reviewers: Dima Pasechnik, Ivan Andrus, Volker Braun, William Stein
Authors: Dima Pasechnik, Ivan Andrus, Volker Braun, William Stein |
Merged in:
Dependencies: #13211 |
Stopgaps:
----------------------------------------------------------------------------+
Comment (by dimpase):
Replying to [comment:104 vbraun]:
> The `sage/libs/gap/test/main.c` is only for instructional purposes, it
demonstrates how to build a standalone binary so you can run libGAP under
a debugger/valgrind without Sage. It doesn't exercise anything thats not
already in doctests.
I tried it on the system I am testing libgap now, and it doesn't work (I
needed to do changes --- see the patch to be attached --- to the source to
make it compile, but it seems to need more, as I get suspicious warnings
during compilation, and then a segfault)
{{{
(sage-sh) dima@spms-banana:test$ make main
gcc -std=gnu99 -I/usr/local/src/sage/sage-5.4.beta1/local/include
-I/usr/local/src/sage/sage-5.4.beta1/local/include/python2.6 -c -g
-DGAPLOCAL=/usr/local/src/sage/sage-5.4.beta1/local/gap/latest main.c
In file included from main.c:10:
/usr/local/src/sage/sage-5.4.beta1/local/include/gap/vars.h: In function
'libGAP_SwitchToNewLvars':
/usr/local/src/sage/sage-5.4.beta1/local/include/gap/vars.h:163: warning:
implicit declaration of function 'libGAP_BODY_FUNC'
/usr/local/src/sage/sage-5.4.beta1/local/include/gap/vars.h:163: warning:
cast to pointer from integer of different size
In file included from main.c:10:
/usr/local/src/sage/sage-5.4.beta1/local/include/gap/vars.h: In function
'libGAP_SwitchToOldLVars':
/usr/local/src/sage/sage-5.4.beta1/local/include/gap/vars.h:205: warning:
cast to pointer from integer of different size
main.c: In function 'eval':
main.c:24: warning: implicit declaration of function 'libgap_set_error'
main.c:26: warning: implicit declaration of function
'libGAP_ViewObjHandler'
gcc -L/usr/local/src/sage/sage-5.4.beta1/local/lib -o main main.o -lgap
-lcsage -lntl -lstdc++ -lpari -lpython2.7 -lm -lgmp
(sage-sh) dima@spms-banana:test$ ./main
Initialized
Input:
1+2+3;
Output:
6
Input:
g:=FreeGroup(2);
Segmentation fault
(sage-sh) dima@spms-banana:test$
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6391#comment:110>
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.