[SciPy-dev] Weave checkins

eric jones eric at enthought.com
Fri Oct 11 16:20:55 CDT 2002


> 
> 
> 
> On 11 Oct 2002, Travis Oliphant wrote:
> 
> > A recent build of SciPy with the latest weave checkins now gives me
> >
> > 53 weave errors on a level 10 test where gcc is failing on Linux
> > Mandrake 8.2
> >
> > Is this happening to anyone else or do I have a bad build caused
perhaps
> > by not doing a full cleanup.  At least it's not segfaulting which
has
> > happened in the past.
> 
> With Python 2.2.1, gcc 2.95.4 on Debian Woody I get 0 errors from 184
> tests, though there are some strange (?) warning messages (see first
part
> of the end of this message).

Some of the stuff spewed in the weave tests are compiler errors in tests
that are supposed to fail (the first part of your first traceback below
for example).  I don't think we can do anything about this without a lot
of work -- and I'm not sure we even want too. 

Everyone complains about the __bad_path__ message.  I'll try think of a
less "scary" warning message.  The test suite exercises some edge cases
which I don't expect to ever happen in real life, and one of these edge
cases emits this warning to tell the user that some unexpected stuff is
happening.  Maybe this isn't a good policy?  At the least, I'll bracket
this test with a note that says THE FOLLOWING WARNING IS SUPPOSED TO
HAPPEN. 

> 
> With Python 2.2.1, gcc 3.1.1 on Debian Woody I get 30 errors from 184
> tests. There are numerous compiler errors, one error message is given
at
> the end of this message.
> I'll look forward when Eric installes gcc >=3.1 ;-)

We luddites just got a RH 8.0 on a machine, so I can probably check on
this tonight. :-)  (I think it is gcc 3.2 or something like that??)
Unfortunately, the mingw 3.2 causes seg-faults currently when running
against an MSVC compiled Python (but it does compile...).  

A can't tell off hand what is going on from the error messages -- maybe
there are some 'const' issues in the new C++ code.  I'll track it down
tonight.

Eric

> 
> Pearu
> 
> --------------------------- First part -----------------------------
> python: 2.99997901917
>
......................................................../home/users/pear
u/
> .python22_compiled/13322/sc_a6df888dc732b38ae7a4c5fa1063b4251.cpp: In
> function `struct PyObject * compiled_func(PyObject *, PyObject *)':
>
/home/users/pearu/.python22_compiled/13322/sc_a6df888dc732b38ae7a4c5fa10
63
> b4251.cpp:645: no
> match for `string & < int'
>
/home/users/pearu/.python22_compiled/13322/sc_a6df888dc732b38ae7a4c5fa10
63
> b4251.cpp:649: no
> match for `string & + int'
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-
> 3/std/fcomplex.h:60: candidates
> are: class complex<float> operator +(const complex<float> &, float)
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-
> 3/std/fcomplex.h:62:                 class
> complex<float> operator +(float, const complex<float> &)
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-
> 3/std/dcomplex.h:60:                 class
> complex<double> operator +(const complex<double> &, double)
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-
> 3/std/dcomplex.h:62:                 class
> complex<double> operator +(double, const complex<double> &)
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-
> 3/std/ldcomplex.h:60:                 class
> complex<long double> operator +(const complex<long double> &, long
double)
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-
> 3/std/ldcomplex.h:62:                 class
> complex<long double> operator +(long double, const complex<long
double> &)
> .warning: specified build_dir '_bad_path_' does not exist or is not
> writable. Trying default locations
> ...warning: specified build_dir '..' does not exist or is not
> writable. Trying default locations
> .warning: specified build_dir '_bad_path_' does not exist or is not
> writable. Trying default locations
> ...warning: specified build_dir '..' does not exist or is not
> writable. Trying default locations
>
........................................................................
..
> .....................
> ----------------------------------------------------------------------
> Ran 184 tests in 450.117s
> 
> OK
> ------------------ end of first part ---------------------
> 
> --------------------- Second part ------------------------
> 
> E..............................In file included from
>
/home/users/pearu/.python22_compiled/16853/sc_a6df888dc732b38ae7a4c5fa10
63
> b4250.cpp:9:
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:683:
> declaration
>    does not declare anything
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:683: parse
> error
>    before `!' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:690:
non-member
>    function `py::object py::type()' cannot have `const' method
qualifier
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h: In
function
>    `py::object py::type()':
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:691: `_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:691: (Each
>    undeclared identifier is reported only once for each function it
> appears
>    in.)
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:694:
`lose_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h: At global
> scope:
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:703:
non-member
>    function `int py::size()' cannot have `const' method qualifier
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:709:
non-member
>    function `int py::len()' cannot have `const' method qualifier
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:712:
non-member
>    function `int py::length()' cannot have `const' method qualifier
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:722:
virtual
> outside
>    class declaration
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:733: syntax
> error
>    before `operator'
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:734: syntax
> error
>    before `operator'
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:735: syntax
> error
>    before `operator'
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:736: syntax
> error
>    before `operator'
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:737: syntax
> error
>    before `operator'
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:738: syntax
> error
>    before `operator'
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h: In
function
>    `PyObject* py::disown()':
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:746: `_own'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h: At global
> scope:
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:767: syntax
> error
>    before `:' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:770:
aggregate
> `
>    object _key' has incomplete type and cannot be defined
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:771: parse
> error
>    before `public'
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:774:
> destructors
>    must be member functions
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:774:
virtual
> outside
>    class declaration
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:776: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:778: syntax
> error
>    before `.' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:781: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:785: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:789: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:793: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:797: syntax
> error
>    before `&' token
> In file included from
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:16,
>                  from
>
/home/users/pearu/.python22_compiled/16853/sc_a6df888dc732b38ae7a4c5fa10
63
> b4250.cpp:10:
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:27: base
> class `
>    object' has incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
> constructor
>    `py::sequence::sequence()':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:32: type
> `struct
>    object' is not a direct base of `py::sequence'
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In copy
>    constructor `py::sequence::sequence(const py::sequence&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:33: type
> `struct
>    object' is not a direct base of `py::sequence'
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
> constructor
>    `py::sequence::sequence(PyObject*)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:34: type
> `struct
>    object' is not a direct base of `py::sequence'
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `virtual py::sequence& py::sequence::operator=(const
>    py::sequence&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:47:
> `grab_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `py::sequence& py::sequence::operator=(const object&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:51:
> `grab_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:785: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:789: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:793: syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/object.h:797: syntax
> error
>    before `&' token
> In file included from
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:16,
>                  from
>
/home/users/pearu/.python22_compiled/16853/sc_a6df888dc732b38ae7a4c5fa10
63
> b4250.cpp:10:
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:27: base
> class `
>    object' has incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
> constructor
>    `py::sequence::sequence()':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:32: type
> `struct
>    object' is not a direct base of `py::sequence'
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In copy
>    constructor `py::sequence::sequence(const py::sequence&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:33: type
> `struct
>    object' is not a direct base of `py::sequence'
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
> constructor
>    `py::sequence::sequence(PyObject*)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:34: type
> `struct
>    object' is not a direct base of `py::sequence'
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `virtual py::sequence& py::sequence::operator=(const
>    py::sequence&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:47:
> `grab_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `py::sequence& py::sequence::operator=(const object&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:51:
> `grab_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `virtual void py::sequence::_violentTypeCheck()':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:60:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:61:
> `grab_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:62:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `py::sequence py::sequence::operator+(const
> py::sequence&) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:70:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:72:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:73:
> `lose_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::count(const object&) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:80:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:82:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::count(int) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:86:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::count(double) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:90:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::count(char*) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:94:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::count(std::string&) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:98:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `virtual void py::sequence::set_item(int, object&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:107:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:109:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `object py::sequence::operator[](int)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:116:
return
> type `
>    struct object' is incomplete
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:117:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:127:
> `lose_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `py::sequence py::sequence::slice(int, int) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:135:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:137:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:138:
> `lose_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `bool py::sequence::in(const object&) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:146:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:148:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `bool py::sequence::in(int)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:152:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `bool py::sequence::in(double)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:156:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `bool py::sequence::in(const char*)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:160:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `bool py::sequence::in(std::string&)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:164:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::index(const object&) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:173:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:175:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::index(int) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:179:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::index(double) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:183:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::index(const std::complex<double>&)
const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:187:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::index(const char*) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:191:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `int py::sequence::index(const std::string&) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:195:
variable
> `
>    object val' has initializer but incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: In
member
>    function `py::sequence py::sequence::operator*(int) const':
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:208:
`_obj'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:210:
`fail'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:211:
> `lose_ref'
>    undeclared (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h: At
global
> scope:
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:223: base
> class `
>    object' has incomplete type
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:224:
syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:227: type
>    specifier omitted for parameter `sequence'
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:227:
parse
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:228:
missing
> ';'
>    before right brace
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:229:
> destructors
>    must be member functions
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:229:
virtual
>    outside class declaration
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:231:
syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:233:
syntax
> error
>    before `.' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:236:
syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:240:
syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:244:
syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:248:
syntax
> error
>    before `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/sequence.h:252:
syntax
> error
>    before `&' token
> In file included from
>
/home/users/pearu/.python22_compiled/16853/sc_a6df888dc732b38ae7a4c5fa10
63
> b4250.cpp:10:
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:23: parse
error
> before
>    `{' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:30: parse
error
> before
>    `&' token
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:30: ISO C++
> forbids
>    declaration of `list' with no type
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h: In function
`int
>    list(...)':
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:30: `other'
> undeclared
>    (first use this function)
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:30: only
> constructors
>    take base initializers
> /usr/local/lib/python2.2/site-packages/weave/scxx/list.h:30: confused
by
> earlier errors, bailing out
> E
> 
> ------------------ end of second part --------------------
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev




More information about the Scipy-dev mailing list