#9277: Flint's spkg-check file does not work on 64-bit (SAGE64 only works on OS 
X)
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  GeorgSWeber
       Type:  defect    |      Status:  new        
   Priority:  major     |   Milestone:             
  Component:  build     |    Keywords:             
     Author:            |    Upstream:  N/A        
   Reviewer:            |      Merged:             
Work_issues:            |  
------------------------+---------------------------------------------------
Changes (by drkirkby):

 * cc: jsp (added)
  * owner:  AlexGhitza => GeorgSWeber
  * component:  algebra => build


Old description:

> Just when I thought I'd got rid of all the junk like this from spkg-
> install files:

New description:

 Just when I thought I'd got rid of all the junk like this from spkg-
 install files:


 {{{
 if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then
    echo "64 bit MacIntel"
    FLINT_TUNE=" -fPIC -m64 -funroll-loops"
 fi
 }}}

 I realise that these can lurk in spkg-check files too. Flint has such a
 check routine, so whilst flint builds OK on !OpenSolaris x64 in 64-bit
 mode, the self tests do not work, as the building of the self-tests does
 not produce 64-bit binaries, but 32-bit ones. Hence one gets a failure:

 {{{
 g++  -I/export/home/drkirkby/sage-4.4.4.alpha1/local/include/
 -I/export/home/drkirkby/sage-4.4.4.alpha1/local/include  -fPIC -funroll-
 loops   -O2 F_mpz-test.o test-support.o -o F_mpz-test zn_mod.o misc.o
 mul_ks.o pack.o mul.o mulmid.o mulmid_ks.o ks_support.o mpn_mulmid.o
 nuss.o pmf.o pmfvec_fft.o tuning.o mul_fft.o mul_fft_dft.o array.o
 invert.o mpn_extras.o mpz_extras.o memory-manager.o ZmodF.o ZmodF_mul.o
 ZmodF_mul-tuning.o fmpz.o fmpz_poly.o mpz_poly-tuning.o mpz_poly.o
 ZmodF_poly.o long_extras.o zmod_poly.o theta.o zmod_mat.o F_mpz.o tinyQS.o
 factor_base.o poly.o sieve.o linear_algebra.o block_lanczos.o NTL-
 interface.o -L/export/home/drkirkby/sage-4.4.4.alpha1/local/lib/
 -L/export/home/drkirkby/sage-4.4.4.alpha1/local/lib/  -lgmp -lpthread
 -lntl -lm
 ld: fatal: file zn_mod.o: wrong ELF class: ELFCLASS64
 ld: fatal: file processing errors. No output written to F_mpz-test
 collect2: ld returned 1 exit status
 make[2]: *** [F_mpz-test] Error 1
 make[2]: Leaving directory
 `/export/home/drkirkby/sage-4.4.4.alpha1/spkg/build/flint-1.5.0.p4/src'
 Error building the test suite for FLINT

 real    0m19.361s
 user    0m18.552s
 sys     0m0.676s
 sage: An error occurred while installing flint-1.5.0.p4
 }}}

 Note how g++ is invoked with no -m64 option.

--

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