Skip to content

Perl fails to cross-compile from macOS #113985

@siraben

Description

@siraben

Describe the bug
Perl fails to cross-compile from macOS.

build log
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/bl6b2p0aw8phljjn0s3xzyghbbzawl2r-perl-5.32.0.tar.gz
source root is perl-5.32.0
unpacking source archive /nix/store/pzwzr28mj1h6x49smrb2jp8ayjv5p4ir-4c55233ae95a6aef4d93291fe8ad12709b11e575.tar.gz
setting SOURCE_DATE_EPOCH to timestamp 1592671121 of file perl-5.32.0/pod/perlhist.pod
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/mb381gpm9k5wdl37l5ad5pp8w11qzhjg-no-sys-dirs-5.31.patch
patching file Configure
Hunk #1 FAILED at 106.
Hunk #2 FAILED at 1337.
Hunk #3 FAILED at 1349.
Hunk #4 FAILED at 1391.
Hunk #5 FAILED at 2446.
Hunk #6 FAILED at 4936.
Hunk #7 FAILED at 8600.
Hunk #8 FAILED at 19900.
8 out of 8 hunks FAILED -- saving rejects to file Configure.rej
patching file ext/Errno/Errno_pm.PL
patching file hints/freebsd.sh
Hunk #1 succeeded at 127 (offset 8 lines).
patching file hints/linux.sh

To Reproduce

$ nix build .#pkgsCross.raspberryPi.perl

Expected behavior
Perl should cross-compile.

Notify maintainers
@edolstra @stigtsp

Also @Ericson2314 @matthewbauer

Metadata

Metadata

Assignees

Labels

0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: cross-compilationBuilding packages on a different platform than they will be used on6.topic: darwinRunning or building packages on Darwin
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions