octave-maintainers
[Top][All Lists]
Advanced

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

building development tip with mingw32


From: Benjamin Lindner
Subject: building development tip with mingw32
Date: Fri, 16 Apr 2010 21:26:03 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi list,

I gave the current development branch a new try with mingw gcc 4.4.0 and today's gnulib, and I get a "isatty() is not declared in this scope" error when compiling octave.cc.

I find that I need to #include <io.h> to get isatty()'s declaration available (changeset attached)

Building the executable versions of mkoctfile and octave-info also requires th enable the respective rules in makefile.am - again changeset attached.

The build then succeeds!
However I am getting (just like Tatsuro) quite random segfaults when doing "make check".

One cycle that went beyond the summary yields

Summary:

  PASS   6340
  FAIL     19

with the errors in:

==============================================================
test_system.m .......................... PASS   81/84   FAIL 3
  ***** test
 string_fill_char = setstr (0);
 assert((fnmatch ("a*a", {"aba"; "xxxba"; "aa"}) == [1; 0; 1]
 && fnmatch ({"a*a"; "b*b"}, "bob")
 && fnmatch ("x[0-5]*", {"x1"; "x6"}) == [1; 0]
 && fnmatch ("x[0-5]*", {"x1"; "x6"; "x001"}) == [1; 0; 1]
 && fnmatch ("x???y", {"xabcy"; "xy"}) == [1; 0]));
!!!!! test failed
`fnmatch' undefined near line 4 column 10
  ***** error <Invalid call to fnmatch.*> fnmatch ();
!!!!! expected <Invalid call to fnmatch.*> but got `fnmatch' undefined near line 2 column 2

  ***** error <Invalid call to fnmatch.*> fnmatch ("foo", "bar", 3);
!!!!! expected <Invalid call to fnmatch.*> but got `fnmatch' undefined near line 2 column 2

This one surprises me, as I thought that gnulib would provide fnmatch ?


=========================================================
octave-tip\scripts/time\datestr.m  PASS   23/34   FAIL 11
  ***** assert(datestr(testtime,0),"18-Dec-2005 02:33:17");
!!!!! test failed
assert (datestr (testtime, 0),"18-Dec-2005 02:33:17") expected
18-Dec-2005 02:33:17
but got
18-Dez-2005 02:33:17
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,1),"18-Dec-2005");
!!!!! test failed
assert (datestr (testtime, 1),"18-Dec-2005") expected
18-Dec-2005
but got
18-Dez-2005
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,3),"Dec");
!!!!! test failed
assert (datestr (testtime, 3),"Dec") expected
Dec
but got
Dez
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,8),"Sun");
!!!!! test failed
assert (datestr (testtime, 8),"Sun") expected
Sun
but got
So
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,12),"Dec05");
!!!!! test failed
assert (datestr (testtime, 12),"Dec05") expected
Dec05
but got
Dez05
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,14)," 2:33:17 AM");
!!!!! test failed
assert (datestr (testtime, 14)," 2:33:17 AM") expected
 2:33:17 AM
but got
 2:33:17
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,16)," 2:33 AM");
!!!!! test failed
assert (datestr (testtime, 16)," 2:33 AM") expected
 2:33 AM
but got
 2:33
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,21),"Dec.18.2005 02:33:17");
!!!!! test failed
assert (datestr (testtime, 21),"Dec.18.2005 02:33:17") expected
Dec.18.2005 02:33:17
but got
Dez.18.2005 02:33:17
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,22),"Dec.18.2005");
!!!!! test failed
assert (datestr (testtime, 22),"Dec.18.2005") expected
Dec.18.2005
but got
Dez.18.2005
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime,28),"Dec2005");
!!!!! test failed
assert (datestr (testtime, 28),"Dec2005") expected
Dec2005
but got
Dez2005
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
  ***** assert(datestr(testtime+[0 0 3 0 0 0],"dddd"),"Wednesday")
!!!!! test failed
assert (datestr (testtime + [0, 0, 3, 0, 0, 0], "dddd"),"Wednesday") expected
Wednesday
but got
Mittwoch
shared variables {
  testtime =

     2005.0000     12.0000     18.0000      2.0000     33.0000     17.3822

}
These arise from assuming an English locale in the test, but actually having a German locale. So not exactly an error.


========================================================
octave-tip\scripts/specfun\beta.m  PASS    5/6    FAIL 1
  ***** test
 a = 0.25 + (0:5) * 0.5;
 tol = 10 * max (a) * eps;
 assert (zeros (size (a)), beta (a, -a), tol)
 assert (zeros (size (a)), beta (-a, a), tol)
!!!!! test failed
exception encountered in Fortran subroutine dlgams_

???

==========================================================
octave-tip\scripts/general\quadgk.m  PASS   11/12   FAIL 1
***** assert (quadgk (@(z) log (z), 1+1i, 1+1i, 'WayPoints', [1-1i, -1,-1i, -1+1i]), -pi * 1i, 1e-6)
!!!!! test failed
max_recursion_limit exceeded

???

=============================================
octave-tip\src\data.cc  PASS  577/580  FAIL 3

these are already known.

benjamin
# HG changeset patch
# User Benjamin Lindner <address@hidden>
# Date 1271445095 -7200
# Node ID 31760e9e555ace735478053a58629d2e7e0e3522
# Parent  ad58aa0efbd1180722a86b87bac0c8dfbf6a2abd
#include <io.h> in octave.cc for isatty()

diff --git a/src/ChangeLog b/src/ChangeLog
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-16  Benjamin Lindner  <address@hidden>
+
+       * octave.cc: #include <io.h> for isatty()
+
 2010-04-13  David Bateman  <address@hidden>
 
        * graphics.cc (void text::properties::update_text_extent (void)):
diff --git a/src/octave.cc b/src/octave.cc
--- a/src/octave.cc
+++ b/src/octave.cc
@@ -69,6 +69,7 @@
 #include "utils.h"
 #include "variables.h"
 #include <version.h>
+#include <io.h>
 
 // Kluge.
 extern "C" F77_RET_T
# HG changeset patch
# User Benjamin Lindner <address@hidden>
# Date 1271445000 -7200
# Node ID ad58aa0efbd1180722a86b87bac0c8dfbf6a2abd
# Parent  7147078550fed832f4e4fc18fb1f02061fce202d
enable makefile rules for mkoctfile.exe, octave-config.exe and octave-bug.exe

diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-16  Benjamin Lindner  <address@hidden>
+
+       * makefile.am: add make rules for mkoctfile.exe, octave-bug.exe and 
+       octave-config.exe
+
 2010-04-16  David Bateman  <address@hidden>
 
        * PROJECTS: Update for new sparse functionality.
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -119,11 +119,9 @@
 octave-bug.cc: octave-bug.cc.in Makefile
        @$(do_subst_config_vals)
 
-# ifneq ($(EXEEXT),)
-# octave-bug$(EXEEXT): octave-bug.o
-#      $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
-#          $(ALL_LDFLAGS) -o $@ octave-bug.o
-# endif
+octave-bug.exe: octave-bug.cc
+       $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
+           $(ALL_LDFLAGS) -o $@ $<
 
 octave-config: octave-config.in Makefile
        @$(do_subst_default_vals)
@@ -132,11 +130,9 @@
 octave-config.cc: octave-config.cc.in Makefile
        @$(do_subst_default_vals)
 
-# ifneq ($(EXEEXT),)
-# octave-config$(EXEEXT): octave-config.o
-#      $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
-#          $(ALL_LDFLAGS) -o $@ octave-config.o
-# endif
+octave-config.exe: octave-config.cc
+       $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
+           $(ALL_LDFLAGS) -o $@ $<
 
 mkoctfile: mkoctfile.in Makefile
        @$(do_subst_config_vals)
@@ -145,11 +141,9 @@
 mkoctfile.cc: mkoctfile.cc.in Makefile
        @$(do_subst_config_vals)
 
-# ifneq ($(EXEEXT),)
-# mkoctfile$(EXEEXT): mkoctfile.o
-#      $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
-#          $(ALL_LDFLAGS) -o $@ mkoctfile.o
-# endif
+mkoctfile.exe: mkoctfile.cc
+       $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
+           $(ALL_LDFLAGS) -o $@ $<
 
 run-octave: run-octave.in Makefile
        @$(do_subst_script_vals)

reply via email to

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