Alien-Build icon indicating copy to clipboard operation
Alien-Build copied to clipboard

arm64-freebsd not detected

Open eserte opened this issue 1 year ago • 1 comments

Perls on arm freebsd 14 systems may report as the archname 'arm64-freebsd' (which seems to be the case for the system perl) or 'aarch64-freebsd' (for self-compiled perls). For the former this means that the arch is not detected by Alien::Build:

$ perl -Mblib t/alien_build_plugin_core_setup.t
...
ok 3 - CPU arch {
    # Architecture detection: Unknown archname 'arm64-freebsd'. at /home/cpansand/.cpan/build/2024052320/Alien-Build-2.80-0/blib/lib/Alien/Build/Plugin/Core/Setup.pm line 247.
    ok 1 - alienfile compiles
    ok 2 - has a CPU arch
    # CPU arch:
    # ---
    # name: unknown
    1..2
}

eserte avatar May 23 '24 20:05 eserte

Thank you for reporting this, it is very helpful since it won't fail AB testing, but some downstream Aliens might. Can you try 2.82_01 and let me know? I can then cut a production release if it looks good.

plicease avatar May 25 '24 07:05 plicease

Looks good with 2.82_01:

$ perl -Mblib t/alien_build_plugin_core_setup.t

...
ok 3 - CPU arch {
    ok 1 - alienfile compiles
    ok 2 - has a CPU arch
    # CPU arch:
    # $VAR1 = {
    #           'name' => 'aarch64'
    #         };
    1..2
}

eserte avatar Jun 04 '24 19:06 eserte

👍🏻 prod version on its way to CPAN now.

plicease avatar Jun 05 '24 21:06 plicease