#5240: [with spkg; needs work] Update FLINT to 1.1.1 (latest upstream)
----------------------+-----------------------------------------------------
 Reporter:  mabshoff  |       Owner:  mabshoff  
     Type:  defect    |      Status:  assigned  
 Priority:  critical  |   Milestone:  sage-3.4.1
Component:  algebra   |    Keywords:            
----------------------+-----------------------------------------------------

Comment(by burcin):

 With the package from comment:6, I get:

 {{{
 ...
 Finished extraction
 ****************************************************
 Host system
 uname -a:
 Linux karr 2.6.28-tuxonice #1 SMP PREEMPT Tue Jan 13 08:45:33 CET 2009
 x86_64 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/Linux
 ****************************************************
 ****************************************************
 GCC Version
 gcc -v
 Using built-in specs.
 Target: x86_64-pc-linux-gnu
 Configured with: /var/portage/tmp/sys-devel-
 gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-
 linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-
 gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-
 include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
 --enable-nls --without-included-gettext --with-system-zlib --disable-
 checking --disable-werror --enable-secureplt --enable-multilib --enable-
 libmudflap --disable-libssp --disable-libgcj --enable-
 languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix
 --enable-__cxa_atexit --enable-clocale=gnu
 Thread model: posix
 gcc version 4.1.2 (Gentoo 4.1.2 p1.3)
 ****************************************************
 Found gcc 4 or later
 Deleting old FLINT
 gcc -std=c99 -I/home/burcin/sage/sage-3.3.alpha5/local/include/
 -I/home/burcin/sage/sage-3.3.alpha5/local/include -I -fPIC -funroll-loops
 -O3 -c mpn_extras.c -o mpn_extras.o
 ...
 gcc -std=c99 -I/home/burcin/sage/sage-3.3.alpha5/local/include/
 -I/home/burcin/sage/sage-3.3.alpha5/local/include -I -fPIC -funroll-loops
 -O3 -c mpz_mat.c -o mpz_mat.o
 gcc -std=c99 -fPIC -shared -o libflint.so 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 NTL-
 interface.o theta.o zmod_mat.o mpz_mat.o
 -L/home/burcin/sage/sage-3.3.alpha5/local/lib/ -L  -lgmp -lpthread -lntl
 -lm -lstdc++
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: mpn_extras.o: relocation R_X86_64_32S against `FFT_SQR_TWK'
 can not be used when making a shared object; recompile with -fPIC
 mpn_extras.o: could not read symbols: Bad value
 collect2: ld returned 1 exit status
 make: *** [libflint.so] Error 1
 Error building flint shared library.

 real    0m26.358s
 user    0m21.673s
 sys     0m0.924s
 sage: An error occurred while installing flint-1.1.1
 Please email sage-devel http://groups.google.com/group/sage-devel
 ...
 }}}

 I have no idea what the error about the shared library and -fPIC means.
 Looking at the gcc flags in the previous lines, -fPIC is already there.

 BTW, deleting the library files before the build is not a good idea. In
 this case, the package corrupted my Sage install.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5240#comment:7>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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