Opened 10 years ago

Closed 9 years ago

#13858 closed enhancement (duplicate)

update M4RI to newest upstream release

Reported by: malb Owned by: tbd
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: packages: standard Keywords: m4ri
Cc: Merged in:
Authors: Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by malb)

A new version of M4RI is available: 20121224

  • it improves performance
  • compilation time is considerably shorter because cache tuning was dropped


Change History (11)

comment:1 Changed 10 years ago by leif

So where's the spkg? ;-)

comment:2 Changed 10 years ago by malb

Working on it, I needed a ticket number for SPKG.txt

comment:3 Changed 10 years ago by malb

  • Authors set to Martin Albrecht
  • Description modified (diff)
  • Keywords m4ri added
  • Status changed from new to needs_review

comment:4 Changed 10 years ago by leif

Ah, zu Weihnachten 'ne Zeitmaschine bekommen und gleich mal drei Tage zurückgereist.

Hat der Weltuntergang also nicht stattgefunden?

comment:5 Changed 10 years ago by malb

It only works for M4RI releases though.

comment:6 follow-up: Changed 9 years ago by leif

We should probably add -L{SAGE_LOCAL}/lib to LDFLAGS, or set (PNG_CFLAGS and) PNG_LIBS [on Darwin [if pkg-config isn't installed or functional]]; cf. David Joyner's report for Sage 5.7.rc0 on sage-release.

comment:7 in reply to: ↑ 6 Changed 9 years ago by leif

Replying to leif:

cf. David Joyner's report for Sage 5.7.rc0 on sage-release.

I had less luck on 10.8.2 (2.66 GHz Intel Core 2 Duo):

Found package conway_polynomials-0.4 in
Extracting package
-rw-r--r--  1 wdj  staff  227035 Feb 16 06:30
Finished extraction
Host system:
Darwin jeeves.home 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25
00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
C compiler: gcc
C compiler version:
Using built-in specs.
Target: x86_64-apple-darwin12.2.0
Configured with: ../src/configure
--with-mpc=/Users/wdj/sagefiles/sage-5.7.rc0/local --with-system-zlib
Thread model: posix
gcc version 4.6.3 (GCC)
Traceback (most recent call last):
  File "./spkg-install", line 4, in <module>
    from sage.all import save
  File "/Users/wdj/sagefiles/sage-5.7.rc0/local/lib/python2.7/site-packages/sage/",
line 70, in <module>
    from sage.matrix.all     import *
  File "/Users/wdj/sagefiles/sage-5.7.rc0/local/lib/python2.7/site-packages/sage/matrix/",
line 1, in <module>
    from matrix_space import MatrixSpace, is_MatrixSpace
  File "/Users/wdj/sagefiles/sage-5.7.rc0/local/lib/python2.7/site-packages/sage/matrix/",
line 37, in <module>
    import matrix_modn_dense
  File "matrix_modn_dense_template_header.pxi", line 11, in init
sage.matrix.matrix_modn_dense (sage/matrix/matrix_modn_dense.c:13872)
  File "matrix_integer_dense.pxd", line 12, in init
  File "matrix_mod2_dense.pxd", line 7, in init
ImportError: dlopen(/Users/wdj/sagefiles/sage-5.7.rc0/local/lib/python2.7/site-packages/sage/matrix/,
2): Library not loaded: /usr/local/lib/libpng12.0.dylib
  Referenced from:
  Reason: Incompatible library version: libm4ri-0.0.20120613.dylib
requires version 40.0.0 or later, but libpng12.0.dylib provides
version 36.0.0

real	0m3.444s
user	0m0.470s
sys	0m0.368s
Error installing package conway_polynomials-0.4

comment:8 Changed 9 years ago by leif

Hmmm, doesn't look like libm4ri['s spkg-install] was the culprit though:

/bin/sh ./libtool --tag=CC   --mode=link gcc -std=gnu99 -mmmx -msse -msse2 -msse3   -I/Users/wdj/sagefiles/sage-5.7.rc0/local/include -g -fPIC -Wall -pedantic -O2 -release 0.0.20120613 -no-undefined  -o -rpath /Users/wdj/sagefiles/sage-5.7.rc0/local/lib brilliantrussian.lo misc.lo mzd.lo graycode.lo strassen.lo mzp.lo triangular.lo triangular_russian.lo ple.lo ple_russian.lo solve.lo echelonform.lo mmc.lo debug_dump.lo io.lo -lpng12 
libtool: link: gcc -dynamiclib  -o .libs/libm4ri-0.0.20120613.dylib  .libs/brilliantrussian.o .libs/misc.o .libs/mzd.o .libs/graycode.o .libs/strassen.o .libs/mzp.o .libs/triangular.o .libs/triangular_russian.o .libs/ple.o .libs/ple_russian.o .libs/solve.o .libs/echelonform.o .libs/mmc.o .libs/debug_dump.o .libs/io.o   /Users/wdj/sagefiles/sage-5.7.rc0/local/lib/libpng12.dylib  -mmmx -msse -msse2 -msse3 -O2   -install_name  /Users/wdj/sagefiles/sage-5.7.rc0/local/lib/libm4ri-0.0.20120613.dylib  -Wl,-single_module

comment:9 Changed 9 years ago by malb

  • Milestone changed from sage-5.9 to sage-duplicate/invalid/wontfix

See for a more recent version/ticket. This one here should be closed.

comment:10 Changed 9 years ago by tscrim

  • Authors Martin Albrecht deleted
  • Reviewers set to Travis Scrimshaw
  • Status changed from needs_review to positive_review

comment:11 Changed 9 years ago by jdemeyer

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.