#1187: t/src/warnings fails test 2 on optimized build with Ubuntu 9.10 amd64
---------------------+------------------------------------------------------
Reporter: mikehh | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: testing | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
At r42229 on Ubuntu 9.10 amd64 I get an error in t/src/warnings.t
smolder #29610 and also fails on an --optimize build on MSWin32 on amd64
in smolder #29603 (not mine).
the test passed at r42203 and I first got a failure at r42011 with the
same configure options
building with:
{{{
perl Configure.pl --optimize --test --maintainer --configure_trace
...
make -j test TEST_JOBS=5
...
...
(I wrapped the 'cc line which is 1404 columns --> to <--)
-->
'cc -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -DDEBIAN -pipe -fstack-
protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC
-DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE
-DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -falign-
functions=16
-fvisibility=hidden -funit-at-a-time -maccumulate-outgoing-args -W -Wall
-Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment
-Wdisabled-optimization -Wendif-labels -Wextra -Wformat -Wformat-extra-
args
-Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport
-Winit-self -Winline -Winvalid-pch -Wlogical-op -Wmissing-braces
-Wmissing-field-initializers -Wno-missing-format-attribute
-Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-
type
-Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing
-Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef
-Wunknown-pragmas -Wno-unused -Wvariadic-macros -Wwrite-strings
-Wbad-function-cast -Wc++-compat -Wdeclaration-after-statement
-Werror=declaration-after-statement -Wimplicit-function-declaration
-Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wnonnull -DDISABLE_GC_DEBUG=1 -DNDEBUG -O2 -g
-DHAS_GETTEXT -I./include -c -o t/src/warnings_2.o
t/src/warnings_2.c'
failed with exit code 1
<--
# Failed to build 't/src/warnings_2.o': t/src/warnings_2.c: In function
‘main’:
# t/src/warnings_2.c:15: error: dereferencing pointer to incomplete type
# Failed test 'Parrot_warn'
# at t/src/warnings.t line 56.
# Looks like you failed 1 test of 2.
t/src/warnings.t ............................ Dubious, test returned 1
(wstat 256, 0x100)
Failed 1/2 subtests
...
Test Summary Report
-------------------
t/src/warnings.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=339, Tests=11265, 76 wallclock secs ( 3.98 usr 0.73 sys + 68.54
cusr 28.41 csys = 101.66 CPU)
Result: FAIL
make: *** [test_core] Error 1
}}}
however doing an unoptimized build
{{{
perl Configure.pl --test
...
make -j test TEST_JOBS=5
...
All tests successful.
Files=339, Tests=11225, 83 wallclock secs ( 3.51 usr 0.62 sys + 92.83
cusr 26.43 csys = 123.39 CPU)
Result: PASS
}}}
BTW: note that the optimize build tests run about 9% faster even with it
running more tests
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1187>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets