#2084: t/src/extend_vtable.t fails all tests with g++ build
--------------------+-------------------------------------------------------
Reporter: mikehh | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: 3.2.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
As of RELEASE_3_2_0-127-gbe94864 the test fails when parrot is built with
g++
prove -v t/src/extend_vtable.t ->
{{{
mhu@mhu-desktop:~/parrot$ date
Fri Apr 1 19:25:48 BST 2011
mhu@mhu-desktop:~/parrot$ prove -v t/src/extend_vtable.t
t/src/extend_vtable.t ..
1..89
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_1.o t/src/extend_vtable_1.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_1.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
not ok 1 - Parrot_PMC_exists_keyed_int
# Failed test 'Parrot_PMC_exists_keyed_int'
# at t/src/extend_vtable.t line 154.
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_2.o t/src/extend_vtable_2.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_2.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
not ok 2 - Parrot_PMC_exists_keyed
# Failed test 'Parrot_PMC_exists_keyed'
# at t/src/extend_vtable.t line 162.
...
...
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/rc/extend_vtable_89.o t/src/extend_vtable_89.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_89.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
not ok 89 - Parrot_PMC_assign_pmc
# Failed test 'Parrot_PMC_assign_pmc'
# at t/src/extend_vtable.t line 1435.
# Looks like you failed 89 tests of 89.
Dubious, test returned 89 (wstat 22784, 0x5900)
Failed 89/89 subtests
Test Summary Report
-------------------
t/src/extend_vtable.t (Wstat: 22784 Tests: 89 Failed: 89)
Failed tests: 1-89
Non-zero exit status: 89
Files=1, Tests=89, 9 wallclock secs ( 0.15 usr 0.02 sys + 6.41 cusr
1.43 csys = 8.01 CPU)
Result: FAIL
mhu@mhu-desktop:~/parrot$ date
Fri Apr 1 19:28:00 BST 2011
}}}
in essence the output for the other tests is the same except for:
{{{
...
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_5.o t/src/extend_vtable_5.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_5.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:130:53: error: invalid conversion from ‘int’ to
‘void*’
# t/src/extend_vtable.t:130:53: error: initializing argument 3 of ‘void
Parrot_PMC_set_pointer(parrot_interp_t*, PMC*, void*)’
not ok 5 - Parrot_PMC_set_pointer
# Failed test 'Parrot_PMC_set_pointer'
# at t/src/extend_vtable.t line 189.
...
...
not ok 10 - Parrot_PMC_get_string_keyed_int
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_10.o t/src/extend_vtable_10.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_10.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:130:66: error: invalid conversion from ‘PMC*’ to
‘Parrot_Int’
# t/src/extend_vtable.t:130:66: error: initializing argument 3 of
‘parrot_string_t* Parrot_PMC_get_string_keyed_int(parrot_interp_t*, PMC*,
Parrot_Int)’
# Failed test 'Parrot_PMC_get_string_keyed_int'
# at t/src/extend_vtable.t line 240.
...
...
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_15.o t/src/extend_vtable_15.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_15.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:130:64: error: invalid conversion from ‘PMC*’ to
‘Parrot_Int’
# t/src/extend_vtable.t:130:64: error: initializing argument 3 of
‘Parrot_Int Parrot_PMC_defined_keyed_int(parrot_interp_t*, PMC*,
Parrot_Int)’
not ok 15 - Parrot_PMC_defined_keyed_int
# Failed test 'Parrot_PMC_defined_keyed_int'
# at t/src/extend_vtable.t line 292.
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_16.o t/src/extend_vtable_16.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_16.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:133:65: error: invalid conversion from ‘PMC*’ to
‘Parrot_Int’
# t/src/extend_vtable.t:133:65: error: initializing argument 3 of ‘void
Parrot_PMC_set_number_keyed_int(parrot_interp_t*, PMC*, Parrot_Int,
Parrot_Float)’
# t/src/extend_vtable.t:134:67: error: invalid conversion from ‘PMC*’ to
‘Parrot_Int’
# t/src/extend_vtable.t:134:67: error: initializing argument 3 of
‘Parrot_Float Parrot_PMC_get_number_keyed_int(parrot_interp_t*, PMC*,
Parrot_Int)’
not ok 16 - Parrot_PMC_(set|get)_number_keyed_int
# Failed test 'Parrot_PMC_(set|get)_number_keyed_int'
# at t/src/extend_vtable.t line 300.
...
...
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_47.o t/src/extend_vtable_47.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_47.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:136:27: warning: format ‘%d’ expects type ‘int’,
but argument 2 has type ‘Parrot_Int’
not ok 47 - Parrot_PMC_floor_divide_int
# Failed test 'Parrot_PMC_floor_divide_int'
# at t/src/extend_vtable.t line 749.
...
...
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_49.o t/src/extend_vtable_49.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_49.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:141:27: warning: format ‘%d’ expects type ‘int’,
but argument 2 has type ‘Parrot_Int’
not ok 49 - Parrot_PMC_multiply_int
# Failed test 'Parrot_PMC_multiply_int'
# at t/src/extend_vtable.t line 786.
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_50.o t/src/extend_vtable_50.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_50.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:140:27: warning: format ‘%d’ expects type ‘int’,
but argument 2 has type ‘Parrot_Int’
not ok 50 - Parrot_PMC_i_multiply
# Failed test 'Parrot_PMC_i_multiply'
# at t/src/extend_vtable.t line 804.
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_51.o t/src/extend_vtable_51.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_51.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:140:27: warning: format ‘%d’ expects type ‘int’,
but argument 2 has type ‘Parrot_Int’
not ok 51 - Parrot_PMC_i_multiply_int
# Failed test 'Parrot_PMC_i_multiply_int'
# at t/src/extend_vtable.t line 821.
...
...
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_57.o t/src/extend_vtable_57.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_57.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:140:27: warning: format ‘%d’ expects type ‘int’,
but argument 2 has type ‘Parrot_Int’
not ok 57 - Parrot_PMC_divide_int
# Failed test 'Parrot_PMC_divide_int'
# at t/src/extend_vtable.t line 914.
...
...
# 'g++ -D_GNU_SOURCE -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD
-DDISABLE_GC_DEBUG=1 -DNDEBUG -I/usr/lib/llvm-2.8/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fomit-
frame-pointer -fPIC -DHAS_GETTEXT -I./include -c -o
t/src/extend_vtable_60.o t/src/extend_vtable_60.c' failed with exit code 1
# Failed to build 't/src/extend_vtable_60.o': t/src/extend_vtable.t: In
function ‘void dotest(parrot_interp_t*, void*)’:
# t/src/extend_vtable.t:113:36: error: ‘Parrot_hash_new’ was not declared
in this scope
# t/src/extend_vtable.t:117:50: error: ‘Parrot_key_new_integer’ was not
declared in this scope
# t/src/extend_vtable.t:118:55: error: ‘Parrot_key_new_cstring’ was not
declared in this scope
# t/src/extend_vtable.t:136:25: warning: format ‘%d’ expects type ‘int’,
but argument 2 has type ‘Parrot_Int’
# t/src/extend_vtable.t:138:25: warning: format ‘%d’ expects type ‘int’,
but argument 2 has type ‘Parrot_Int’
not ok 60 - Parrot_PMC_i_modulus
# Failed test 'Parrot_PMC_i_modulus'
# at t/src/extend_vtable.t line 967.
...
...
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/2084>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets