MatrixComplex

14 views
Skip to first unread message

jp d

unread,
Aug 27, 2009, 7:16:35 PM8/27/09
to math-gsl-dev
hi,
I suspect i am doing something dumb
and would appreciate any suggestions.

Math-GSL-0.20, GSL1-11, ubuntu 8.04,amd64

the following test code gives me this error
Can't locate auto/Math/GSL/MatrixComplex/gsl_complex/cartesian.al in
@INC

use Math::GSL::MatrixComplex;
use Math::GSL::Complex qw/:all/;
$a = gsl_complex_polar(8 , 1);

my $matrix = Math::GSL::MatrixComplex->new(3,3);
$matrix->set_row(0, [$a, 6, 2 ]);
$matrix->set_row(1, [7 , 6 , 2 ]);
$matrix->set_row(2, [8,5, 2 ]);

it did fail some tests at Build test
Failed 3/52 test scripts, 94.23% okay. 25/3582 subtests failed, 99.30%
okay.

thanks for any help
jpd

ps:

Build test output is below:
./Build test
t/00-load..........ok 31/52# Testing Math::GSL 0.20 on x86_64-linux-
gnu-thread-multi, Perl (/usr/bin/perl) 5.008008
t/00-
load..........ok
t/01-pod...........skipped
all skipped: Test::Pod 1.00 required for testing POD
t/BLAS.............ok
1/109
Elements start differing at index 0, delta = 2.78073645397225e+229
$x->[0] = 2.78073645397225e+229
$y->[0] = 50

Elements start differing at index 0, delta = 2.31731755673825e+229
$x->[0] = 2.31731755673825e+229
$y->[0] = 34

Elements start differing at index 0, delta = 3.71784280410562e+224
$x->[0] = 3.71784280410562e+224
$y->[0] = 24

Elements start differing at index 0, delta = 2.78073645397225e+229
$x->[0] = 2.78073645397225e+229
$y->[0] = 46

Elements start differing at index 0, delta = 2.31731755673825e+229
$x->[0] = 2.31731755673825e+229
$y->[0] = 34

Elements start differing at index 0, delta = 3.71784280410562e+224
$x->[0] = 3.71784280410562e+224
$y->[0] = 24
t/
BLAS.............ok
t/
BSpline..........ok
t/CBLAS............ok 1/5*** glibc detected *** /usr/bin/perl:
munmap_chunk(): invalid pointer: 0x00007fffc07d0738 ***
======= Backtrace: =========
/lib64/libc.so.6(cfree+0x1b6)[0x7fc6b78ebd46]
/home/donohue/Math-GSL-0.20/blib/arch/auto/Math/GSL/CBLAS/CBLAS.so
(_wrap_cblas_sgemm+0x1085)[0x7fc6b5f6cddf]
/usr/lib/libperl.so.5.8(Perl_pp_entersub+0x343)[0x7fc6b83072b3]
/usr/lib/libperl.so.5.8(Perl_runops_standard+0xe)[0x7fc6b8305b1e]
/usr/lib/libperl.so.5.8(perl_run+0x2ef)[0x7fc6b82aff1f]
/usr/bin/perl(main+0xfc)[0x4018cc]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x7fc6b78921c4]
/usr/bin/perl[0x401739]
======= Memory map: ========
00400000-00403000 r-xp 00000000 08:01
19424649 /usr/bin/perl
00602000-00603000 rw-p 00002000 08:01
19424649 /usr/bin/perl
00603000-00c97000 rw-p 00603000 00:00
0 [heap]
7fc6b567a000-7fc6b5687000 r-xp 00000000 08:01
8134800 /lib/libgcc_s.so.1
7fc6b5687000-7fc6b5887000 ---p 0000d000 08:01
8134800 /lib/libgcc_s.so.1
7fc6b5887000-7fc6b5888000 rw-p 0000d000 08:01
8134800 /lib/libgcc_s.so.1
7fc6b5888000-7fc6b58df000 r-xp 00000000 08:01
3530800 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Vector/Vector.so
7fc6b58df000-7fc6b5ade000 ---p 00057000 08:01
3530800 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Vector/Vector.so
7fc6b5ade000-7fc6b5ae1000 rw-p 00056000 08:01
3530800 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Vector/Vector.so
7fc6b5ae1000-7fc6b5b1e000 r-xp 00000000 08:01
21210649 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/BLAS/BLAS.so
7fc6b5b1e000-7fc6b5d1e000 ---p 0003d000 08:01
21210649 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/BLAS/BLAS.so
7fc6b5d1e000-7fc6b5d20000 rw-p 0003d000 08:01
21210649 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/BLAS/BLAS.so
7fc6b5d20000-7fc6b5d29000 r-xp 00000000 08:01
19497018 /usr/lib/perl/5.8.8/auto/List/Util/Util.so
7fc6b5d29000-7fc6b5f28000 ---p 00009000 08:01
19497018 /usr/lib/perl/5.8.8/auto/List/Util/Util.so
7fc6b5f28000-7fc6b5f29000 rw-p 00008000 08:01
19497018 /usr/lib/perl/5.8.8/auto/List/Util/Util.so
7fc6b5f29000-7fc6b5f9c000 r-xp 00000000 08:01
21210655 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/CBLAS/CBLAS.so
7fc6b5f9c000-7fc6b619c000 ---p 00073000 08:01
21210655 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/CBLAS/CBLAS.so
7fc6b619c000-7fc6b619e000 rw-p 00073000 08:01
21210655 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/CBLAS/CBLAS.so
7fc6b619e000-7fc6b61a5000 r-xp 00000000 08:01
19497774 /usr/lib/perl/5.8.8/auto/Data/Dumper/
Dumper.so
7fc6b61a5000-7fc6b63a5000 ---p 00007000 08:01
19497774 /usr/lib/perl/5.8.8/auto/Data/Dumper/
Dumper.so
7fc6b63a5000-7fc6b63a6000 rw-p 00007000 08:01
19497774 /usr/lib/perl/5.8.8/auto/Data/Dumper/
Dumper.so
7fc6b63a6000-7fc6b63b2000 r-xp 00000000 08:01
3530798 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sys/Sys.so
7fc6b63b2000-7fc6b65b1000 ---p 0000c000 08:01
3530798 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sys/Sys.so
7fc6b65b1000-7fc6b65b2000 rw-p 0000b000 08:01
3530798 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sys/Sys.so
7fc6b65b2000-7fc6b65d2000 r-xp 00000000 08:01
21210670 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Const/Const.so
7fc6b65d2000-7fc6b67d1000 ---p 00020000 08:01
21210670 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Const/Const.so
7fc6b67d1000-7fc6b67d2000 rw-p 0001f000 08:01
21210670 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Const/Const.so
7fc6b67d2000-7fc6b67da000 r-xp 00000000 08:01
21210728 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Machine/Machine.so
7fc6b67da000-7fc6b69da000 ---p 00008000 08:01
21210728 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Machine/Machine.so
7fc6b69da000-7fc6b69db000 rw-p 00008000 08:01
21210728 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Machine/Machine.so
7fc6b69db000-7fc6b6a17000 r-xp 00000000 08:01
21069914 /usr/lib/libgslcblas.so.0.0.0
7fc6b6a17000-7fc6b6c16000 ---p 0003c000 08:01
21069914 /usr/lib/libgslcblas.so.0.0.0
7fc6b6c16000-7fc6b6c18000 rw-p 0003b000 08:01
21069914 /usr/lib/libgslcblas.so.0.0.0
7fc6b6c18000-7fc6b6e0f000 r-xp 00000000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7fc6b6e0f000-7fc6b700e000 ---p 001f7000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7fc6b700e000-7fc6b7010000 r--p 001f6000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7fc6b7010000-7fc6b701a000 rw-p 001f8000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7fc6b701a000-7fc6b7024000 r-xp 00000000 08:01
21210685 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Errno/Errno.so
7fc6b7024000-7fc6b7224000 ---p 0000a000 08:01
21210685 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Errno/Errno.so
7fc6b7224000-7fc6b7225000 rw-p 0000a000 08:01
21210685 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Errno/Errno.so
7fc6b7225000-7fc6b7239000 r-xp 00000000 08:01
19498067 /usr/lib/perl/5.8.8/auto/Storable/
Storable.so
7fc6b7239000-7fc6b7438000 ---p 00014000 08:01
19498067 /usr/lib/perl/5.8.8/auto/Storable/
Storable.so
7fc6b7438000-7fc6b7439000 rw-p 00013000 08:01
19498067 /usr/lib/perl/5.8.8/auto/Storable/
Storable.so
7fc6b7439000-7fc6b743c000 r-xp 00000000 08:01
19497012 /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so
7fc6b743c000-7fc6b763b000 ---p 00003000 08:01
19497012 /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so
7fc6b763b000-7fc6b763c000 rw-p 00002000 08:01
19497012 /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so
7fc6b763c000-7fc6b7645000 r-xp 00000000 08:01
8134934 /lib/libcrypt-2.7.so
7fc6b7645000-7fc6b7844000 ---p 00009000 08:01
8134934 /lib/libcrypt-2.7.so
7fc6b7844000-7fc6b7846000 rw-p 00008000 08:01
8134934 /lib/libcrypt-2.7.so
7fc6b7846000-7fc6b7874000 rw-p 7fc6b7846000 00:00 0
7fc6b7874000-7fc6b79cc000 r-xp 00000000 08:01
8134932 /lib/libc-2.7.so
7fc6b79cc000-7fc6b7bcc000 ---p 00158000 08:01
8134932 /lib/libc-2.7.so
7fc6b7bcc000-7fc6b7bcf000 r--p 00158000 08:01
8134932 /lib/libc-2.7.so
7fc6b7bcf000-7fc6b7bd1000 rw-p 0015b000 08:01
8134932 /lib/libc-2.7.so
7fc6b7bd1000-7fc6b7bd6000 rw-p 7fc6b7bd1000 00:00 0
7fc6b7bd6000-7fc6b7bec000 r-xp 00000000 08:01
8134946 /lib/libpthread-2.7.so
7fc6b7bec000-7fc6b7dec000 ---p 00016000 08:01
8134946 /lib/libpthread-2.7.so
7fc6b7dec000-7fc6b7dee000 rw-p 00016000 08:01
8134946 /lib/libpthread-2.7.so
7fc6b7dee000-7fc6b7df2000 rw-p 7fc6b7dee000 00:00 0
7fc6b7df2000-7fc6b7e72000 r-xp 00000000 08:01
8134936 /lib/libm-2.7.so
7fc6b7e72000-7fc6b8071000 ---p 00080000 08:01
8134936 /lib/libm-2.7.so
7fc6b8071000-7fc6b8073000 rw-p 0007f000 08:01
8134936 /lib/libm-2.7.so
7fc6b8073000-7fc6b8075000 r-xp 00000000 08:01
8134935 /lib/libdl-2.7.so
7fc6b8075000-7fc6b8275000 ---p 00002000 08:01
8134935 /lib/libdl-2.7.so
7fc6b8275000-7fc6b8277000 rw-p 00002000 08:01
8134935 /lib/libdl-2.7.so
7fc6b8277000-7fc6b83ab000 r-xp 00000000 08:01
19424650 /usr/lib/libperl.so.5.8.8
7fc6b83ab000-7fc6b85aa000 ---p 00134000 08:01
19424650 /usr/lib/libperl.so.5.8.8
7fc6b85aa000-7fc6b85b3000 rw-p 00133000 08:01
19424650 /usr/lib/libperl.so.5.8.8
7fc6b85b3000-7fc6b85b5000 rw-p 7fc6b85b3000 00:00 0
7fc6b85b5000-7fc6b85d2000 r-xp 00000000 08:01
8134761 /lib/ld-2.7.so
7fc6b8671000-7fc6b8692000 rw-p 7fc6b8671000 00:00 0
7fc6b8692000-7fc6b86d1000 r--p 00000000 08:01
19456877 /usr/lib/locale/en_US.utf8/LC_CTYPE
7fc6b86d1000-7fc6b87b2000 r--p 00000000 08:01
19456876 /usr/lib/locale/en_US.utf8/LC_COLLATE
7fc6b87b2000-7fc6b87b6000 rw-p 7fc6b87b2000 00:00 0
7fc6b87be000-7fc6b87bf000 r--p 00000000 08:01
19456882 /usr/lib/locale/en_US.utf8/LC_NUMERIC
t/
CBLAS............dubious
Test returned status 0 (wstat 6, 0x6)
DIED. FAILED test 5
Failed 1/5 tests, 80.00% okay
t/
CDF..............ok
t/
Chebyshev........ok
t/
Combination......ok
t/
Complex..........ok
t/
Const............ok
t/
DHT..............ok
t/
Deriv............ok
t/
Eigen............ok
t/
Errno............ok
t/
FFT..............ok
t/
Fit..............ok
t/GSL..............ok
1/18
Elements start differing at index 2, delta = 0.00099999999999989
$x->[2] = 3
$y->[2] = 3.001

Elements start differing at index 2, delta = 9.99999998363421e-08
$x->[2] = 3.0010001
$y->[2] = 3.0010002
t/
GSL..............ok
t/
Heapsort.........ok
t/
Histogram........ok
t/
Histogram2D......ok
t/
IEEEUtils........ok
t/
Integration......ok
t/
Interp...........ok
t/Linalg...........ok
1/78
Elements start differing at index 0, delta = 6
$x->[0] = -0
$y->[0] = -6

Elements start differing at index 0, delta = 8
$x->[0] = -4
$y->[0] = 4
t/
Linalg...........ok
t/
Machine..........ok
t/Matrix...........ok
1/238
Elements start differing at index 1, delta = 0.707106781186548
$x->[1] = 4.32978028117747e-17
$y->[1] = -0.707106781186548

Elements start differing at index 1, delta = 0.707106781186548
$x->[1] = 4.32978028117747e-17
$y->[1] = 0.707106781186548

Elements start differing at index 0, delta = 8
$x->[0] = 9.69892759553134e-317
$y->[0] = 8

Elements start differing at index 0, delta = 6.93287394166476e+218
$x->[0] = 6.93287394166476e+218
$y->[0] = 3

Elements start differing at index 0, delta = 8
$x->[0] = 9.68919647857085e-317
$y->[0] = 8

Elements start differing at index 0, delta = 2.16624477279236e+16
$x->[0] = 2.16624477279236e+16
$y->[0] = 7

Elements start differing at index 1, delta = 1
$x->[1] = 3
$y->[1] = 2
t/
Matrix...........ok
t/MatrixComplex....ok
1/38
Elements start differing at index 1, delta = 1
$x->[1] = 3
$y->[1] = 4

Elements start differing at index 1, delta = 1
$x->[1] = 3
$y->[1] = 2
t/
MatrixComplex....ok
t/
Min..............ok
t/Monte............ok
1/15
Elements start differing at index 0, delta = 143044661776384
$x->[0] = 0.333333333333333
$y->[0] = 143044661776384
t/
Monte............ok
t/
Multifit.........ok
t/
Multimin.........ok
t/
Multiroots.......ok
t/NTuple...........ok 1/11This is the end at t/NTuple.t line
14.
t/
NTuple...........ok
t/
ODEIV............ok
t/
Permutation......ok
t/Poly.............
Elements start differing at index 0, delta = 4
$x->[0] = 0
$y->[0] = 4
t/Poly.............ok
1/7
Elements start differing at index 0, delta = 0.674
$x->[0] = 0
$y->[0] = 0.674
t/
Poly.............ok
t/
PowInt...........ok
t/
QRNG.............dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 3-8
Failed 6/8 tests, 25.00% okay
t/
RNG..............ok
t/
Randist..........ok
t/
Roots............ok
t/
SF...............ok
t/
Siman............ok
t/Sort.............ok 1/20*** glibc detected *** /usr/bin/perl: free
(): invalid next size (fast): 0x0000000000ca6ac0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x7f83d647708a]
/lib64/libc.so.6(cfree+0x8c)[0x7f83d647ac1c]
/home/donohue/Math-GSL-0.20/blib/arch/auto/Math/GSL/Sort/Sort.so
(_wrap_gsl_sort_index+0x7fb)[0x7f83d48fb217]
/usr/lib/libperl.so.5.8(Perl_pp_entersub+0x343)[0x7f83d6e962b3]
/usr/lib/libperl.so.5.8(Perl_runops_standard+0xe)[0x7f83d6e94b1e]
/usr/lib/libperl.so.5.8(perl_run+0x2ef)[0x7f83d6e3ef1f]
/usr/bin/perl(main+0xfc)[0x4018cc]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x7f83d64211c4]
/usr/bin/perl[0x401739]
======= Memory map: ========
00400000-00403000 r-xp 00000000 08:01
19424649 /usr/bin/perl
00602000-00603000 rw-p 00002000 08:01
19424649 /usr/bin/perl
00603000-00cda000 rw-p 00603000 00:00
0 [heap]
7f83cfdf2000-7f83cfdff000 r-xp 00000000 08:01
8134800 /lib/libgcc_s.so.1
7f83cfdff000-7f83cffff000 ---p 0000d000 08:01
8134800 /lib/libgcc_s.so.1
7f83cffff000-7f83d0000000 rw-p 0000d000 08:01
8134800 /lib/libgcc_s.so.1
7f83d0000000-7f83d0021000 rw-p 7f83d0000000 00:00 0
7f83d0021000-7f83d4000000 ---p 7f83d0021000 00:00 0
7f83d403e000-7f83d4051000 r-xp 00000000 08:01
3530772 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Permutation/Permutation.so
7f83d4051000-7f83d4251000 ---p 00013000 08:01
3530772 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Permutation/Permutation.so
7f83d4251000-7f83d4252000 rw-p 00013000 08:01
3530772 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Permutation/Permutation.so
7f83d4252000-7f83d42a9000 r-xp 00000000 08:01
3530800 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Vector/Vector.so
7f83d42a9000-7f83d44a8000 ---p 00057000 08:01
3530800 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Vector/Vector.so
7f83d44a8000-7f83d44ab000 rw-p 00056000 08:01
3530800 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Vector/Vector.so
7f83d44ab000-7f83d44e8000 r-xp 00000000 08:01
21210649 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/BLAS/BLAS.so
7f83d44e8000-7f83d46e8000 ---p 0003d000 08:01
21210649 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/BLAS/BLAS.so
7f83d46e8000-7f83d46ea000 rw-p 0003d000 08:01
21210649 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/BLAS/BLAS.so
7f83d46ea000-7f83d46f3000 r-xp 00000000 08:01
19497018 /usr/lib/perl/5.8.8/auto/List/Util/Util.so
7f83d46f3000-7f83d48f2000 ---p 00009000 08:01
19497018 /usr/lib/perl/5.8.8/auto/List/Util/Util.so
7f83d48f2000-7f83d48f3000 rw-p 00008000 08:01
19497018 /usr/lib/perl/5.8.8/auto/List/Util/Util.so
7f83d48f3000-7f83d490f000 r-xp 00000000 08:01
3530790 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sort/Sort.so
7f83d490f000-7f83d4b0f000 ---p 0001c000 08:01
3530790 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sort/Sort.so
7f83d4b0f000-7f83d4b10000 rw-p 0001c000 08:01
3530790 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sort/Sort.so
7f83d4b10000-7f83d4b2c000 r-xp 00000000 08:01
3530780 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/RNG/RNG.so
7f83d4b2c000-7f83d4d2b000 ---p 0001c000 08:01
3530780 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/RNG/RNG.so
7f83d4d2b000-7f83d4d2d000 rw-p 0001b000 08:01
3530780 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/RNG/RNG.so
7f83d4d2d000-7f83d4d41000 r-xp 00000000 08:01
19498067 /usr/lib/perl/5.8.8/auto/Storable/
Storable.so
7f83d4d41000-7f83d4f40000 ---p 00014000 08:01
19498067 /usr/lib/perl/5.8.8/auto/Storable/
Storable.so
7f83d4f40000-7f83d4f41000 rw-p 00013000 08:01
19498067 /usr/lib/perl/5.8.8/auto/Storable/
Storable.so
7f83d4f41000-7f83d4f44000 r-xp 00000000 08:01
19497012 /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so
7f83d4f44000-7f83d5143000 ---p 00003000 08:01
19497012 /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so
7f83d5143000-7f83d5144000 rw-p 00002000 08:01
19497012 /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so
7f83d5144000-7f83d514b000 r-xp 00000000 08:01
19497774 /usr/lib/perl/5.8.8/auto/Data/Dumper/
Dumper.so
7f83d514b000-7f83d534b000 ---p 00007000 08:01
19497774 /usr/lib/perl/5.8.8/auto/Data/Dumper/
Dumper.so
7f83d534b000-7f83d534c000 rw-p 00007000 08:01
19497774 /usr/lib/perl/5.8.8/auto/Data/Dumper/
Dumper.so
7f83d534c000-7f83d5358000 r-xp 00000000 08:01
3530798 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sys/Sys.so
7f83d5358000-7f83d5557000 ---p 0000c000 08:01
3530798 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sys/Sys.so
7f83d5557000-7f83d5558000 rw-p 0000b000 08:01
3530798 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Sys/Sys.so
7f83d5558000-7f83d5578000 r-xp 00000000 08:01
21210670 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Const/Const.so
7f83d5578000-7f83d5777000 ---p 00020000 08:01
21210670 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Const/Const.so
7f83d5777000-7f83d5778000 rw-p 0001f000 08:01
21210670 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Const/Const.so
7f83d5778000-7f83d5780000 r-xp 00000000 08:01
21210728 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Machine/Machine.so
7f83d5780000-7f83d5980000 ---p 00008000 08:01
21210728 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Machine/Machine.so
7f83d5980000-7f83d5981000 rw-p 00008000 08:01
21210728 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Machine/Machine.so
7f83d5981000-7f83d59bd000 r-xp 00000000 08:01
21069914 /usr/lib/libgslcblas.so.0.0.0
7f83d59bd000-7f83d5bbc000 ---p 0003c000 08:01
21069914 /usr/lib/libgslcblas.so.0.0.0
7f83d5bbc000-7f83d5bbe000 rw-p 0003b000 08:01
21069914 /usr/lib/libgslcblas.so.0.0.0
7f83d5bbe000-7f83d5db5000 r-xp 00000000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7f83d5db5000-7f83d5fb4000 ---p 001f7000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7f83d5fb4000-7f83d5fb6000 r--p 001f6000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7f83d5fb6000-7f83d5fc0000 rw-p 001f8000 08:01
21069912 /usr/lib/libgsl.so.0.12.0
7f83d5fc0000-7f83d5fca000 r-xp 00000000 08:01
21210685 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Errno/Errno.so
7f83d5fca000-7f83d61ca000 ---p 0000a000 08:01
21210685 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Errno/Errno.so
7f83d61ca000-7f83d61cb000 rw-p 0000a000 08:01
21210685 /home/donohue/Math-GSL-0.20/blib/arch/auto/
Math/GSL/Errno/Errno.so
7f83d61cb000-7f83d61d4000 r-xp 00000000 08:01
8134934 /lib/libcrypt-2.7.so
7f83d61d4000-7f83d63d3000 ---p 00009000 08:01
8134934 /lib/libcrypt-2.7.so
7f83d63d3000-7f83d63d5000 rw-p 00008000 08:01
8134934 /lib/libcrypt-2.7.so
7f83d63d5000-7f83d6403000 rw-p 7f83d63d5000 00:00 0
7f83d6403000-7f83d655b000 r-xp 00000000 08:01
8134932 /lib/libc-2.7.so
7f83d655b000-7f83d675b000 ---p 00158000 08:01
8134932 /lib/libc-2.7.so
7f83d675b000-7f83d675e000 r--p 00158000 08:01
8134932 /lib/libc-2.7.so
7f83d675e000-7f83d6760000 rw-p 0015b000 08:01
8134932 /lib/libc-2.7.so
7f83d6760000-7f83d6765000 rw-p 7f83d6760000 00:00 0
7f83d6765000-7f83d677b000 r-xp 00000000 08:01
8134946 /lib/libpthread-2.7.so
7f83d677b000-7f83d697b000 ---p 00016000 08:01
8134946 /lib/libpthread-2.7.so
7f83d697b000-7f83d697d000 rw-p 00016000 08:01
8134946 /lib/libpthread-2.7.so
7f83d697d000-7f83d6981000 rw-p 7f83d697d000 00:00 0
7f83d6981000-7f83d6a01000 r-xp 00000000 08:01
8134936 /lib/libm-2.7.so
7f83d6a01000-7f83d6c00000 ---p 00080000 08:01
8134936 /lib/libm-2.7.so
7f83d6c00000-7f83d6c02000 rw-p 0007f000 08:01
8134936 /lib/libm-2.7.so
7f83d6c02000-7f83d6c04000 r-xp 00000000 08:01
8134935 /lib/libdl-2.7.so
7f83d6c04000-7f83d6e04000 ---p 00002000 08:01
8134935 /lib/libdl-2.7.so
t/
Sort.............dubious
Test returned status 0 (wstat 6, 0x6)
DIED. FAILED tests 3-20
Failed 18/20 tests, 10.00% okay
t/
Spline...........ok
t/
Statistics.......ok
t/
Sum..............ok
t/
Sys..............ok
t/
Vector...........ok
t/
VectorComplex....ok
t/
Wavelet..........ok
t/
Wavelet2D........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/CBLAS.t 0 6 5 2 40.00% 5
t/QRNG.t 0 11 8 12 150.00% 3-8
t/Sort.t 0 6 20 36 180.00% 3-20
1 test skipped.
Failed 3/52 test scripts, 94.23% okay. 25/3582 subtests failed, 99.30%
okay.


Jonathan Leto

unread,
Aug 27, 2009, 7:41:36 PM8/27/09
to math-g...@googlegroups.com
Howdy,

Thanks for the bug report! I have been busy working on other things
lately for Google Summer of Code, so I haven't had time to work on
Math::GSL, but that should change soon.

Could you enable "use strict; use warnings" in your script and send us
the full output, as well as the output of :
perl -V
gcc -v
uname -a

Those bits of info should be enough to diagnose what is up. Also, if
you are not tied to GSL 1.11, you may want to try 1.12, it has more
features and fewer bugs.

Cheers,
--

Jonathan Leto
jona...@leto.net
http://leto.net

jp d

unread,
Aug 27, 2009, 8:08:47 PM8/27/09
to math-gsl-dev
hi,
thanks for the quick response,
i will upgrade gsl shortly, in the meantime

use strict;
use warnings;
still get this error
Can't locate auto/Math/GSL/MatrixComplex/gsl_complex/cartesian.al in
@INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/
share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /
usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl/5.8/
Math/Complex.pm line 720

perl -V
gcc -v
uname -v

are all below

perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.24-16-server, archname=x86_64-linux-gnu-
thread-multi
uname='linux yellow 2.6.24-16-server #1 smp thu apr 10 13:15:38
utc 2008 x86_64 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -
Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/
usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr -
Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/
usr/local -Dsitelib=/usr/local/share/perl/5.8.8 -Dsitearch=/usr/local/
lib/perl/5.8.8 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/
man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/
man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs
-Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.
5.8.8 -Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -
DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -
fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.2.3 (Ubuntu 4.2.3-2ubuntu7)',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.7.so, so=so, useshrplib=true, libperl=libperl.so.
5.8.8
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP THREADS_HAVE_PIDS
USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Jan 14 2009 22:50:57
@INC:
/etc/perl
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
.

gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c+
+,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-
system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-
threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2
--program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --
enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-
linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)

uname -a
Linux mario 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008
x86_64 GNU/Linux

thanks
jpd
> ...
>
> read more »

Sisyphus

unread,
Aug 27, 2009, 10:14:17 PM8/27/09
to math-g...@googlegroups.com

----- Original Message -----
From: "jp d" <yo...@yahoo.com>
To: "math-gsl-dev" <math-g...@googlegroups.com>
Sent: Friday, August 28, 2009 9:16 AM
Subject: MatrixComplex


>
> hi,
> I suspect i am doing something dumb
> and would appreciate any suggestions.
>
> Math-GSL-0.20, GSL1-11, ubuntu 8.04,amd64
>
> the following test code gives me this error
> Can't locate auto/Math/GSL/MatrixComplex/gsl_complex/cartesian.al in
> @INC
>

Yes, I get the same - but that error is coming from lib/Math/Complex.pm
(which is part of perl core, and not part of the Math::GSL distro.)

There's a _cartesian method for Math::Complex objects, but not for
Math::GSL::MatrixComplex objects - so it looks to me that the use of
Math::Complex has accommodated some intermingling and confusion of objects.

I did try adding '_cartesian' to the Math::Complex @Export, and that got rid
of that error, but then I got:

Can't locate auto/Math/GSL/MatrixComplex/gsl_complex/swig_c_dirt.al in @INC
(@INC contains: C:/perl510_M/5.10.0/lib C:/perl510_M/site/5.10.0/lib .) at
C:/perl510_M/site/5.10.0/lib/Math/GSL/MatrixComplex.pm line 32

where the appropriate part of MatrixComplex.pm looks like:

29: sub FETCH {
30: my ($self,$field) = @_;
31: my $member_func = "swig_${field}_get";
32: $self->$member_func();
33: }

At this point I decided I was heading in the wrong direction.
Jonathan, I'm wondering why Math::GSL::MatrixComplex needs to use
Math::Complex, and whether the best solution might be to do away with that
dependency.

(Of course, if the op finds that updating to GSL-1.12 fixes the problem,
then that's the solution. But I think I'm already using GSL-1.12. Is there a
Math::GSL function that will tell me the version of GSL against which my
Math::GSL has been built ?)

Cheers,
Rob

Jonathan Leto

unread,
Aug 28, 2009, 5:24:04 PM8/28/09
to math-g...@googlegroups.com
Howdy,

> I did try adding '_cartesian' to the Math::Complex @Export, and that got rid
> of that error, but then I got:
>
> Can't locate auto/Math/GSL/MatrixComplex/gsl_complex/swig_c_dirt.al in @INC
> (@INC contains: C:/perl510_M/5.10.0/lib C:/perl510_M/site/5.10.0/lib .) at
> C:/perl510_M/site/5.10.0/lib/Math/GSL/MatrixComplex.pm line 32
>
> where the appropriate part of MatrixComplex.pm looks like:
>
> 29: sub FETCH {
> 30:     my ($self,$field) = @_;
> 31:     my $member_func = "swig_${field}_get";
> 32:     $self->$member_func();
> 33: }
>
> At this point I decided I was heading in the wrong direction.
> Jonathan, I'm wondering why Math::GSL::MatrixComplex needs to use
> Math::Complex, and whether the best solution might be to do away with that
> dependency.

You are into SWIG-generated territory, beware! I think the issue is
that currently Math::GSL assumes
that you give it Math::Complex objects and then converts them to GSL
complex numbers internally.

This works for me:


use strict;
use warnings;
use Math::Complex;


use Math::GSL::MatrixComplex;
use Math::GSL::Complex qw/:all/;

$a = cplxe(8,1);

my $matrix = Math::GSL::MatrixComplex->new(3,3);
$matrix->set_row(0, [$a, 6, 2 ]);
$matrix->set_row(1, [7 , 6 , 2 ]);
$matrix->set_row(2, [8, 5, 2 ]);


We definitely should handle the case when we are passed a GSL complex
a lot better :)

> (Of course, if the op finds that updating to GSL-1.12 fixes the problem,
> then that's the solution. But I think I'm already using GSL-1.12. Is there a
> Math::GSL function that will tell me the version of GSL against which my
> Math::GSL has been built ?)

That is a great idea, I will add that feature in a future release. If
you only have one instance of GSL on your system, then you can run
"gsl-config --version." Of course, if you have multiple versions
(which is often the case due to having a system GSL and then a newer
user-installed GSL), then you can't currently tell which one Math::GSL
compiled against.

Cheers,

Reply all
Reply to author
Forward
0 new messages