takehaya / Sys-Ebpf

Sys::Ebpf is a pure-perl library to read, modify and load eBPF programs and attach them to various hooks in the Linux kernel.In other words eBPF Loader for written in Perl.
Other
32 stars 2 forks source link

Can't locate _h2ph_pre.ph in @INC #8

Open eserte opened 5 months ago

eserte commented 5 months ago

On some of my smokers the test suite fails:

Output from './Build test':

Hexadecimal number > 0xffffffff non-portable at t/00_ebpf_asm.t line 128.
t/00_ebpf_asm.t ................ ok
Can't locate _h2ph_pre.ph in @INC (did you run h2ph?) (@INC entries checked: lib /home/cpansand/.cpan/build/2024100413/Sys-Ebpf-0.03-0/blib/arch /home/cpansand/.cpan/build/2024100413/Sys-Ebpf-0.03-0/blib/lib /usr/perl5.40.0/lib/site_perl/5.40.0/aarch64-freebsd /usr/perl5.40.0/lib/site_perl/5.40.0 /usr/perl5.40.0/lib/5.40.0/aarch64-freebsd /usr/perl5.40.0/lib/5.40.0 .) at lib/Sys/Ebpf/Syscall/syscall.ph line 1.
Compilation failed in require at lib/Sys/Ebpf/Syscall.pm line 8.
Compilation failed in require at lib/Sys/Ebpf/Map.pm line 20.
BEGIN failed--compilation aborted at lib/Sys/Ebpf/Map.pm line 20.
Compilation failed in require at t/01_ebpf_create_map.t line 9.
BEGIN failed--compilation aborted at t/01_ebpf_create_map.t line 9.
t/01_ebpf_create_map.t ......... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
... etc ...
takehaya commented 5 months ago

Thank you for your comment. I think it's included in this code, but what kind of environment are you using? Can you check it?

https://github.com/takehaya/Sys-Ebpf/blob/9b8565188f0d391128af13941e8b009e0f7e6581/lib/Sys/Ebpf/Syscall/_h2ph_pre.ph