{"action":"created","issue":{"url":"https://api.github.com/repos/karenetheridge/B-Hooks-Parser/issues/1","labels_url":"https://api.github.com/repos/karenetheridge/B-Hooks-Parser/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/karenetheridge/B-Hooks-Parser/issues/1/comments","events_url":"https://api.github.com/repos/karenetheridge/B-Hooks-Parser/issues/1/events","html_url":"https://github.com/karenetheridge/B-Hooks-Parser/pull/1","id":95881654,"number":1,"title":"Bug occurs when the clang & -O2","user":{"login":"bokutin","id":158396,"avatar_url":"https://avatars.githubusercontent.com/u/158396?v=3","gravatar_id":"","url":"https://api.github.com/users/bokutin","html_url":"https://github.com/bokutin","followers_url":"https://api.github.com/users/bokutin/followers","following_url":"https://api.github.com/users/bokutin/following{/other_user}","gists_url":"https://api.github.com/users/bokutin/gists{/gist_id}","starred_url":"https://api.github.com/users/bokutin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bokutin/subscriptions","organizations_url":"https://api.github.com/users/bokutin/orgs","repos_url":"https://api.github.com/users/bokutin/repos","events_url":"https://api.github.com/users/bokutin/events{/privacy}","received_events_url":"https://api.github.com/users/bokutin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-19T03:41:22Z","updated_at":"2015-07-21T00:39:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/karenetheridge/B-Hooks-Parser/pulls/1","html_url":"https://github.com/karenetheridge/B-Hooks-Parser/pull/1","diff_url":"https://github.com/karenetheridge/B-Hooks-Parser/pull/1.diff","patch_url":"https://github.com/karenetheridge/B-Hooks-Parser/pull/1.patch"},"body":"Hello.\r\n\r\nI encounter the bug at Hook::AfterRuntime on FreeBSD 10.\r\nPerl process is not the end, core dump file is output.\r\nIn addition, If it make test in /usr/ports/devel/p5-B-Hooks-Parser/, the test will fail.\r\n\r\nAfter trial and error, it was found that the test fails in the case of a clang & useithreads.\r\nI wrote a patch.\r\n\r\nIt may have been associated with https://rt.cpan.org/Public/Bug/Display.html?id=94463\r\n\r\nAlthough it was also thought to modify the ports file (/usr/ports/devel/p5-B-Hooks-Parser/Makefile) side,\r\nalso have been reported in the above ticket, better to cope with Perl side I thought it was good.\r\n\r\nIf there is no problem, please merge.\r\n\r\nCheers\r\nTomohiro Hosaka\r\n\r\nmake test log\r\n\r\n\tScript started on Sun Jul 19 12:05:50 2015\r\n\troot # uname -a\r\n\tFreeBSD af5b5a3f-2b96-11e5-8d10-0025229f7519 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64\r\n\troot # pwd\r\n\t/usr/ports/devel/p5-B-Hooks-Parser\r\n\troot # make -d x test\r\n\t+ [ -f /var/db/pkg/vuln.xml ]\r\n\t+ [ -x /usr/local/sbin/pkg-static ]\r\n\t+ /usr/local/sbin/pkg-static audit p5-B-Hooks-Parser-0.13_2\r\n\t+ vlist='0 problem(s) in the installed packages found.'\r\n\t+ [ '0 problem(s) in the installed packages found.' = '0 problem(s) in the installed packages found.' ]\r\n\t+ vlist=''\r\n\t+ [ -n '' ]\r\n\t+ /usr/bin/env dp_RAWDEPENDS=/usr/local/sbin/pkg:/usr/ports/ports-mgmt/pkg dp_DEPTYPE=PKG_DEPENDS dp_DEPENDS_TARGET=install dp_DEPENDS_PRECLEAN= dp_DEPENDS_CLEAN= dp_DEPENDS_ARGS= dp_USE_PACKAGE_DEPENDS= dp_USE_PACKAGE_DEPENDS_ONLY= 'dp_PKG_ADD=/usr/local/sbin/pkg-static add' 'dp_PKG_INFO=/usr/local/sbin/pkg-static info -g' dp_WRKDIR=/usr/ports/devel/p5-B-Hooks-Parser/work dp_PKGNAME=p5-B-Hooks-Parser-0.13_2 dp_STRICT_DEPENDS= dp_LOCALBASE=/usr/local 'dp_LIB_DIRS=/lib /usr/lib /usr/local/lib' dp_SH=/bin/sh dp_SCRIPTSDIR=/usr/ports/Mk/Scripts dp_PORTSDIR=/usr/ports dp_MAKE=make /bin/sh /usr/ports/Mk/Scripts/do-depends.sh\r\n\t===>   p5-B-Hooks-Parser-0.13_2 depends on file: /usr/local/sbin/pkg - found\r\n\t+ cd /usr/ports/distfiles/\r\n\t+ _MASTER_SITES_DEFAULT='http://cpan.metacpan.org/modules/by-module/B/ http://www.cpan.org/modules/by-module/B/ ftp://ftp.cpan.org/pub/CPAN/modules/by-module/B/ http://www.cpan.dk/modules/by-module/B/ ftp://ftp.kddlabs.co.jp/lang/perl/CPAN/modules/by-module/B/ http://ftp.jaist.ac.jp/pub/CPAN/modules/by-module/B/ ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/B/ ftp://ftp.mirrorservice.org/sites/cpan.perl.org/CPAN/modules/by-module/B/ ftp://ftp.auckland.ac.nz/pub/perl/CPAN/modules/by-module/B/ http://backpan.perl.org/modules/by-module/B/ ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/B/ http://ftp.twaren.net/Unix/Lang/CPAN/modules/by-module/B/ ftp://ftp.cpan.org/pub/CPAN/modules/by-module/B/ http://www.cpan.dk/modules/by-module/B/'\r\n\t+ file=B-Hooks-Parser-0.13.tar.gz\r\n\t+ [ B-Hooks-Parser-0.13.tar.gz = B-Hooks-Parser-0.13.tar.gz ]\r\n\t+ select=''\r\n\t+ force_fetch=false\r\n\t+ filebasename=B-Hooks-Parser-0.13.tar.gz\r\n\t+ [ ! -f B-Hooks-Parser-0.13.tar.gz -a ! -f B-Hooks-Parser-0.13.tar.gz -o false = true ]\r\n\t+ echo '===> Fetching all distfiles required by p5-B-Hooks-Parser-0.13_2 for building'\r\n\t===> Fetching all distfiles required by p5-B-Hooks-Parser-0.13_2 for building\r\n\t+ echo '===>  Extracting for p5-B-Hooks-Parser-0.13_2'\r\n\t===>  Extracting for p5-B-Hooks-Parser-0.13_2\r\n\t+ SHA256=/sbin/sha256\r\n\t+ eval 'alg_executable=$SHA256'\r\n\t+ alg_executable=/sbin/sha256\r\n\t+ [ -z /sbin/sha256 ]\r\n\t+ set -e\r\n\t+ SHA256=/sbin/sha256\r\n\t+ [ -f /usr/ports/devel/p5-B-Hooks-Parser/distinfo ]\r\n\t+ cd /usr/ports/distfiles\r\n\t+ OK=''\r\n\t+ ignored=true\r\n\t+ _file=B-Hooks-Parser-0.13.tar.gz\r\n\t+ ignore=false\r\n\t+ eval 'alg_executable=$SHA256'\r\n\t+ alg_executable=/sbin/sha256\r\n\t+ [ /sbin/sha256 != NO ]\r\n\t+ /sbin/sha256\r\n\t+ MKSUM=f6c838e59f52e21ccc0b2c9d85d6f7ba33119098ad3a261698b01690c2619646\r\n\t+ file=B-Hooks-Parser-0.13.tar.gz\r\n\t+ [ '(' -n '' -a -n '' ')' -o ! -f /usr/ports/devel/p5-B-Hooks-Parser/distinfo ]\r\n\t+ DIR=''\r\n\t+ /usr/bin/awk -v alg=SHA256 -v file=B-Hooks-Parser-0.13.tar.gz '$1 == alg && $2 == \"(\" file \")\" {print $4}' /usr/ports/devel/p5-B-Hooks-Parser/distinfo\r\n\t+ CKSUM=f6c838e59f52e21ccc0b2c9d85d6f7ba33119098ad3a261698b01690c2619646\r\n\t+ [ false = false -a -z f6c838e59f52e21ccc0b2c9d85d6f7ba33119098ad3a261698b01690c2619646 ]\r\n\t+ [ false = false ]\r\n\t+ match=false\r\n\t+ [ f6c838e59f52e21ccc0b2c9d85d6f7ba33119098ad3a261698b01690c2619646 = f6c838e59f52e21ccc0b2c9d85d6f7ba33119098ad3a261698b01690c2619646 ]\r\n\t+ match=true\r\n\t+ break\r\n\t+ [ true = true ]\r\n\t+ echo '=> SHA256 Checksum OK for B-Hooks-Parser-0.13.tar.gz.'\r\n\t=> SHA256 Checksum OK for B-Hooks-Parser-0.13.tar.gz.\r\n\t+ ignored=false\r\n\t+ [ false = true ]\r\n\t+ [ true = retry ]\r\n\t+ [ true != true -a 1 -eq 0 ]\r\n\t+ [ true != true ]\r\n\t+ cd /usr/ports/devel/p5-B-Hooks-Parser/work\r\n\t+ /usr/bin/tar -xf /usr/ports/distfiles//B-Hooks-Parser-0.13.tar.gz --no-same-owner --no-same-permissions\r\n\t+ [ 0 = 0 ]\r\n\t+ /bin/chmod -R ug-s /usr/ports/devel/p5-B-Hooks-Parser/work\r\n\t+ /usr/sbin/chown -R 0:0 /usr/ports/devel/p5-B-Hooks-Parser/work\r\n\t+ echo '===>  Patching for p5-B-Hooks-Parser-0.13_2'\r\n\t===>  Patching for p5-B-Hooks-Parser-0.13_2\r\n\t+ set -e\r\n\t+ [ -d /usr/ports/devel/p5-B-Hooks-Parser/files ]\r\n\t+ /usr/bin/env 'dp_RAWDEPENDS=p5-B-Hooks-OP-Check>=0:/usr/ports/devel/p5-B-Hooks-OP-Check  p5-ExtUtils-Depends>=0.302:/usr/ports/devel/p5-ExtUtils-Depends /usr/local/bin/perl5.18.4:/usr/ports/lang/perl5.18' dp_DEPTYPE=BUILD_DEPENDS dp_DEPENDS_TARGET=install dp_DEPENDS_PRECLEAN= dp_DEPENDS_CLEAN= dp_DEPENDS_ARGS= dp_USE_PACKAGE_DEPENDS= dp_USE_PACKAGE_DEPENDS_ONLY= 'dp_PKG_ADD=/usr/local/sbin/pkg-static add' 'dp_PKG_INFO=/usr/local/sbin/pkg-static info -g' dp_WRKDIR=/usr/ports/devel/p5-B-Hooks-Parser/work dp_PKGNAME=p5-B-Hooks-Parser-0.13_2 dp_STRICT_DEPENDS= dp_LOCALBASE=/usr/local 'dp_LIB_DIRS=/lib /usr/lib /usr/local/lib' dp_SH=/bin/sh dp_SCRIPTSDIR=/usr/ports/Mk/Scripts dp_PORTSDIR=/usr/ports dp_MAKE=make /bin/sh /usr/ports/Mk/Scripts/do-depends.sh\r\n\t===>   p5-B-Hooks-Parser-0.13_2 depends on package: p5-B-Hooks-OP-Check>=0 - found\r\n\t===>   p5-B-Hooks-Parser-0.13_2 depends on package: p5-ExtUtils-Depends>=0.302 - found\r\n\t===>   p5-B-Hooks-Parser-0.13_2 depends on file: /usr/local/bin/perl5.18.4 - found\r\n\t+ echo '===>  Configuring for p5-B-Hooks-Parser-0.13_2'\r\n\t===>  Configuring for p5-B-Hooks-Parser-0.13_2\r\n\t+ /usr/bin/find /usr/ports/devel/p5-B-Hooks-Parser/work -type f '(' -name config.libpath -o -name config.rpath -o -name configure -o -name libtool.m4 -o -name ltconfig -o -name libtool -o -name aclocal.m4 -o -name acinclude.m4 ')'\r\n\t+ [ -f /usr/ports/devel/p5-B-Hooks-Parser/scripts/configure ]\r\n\t+ cd /usr/ports/devel/p5-B-Hooks-Parser/work/B-Hooks-Parser-0.13\r\n\t+ /usr/bin/env ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl XDG_DATA_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work XDG_CONFIG_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work HOME=/usr/ports/devel/p5-B-Hooks-Parser/work SHELL=/bin/sh CONFIG_SHELL=/bin/sh PERL_EXTUTILS_AUTOINSTALL=--skipdeps /usr/local/bin/perl5.18.4 ./Makefile.PL INSTALLDIRS=site CC=cc 'CCFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing' PREFIX=/usr/local INSTALLPRIVLIB=/usr/local/lib INSTALLARCHLIB=/usr/local/lib\r\n\tChecking if your kit is complete...\r\n\tLooks good\r\n\tWriting Makefile for B::Hooks::Parser\r\n\tWriting MYMETA.yml and MYMETA.json\r\n\t+ cd /usr/ports/devel/p5-B-Hooks-Parser/work/B-Hooks-Parser-0.13\r\n\t+ /usr/local/bin/perl5.18.4 -pi -e 's/ doc_(perl|site|\\$\\(INSTALLDIRS\\))_install$//' Makefile\r\n\t+ echo '===>  Building for p5-B-Hooks-Parser-0.13_2'\r\n\t===>  Building for p5-B-Hooks-Parser-0.13_2\r\n\t+ cd /usr/ports/devel/p5-B-Hooks-Parser/work/B-Hooks-Parser-0.13\r\n\t+ /usr/bin/env XDG_DATA_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work XDG_CONFIG_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work HOME=/usr/ports/devel/p5-B-Hooks-Parser/work NO_PIE=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR=/usr/lib CC=cc 'CFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing' CPP=cpp CPPFLAGS= 'LDFLAGS= -fstack-protector' LIBS= CXX=c++ 'CXXFLAGS=-O2 -pipe -fstack-protector -fno-strict-aliasing ' MANPREFIX=/usr/local 'BSD_INSTALL_PROGRAM=install  -s -m 555' 'BSD_INSTALL_LIB=install  -s -m 444' 'BSD_INSTALL_SCRIPT=install  -m 555' 'BSD_INSTALL_DATA=install  -m 0644' 'BSD_INSTALL_MAN=install  -m 444' /usr/bin/make -f Makefile -j8 all\r\n\t--- blib/lib/B/Hooks/.exists ---\r\n\t--- blib/arch/.exists ---\r\n\t--- blib/lib/auto/B/Hooks/Parser/.exists ---\r\n\t--- blib/arch/auto/B/Hooks/Parser/.exists ---\r\n\t--- blib/bin/.exists ---\r\n\t--- blib/script/.exists ---\r\n\t--- blib/man1/.exists ---\r\n\t--- blib/man3/.exists ---\r\n\t--- blib/lib/B/Hooks/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/lib/B/Hooks\r\n\t--- blib/arch/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/arch\r\n\t--- blib/lib/auto/B/Hooks/Parser/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/lib/auto/B/Hooks/Parser\r\n\t--- blib/arch/auto/B/Hooks/Parser/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/arch/auto/B/Hooks/Parser\r\n\t--- blib/bin/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/bin\r\n\t--- blib/script/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/script\r\n\t--- blib/man1/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/man1\r\n\t--- blib/man3/.exists ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command -e mkpath -- blib/man3\r\n\t+ + + + + + + + + + + + + + + + --- subdirs ---\r\n\t--- Parser.c ---\r\n\t--- pm_to_blib ---\r\n\t+ true\r\n\t+ --- blibdirs ---\r\n\t--- Parser.bs ---\r\n\t--- Parser.c ---\r\n\t/usr/local/bin/perl5.18.4 /usr/local/lib/perl5/5.18/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.18/ExtUtils/typemap  Parser.xs > Parser.xsc && mv Parser.xsc Parser.c\r\n\t+ /usr/local/bin/perl5.18.4 /usr/local/lib/perl5/5.18/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.18/ExtUtils/typemap Parser.xs\r\n\t--- pm_to_blib ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\\''blib/lib/auto'\\'', q[], '\\''755'\\'')' -- hook_parser.h blib/arch/B/Hooks/Parser/Install/hook_parser.h lib/B/Hooks/Parser.pm blib/lib/B/Hooks/Parser.pm\r\n\t--- blibdirs ---\r\n\t+ true\r\n\t+ --- config ---\r\n\t+ echo 'Running Mkbootstrap for B::Hooks::Parser ()'\r\n\tRunning Mkbootstrap for B::Hooks::Parser ()\r\n\t+ + + true\r\n\t+ --- Parser.bs ---\r\n\tchmod 644 Parser.bs\r\n\t--- blib/arch/auto/B/Hooks/Parser/Parser.bs ---\r\n\t+ rm -rf blib/arch/auto/B/Hooks/Parser/Parser.bs\r\n\t+ + cp Parser.bs blib/arch/auto/B/Hooks/Parser/Parser.bs\r\n\tchmod 644 blib/arch/auto/B/Hooks/Parser/Parser.bs\r\n\t--- pm_to_blib ---\r\n\tcp hook_parser.h blib/arch/B/Hooks/Parser/Install/hook_parser.h\r\n\tcp lib/B/Hooks/Parser.pm blib/lib/B/Hooks/Parser.pm\r\n\t+ + --- Parser.c ---\r\n\t+ mv Parser.xsc Parser.c\r\n\t--- Parser.o ---\r\n\tcc -c  -I/usr/local/lib/perl5/site_perl/mach/5.18/B/Hooks/OP/Check/Install  -O2 -pipe  -fstack-protector -fno-strict-aliasing -g    -DVERSION=\\\"0.13\\\"  -DXS_VERSION=\\\"0.13\\\" -DPIC -fPIC \"-I/usr/local/lib/perl5/5.18/mach/CORE\"   Parser.c\r\n\t+ cc -c -I/usr/local/lib/perl5/site_perl/mach/5.18/B/Hooks/OP/Check/Install -O2 -pipe -fstack-protector -fno-strict-aliasing -g '-DVERSION=\"0.13\"' '-DXS_VERSION=\"0.13\"' -DPIC -fPIC -I/usr/local/lib/perl5/5.18/mach/CORE Parser.c\r\n\tIn file included from Parser.xs:9:\r\n\t./stolen_chunk_of_toke.c:350:38: warning: 'Perl_is_utf8_mark' is deprecated [-Wdeprecated-declarations]\r\n\t            while (UTF8_IS_CONTINUED(*t) && is_utf8_mark((U8*)t))\r\n\t                                            ^\r\n\t/usr/local/lib/perl5/5.18/mach/CORE/embed.h:275:26: note: expanded from macro 'is_utf8_mark'\r\n\t#define is_utf8_mark(a)         Perl_is_utf8_mark(aTHX_ a)\r\n\t                                ^\r\n\t/usr/local/lib/perl5/5.18/mach/CORE/proto.h:1974:20: note: 'Perl_is_utf8_mark' declared here\r\n\tPERL_CALLCONV bool      Perl_is_utf8_mark(pTHX_ const U8 *p)\r\n\t                        ^\r\n\tIn file included from Parser.xs:9:\r\n\t./stolen_chunk_of_toke.c:546:13: warning: 'Perl_utf8_to_uvchr' is deprecated [-Wdeprecated-declarations]\r\n\t        termcode = utf8_to_uvchr((U8*)s, &termlen);\r\n\t                   ^\r\n\t/usr/local/lib/perl5/5.18/mach/CORE/embed.h:691:28: note: expanded from macro 'utf8_to_uvchr'\r\n\t#define utf8_to_uvchr(a,b)      Perl_utf8_to_uvchr(aTHX_ a,b)\r\n\t                                ^\r\n\t/usr/local/lib/perl5/5.18/mach/CORE/proto.h:4696:18: note: 'Perl_utf8_to_uvchr' declared here\r\n\tPERL_CALLCONV UV        Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen)\r\n\t                        ^\r\n\t2 warnings generated.\r\n\t--- blib/arch/auto/B/Hooks/Parser/Parser.so ---\r\n\trm -f blib/arch/auto/B/Hooks/Parser/Parser.so\r\n\t+ rm -f blib/arch/auto/B/Hooks/Parser/Parser.so\r\n\tcc  -shared  -L/wrkdirs/usr/ports/lang/perl5.18/work/perl-5.18.4 -L/usr/local/lib/perl5/5.18/mach/CORE -Wl,-rpath=/usr/local/lib/perl5/5.18/mach/CORE -lperl -L/usr/local/lib -fstack-protector Parser.o  -o blib/arch/auto/B/Hooks/Parser/Parser.so \t    \t \r\n\t+ cc -shared -L/wrkdirs/usr/ports/lang/perl5.18/work/perl-5.18.4 -L/usr/local/lib/perl5/5.18/mach/CORE -Wl,-rpath=/usr/local/lib/perl5/5.18/mach/CORE -lperl -L/usr/local/lib -fstack-protector Parser.o -o blib/arch/auto/B/Hooks/Parser/Parser.so\r\n\tchmod 755 blib/arch/auto/B/Hooks/Parser/Parser.so\r\n\t+ chmod 755 blib/arch/auto/B/Hooks/Parser/Parser.so\r\n\t--- dynamic ---\r\n\t+ true\r\n\t+ --- linkext ---\r\n\t+ true\r\n\t+ --- pure_all ---\r\n\t+ true\r\n\t+ --- manifypods ---\r\n\t+ /usr/local/bin/perl5.18.4 -MExtUtils::Command::MM -e pod2man -- --section=3 --perm_rw=644 lib/B/Hooks/Parser.pm blib/man3/B::Hooks::Parser.3\r\n\tManifying blib/man3/B::Hooks::Parser.3\r\n\t+ --- all ---\r\n\t+ true\r\n\t+ cd /usr/ports/devel/p5-B-Hooks-Parser/work/B-Hooks-Parser-0.13/ && /usr/bin/env XDG_DATA_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work  XDG_CONFIG_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work  HOME=/usr/ports/devel/p5-B-Hooks-Parser/work NO_PIE=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR=\"/usr/lib\"  CC=\"cc\" CFLAGS=\"-O2 -pipe  -fstack-protector -fno-strict-aliasing\"  CPP=\"cpp\" CPPFLAGS=\"\"  LDFLAGS=\" -fstack-protector\" LIBS=\"\"  CXX=\"c++\" CXXFLAGS=\"-O2 -pipe -fstack-protector -fno-strict-aliasing \"  MANPREFIX=\"/usr/local\" BSD_INSTALL_PROGRAM=\"install  -s -m 555\"  BSD_INSTALL_LIB=\"install  -s -m 444\"  BSD_INSTALL_SCRIPT=\"install  -m 555\"  BSD_INSTALL_DATA=\"install  -m 0644\"  BSD_INSTALL_MAN=\"install  -m 444\" /usr/bin/make DESTDIR=/usr/ports/devel/p5-B-Hooks-Parser/work/stage test\r\n\t+ cd /usr/ports/devel/p5-B-Hooks-Parser/work/B-Hooks-Parser-0.13/\r\n\t+ /usr/bin/env XDG_DATA_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work XDG_CONFIG_HOME=/usr/ports/devel/p5-B-Hooks-Parser/work HOME=/usr/ports/devel/p5-B-Hooks-Parser/work NO_PIE=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR=/usr/lib CC=cc 'CFLAGS=-O2 -pipe  -fstack-protector -fno-strict-aliasing' CPP=cpp CPPFLAGS= 'LDFLAGS= -fstack-protector' LIBS= CXX=c++ 'CXXFLAGS=-O2 -pipe -fstack-protector -fno-strict-aliasing ' MANPREFIX=/usr/local 'BSD_INSTALL_PROGRAM=install  -s -m 555' 'BSD_INSTALL_LIB=install  -s -m 444' 'BSD_INSTALL_SCRIPT=install  -m 555' 'BSD_INSTALL_DATA=install  -m 0644' 'BSD_INSTALL_MAN=install  -m 444' /usr/bin/make DESTDIR=/usr/ports/devel/p5-B-Hooks-Parser/work/stage test\r\n\tPERL_DL_NONLAZY=1 /usr/local/bin/perl5.18.4 \"-MExtUtils::Command::MM\" \"-e\" \"test_harness(0, 'blib/lib', 'blib/arch')\" t/*.t\r\n\t+ PERL_DL_NONLAZY=1 /usr/local/bin/perl5.18.4 -MExtUtils::Command::MM -e 'test_harness(0, '\\''blib/lib'\\'', '\\''blib/arch'\\'')' t/00-report-prereqs.t t/basic.t t/set_linestr.t t/toke.t\r\n\tt/00-report-prereqs.t .. # \r\n\t# Versions for all modules listed in MYMETA.json (including optional ones):\r\n\t# \r\n\t# === Configure Requires ===\r\n\t# \r\n\t#     Module               Want  Have\r\n\t#     ------------------- ----- -----\r\n\t#     B::Hooks::OP::Check  0.18  0.19\r\n\t#     ExtUtils::Depends   0.302 0.404\r\n\t#     ExtUtils::MakeMaker   any  6.66\r\n\t# \r\n\t# === Build Requires ===\r\n\t# \r\n\t#     Module              Want Have\r\n\t#     ------------------- ---- ----\r\n\t#     ExtUtils::MakeMaker  any 6.66\r\n\t# \r\n\t# === Test Requires ===\r\n\t# \r\n\t#     Module               Want     Have\r\n\t#     -------------------- ---- --------\r\n\t#     B::Hooks::EndOfScope  any     0.15\r\n\t#     ExtUtils::MakeMaker   any     6.66\r\n\t#     File::Spec            any     3.40\r\n\t#     Test::Exception       any     0.40\r\n\t#     Test::More            any 1.001014\r\n\t# \r\n\t# === Test Recommends ===\r\n\t# \r\n\t#     Module         Want     Have\r\n\t#     ---------- -------- --------\r\n\t#     CPAN::Meta 2.120900 2.120921\r\n\t# \r\n\t# === Runtime Requires ===\r\n\t# \r\n\t#     Module              Want  Have\r\n\t#     ------------------- ---- -----\r\n\t#     B::Hooks::OP::Check  any  0.19\r\n\t#     DynaLoader           any  1.18\r\n\t#     parent               any 0.234\r\n\t#     strict               any  1.07\r\n\t#     warnings             any  1.18\r\n\t# \r\n\t# === Other Modules ===\r\n\t# \r\n\t#     Module           Have\r\n\t#     ------------- -------\r\n\t#     Pod::Coverage missing\r\n\t# \r\n\tt/00-report-prereqs.t .. ok\r\n\tt/basic.t .............. ok\r\n\tt/set_linestr.t ........ Failed 2/2 subtests \r\n\tt/toke.t ............... ok\r\n\t\r\n\tTest Summary Report\r\n\t-------------------\r\n\tt/set_linestr.t      (Wstat: 139 Tests: 0 Failed: 0)\r\n\t  Non-zero wait status: 139\r\n\t  Parse errors: Bad plan.  You planned 2 tests but ran 0.\r\n\tFiles=4, Tests=13,  8 wallclock secs ( 0.04 usr  0.02 sys +  7.93 cusr  0.05 csys =  8.04 CPU)\r\n\tResult: FAIL\r\n\tFailed 1/4 test programs. 0/13 subtests failed.\r\n\t*** Error code 255\r\n\t\r\n\tStop.\r\n\tmake[1]: stopped in /usr/ports/devel/p5-B-Hooks-Parser/work/B-Hooks-Parser-0.13\r\n\t*** Error code 1 (ignored)\r\n\troot #\r\n\t\r\n\tScript done on Sun Jul 19 12:06:41 2015\r\n\r\n\r\nIf appropriate to modify the ports file side\r\n\r\n\tdiff --git a/devel/p5-B-Hooks-Parser/Makefile b/devel/p5-B-Hooks-Parser/Makefile\r\n\tindex 83e89ff..f85e360 100644\r\n\t--- a/devel/p5-B-Hooks-Parser/Makefile\r\n\t+++ b/devel/p5-B-Hooks-Parser/Makefile\r\n\t@@ -3,7 +3,7 @@\r\n\r\n\t PORTNAME=      B-Hooks-Parser\r\n\t PORTVERSION=   0.13\r\n\t-PORTREVISION=  1\r\n\t+PORTREVISION=  2\r\n\t CATEGORIES=    devel perl5\r\n\t MASTER_SITES=  CPAN\r\n\t PKGNAMEPREFIX= p5-\r\n\t@@ -17,10 +17,21 @@ RUN_DEPENDS=        p5-B-Hooks-OP-Check>=0:${PORTSDIR}/devel/p5-B-Hooks-OP-Check\r\n\t TEST_DEPENDS=  p5-B-Hooks-EndOfScope>=0.05:${PORTSDIR}/devel/p5-B-Hooks-EndOfScope \\\r\n\t\t\tp5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception\r\n\r\n\t-USES=          perl5\r\n\t+USES=          perl5 compiler\r\n\t USE_PERL5=     configure\r\n\r\n\t+.include <bsd.port.pre.mk>\r\n\t+\r\n\t+.if ${COMPILER_TYPE} == clang\r\n\t+.if exists(${PERL})\r\n\t+PERL_THREADS!=  ${PERL} -V::useithreads\r\n\t+.if ${PERL_THREADS} == \"'define';\"\r\n\t+CFLAGS+=       -O0\r\n\t+.endif\r\n\t+.endif\r\n\t+.endif\r\n\t+\r\n\t post-install:\r\n\t\t${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/Hooks/Parser/Parser.so\r\n\r\n\t-.include <bsd.port.mk>\r\n\t+.include <bsd.port.post.mk>"},"comment":{"url":"https://api.github.com/repos/karenetheridge/B-Hooks-Parser/issues/comments/123110515","html_url":"https://github.com/karenetheridge/B-Hooks-Parser/pull/1#issuecomment-123110515","issue_url":"https://api.github.com/repos/karenetheridge/B-Hooks-Parser/issues/1","id":123110515,"user":{"login":"bokutin","id":158396,"avatar_url":"https://avatars.githubusercontent.com/u/158396?v=3","gravatar_id":"","url":"https://api.github.com/users/bokutin","html_url":"https://github.com/bokutin","followers_url":"https://api.github.com/users/bokutin/followers","following_url":"https://api.github.com/users/bokutin/following{/other_user}","gists_url":"https://api.github.com/users/bokutin/gists{/gist_id}","starred_url":"https://api.github.com/users/bokutin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bokutin/subscriptions","organizations_url":"https://api.github.com/users/bokutin/orgs","repos_url":"https://api.github.com/users/bokutin/repos","events_url":"https://api.github.com/users/bokutin/events{/privacy}","received_events_url":"https://api.github.com/users/bokutin/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T00:39:37Z","updated_at":"2015-07-21T00:39:37Z","body":"Even in linux environment, it is going the same problem with the use clang and -O2.\r\nhttp://matrix.cpantesters.org/?dist=B-Hooks-Parser+0.12\r\n\r\nDistributions have enabled A by default will not be a small number. . ."}}