Help!!! I cannot build ginac 1.4.1 on mingw
Hello I'm an octave-cygwin and octave-mingw maintainer. Recently a new sybolic package has been released on the octave-forge (octave optional package). On the cygwin the package build was successful but on the mingw it was failed. For the cygwin, the cln-1.1.13 with the gmp 4.2.1 and ginac 1.4.1 have been installed. For the mingw, those are the cln-1.1.10 wihout the gmp and the ginac-1.3.7. The there would be possible, I tried to build the ginac 1.4.1. I have buid the gmp 4.2.2 and the cln-1.1.13 and make check of both tests were successful. So I have tried to make ginaic 1.4.1. At the compling stage, I have a troble in excompiler.cpp for mktemp. The mktemp does not exist for the normal mingw environment. So I partly ported the glibc on the GnuWin32. extern "C"{ char *mktemp (char *__template) ; } was added and link against glibc library. The complipe stage was sucessful. However the link stage there exited a lot of errors. A part of them are placed at the end of this mail. I suspect that my way was wrong. What are the possibilities? Regards ****information The ginac was build under the following flag, export LDFLAGS='-L/mingw/lib -L/usr/local/octave-3.0.0/lib -L/GnuWin32/lib -L/GnuWin32/bin' export CPPFLAGS='-I/mingw/include -I/usr/local/octave-3.0.0/include -I/GnuWin32/include' export CLN_CFLAGS='-IC:/Programs/msys/1.0/local/octave-3.0.0/include' export CLN_LIBS='-LC:/Programs/msys/1.0/local/octave-3.0.0/lib' #export GINAC_CFLAGS='-IC:/Programs/msys/1.0/local/octave-3.0.0/include' #export GINAC_LIBS='-LC:/Programs/msys/1.0/local/octave-3.0.0/lib' export PKG_CONFIG=C:/Programs/MinGW/bin/pkg-config.exe export PKG_CONFIG_PATH=C:/Programs/msys/1.0/local/octave-3.0.0/lib/pkgconfig export LIBS='-lgw32c' The the gmp and the cln headers and libs are installed in /usr/local/octave-3.0.0/include and /usr/local/octave-3.0.0/lib, respectively ./configure --prefix=/usr/local/ginac make The gcc infomation $ gcc -v Reading specs from c:/Programs/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw special) ********************** ./configure --prefix=/usr/local/ginac checking for a BSD-compatible install... /bin/install -c : checking pkg-config is at least version 0.9.0... yes checking for CLN... yes : config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands Configuration of GiNaC 1.4.1 done. Now type "make". make ************************** : : C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/number.h:46: undefined reference to `cln::gcd(cln::cl_I const&, cln::cl_I const&)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC3gcdERKNS_7numericES2_': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' ../ginac/.libs/libginac.a(numeric.o):C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: more undefined references to `cln::cl_free_heap_object(cln::cl_heap*)' follow ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC3lcmERKNS_7numericES2_': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/number.h:46: undefined reference to `cln::lcm(cln::cl_I const&, cln::cl_I const&)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC3lcmERKNS_7numericES2_': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined refeC:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' ../ginac/.libs/libginac.a(numeric.o):C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: more undefined references to `cln::cl_free_heap_object(cln::cl_heap*)' follow ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC4sqrtERKNS_7numericE': c:/usr/tatsu/msys/octaves/ginac-1.4.1/ginac/numeric.cpp:2379: undefined reference to `cln::sqrt(cln::cl_N const&)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC4sqrtERKNS_7numericE': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC5isqrtERKNS_7numericE': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/number.h:46: undefined reference to `cln::isqrt(cln::cl_I const&, cln::cl_I*)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC5isqrtERKNS_7numericE': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC7PiEvalfEv': c:/usr/tatsu/msys/octaves/ginac-1.4.1/ginac/ex.h:262: undefined reference to `cln::default_float_format' c:/usr/tatsu/msys/octaves/ginac-1.4.1/ginac/ex.h:262: undefined reference to `cln::pi(cln::float_format_t)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC7PiEvalfEv': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' rence to `cln::cl_free_heap_object(cln::cl_heap*)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC10EulerEvalfEv': c:/usr/tatsu/msys/octaves/ginac-1.4.1/ginac/ex.h:262: undefined reference to `cln::default_float_format' c:/usr/tatsu/msys/octaves/ginac-1.4.1/ginac/ex.h:262: undefined reference to `cln::eulerconst(cln::float_format_t)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC10EulerEvalfEv': C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/object.h:216: undefined reference to `cln::cl_free_heap_object(cln::cl_heap*)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC12CatalanEvalfEv': c:/usr/tatsu/msys/octaves/ginac-1.4.1/ginac/ex.h:262: undefined reference to `cln::default_float_format' c:/usr/tatsu/msys/octaves/ginac-1.4.1/ginac/ex.h:262: undefined reference to `cln::catalanconst(cln::float_format_t)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC12CatalanEvalfEv': : : -------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
* Tatsuro MATSUOKA <tmacchant4@yahoo.co.jp> [Feb 25. 2008 14:08]:
Hello
[...]
I think your problem is not related to this:
extern "C"{ char *mktemp (char *__template) ; }
The line just before the load of error messages would help. It looks like the CLN (and/or Ginac) library was not given.
make ************************** : :
Please give the line that was here!
C:/Programs/msys/1.0/local/octave-3.0.0/include/cln/number.h:46: undefined reference to `cln::gcd(cln::cl_I const&, cln::cl_I const&)' ../ginac/.libs/libginac.a(numeric.o): In function `ZN5GiNaC3gcdERKNS_7numericES2_': [...]
cheers, jj
Hello! On Sun, Feb 24, 2008 at 06:26:38PM +0900, Tatsuro MATSUOKA wrote:
I have buid the gmp 4.2.2 and the cln-1.1.13 and make check of both tests were successful. So I have tried to make ginaic 1.4.1.
At the compling stage, I have a troble in excompiler.cpp for mktemp.
The code in excompiler.cpp works only on ELF platforms (i.e. Linux, Solaris, *BSD). The configure script should have disabled excompiler feature, but it didn't. I need your config.log file to find out why. Could you please post it?
The mktemp does not exist for the normal mingw environment. So I partly ported the glibc on the GnuWin32.
That's pointless, since dlopen(3) and friends don't exist on windows anyway.
The complipe stage was sucessful. However the link stage there exited a lot of errors. A part of them are placed at the end of this mail.
****information The ginac was build under the following flag,
export LDFLAGS='-L/mingw/lib -L/usr/local/octave-3.0.0/lib -L/GnuWin32/lib -L/GnuWin32/bin' export CPPFLAGS='-I/mingw/include -I/usr/local/octave-3.0.0/include -I/GnuWin32/include' export CLN_CFLAGS='-IC:/Programs/msys/1.0/local/octave-3.0.0/include'
So far so good...
export CLN_LIBS='-LC:/Programs/msys/1.0/local/octave-3.0.0/lib'
But this one is definitely wrong. You've forgotten to specify the actual libraries (CLN and GMP). That's why the linker fails to resolve any symbols from the CLN library.
The the gmp and the cln headers and libs are installed in /usr/local/octave-3.0.0/include and /usr/local/octave-3.0.0/lib, respectively
So, the correct form would be CLN_LIBS='-L/usr/local/octave-3.0.0/lib -lcln -lgmp' Note: you need to run the configure script once more for this to take an effect, i.e. export CLN_LIBS='-L/usr/local/octave-3.0.0/lib -lcln -lgmp' make distclean ./configure --prefix=/whatever/you/want make
export PKG_CONFIG=C:/Programs/MinGW/bin/pkg-config.exe export PKG_CONFIG_PATH=C:/Programs/msys/1.0/local/octave-3.0.0/lib/pkgconfig
That's pointless (although harmless). If CLN_{LIBS,CFLAGS} are set the configure script won't call pkg-config to determine compiler and linker flags. User specified values are used instead. Best regards, Alexei -- All science is either physics or stamp collecting.
Thank you Joerg Arndt and Alexei Sheplyakov I will attach the config.log. Alexei Sheplyakov Thank you for your advise, now I have no time to try your advises. I'll try them later and the ressult will be reported here. Regards Tatsuro -------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
Hello
That's pointless, since dlopen(3) and friends don't exist on windows anyway.
I have found dlfcn-win32. http://code.google.com/p/dlfcn-win32/downloads/list Regards Tatsuro -------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
Hello I have succeeded. I have mistaken to use the pkg-config.exe. The pkg-config.exe has been gotten from the gimp tool kit. So it does not understand the msys path. Then I revise cln.pc prefix=C:/Programs/msys/1.0/local/cln-1.2.0 The libdl obtained from dlfcn-win32 http://code.google.com/p/dlfcn-win32/downloads/list mktemp from libgw32c in GnuWin32 and add export LIB='-lgw32c -lcln -lgmp' This makes me Ginac-1.4.1 build successful. Alexandar!! Thanks for your advises. Regards Tatsuro ******************************************************* gmp-4.2.2 ./configure --prefix=/usr/local/gmp-4.2.2 make make check #required make install-strip cln-1.2.0 export LDFLAGS='-L/mingw/lib -L/usr/local/gmp-4.2.2/lib' export CPPFLAGS='-I/mingw/include -I/usr/local/gmp-4.2.2/include' ./configure --prefix=/usr/local/cln-1.2.0 make make check make install libdl dlfcn-win32 http://code.google.com/p/dlfcn-win32/downloads/list ginac-1.4.1 export PKG_CONFIG='C:/Programs/MinGW/bin/pkg-config.exe' export PKG_CONFIG_PATH='C:/Programs/msys/1.0/local/cln-1.2.0/lib/pkgconfig' export LDFLAGS='-L/mingw/lib -L/GnuWin32/lib -L/usr/local/gmp-4.2.2/lib -L/usr/local/cln-1.2.0/lib -LC:/Programs/dlfcn-win32/lib' export CPPFLAGS='-I/mingw/include -I/GnuWin32/include -I/usr/local/gmp-4.2.2/include -I/usr/local/cln-1.2.0/include -IC:/Programs/dlfcn-win32/include' export LIB='-lgw32c -lcln -lgmp' ./configure --prefix=/usr/local/ginac-1.4.1 cln.pc prefix=C:/Programs/msys/1.0/local/cln-1.2.0 #here is modified to windows PATH exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: cln Description: Class Library for Numbers Version: 1.2.0 Libs: -L${libdir} -lcln Libs.private: -lgmp Cflags: -I${includedir} excompiler.cpp added #ifdef __MINGW32__ extern "C"{ char *mktemp (char *__template) ; } #endif -------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
Hi, On Tue, Feb 26, 2008 at 07:15:17PM +0900, Tatsuro MATSUOKA wrote:
This makes me Ginac-1.4.1 build successful.
I'm sorry to confuse you, but as a matter of fact none of this tricks is necessary to build GiNaC on windows. I'll elaborate in a moment.
The pkg-config.exe has been gotten from the gimp tool kit. So it does not understand the msys path.
So one need to set PKG_CONFIG_PATH using windows paths, i.e. export PKG_CONFIG_PATH="C:/Programs/msys/1.0/local/cln-1.2.0/lib/pkgconfig"
Then I revise cln.pc prefix=C:/Programs/msys/1.0/local/cln-1.2.0
Windows version of pkg-config overrides the `prefix' variable with the actuall installation directory anyway, so this is not necessary.
The libdl obtained from dlfcn-win32 http://code.google.com/p/dlfcn-win32/downloads/list
This is not necessary. compile_ex won't work on Windows anyway. (Hint: the ginac-excompiler script is Linux specific). And libgw32c already has dlopen and friends.
mktemp from libgw32c in GnuWin32
Likewise. It does *nothing* useful and confuses the configure script: configure:24479: checking for dlopen in -ldl configure:24514: g++ -o conftest.exe -g -O2 -I/mingw/include -I/usr/local/octave-3.0.0/include -I/GnuWin32/include -L/mingw/lib -L/usr/local/octave-3.0.0/lib -L/GnuWin32/lib -L/GnuWin32/bin conftest.cpp -ldl -lgw32c >&5 configure:24520: $? = 0 The configure scripts detects dlopen in libgw32c.dll and enables compile_ex, which is the WRONG thing.
and add export LIB='-lgw32c -lcln -lgmp'
You don't need pkg-config if you set the compiler and linker flags manually. Or the other way around: you don't need to set the compiler and linker flags manually if you use pkg-config. Best regards, Alexei -- All science is either physics or stamp collecting.
Dear Alexei Sheplyakov (Sorry for I called your name wrong in the previous mail.) Thank you for reply. I will check again according to your advises. Regards Tatsuro --- Alexei Sheplyakov <varg@theor.jinr.ru> wrote:
Hi,
On Tue, Feb 26, 2008 at 07:15:17PM +0900, Tatsuro MATSUOKA wrote:
This makes me Ginac-1.4.1 build successful.
I'm sorry to confuse you, but as a matter of fact none of this tricks is necessary to build GiNaC on windows. I'll elaborate in a moment.
The pkg-config.exe has been gotten from the gimp tool kit. So it does not understand the msys path.
So one need to set PKG_CONFIG_PATH using windows paths, i.e.
export PKG_CONFIG_PATH="C:/Programs/msys/1.0/local/cln-1.2.0/lib/pkgconfig"
Then I revise cln.pc prefix=C:/Programs/msys/1.0/local/cln-1.2.0
Windows version of pkg-config overrides the `prefix' variable with the actuall installation directory anyway, so this is not necessary.
The libdl obtained from dlfcn-win32 http://code.google.com/p/dlfcn-win32/downloads/list
This is not necessary. compile_ex won't work on Windows anyway. (Hint: the ginac-excompiler script is Linux specific). And libgw32c already has dlopen and friends.
mktemp from libgw32c in GnuWin32
Likewise. It does *nothing* useful and confuses the configure script:
configure:24479: checking for dlopen in -ldl configure:24514: g++ -o conftest.exe -g -O2 -I/mingw/include -I/usr/local/octave-3.0.0/include -I/GnuWin32/include -L/mingw/lib -L/usr/local/octave-3.0.0/lib -L/GnuWin32/lib -L/GnuWin32/bin conftest.cpp -ldl -lgw32c >&5 configure:24520: $? = 0
The configure scripts detects dlopen in libgw32c.dll and enables compile_ex, which is the WRONG thing.
and add export LIB='-lgw32c -lcln -lgmp'
You don't need pkg-config if you set the compiler and linker flags manually. Or the other way around: you don't need to set the compiler and linker flags manually if you use pkg-config.
Best regards, Alexei
-- All science is either physics or stamp collecting.
_______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
-------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
Dear Alexei Sheplyakov I have built the GiNac-1.4.1 with export PKG_CONFIG='C:/Programs/MinGW/bin/pkg-config.exe' export PKG_CONFIG_PATH='C:/Programs/msys/1.0/local/cln-1.2.0/lib/pkgconfig' export LDFLAGS='-L/mingw/lib -L/GnuWin32/lib -L/usr/local/gmp-4.2.2/lib' export CPPFLAGS='-I/mingw/include -I/GnuWin32/include -I/usr/local/gmp-4.2.2/include' export LIB='-lgmp' ./configure --prefix=/usr/local/ginac-1.4.1 make make check For the gmp 4.2.2 and the CLN-1.2.0, make check tests were successful. However, it failed for GiNac-1.4.1. I also tested Ginac-1.3.7 (with CLN 1.1.10 at that time gmp not used) (Tests for CLN was successful.) It also failed for GiNac-1.3.7. Any comments? Regards *************Ginac --*1.4.1 GiNaC will now take an exam with specific input (like a pupils' exam): examining several historic failures just out of paranoia................. passed examining consistency of numeric types...... passed examining power laws..... passed examining consistency of symbolic functions.... passed examining consistency of nestedsums functions........................................................................................................................................................................................................................................................ passed examining symbolic differentiation....... passed examining polynomial GCD computation......... passed examining rational function normalization..... passed examining series expansion............. passed examining symbolic matrix manipulations........ passed examining linear solve...... passed examining indexed objects........ passed examining color objects... passed examining clifford objects..................... passed examining archiving system. passed examining structure template.. passed examining hash maps............ passed examining miscellaneous other things........ passed ./exams.ref exams.out differ: char 37, line 1 FAIL: run_exams GiNaC will now run through some rather costly random consistency checks: checking consistency of numeric types.. passed checking consistency of symbolic functions.... passed checking symbolic matrix manipulations..... passed checking linear solve.......... passed ./checks.ref checks.out differ: char 39, line 1 FAIL: run_checks GiNaC will now run through some basic timings: timing commutative expansion and substitution.... passed size: 100 200 400 800 time/s: 0.94 1.3 5.8 25. timing Laurent series expansion of Gamma function.... passed order: 20 25 30 35 time/s: 1.5 4.2 14. 41. timing determinant of univariate symbolic Vandermonde matrices.... passed dim: 8x8 10x10 12x12 14x14 time/s: 0.28 1.3 12. 1.1e+002 timing determinant of polyvariate symbolic Toeplitz matrices.... passed dim: 7x7 8x8 9x9 10x10 time/s: 0.72 1.8 6.4 20. timing hash map operations.... passed size: 10000 50000 100000 500000 insert/s: 0.14 0.28 1.1 2.2 find/s: 0.015 0.13 0.23 1.3 erase/s: 0.016 0.094 0.19 1.1 timing Lewis-Wester test A (divide factorials). passed 0.17s timing Lewis-Wester test B (sum of rational numbers). passed 0.0092s timing Lewis-Wester test C (gcd of big integers). passed 0.11s timing Lewis-Wester test D (normalized sum of rational fcns). passed 0.27s timing Lewis-Wester test E (normalized sum of rational fcns). passed 0.14s timing Lewis-Wester test F (gcd of 2-var polys). passed 0.063s timing Lewis-Wester test G (gcd of 3-var polys). passed 1.4s timing Lewis-Wester test H (det of 80x80 Hilbert). passed 4.5s timing Lewis-Wester test I (invert rank 40 Hilbert). passed 1.5s timing Lewis-Wester test J (check rank 40 Hilbert). passed 0.72s timing Lewis-Wester test K (invert rank 70 Hilbert). passed 9.2s timing Lewis-Wester test L (check rank 70 Hilbert). passed 4.4s timing Lewis-Wester test M1 (26x26 sparse, det). passed 0.30s timing Lewis-Wester test M2 (101x101 sparse, det) disabled timing Lewis-Wester test N (poly at rational fcns) disabled timing Lewis-Wester test O1 (three 15x15 dets)... passed 26.s (average) timing Lewis-Wester test O2 (Resultant) disabled timing Lewis-Wester test P (det of sparse rank 101). passed 0.47s timing Lewis-Wester test P' (det of less sparse rank 101). passed 2.3s timing Lewis-Wester test Q (charpoly(P)). passed 50.s timing Lewis-Wester test Q' (charpoly(P')). passed 1.1e+002s timing computation of antipodes in Yukawa theory...... passed 29.s (total) timing Fateman's polynomial expand benchmark. passed 58.s ./times.ref times.out differ: char 47, line 1 FAIL: run_times ====================================== 3 of 3 tests failed Please report to <ginac-list@ginac.de> ====================================== make[2]: *** [check-TESTS] Error 1 make[2]: Leaving directory `/home/octaves/ginac-1.4.1/check' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/home/octaves/ginac-1.4.1/check' make: *** [check-recursive] Error 1 **********Ginac-1.3.7 GiNaC will now take an exam with specific input (like a pupils' exam): examining several historic failures just out of paranoia................. passed examining consistency of numeric types...... passed examining power laws..... passed examining consistency of symbolic functions.... passed examining consistency of nestedsums functions........................................................................................................................................................................................................................................................ passed examining symbolic differentiation....... passed examining polynomial GCD computation......... passed examining rational function normalization..... passed examining series expansion............ passed examining symbolic matrix manipulations........ passed examining linear solve...... passed examining indexed objects........ passed examining color objects... passed examining clifford objects.......... passed examining archiving system. passed examining structure template.. passed examining hash maps............ passed examining miscellaneous other things........ passed ./exams.ref exams.out differ: char 37, line 1 FAIL: run_exams GiNaC will now run through some rather costly random consistency checks: checking consistency of numeric types.. passed checking consistency of symbolic functions.... passed checking symbolic matrix manipulations..... passed checking linear solve.......... passed ./checks.ref checks.out differ: char 39, line 1 FAIL: run_checks GiNaC will now run through some basic timings: timing commutative expansion and substitution.... passed size: 50 100 200 400 time/s: 0.125 0.265 1.266 6.108 timing Laurent series expansion of Gamma function.... passed order: 10 15 20 25 time/s: 0.219 0.217 0.953 3.515 timing determinant of univariate symbolic Vandermonde matrices.... passed dim: 6x6 8x8 10x10 12x12 time/s: 0.077 0.125 1.282 11.936 timing determinant of polyvariate symbolic Toeplitz matrices.... passed dim: 6x6 7x7 8x8 9x9 time/s: 0.07 0.311 1.235 4.842 timing hash map operations.... passed size: 10000 50000 100000 500000 insert/s: 0.016 0.187 0.375 1.718 find/s: 0.015 0.11 0.188 0.907 erase/s: 0.016 0.062 0.14 0.734 timing Lewis-Wester test A (divide factorials). passed 0.085s timing Lewis-Wester test B (sum of rational numbers). passed 0.007s timing Lewis-Wester test C (gcd of big integers). passed 0.11s timing Lewis-Wester test D (normalized sum of rational fcns). passed 0.265s timing Lewis-Wester test E (normalized sum of rational fcns). passed 0.101s timing Lewis-Wester test F (gcd of 2-var polys). passed 0.027s timing Lewis-Wester test G (gcd of 3-var polys). passed 0.968s timing Lewis-Wester test H (det of 80x80 Hilbert). passed 3.172s timing Lewis-Wester test I (invert rank 40 Hilbert). passed 0.968s timing Lewis-Wester test J (check rank 40 Hilbert). passed 0.563s timing Lewis-Wester test K (invert rank 70 Hilbert). passed 6.297s timing Lewis-Wester test L (check rank 70 Hilbert). passed 2.953s timing Lewis-Wester test M1 (26x26 sparse, det). passed 0.155s timing Lewis-Wester test M2 (101x101 sparse, det) disabled timing Lewis-Wester test N (poly at rational fcns) disabled timing Lewis-Wester test O1 (three 15x15 dets)... passed 24.427s (average) timing Lewis-Wester test O2 (Resultant) disabled timing Lewis-Wester test P (det of sparse rank 101). passed 0.531s timing Lewis-Wester test P' (det of less sparse rank 101). passed 2.265s timing Lewis-Wester test Q (charpoly(P)). passed 48.609s timing Lewis-Wester test Q' (charpoly(P')). passed 96.5s timing computation of antipodes in Yukawa theory...... passed 31.484s (total) timing Fateman's polynomial expand benchmark. passed 95.188s ./times.ref times.out differ: char 47, line 1 FAIL: run_times ====================================== 3 of 3 tests failed Please report to <ginac-list@ginac.de> ====================================== make[3]: *** [check-TESTS] Error 1 make[3]: Leaving directory `/home/octaves/ginac-1.3.7/check' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/octaves/ginac-1.3.7/check' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/octaves/ginac-1.3.7' make: *** [check] Error 2 -------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
Hello! On Wed, Feb 27, 2008 at 03:21:36PM +0900, Tatsuro MATSUOKA wrote:
*************Ginac --*1.4.1 GiNaC will now take an exam with specific input (like a pupils' exam): examining several historic failures just out of paranoia................. passed examining consistency of numeric types...... passed examining power laws..... passed examining consistency of symbolic functions.... passed examining consistency of nestedsums functions........................................................................................................................................................................................................................................................ passed examining symbolic differentiation....... passed examining polynomial GCD computation......... passed examining rational function normalization..... passed examining series expansion............. passed examining symbolic matrix manipulations........ passed examining linear solve...... passed examining indexed objects........ passed examining color objects... passed examining clifford objects..................... passed examining archiving system. passed examining structure template.. passed examining hash maps............ passed examining miscellaneous other things........ passed ./exams.ref exams.out differ: char 37, line 1 FAIL: run_exams
So, every test passed, but the whole thing failed. That's very interesting. Could you please post the check/exams.out file? Best regards, Alexei -- All science is either physics or stamp collecting.
Hello Thank you for your reply. I attached them. Regards Tatsuro --- Alexei Sheplyakov <varg@theor.jinr.ru> wrote:
Hello!
On Wed, Feb 27, 2008 at 03:21:36PM +0900, Tatsuro MATSUOKA wrote:
*************Ginac --*1.4.1 GiNaC will now take an exam with specific input (like a pupils' exam): examining several historic failures just out of paranoia................. passed examining consistency of numeric types...... passed examining power laws..... passed examining consistency of symbolic functions.... passed examining consistency of nestedsums
functions........................................................................................................................................................................................................................................................
passed examining symbolic differentiation....... passed examining polynomial GCD computation......... passed examining rational function normalization..... passed examining series expansion............. passed examining symbolic matrix manipulations........ passed examining linear solve...... passed examining indexed objects........ passed examining color objects... passed examining clifford objects..................... passed examining archiving system. passed examining structure template.. passed examining hash maps............ passed examining miscellaneous other things........ passed ./exams.ref exams.out differ: char 37, line 1 FAIL: run_exams
So, every test passed, but the whole thing failed. That's very interesting. Could you please post the check/exams.out file?
Best regards, Alexei
-- All science is either physics or stamp collecting.
_______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
-------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
On Wed, Feb 27, 2008 at 04:54:56PM +0900, Tatsuro MATSUOKA wrote:
./exams.ref exams.out differ: char 37, line 1 FAIL: run_exams
So, every test passed, but the whole thing failed. That's very interesting. Could you please post the check/exams.out file?
The problem is due to different end of line markers -- LF (*NIX) versus CR,LF (window$). exams.ref file shipped with GiNaC has (obviously) *NIX ones, while exams.out ends up with CRLF. Thus, the output of the test differs from the reference one, hence the (false) failure. I'll change the tests to report errors with nonzero exit code. Best regards, Alexei -- All science is either physics or stamp collecting.
Dear all! Alexei Sheplyakov wrote:
On Wed, Feb 27, 2008 at 04:54:56PM +0900, Tatsuro MATSUOKA wrote:
So, every test passed, but the whole thing failed. That's very interesting. Could you please post the check/exams.out file?
The problem is due to different end of line markers -- LF (*NIX) versus CR,LF (window$). exams.ref file shipped with GiNaC has (obviously) *NIX ones, while exams.out ends up with CRLF. Thus, the output of the test differs from the reference one, hence the (false) failure.
Aha! (Interesting this hasn't been reported earlier.)
I'll change the tests to report errors with nonzero exit code.
Or pipe the program's output through |tr -d '\r' first? Best wishes -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>
Hello The failures on mingw are not intrinsic so that I can go forward. Right? Thanks!! Regards Tatsuro --- "Richard B. Kreckel" <kreckel@ginac.de> wrote:
Dear all!
Alexei Sheplyakov wrote:
On Wed, Feb 27, 2008 at 04:54:56PM +0900, Tatsuro MATSUOKA wrote:
So, every test passed, but the whole thing failed. That's very interesting. Could you please post the check/exams.out file?
The problem is due to different end of line markers -- LF (*NIX) versus CR,LF (window$). exams.ref file shipped with GiNaC has (obviously) *NIX ones, while exams.out ends up with CRLF. Thus, the output of the test differs from the reference one, hence the (false) failure.
Aha! (Interesting this hasn't been reported earlier.)
I'll change the tests to report errors with nonzero exit code.
Or pipe the program's output through |tr -d '\r' first?
Best wishes -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/> _______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
-------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/
Hi! On Thu, Feb 28, 2008 at 05:09:51AM +0900, Tatsuro MATSUOKA wrote:
The failures on mingw are not intrinsic so that I can go forward. Right?
At least, I think so. To be really sure could you please try this tarball http://ffmssmsc.jinr.ru/~varg/tmp/ginac-1.4.1-g0121fc4.tar.gz Best regards, Alexei -- All science is either physics or stamp collecting.
participants (4)
-
Alexei Sheplyakov
-
Joerg Arndt
-
Richard B. Kreckel
-
Tatsuro MATSUOKA