Ceci est une ancienne révision du document !
Installation
sources
à partir de svn
- voir /local/apps/src
install de mpfr dans /local/apps, puisque Centos ne le fournit passi dans le paquet gmp-devl!
* bug avec compilo gcc 4.1:
<code>
devel1@octopus egg]$ make
g++ -DHAVE_CONFIG_H -I../include -I/local/apps/src/mmx/basix/include -I/usr/local/include -I/local/apps/src/mmx/basix/include -I/usr/local/include -ggdb -ansi -Wall -O3 -fexpensive-optimizations -ftemplate-depth-100 -mssse3 -Wno-all -MT mma-mma.o -MD -MP -MF .deps/mma-mma.Tpo -c -o mma-mma.o `test -f 'mma.cpp' || echo './'`mma.cpp
cc1plus: error: unrecognized command line option “-Wno-all”
make: * [mma-mma.o] Error 1
</code>
mais configure n'honore pas la variable CXX
on met en dur dans le Makefile correspondant g++44 et ça passe
* autre bug:
<code>
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libmpfr.a(exceptions.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libmpfr.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: * [libnumerix.la] Error 1
make[2]: Leaving directory `/local/apps/src/mmx/numerix/build'
</code>
./configure --prefix=/local/apps/ --with-mpfr=/local/apps CC=gcc44 CXX=g++44 checking whether ln -s works... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for a BSD-compatible install... /usr/bin/install -c Options: [*] optimizations [*] debugging [*] C++ exception handling [ ] low-level verifications [ ] embedded glue [*] glue compilation for interpreter [*] compilation of additional test programs [ ] compilation of additional benchmarks [*] simd level yes [ ] multi-threading [*] shared libraries [ ] static libraries [*] building without installing [ ] building with unstable code [ ] doxygen HAVE_DOT [ ] external librairies [ ] download external librairies [ ] documention Packages: [ ] automagix [*] basix [ ] doc [ ] graphix [*] mmancient [*] mmcompiler [ ] mmxtools [*] numerix [*] algebramix [*] analyziz [ ] finitefieldz [ ] holonomix [ ] lattiz [ ] linalg [ ] mgf2x [ ] multimix [ ] continewz [ ] gregorix [ ] newmac [*] realroot [ ] polytopix [ ] shape [*] symbolix [ ] asymptotix [ ] columbus [ ] jorix [*] mmxlight checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu configure: creating ./config.status config.status: creating Makefile config.status: creating mmxlight/src/mmxlight_evaluator.cpp
Erreur au make:
bash-3.2$ make ... libtool: compile: g++44 -DHAVE_CONFIG_H -I../glue -I../include -I/local/apps/src/mmx/numerix/include -I/local/apps//include -I/local/apps/include -I/local/apps/src/mmx/basix/include -I/local/apps/include -I../include -I/local/apps/src/mmx/numerix/include -I/local/apps//include -I/local/apps/include -I/local/apps/src/mmx/basix/include -I/local/apps/include -ggdb -ansi -Wall -O3 -fexpensive-optimizations -ftemplate-depth-100 -mssse3 -MT libmmxrealroot_la-glue_solver_univariate_integer.lo -MD -MP -MF .deps/libmmxrealroot_la-glue_solver_univariate_integer.Tpo -c ../glue/glue_solver_univariate_integer.cpp -fPIC -DPIC -o .libs/libmmxrealroot_la-glue_solver_univariate_integer.o In file included from ../include/realroot/GMP.hpp:4, from ../include/realroot/solver_continued_fraction.hpp:66, from ../include/realroot/solver_univariate_glue.hpp:11, from ../glue/glue_solver_univariate_integer.cpp:14: ../include/realroot/scalar_integer.hpp: In function ‘std::ostream& mmx::operator<<(std::ostream&, const mmx::scalar<__mpz_struct>&)’: ../include/realroot/scalar_integer.hpp:440: error: ‘__gmpz_out_str’ was not declared in this scope In file included from ../include/realroot/GMP.hpp:5, from ../include/realroot/solver_continued_fraction.hpp:66, from ../include/realroot/solver_univariate_glue.hpp:11, from ../glue/glue_solver_univariate_integer.cpp:14: ../include/realroot/scalar_rational.hpp: In function ‘std::ostream& mmx::operator<<(std::ostream&, const mmx::scalar<__mpq_struct>&)’: ../include/realroot/scalar_rational.hpp:475: error: ‘__gmpq_out_str’ was not declared in this scope make[2]: *** [libmmxrealroot_la-glue_solver_univariate_integer.lo] Error 1 make[2]: Leaving directory `/local/apps/src/mmx/realroot/build' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/local/apps/src/mmx/realroot' make: *** [realroot-all] Error 2
bizarre, la ligne de compilation ne comporte pas -I/usr/include
?
minimix-0.1.2-Source
- installé une version plus récente de cmake /local/apps/cmake-2.8.1
- échec à l'exécution
[henry@octopus ~]$ /local/apps/minimix-0.1.2/bin/mmx-light -------------------------------------------------------------- |:*) Welcome to Mathemagix-light 0.1 (*:| | This software falls under the GNU General Public License | | It comes without any warranty whatsoever | |------------------------------------------------------------| | (c) 2001--2010 by | | Joris van der Hoeven, Gregoire Lecerf, | | Bernard Mourrain, Olivier Ruatta and others | -------------------------------------------------------------- terminate called after throwing an instance of 'mmx::exception' Abort
il faut faire:
[henry@octopus ~]$ bash bash-3.2$ source /local/apps/minimix-0.1.2/local_paths bash-3.2$ mmx-light sh: basix-config: command not found sh: basix-config: command not found sh: basix-config: command not found sh: basix-config: command not found sh: basix-config: command not found sh: basix-config: command not found -------------------------------------------------------------- |:*) Welcome to Mathemagix-light 0.4 (*:| | This software falls under the GNU General Public License | | It comes without any warranty whatsoever | |------------------------------------------------------------| | (c) 2001--2008 by | | Joris van der Hoeven, Gregoire Lecerf, | | Bernard Mourrain, Olivier Ruatta and others | -------------------------------------------------------------- 1]
binaire
- dans /local/apps/Mathemagix-0.4-linux32
- voir /usr/bin/mmx-light