Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510820 - dev-lang/perl-5.18 fails tests with gcc-4.9
Summary: dev-lang/perl-5.18 fails tests with gcc-4.9
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 516738 (view as bug list)
Depends on:
Blocks: gcc-4.9
  Show dependency tree
 
Reported: 2014-05-20 04:58 UTC by Patrick Lauer
Modified: 2014-07-09 09:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2014-05-20 04:58:38 UTC
^M===(  162305;28  86382/?  5/5  9/? )====================================# '-9223372036854775808' ne '-9.22337203685478e+18',  -1.84467440737096e+19   => I - N P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -1.84467440737096e+19   => I - N P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9.22337203685478e+18   => I - N P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => I - N P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    9223372036854775808     => I - N P vs I - P
# Failed test 104 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => N - N P vs N - P
# Failed test 108 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => P - N P vs P - P
# Failed test 112 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -1.84467440737096e+19   => I - u P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -1.84467440737096e+19   => I - u P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9.22337203685478e+18   => I - u P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => I - u P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    9223372036854775808     => I - u P vs I - P
# Failed test 136 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => N - u P vs N - P
# Failed test 140 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => P - u P vs P - P
# Failed test 144 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -1.84467440737096e+19   => I - i P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -1.84467440737096e+19   => I - i P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9.22337203685478e+18   => I - i P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => I - i P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    9223372036854775808     => I - i P vs I - P
# Failed test 152 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => N - i P vs N - P
# Failed test 156 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => P - i P vs P - P
# Failed test 160 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -1.84467440737096e+19   => I - n P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -1.84467440737096e+19   => I - n P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9.22337203685478e+18   => I - n P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => I - n P vs I - P
# '-9223372036854775808' ne '-9.22337203685478e+18',    9223372036854775808     => I - n P vs I - P
# Failed test 168 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => N - n P vs N - P
# Failed test 172 - at op/numconvert.t line 247
# '-9223372036854775808' ne '-9.22337203685478e+18',    -9223372036854775808    => P - n P vs P - P
# Failed test 176 - at op/numconvert.t line 247
^M===(  163188;28  87264/?  5/5  9/?     1/1444 )=========================^M

[snip]

^M===(  187753;30  10/?   9943/14704  0/? )===============================# Failed test 84 - Lower bound accepted: -9223372036854775807 at op/range.t line 289
# Failed test 85 - Lower bound okay at op/range.t line 290
#      got undef
# expected "-9223372036854775807"
# Failed test 86 - Upper bound okay at op/range.t line 291
#      got undef
# expected "-9223372036854775797"
# Failed test 87 - Lower bound accepted: -9223372036854775806 at op/range.t line 289
# Failed test 88 - Lower bound okay at op/range.t line 290
#      got undef
# expected "-9223372036854775806"
# Failed test 89 - Upper bound okay at op/range.t line 291
#      got undef
# expected "-9223372036854775797"
# Failed test 90 - Lower bound accepted: -9223372036854775805 at op/range.t line 289
# Failed test 91 - Lower bound okay at op/range.t line 290
#      got undef
# expected "-9223372036854775805"
# Failed test 92 - Upper bound okay at op/range.t line 291
#      got undef
# expected "-9223372036854775797"
# Failed test 93 - Lower bound accepted: -9223372036854775804 at op/range.t line 289
# Failed test 94 - Lower bound okay at op/range.t line 290
#      got undef
# expected "-9223372036854775804"
# Failed test 95 - Upper bound okay at op/range.t line 291
#      got undef
# expected "-9223372036854775797"
^M===(  188057;30  10/?  10246/14704  0/?    1/141 )======================^M===(  188157;30  10/?  10279/14704  1/8   67/141 )======================^M                                                                        ^Mop/rand.t ......................................................... ok
^M===(  188185;30  10/?  10286/14704   81/141 )===========================# Failed test 99 - Upper bound accepted: -9223372036854775807 at op/range.t line 310
# Failed test 100 - Lower bound okay at op/range.t line 311
#      got undef
# expected "-9223372036854775807"
# Failed test 101 - Upper bound okay at op/range.t line 312
#      got undef
# expected "-9223372036854775807"
# Failed test 102 - Upper bound accepted: -9223372036854775806 at op/range.t line 310
# Failed test 103 - Lower bound okay at op/range.t line 311
#      got undef
# expected "-9223372036854775807"
# Failed test 104 - Upper bound okay at op/range.t line 312
#      got undef
# expected "-9223372036854775806"
# Failed test 105 - Upper bound accepted: -9223372036854775805 at op/range.t line 310
# Failed test 106 - Lower bound okay at op/range.t line 311
#      got undef
# expected "-9223372036854775807"
# Failed test 107 - Upper bound okay at op/range.t line 312
#      got undef
# expected "-9223372036854775805"
# Failed test 108 - Upper bound accepted: -9223372036854775804 at op/range.t line 310
# Failed test 109 - Lower bound okay at op/range.t line 311
#      got undef
# expected "-9223372036854775807"
# Failed test 110 - Upper bound okay at op/range.t line 312
#      got undef
# expected "-9223372036854775804"
# Failed test 111 - Range accepted at op/range.t line 330
^M                                                                        ^Mop/range.t ........................................................ Failed 25/141 subtests
Comment 1 Patrick Lauer gentoo-dev 2014-05-20 04:59:03 UTC
Test Summary Report
-------------------
op/numconvert.t                                                 (Wstat: 0 Tests: 1444 Failed: 12)
  Failed tests:  104, 108, 112, 136, 140, 144, 152, 156
                160, 168, 172, 176
op/range.t                                                      (Wstat: 0 Tests: 141 Failed: 25)
  Failed tests:  84-95, 99-111
Files=2394, Tests=675719, 222 wallclock secs (59.50 usr  9.55 sys + 372.72 cusr 41.82 csys = 483.59 CPU)
Result: FAIL
makefile:958: recipe for target 'test_harness' failed
make: *** [test_harness] Error 37
 * ERROR: dev-lang/perl-5.18.2::gentoo failed (test phase):

Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde, gcc-4.9.0, glibc-2.19, 3.14.2-gentoo x86_64)
=================================================================
System uname: Linux-3.14.2-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7919012 total,   1526340 free
KiB Swap:   25165812 total,  25150752 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2, 4.9.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo x-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/overlay"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp openvg pam pango pcre pdf phonon plasma png policykit ppds python qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification svg tcl tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xa xcb xcomposite xinerama xml xscreensaver xv xvfb xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 2 Vladimir Smirnov (RETIRED) gentoo-dev 2014-05-20 09:36:15 UTC
Please, attach build.log as files.
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-05-20 09:55:49 UTC
can you please attach full build.log ?
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-05-20 10:03:45 UTC
I recall seeing this bug upstream somewhere, and this looks like a possible example: https://rt.perl.org/Public/Bug/Display.html?id=121505 

Something to try would be forcing -fwrapv , which is basically what upstream are doing with 5.20
Comment 5 Vladimir Smirnov (RETIRED) gentoo-dev 2014-05-20 10:24:26 UTC
Then maybe it'll be better to wait for perl 5.20 release and try to put it into ~ as fast as possible?
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-07-09 09:18:56 UTC
*** Bug 516738 has been marked as a duplicate of this bug. ***
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-07-09 09:24:22 UTC
Just updating with more context:

https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perldelta.pod#Configuration-and-Compilation

> By default, gcc 4.9 does some optimizations that break perl. The -fwrapv option disables those optimizations (and probably others), so for gcc 4.3 and later (since the there might be similar problems lurking on older versions too, but -fwrapv was broken before 4.3, and the optimizations probably won't go away), Configure now adds -fwrapv unless the user requests -fno-wrapv, which disables -fwrapv, or -fsanitize=undefined, which turns the overflows -fwrapv ignores into runtime errors.

This kinda means 5.18 is actually broken on gcc 5.9 without modification.