#9562: Add M4RIE to Sage
-------------------------------+--------------------------------------------
   Reporter:  malb             |       Owner:  tbd                              
           
       Type:  enhancement      |      Status:  needs_work                       
           
   Priority:  major            |   Milestone:  sage-5.0                         
           
  Component:  packages         |    Keywords:  m4ri                             
           
     Author:  Martin Albrecht  |    Upstream:  None of the above - read trac 
for reasoning.
   Reviewer:                   |      Merged:                                   
           
Work_issues:                   |  
-------------------------------+--------------------------------------------

Comment(by drkirkby):

 It's not passing the tests properly on 64-bit !OpenSolaris, and I doubt
 anywhere where SAGE64 needs to be set to yes. The -m64 flag is not getting
 passed when running the tests, so whilst it builds a 64-bit library, it
 looks like it tries to create 32-bit objects and link to that 64-bit
 library.

 I have not investigated this in any detail, but they were my initial
 observations. I would try building on 't2' with SAGE64 set to yes. Not all
 of Sage will build 64-bit without some hacks, but it should be fairly easy
 to get enough of Sage built to build this library.

 {{{
 Successfully installed libm4ri-20100730
 Running the test suite.
 Testing the M4RI library
 make -j12  test_elimination test_multiplication
 make[1]: Entering directory
 `/export/home/drkirkby/sage-4.5/spkg/build/libm4ri-20100730/m4rie'
 make[1]: warning: -jN forced in submake: disabling jobserver mode.
 g++ -DHAVE_CONFIG_H -I. -I./src
 -I/export/home/drkirkby/sage-4.5/local/include -m64  -g -O2 -MT
 test_elimination.o -MD -MP -MF .deps/test_elimination.Tpo -c -o
 test_elimination.o `test -f 'tests/test_elimination.cc' || echo
 './'`tests/test_elimination.cc
 g++ -DHAVE_CONFIG_H -I. -I./src
 -I/export/home/drkirkby/sage-4.5/local/include -m64  -g -O2 -MT
 test_multiplication.o -MD -MP -MF .deps/test_multiplication.Tpo -c -o
 test_multiplication.o `test -f 'tests/test_multiplication.cc' || echo
 './'`tests/test_multiplication.cc
 mv -f .deps/test_elimination.Tpo .deps/test_elimination.Po
 /bin/sh ./libtool --tag=CXX   --mode=link g++  -g -O2 -lm4rie -lm4ri
 -lgivaro -lntl -lgmpxx -lgmp -lm -lstdc++  -o test_elimination
 test_elimination.o
 mv -f .deps/test_multiplication.Tpo .deps/test_multiplication.Po
 /bin/sh ./libtool --tag=CXX   --mode=link g++  -g -O2 -lm4rie -lm4ri
 -lgivaro -lntl -lgmpxx -lgmp -lm -lstdc++  -o test_multiplication
 test_multiplication.o
 libtool: link: g++ -g -O2 -o .libs/test_elimination test_elimination.o
 
/export/home/drkirkby/sage-4.5/spkg/build/libm4ri-20100730/m4rie/.libs/libm4rie.so
 -L/export/home/drkirkby/sage-4.5/local/lib
 /export/home/drkirkby/sage-4.5/local/lib/libm4ri.so
 /export/home/drkirkby/sage-4.5/local/lib/libgivaro.so
 -L/export/home/drkirkby/sage-4.5/local//lib -lntl
 /export/home/drkirkby/sage-4.5/local/lib/libgmpxx.so
 /export/home/drkirkby/sage-4.5/local/lib/libgmp.so
 /usr/local/gcc-4.4.4-multilib/lib/amd64/libstdc++.so -lm -Wl,-R
 -Wl,/export/home/drkirkby/sage-4.5/local/lib -Wl,-R
 -Wl,/usr/local/gcc-4.4.4-multilib/lib/amd64
 libtool: link: g++ -g -O2 -o .libs/test_multiplication
 test_multiplication.o
 
/export/home/drkirkby/sage-4.5/spkg/build/libm4ri-20100730/m4rie/.libs/libm4rie.so
 -L/export/home/drkirkby/sage-4.5/local/lib
 /export/home/drkirkby/sage-4.5/local/lib/libm4ri.so
 /export/home/drkirkby/sage-4.5/local/lib/libgivaro.so
 -L/export/home/drkirkby/sage-4.5/local//lib -lntl
 /export/home/drkirkby/sage-4.5/local/lib/libgmpxx.so
 /export/home/drkirkby/sage-4.5/local/lib/libgmp.so
 /usr/local/gcc-4.4.4-multilib/lib/amd64/libstdc++.so -lm -Wl,-R
 -Wl,/export/home/drkirkby/sage-4.5/local/lib -Wl,-R
 -Wl,/usr/local/gcc-4.4.4-multilib/lib/amd64
 ldld::  fatal: filefatal :test_multiplication.o :file  wrong
 test_elimination.o: wrong ELF class:ELF ELFCLASS64
 ld: fatal:  file processing errors.class No:  output ELFCLASS64written
 to .libs/test_multiplication
 ld: fatal: file processing errors. No output written to
 .libs/test_elimination
 collect2: ld returned 1 exit status
 collect2: ld returned 1 exit status
 make[1]: *** [test_multiplication] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make[1]: *** [test_elimination] Error 1
 make[1]: Leaving directory
 `/export/home/drkirkby/sage-4.5/spkg/build/libm4ri-20100730/m4rie'
 make: *** [check-am] Error 2
 Error testing M4RI
 *************************************
 Error testing package ** libm4ri-20100730 **
 *************************************
 sage: An error occurred while testing libm4ri-20100730
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9562#comment:11>
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.

Reply via email to