Re: [請益] B::Bytecode compiler 有人用過嗎?
※ 引述《Neisseria (Neisseria)》之銘言:
: 我在 Debian Linux 上用 cpan 試裝這個套件,有裝成功
: 這個套件需要編譯一些 C 的東西,而且會用到一些 Perl 的標頭檔
: 在 Debian 上這個好解決,裝個 libperl-dev 系統就會自動去讀標頭檔位置了
: 不過在 Windows 上裝會比較麻煩,如果用 cpanm 沒有辦法設定標頭檔的話
: 可以還是要自己抓原始碼下來,自行安裝
: 假設用 Strawberry Perl 附 dmake,可能流程如下,請自行變化
: C:\> perl Makefile.pl LIB='/path/to/lib' INC='/path/to/include'
: C:\> dmake
: C:\> dmake test
: C:\> dmake install
: 不過,在 Windows 裝需要編譯 C 的 Perl 套件,實在是件吃力不討好的事
: 祝成功
: ※ 引述《dk1120 (Jason7123)》之銘言:
: : 最近在玩perl compiler 透過cpanm 安裝 B::Bytecode ,可是一直編譯失敗!
: : 請問有人試過嗎? 在哪個版本的perl? 指點一下迷津!
我試了perl 很多版本 5.14 ~ 5.18 ,都無法成功,到底是哪有有問題,指點一下明燈! 謝謝
系統版本:
Linux raspberrypi 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l
># perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for arm-linux-gnueabihf-thread-multi-64int
(with 89 registered patches, see perl -V for more detail)
以下是 make test 的結果:
Test Summary Report
-------------------
t/perldoc.t (Wstat: 1024 Tests: 7 Failed: 4)
Failed tests: 1-2, 4-5
Non-zero exit status: 4
Files=103, Tests=784, 4672 wallclock secs ( 2.58 usr 0.60 sys + 4565.77 cusr 113.85 csys = 4682.80 CPU)
Result: FAIL
Failed 1/103 test programs. 4/784 subtests failed.
Makefile:1205: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
make test 的詳細訊息結果:
[root@raspberrypi:/usr/src/perl/B-C-1.52]
╚># make test
make[1]: Entering directory '/usr/src/perl/B-C-1.52/ByteLoader'
Running Mkbootstrap for ByteLoader ()
chmod 644 "ByteLoader.bs"
No tests defined for ByteLoader extension.
make[1]: Leaving directory '/usr/src/perl/B-C-1.52/ByteLoader'
make[1]: Entering directory '/usr/src/perl/B-C-1.52/Stash'
Running Mkbootstrap for B::Stash ()
chmod 644 "Stash.bs"
No tests defined for B::Stash extension.
make[1]: Leaving directory '/usr/src/perl/B-C-1.52/Stash'
make[1]: Entering directory '/usr/src/perl/B-C-1.52/ByteLoader'
Manifying 2 pod documents
make[1]: Leaving directory '/usr/src/perl/B-C-1.52/ByteLoader'
make[1]: Entering directory '/usr/src/perl/B-C-1.52/Stash'
Manifying 1 pod document
make[1]: Leaving directory '/usr/src/perl/B-C-1.52/Stash'
Running Mkbootstrap for B::C ()
chmod 644 "C.bs"
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/asmdata.t ....... ok
t/assembler.t ..... ok
t/bblock.t ........ ok
t/bytecode.t ...... ok
t/c.t ............. ok
t/c_allow_opts.t .. ok
t/c_argv.t ........ ok
t/c_o1.t .......... skipped: Only if -d .git
t/c_o2.t .......... skipped: Only if -d .git
t/c_o3.t .......... ok
t/c_o4.t .......... skipped: Only if -d .git
t/cc.t ............ ok
t/cc_last.t ....... 1/4 Label not found for "last " at ccode_last_2cc.pl line 5.
t/cc_last.t ....... 3/4 Warning: Label not found at compile time for "last LOOP"
t/cc_last.t ....... ok
t/cc_o1.t ......... skipped: Only if -d .git
t/cc_o2.t ......... skipped: Only if -d .git
t/e_perlcc.t ...... ok
t/issue105.t ...... ok
t/issue130.t ...... skipped: lexical subs since 5.18
t/issue141.t ...... ok
t/issue143.t ...... ok
t/issue144.t ...... ok
t/issue148.t ...... ok
t/issue159.t ...... ok
t/issue169.t ...... ok
t/issue172.t ...... ok
t/issue183.t ...... ok
t/issue184.t ...... ok
t/issue185.t ...... ok
t/issue197.t ...... ok
t/issue200.t ...... ok
t/issue201.t ...... skipped: Only if -d .git
t/issue203.t ...... skipped: Only if -d .git
t/issue208.t ...... ok
t/issue211.t ...... skipped: under harness
t/issue212.t ...... ok
t/issue229.t ...... skipped: Only for author
t/issue232.t ...... ok
t/issue234.t ...... ok
t/issue235.t ...... ok
t/issue237.t ...... ok
t/issue238.t ...... ok
t/issue24.t ....... ok
t/issue240.t ...... ok
t/issue242.t ...... ok
t/issue245.t ...... ok
t/issue251.t ...... ok
t/issue256.t ...... ok
t/issue259.t ...... skipped: JSON::XS required for testing issue259
t/issue27.t ....... ok
t/issue272.t ...... ok
t/issue273.t ...... ok
t/issue274.t ...... pmop 0x0 not found in our B::C Regexp hash at blib/lib/B/C.pm line 2997.
pmop 0x0 not found in our B::C Regexp hash at blib/lib/B/C.pm line 2997.
ccode274i_1c_o3.c: In function ‘perl_init_aaaa’:
ccode274i_1c_o3.c:11374:35: warning: assignment from incompatible pointer type [enabled by default]
ccode274i_1c_o3.c:11451:35: warning: assignment from incompatible pointer type [enabled by default]
t/issue274.t ...... ok
t/issue281.t ...... ok
t/issue282.t ...... ok
t/issue29.t ....... 1/2 Segmentation fault
t/issue29.t ....... ok
t/issue293.t ...... skipped: Coro required for testing issue #293
t/issue301.t ...... ok
t/issue305.t ...... ok
t/issue308.t ...... ok
t/issue31.t ....... ok
t/issue312.t ...... ok
t/issue32.t ....... ok
t/issue330.t ...... ok
t/issue338.t ...... ok
t/issue34.t ....... ok
t/issue340.t ...... skipped: require Net::DNS and IO::Socket::INET6
t/issue348.t ...... ok
t/issue35.t ....... ok
t/issue350.t ...... skipped: Compile Moose only if -d .git
t/issue36.t ....... ok
t/issue368.t ...... skipped: EV required for testing issue #368
t/issue369.t ...... skipped: Coro and EV are required for testing issue #369
t/issue37.t ....... ok
t/issue38.t ....... ok
t/issue39.t ....... ok
t/issue42.t ....... ok
t/issue44.t ....... ok
t/issue45.t ....... skipped: Only if -d .git
t/issue46.t ....... ok
t/issue47.t ....... ok
t/issue48.t ....... ok
t/issue49.t ....... ok
t/issue50.t ....... ok
t/issue51.t ....... ok
t/issue52.t ....... ok
t/issue54.t ....... ok
t/issue59.t ....... ok
t/issue68.t ....... ok
t/issue71.t ....... ok
t/issue76.t ....... ok
t/issue81.t ....... ok
t/issue90.t ....... ok
t/issue93.t ....... ccode93ib.pl syntax OK
t/issue93.t ....... 1/9 Warning: Write BEGIN-block main::$out to FileHandle > &5
Warning: Read BEGIN-block main::$in from FileHandle < &6
ccode93ib_2c.pl syntax OK
t/issue93.t ....... 2/9 Warning: Write BEGIN-block main::$out to FileHandle > &5
Warning: Read BEGIN-block main::$in from FileHandle < &6
ccode93ib_3cc.pl syntax OK
t/issue93.t ....... 3/9 ccode93ig.pl syntax OK
ccode93ig_5c.pl syntax OK
t/issue93.t ....... 5/9 ccode93ig_6cc.pl syntax OK
t/issue93.t ....... 6/9 ccode93iw.pl syntax OK
t/issue93.t ....... 7/9 Warning: Write BEGIN-block main::$out to FileHandle > &4
ccode93iw_8c.pl syntax OK
t/issue93.t ....... 8/9 Warning: Write BEGIN-block main::$out to FileHandle > &4
ccode93iw_9cc.pl syntax OK
t/issue93.t ....... ok
t/issue95.t ....... skipped: IO::Socket::SSL required for testing issue95
t/issue96.t ....... ok
t/issue97.t ....... ok
t/issue98.t ....... ok
t/manifest.t ...... skipped: requires a git checkout and a unix for git and diff
t/modules.t ....... # -O3 --staticxs ok
# scanning installed modules
t/modules.t ....... 25/40 # 3 / 10 modules tested with B-C-1.52 - perl-5.014002
# pass 3 / 3 (100.0%)
# fail 0 / 3 (0.0%)
# todo 0 / 0 ()
# skip 7 / 10 (70.0% not installed)
t/modules.t ....... ok
t/o.t ............. ok
t/perldoc.t ....... blib/script/perlcc: /usr/bin/perldoc is a /bin/sh script, not perl
t/perldoc.t ....... 1/7
# Failed test './perldoc compiled'
# at t/perldoc.t line 49.
# Failed test 'same result'
# at t/perldoc.t line 82.
# got: undef
# expected: '/bin/sh: 0: Illegal option -S
# '
blib/script/perlcc: /usr/bin/perldoc is a /bin/sh script, not perl
t/perldoc.t ....... 4/7
# Failed test 'perldoc compiled'
# at t/perldoc.t line 94.
# Failed test 'same result'
# at t/perldoc.t line 102.
# got: undef
# expected: '/bin/sh: 0: Illegal option -S
# '
# Looks like you failed 4 tests of 7.
t/perldoc.t ....... Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/7 subtests
(less 3 skipped subtests: 0 okay)
t/stash.t ......... # got = main,re,mro,Regexp,Carp,PerlIO,Exporter,warnings,DB
# (after sorting)
# got = Carp DB Exporter main mro PerlIO re Regexp warnings
t/stash.t ......... 1/4 # (after perlio censorings)
# got = Carp DB Exporter main mro re Regexp warnings
# (after platform censorings)
# got = Carp DB Exporter main mro re Regexp warnings
t/stash.t ......... ok
t/z_pod.t ......... ok
Test Summary Report
-------------------
t/perldoc.t (Wstat: 1024 Tests: 7 Failed: 4)
Failed tests: 1-2, 4-5
Non-zero exit status: 4
Files=103, Tests=784, 4672 wallclock secs ( 2.58 usr 0.60 sys + 4565.77 cusr 113.85 csys = 4682.80 CPU)
Result: FAIL
Failed 1/103 test programs. 4/784 subtests failed.
Makefile:1205: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
╔[root@raspberrypi:/usr/src/perl/B-C-1.52]
╚>#
--
Sent from my Windows
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.192.136.152
※ 文章網址: https://www.ptt.cc/bbs/Perl/M.1442076072.A.FD9.html
→
09/13 06:00, , 1F
09/13 06:00, 1F
→
09/16 07:07, , 2F
09/16 07:07, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):
Perl 近期熱門文章
PTT數位生活區 即時熱門文章