Skip to content

glibc fails to build on macOS #103356

@cresh

Description

@cresh

Describe the bug
builder for '/nix/store/wnq9m218wjbk418m2b8gsng1s8kamacn-glibc-2.32.drv' failed with exit code 1
error: build of '/nix/store/wnq9m218wjbk418m2b8gsng1s8kamacn-glibc-2.32.drv' failed

To Reproduce
Steps to reproduce the behavior:

  1. Update to latest master
  2. nix-env -i glibc

Expected behavior
glibc should build

Additional context

> nix-env -i glibc
warning: there are multiple derivations named 'glibc-2.32'; using the first one
installing 'glibc-2.32'
these derivations will be built:
  /nix/store/wnq9m218wjbk418m2b8gsng1s8kamacn-glibc-2.32.drv
building '/nix/store/wnq9m218wjbk418m2b8gsng1s8kamacn-glibc-2.32.drv'...
unpacking sources
unpacking source archive /nix/store/yl0acs9vzng0cd4qfdcgb3zpwjm034nw-glibc-2.32.tar.xz
source root is glibc-2.32
setting SOURCE_DATE_EPOCH to timestamp 1596593820 of file glibc-2.32/wctype/wctype_l.c
patching sources
applying patch /nix/store/pp29isd0nvy4jrm9q2f92pjlc83xwa0i-nix-locale-archive.patch
patching file locale/loadarchive.c
patching file locale/programs/locale.c
Hunk #1 succeeded at 634 (offset 1 line).
Hunk #2 succeeded at 663 (offset 1 line).
patching file locale/programs/locarchive.c
applying patch /nix/store/5212825a2npxaf7qd81sxfrqq6219rlx-dont-use-system-ld-so-cache.patch
patching file elf/ldconfig.c
Hunk #1 succeeded at 55 with fuzz 1 (offset 4 lines).
patching file elf/Makefile
Hunk #1 succeeded at 647 (offset 88 lines).
patching file sysdeps/generic/dl-cache.h
applying patch /nix/store/mnglr8rr7nl444h7p50ysyq8qd0fm1lm-dont-use-system-ld-so-preload.patch
patching file elf/rtld.c
Hunk #1 succeeded at 1781 (offset 268 lines).
applying patch /nix/store/za0pg7fmysrcwrqcal26fnmzw6vycgdn-fix_path_attribute_in_getconf.patch
patching file sysdeps/unix/confstr.h
applying patch /nix/store/xkd50xxii6k7l1kmw4l5x6xzbhamcs87-allow-kernel-2.6.32.patch
patching file sysdeps/unix/sysv/linux/configure
patching file sysdeps/unix/sysv/linux/configure.ac
patching file sysdeps/unix/sysv/linux/dl-osinfo.h
applying patch /nix/store/3l70d7kcfsh91w6792h4fqs4kjbq17py-glibc-reinstate-prlimit64-fallback.patch?id=eab07e78b691ae7866267fc04d31c7c3ad6b0eeb
patching file sysdeps/unix/sysv/linux/getrlimit64.c
patching file sysdeps/unix/sysv/linux/setrlimit.c
Hunk #2 succeeded at 46 with fuzz 1.
patching file sysdeps/unix/sysv/linux/setrlimit64.c
Hunk #1 succeeded at 36 with fuzz 2.
applying patch /nix/store/nqa9d4yxz1l2cgswzqr1pkm4jfrksm0q-locale-C.diff
patching file localedata/locales/C
applying patch /nix/store/7kw224hdyxd7115lrqh9a4dv2x8msq2s-fix-x64-abi.patch
patching file elf/dl-tls.c
Hunk #1 succeeded at 898 (offset 71 lines).
applying patch /nix/store/ba9r5nbm6nrr0a0l9hnbrrwpf5xfi9m7-darwin-cross-build.patch
patching file Makefile.in
patching file Makerules
Hunk #1 succeeded at 847 (offset -68 lines).
Hunk #2 succeeded at 859 (offset -68 lines).
Hunk #3 succeeded at 875 (offset -68 lines).
Hunk #4 succeeded at 893 (offset -68 lines).
Hunk #5 succeeded at 1499 (offset -116 lines).
can't find file to patch at input line 82
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- glibc-2.27/sunrpc/rpc_main.c       2019-02-15 17:32:43.710244513 +0100
|+++ glibc-2.27/sunrpc/rpc_main.c       2019-02-15 17:23:57.139617796 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 94
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- glibc-2.27/sunrpc/rpc_scan.c       2019-02-15 17:32:54.845490606 +0100
|+++ glibc-2.27/sunrpc/rpc_scan.c       2019-02-15 17:24:54.288066644 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
builder for '/nix/store/wnq9m218wjbk418m2b8gsng1s8kamacn-glibc-2.32.drv' failed with exit code 1
error: build of '/nix/store/wnq9m218wjbk418m2b8gsng1s8kamacn-glibc-2.32.drv' failed

Notify maintainers
@eelco @Ma27

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

 - system: `"x86_64-darwin"`
 - host os: `Darwin 19.6.0, macOS 10.15.7`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.8`
 - channels(crestani): `"nixpkgs-19.03pre153206.f753852e11d"`
 - nixpkgs: `/Users/crestani/nixpkgs`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.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