Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test phase fails for 2.3.0 #1

Open
drook opened this issue Oct 1, 2024 · 1 comment
Open

test phase fails for 2.3.0 #1

drook opened this issue Oct 1, 2024 · 1 comment

Comments

@drook
Copy link

drook commented Oct 1, 2024

Env:

FreeBSD bsdrookie.norma.com. 13.2-RELEASE-p3 FreeBSD 13.2-RELEASE-p3 releng/13.2-n254633-a1c915cc75c GENERIC amd64

This is perl 5, version 38, subversion 2 (v5.38.2) built for amd64-freebsd-thread-multi

libcue-2.3.0

GNU Make 4.4.1
Built for amd64-portbld-freebsd13.2

gmake ran fine, tests fail:

> gmake test
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Libcue.bs blib/arch/auto/Audio/Cuefile/Libcue/Libcue.bs 644
PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/c_interface.t ..... 1/35 29: syntax error
Can't locate object method "cd_get_rem" via package "struct CdPtr" at t/c_interface.t line 29.
# Looks like your test exited with 255 just after 2.
t/c_interface.t ..... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 33/35 subtests 
t/perl_interface.t .. 1/3 29: syntax error
t/perl_interface.t .. ok   

Test Summary Report
-------------------
t/c_interface.t   (Wstat: 65280 (exited 255) Tests: 2 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 35 tests but ran 2.
Files=2, Tests=5,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.05 cusr  0.02 csys =  0.09 CPU)
Result: FAIL
Failed 1/2 test programs. 0/5 subtests failed.
@greg-kennedy
Copy link
Owner

greg-kennedy commented Oct 1, 2024

Odd, can't reproduce this one (FreeBSD server 14.1-RELEASE-p4 FreeBSD 14.1-RELEASE-p4 GENERIC amd64). I'm using libcue from pkg or ports (/usr/ports/textproc/libcue/)

# pkg install libcue
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        libcue: 2.3.0

Number of packages to be installed: 1

28 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching libcue-2.3.0.pkg: 100%   28 KiB  28.3kB/s    00:01
Checking integrity... done (0 conflicting)
[1/1] Installing libcue-2.3.0...
[1/1] Extracting libcue-2.3.0: 100%

$ perl Makefile.PL
Checking if your kit is complete...
Looks good
WARNING: Older versions of ExtUtils::MakeMaker may errantly install README.pod as part of this distribution. It is recommended to avoid using this path in CPAN modules.
Generating a Unix-style Makefile
Writing Makefile for Audio::Cuefile::Libcue
Writing MYMETA.yml and MYMETA.json

$ make
cp lib/Audio/Cuefile/Libcue.pm blib/lib/Audio/Cuefile/Libcue.pm
Running Mkbootstrap for Libcue ()
chmod 644 "Libcue.bs"
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Libcue.bs blib/arch/auto/Audio/Cuefile/Libcue/Libcue.bs 644
"/usr/local/bin/perl" "/usr/local/lib/perl5/5.36/ExtUtils/xsubpp"  -typemap '/usr/local/lib/perl5/5.36/ExtUtils/typemap' -typemap '/home/grkenn/src/p5-Audio-Cuesheet-Libcue/typemap'  Libcue.xs > Libcue.xsc
mv Libcue.xsc Libcue.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"2.3.0\"  -DXS_VERSION=\"2.3.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.36/mach/CORE"   Libcue.c
rm -f blib/arch/auto/Audio/Cuefile/Libcue/Libcue.so
LD_RUN_PATH="/usr/local/lib" cc  -shared  -L/usr/local/lib/perl5/5.36/mach/CORE -lperl -L/usr/local/lib -fstack-protector-strong  Libcue.o  -o blib/arch/auto/Audio/Cuefile/Libcue/Libcue.so    -lcue
chmod 755 blib/arch/auto/Audio/Cuefile/Libcue/Libcue.so
Manifying 1 pod document

$ make test
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Libcue.bs blib/arch/auto/Audio/Cuefile/Libcue/Libcue.bs 644
PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/c_interface.t ..... 1/35 29: syntax error
t/c_interface.t ..... ok
t/perl_interface.t .. 1/3 29: syntax error
t/perl_interface.t .. ok
All tests successful.
Files=2, Tests=38,  0 wallclock secs ( 0.04 usr  0.00 sys +  0.15 cusr  0.02 csys =  0.20 CPU)
Result: PASS

Does it work with regular BSD make instead of gmake? (note also that the 29: syntax error is normal, this is a bug in libcue related to newlines at EOF)


EDIT: Can you share the output of prove -wlvmb t from the base distribution dir?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants