Skip to content

Build failure: glibc (cross-compiled from Darwin) #303193

@quentinmit

Description

@quentinmit

Steps To Reproduce

Steps to reproduce the behavior:

  1. On aarch64-darwin, nix build --no-link --print-out-paths nixpkgs#pkgsCross.gnu64.stdenv.cc

Build log

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/w59si7lz6lm7fimhvgj5p0m9bq4n0xdl-glibc-2.39.tar.xz
source root is glibc-2.39
setting SOURCE_DATE_EPOCH to timestamp 1706661298 of file glibc-2.39/wctype/wctype_l.c
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
applying patch /nix/store/qy2djzi4v1hxgqdmrhj2pa5a86l3bhd3-2.39-master.patch
File ADVISORIES is not a regular file -- refusing to patch
1 out of 1 hunk ignored -- saving rejects to file ADVISORIES.rej
patching file advisories/GLIBC-SA-2023-0001
patching file advisories/GLIBC-SA-2023-0002
patching file advisories/GLIBC-SA-2023-0003
patching file advisories/GLIBC-SA-2023-0004
patching file advisories/GLIBC-SA-2023-0005
patching file advisories/GLIBC-SA-2024-0001
patching file advisories/GLIBC-SA-2024-0002
patching file advisories/GLIBC-SA-2024-0003
patching file advisories/README
patching file sysdeps/arm/dl-machine.h
patching file sysdeps/unix/sysv/linux/mips/clone3.S
patching file sysdeps/mips/mips64/libm-test-ulps
patching file sysdeps/unix/sysv/linux/s390/s390-32/clone.S
patching file sysdeps/unix/sysv/linux/s390/s390-64/clone.S
patching file sysdeps/unix/sysv/linux/tst-clone.c

Additional context

#287594 broke the use of pkgsCross.gnu64.stdenv.cc on Darwin. The new 2.39-master.patch tries to create a file named ADVISORIES and a directory named advisories, which conflict on a case-insensitive filesystem. The old 2.38-master.patch.gz appears to have not created the file ADVISORIES, so it didn't have this problem.

Notify maintainers

@edolstra @Ma27 @ConnorBaker

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.4.0, macOS 14.4.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.15.0`
 - nixpkgs: `/nix/store/hz0r29d5dbmzrdw5zj56cf2dnm4h1m38-source`

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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