Re: Experiment with sagemath and Polybori needs to be built

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/5/3 Jerry James <loganjerry@xxxxxxxxx>:
> On Thu, May 3, 2012 at 1:03 PM, Paulo César Pereira de Andrade
> <paulo.cesar.pereira.de.andrade@xxxxxxxxx> wrote:
>>  Jerry, can you please add the attached patch to fflas-ffpack and
>> better yet if get it in upstream :-)
>
> I have sent the patch upstream, and am building a new fflas-ffpack
> package now (for Rawhide and F17).

  Thanks!

  I did get sagemath to build in mandriva with fflas-ffpack with that
patch, and the new linbox and sagemath I am attaching, but for
now, only for documentation purposes.

  linbox 1.2.2 needs to be built with -D__LINBOX_HAVE_INT64=1
in CXXFLAGS and CFLAGS (otherwise the fflas-ffpack patch is
not required).

  The linbox patch corrects some prototypes, adds some extra
definitions (cut&paste&adapt from modular-int32.h) and forces
instantiation of some templates.

  The sagemath patch builds the linbox interface and the matrix
interfaces, but stops when building the givaro interface, as I also
did need to update it in my Mandriva build as newer linbox wants
it. I will get to the same state when I have singular package in
fedora... But it may fail earlier if there is another component
that does not match versions.

  The sage-4.8-linbox.patch also needs to redefine mod_int to
ssize_t instead of size_t, otherwise a very large patch would
be required to implement uint64_t interfaces, or, could use the
unsigned interfaces and force it to use uint32_t.

  I also need to check more carefully
sage/matrix/matrix_integer_dense.pyx because I may have
missed the part where it free's it, and may not be using the
__dealloc__ in sage/libs/linbox/linbox.pyx

  The givaro build failure looks like:

gcc -pthread -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro
-Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags
build/temp.linux-x86_64-2.7/sage/libs/ratpoints.o -Lc_lib
-L/home/pcpa/rpm/BUILDROOT/sagemath-4.8-2-mdv2012.0.x86_64-buildroot/usr/share/sage/local/lib
-L/usr/lib64 -lcsage -lratpoints -lgmp -lstdc++ -lntl -lm -lgmp -ldl
-lpython2.7 -o build/lib.linux-x86_64-2.7/sage/libs/ratpoints.so
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections
-gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches
-Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4
-fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2
-pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fstack-protector --param=ssp-buffer-size=4 -fPIC -fPIC -fno-PIE
-I/home/pcpa/rpm/BUILDROOT/sagemath-4.8-2-mdv2012.0.x86_64-buildroot/usr/share/sage/local/include/singular
-I/home/pcpa/rpm/BUILDROOT/sagemath-4.8-2-mdv2012.0.x86_64-buildroot/usr/share/sage/local/include/factory
-I/home/pcpa/rpm/BUILDROOT/sagemath-4.8-2-mdv2012.0.x86_64-buildroot/usr/share/sage/local/include
-Ic_lib/include
-I/home/pcpa/rpm/BUILDROOT/sagemath-4.8-2-mdv2012.0.x86_64-buildroot/usr/share/sage/devel/sage/sage/ext
-I/usr/include/python2.7 -c sage/libs/singular/singular.cpp -o
build/temp.linux-x86_64-2.7/sage/libs/singular/singular.o -w
In file included from sage/libs/singular/singular.cpp:252:0:
/usr/include/givaro/givconfig.h:85:17: note: #pragma message: #warning
somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
In file included from sage/libs/singular/singular.cpp:252:0:
/usr/include/givaro/givconfig.h:91:17: note: #pragma message: #warning
somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
/usr/include/givaro/givconfig.h:97:17: note: #pragma message: #warning
somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
/usr/include/givaro/givconfig.h:103:17: note: #pragma message:
#warning somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
/usr/include/givaro/givconfig.h:109:17: note: #pragma message:
#warning somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
/usr/include/givaro/givconfig.h:115:17: note: #pragma message:
#warning somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
/usr/include/givaro/givconfig.h:121:17: note: #pragma message:
#warning somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
/usr/include/givaro/givconfig.h:127:17: note: #pragma message:
#warning somebody nasty previously included <stdint.h> without
__STDC_LIMIT_MACROS :)
sage/libs/singular/singular.cpp:922:3: error: 'GFqDom' does not name a type
sage/libs/singular/singular.cpp: In function
'__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_FiniteField_givaroElement*
__pyx_f_4sage_4libs_8singular_8singular_si2sa_GFqGivaro(snumber*,
ip_sring*, __pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro*)':
sage/libs/singular/singular.cpp:3383:30: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
sage/libs/singular/singular.cpp:3392:32: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
sage/libs/singular/singular.cpp:3401:35: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
sage/libs/singular/singular.cpp:3421:32: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
sage/libs/singular/singular.cpp:3449:36: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
sage/libs/singular/singular.cpp:3461:48: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
sage/libs/singular/singular.cpp:3470:36: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
sage/libs/singular/singular.cpp: In function 'snumber*
__pyx_f_4sage_4libs_8singular_8singular_sa2si(__pyx_obj_4sage_9structure_7element_Element*,
ip_sring*)':
sage/libs/singular/singular.cpp:6150:186: error: 'struct
__pyx_obj_4sage_5rings_12finite_rings_14element_givaro_Cache_givaro'
has no member named 'objectptr'
error: command 'gcc' failed with exit status 1

> --
> Jerry James
> http://www.jamezone.org/

Paulo

Attachment: linbox-sagemath.patch
Description: Binary data

Attachment: sage-4.8-linbox.patch
Description: Binary data

_______________________________________________
scitech mailing list
scitech@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/scitech

[Index of Archives]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Deep Creek Hot Springs]     [Coolkey]     [Yum Users]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux