octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mingw Octave-3.4.3 binaries for testing on windows


From: nitnit
Subject: Mingw Octave-3.4.3 binaries for testing on windows
Date: Sat, 22 Oct 2011 08:42:22 -0700 (PDT)

Hello Octave users and maintainers,

I have succesfully compiled octave-3.4.3 (src downloaded from
ftp://ftp.gnu.org/gnu/octave/octave-3.4.3.tar.gz) with mingw, using
Tatsuro's OctaveLibs and gplibs.

Many thanks to Tatsuro Matsuoka and Philip Nienhuis who have contributed
their knowledge and experience.

I had to fix 2 source files in order for them to compile successfully - see
my notes regarding the src fixes at the end of this post.

Finally, I have constructed and uploaded binaries and they are available for
testing (Tatsuro, can you please update your OctaveForWidows WIKI).

There are two separate 7z files:

a. Basic Octave binaries and documentation with all required environment for
compiling oct/mex files 
(see included readme and shortcut files)

Octave3.4.3_gcc4.5.2_20111022.7z - MD5:83E2664CCAC3D5B3C384F5A99DCCF271 -
http://www.multiupload.com/LAJ26VC8SB


b. Compiled OctaveForge packages tree which can be easily added
(see included readme and pkgs list files)

Octave3.4.3_gcc4.5.2_pkgs_20111022.7z - MD5:AE3872AEB3C42CEF37E9A3642D1F8EE3
- http://www.multiupload.com/S7YF7Y9L8Z

I have tested these on my win7-x64 systems but it should be noted that my
testing is limited.

Runnig fntests with this binaries tree (including loaded pkgs) produce the
following failures (see also my notes regarding the failures at the end of
this post):

##############################################################
Integrated test scripts:

  c:\OctaveB\octave-3.4.3\src\data.cc .................... PASS  620/622 
FAIL 2
  c:\OctaveB\octave-3.4.3\src\ov-fcn-handle.cc ........... PASS    2/3   
FAIL 1
  c:\OctaveB\octave-3.4.3\scripts/help\get_first_help_sentence.m  PASS   
6/7    FAIL 1
Fixed test scripts:
  test_system.m .......................................... PASS   83/84  
FAIL 1

Summary:

  PASS   7048
  FAIL      5

There were 2 expected failures (see fntests.log for details).  
##############################################################

fntest.log for non-expected:

##############################################################
>>>>> processing c:\OctaveB\octave-3.4.3\src\data.cc
  ***** test
 [f, e] = log2 ([0,-1; 2,-4; Inf,-Inf]);
 assert (f, [0,-0.5; 0.5,-0.5; Inf,-Inf]);
 assert (e(1:2,:), [0,1;2,3])
!!!!! test failed
assert (f,[0, -0.5; 0.5, -0.5; Inf, -Inf]) expected
   0.00000  -0.50000
   0.50000  -0.50000
       Inf      -Inf
but got
   0.00000  -0.50000
   0.50000  -0.50000
       NaN       NaN
NaNs don't match
  ***** test
 [f, e] = log2 (complex (zeros (3, 2), [0,-1; 2,-4; Inf,-Inf]));
 assert (f, complex (zeros (3, 2), [0,-0.5; 0.5,-0.5; Inf,-Inf]));
 assert (e(1:2,:), [0,1; 2,3]);
!!!!! test failed
assert (f,complex (zeros (3, 2), [0, -0.5; 0.5, -0.5; Inf, -Inf])) expected
   0.00000 + 0.00000i   0.00000 - 0.50000i
   0.00000 + 0.50000i   0.00000 - 0.50000i
   0.00000 +     Infi   0.00000 -     Infi
but got
   0.00000 + 0.00000i   0.00000 - 0.50000i
   0.00000 + 0.50000i   0.00000 - 0.50000i
       NaN -     NaNi       NaN -     NaNi
NaNs don't match

>>>>> processing c:\OctaveB\octave-3.4.3\src\ov-fcn-handle.cc
  ***** test
 x = {".**", "power";
      ".'", "transpose";
      ".+", "plus";
      ".-", "minus";
      ".*", "times";
      "./", "rdivide";
      ".^", "power";
      ".\\", "ldivide";
      "<=", "le";
      "==", "eq";
      ">=", "ge";
      "~=", "ne";
      "!=", "ne";
      "**", "mpower";
      "~", "not";
      "!", "not";
      "\'", "ctranspose";
      "+", "plus";
      "-", "minus";
      "*", "mtimes";
      "/", "mrdivide";
      "^", "mpower";
      "\\", "mldivide";
      "<", "lt";
      ">", "gt";
      "&", "and";
      "|", "or"};
 for i = 1:rows (x)
   assert (functions (str2func (x{i,1})).function, x{i,2})
 endfor
!!!!! test failed
parse error near line 32 of file
C:address@hidden

  syntax error

>>>     error ("mldivide: nonconformant arguments (op1 is %dx%d, op2 is
>>> %dx%d)",
             ^


>>>>> processing
>>>>> c:\OctaveB\octave-3.4.3\scripts/help\get_first_help_sentence.m
  ***** assert (strcmp (get_first_help_sentence('get_first_help_sentence'),
"Return the first sentence of a function's help text."));
!!!!! test failed
assert (strcmp (get_first_help_sentence ('get_first_help_sentence'), "Return
the first sentence of a function's help text.")) failed

>>>>> processing test_system
  ***** testif HAVE_GETPWUID
 x = getpwuid (getuid ());
 assert((strcmp (x.dir, tilde_expand ("~"))
 && strcmp (x.dir, tilde_expand (sprintf ("~%s", x.name)))
 && strcmp ("foobar", tilde_expand ("foobar"))));
----- skipped test

  ***** testif HAVE_GETPGRP
 assert(getpgrp () > 0);
----- skipped test

  ***** testif HAVE_GETPPID
 assert(getppid () > 0);
----- skipped test

  ***** assert(strcmp (getenv ("HOME"), tilde_expand ("~")));
!!!!! test failed
assert (strcmp (getenv ("HOME"), tilde_expand ("~"))) failed
  ***** testif HAVE_GETPWENT
 s = getpwent ();
 endpwent (); 
 assert((isstruct (s)
 && isfield (s, "name")
 && isfield (s, "passwd")
 && isfield (s, "uid")
 && isfield (s, "gid")
 && isfield (s, "gecos")
 && isfield (s, "dir")
 && isfield (s, "shell")));
----- skipped test

  ***** testif HAVE_GETPWUID
 x = getpwent ();
 y = getpwuid (x.uid);
 endpwent (); 
 assert(strcmp (x.name, y.name) && x.uid == y.uid && x.gid == y.gid);
----- skipped test

  ***** testif HAVE_GETPWNAM
 x = getpwent ();
 y = getpwnam (x.name);
 endpwent (); 
 assert(strcmp (x.name, y.name) && x.uid == y.uid && x.gid == y.gid);
----- skipped test

  ***** testif HAVE_SETPWENT
 x = getpwent ();
 setpwent ();
 y = getpwent ();
 endpwent (); 
 assert(strcmp (x.name, y.name) && x.uid == y.uid && x.gid == y.gid);
----- skipped test

  ***** testif HAVE_GETGRENT
 x = getgrent ();
 endgrent ();
 assert((isstruct (x)
 && isfield (x, "name")
 && isfield (x, "passwd")
 && isfield (x, "gid")
 && isfield (x, "mem")));
----- skipped test

  ***** testif HAVE_GETGRGID
 x = getgrent ();
 y = getgrgid (x.gid);
 endgrent ();
 assert(strcmp (x.name, y.name) && x.gid == y.gid);
----- skipped test

  ***** testif HAVE_GETGRNAM
 x = getgrent ();
 y = getgrnam (x.name);
 endgrent ();
 assert(strcmp (x.name, y.name) && x.gid == y.gid);
----- skipped test

  ***** testif HAVE_SETGRENT
 x = getgrent ();
 setgrent ();
 y = getgrent ();
 endgrent ();
 assert(strcmp (x.name, y.name) && x.gid == y.gid);
----- skipped test
##############################################################

My notes regarding the failures:

1. ov-fcn-handle.cc fails only if linear-algebra-2.0.0 is loaded due to its
mldivide overloading internal function
4. get_first_help_sentence fails since it calls __makeinfo__.m which
executes msys makeinfo 
     on a file opened with mkstemp and written by fwrite. msys makeinfo
returns bad string
         probably because the file has been opened as atext file and newline 
chars
('\n') are 
         written as windows <CR><LF> causing msys makeinfo to make a faulty 
parsing
3. test_system.m doesn't fail under MSYS since HOME env var is set there

My notes regarding src fixes:

The 3 errors I have got were due to a property not a part of gnulib !

in octave-3.4.3\liboctave\oct-env.cc:449 - I had to change
gnulib::gethostname to gethostname
in octave-3.4.3\src\file-io.cc:128 -  I had to change gnulib::unlink to
unlink
in src\oct-hist.cc:443 -  I had to change gnulib::unlink to unlink

I do not know how to patch these fixes such that will not effect other
systems !

Regards
Nitzan Arazi


--
View this message in context: 
http://octave.1599824.n4.nabble.com/Mingw-Octave-3-4-3-binaries-for-testing-on-windows-tp3928387p3928387.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]