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

Build failure: python3Packages.curl-cffi on aarch64-darwin #320196

Closed
shivaraj-bh opened this issue Jun 16, 2024 · 16 comments
Closed

Build failure: python3Packages.curl-cffi on aarch64-darwin #320196

shivaraj-bh opened this issue Jun 16, 2024 · 16 comments
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin 6.topic: python

Comments

@shivaraj-bh
Copy link
Member

Steps To Reproduce

Steps to reproduce the behavior:

  1. build python3Packages.curl-cffi

Build log

* Building wheel...
Using /Users/runner/work/_temp/install/lib to store libcurl-impersonate
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.0-arm64-cpython-311
creating build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
copying curl_cffi/_asyncio_selector.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
copying curl_cffi/curl.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
copying curl_cffi/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
copying curl_cffi/__version__.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
copying curl_cffi/aio.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
copying curl_cffi/const.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
creating build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/cookies.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/models.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/websockets.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/session.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/exceptions.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/errors.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/headers.py -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi/requests
running egg_info
writing curl_cffi.egg-info/PKG-INFO
writing dependency_links to curl_cffi.egg-info/dependency_links.txt
writing requirements to curl_cffi.egg-info/requires.txt
writing top-level names to curl_cffi.egg-info/top_level.txt
reading manifest file 'curl_cffi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'include/curl/*'
adding license file 'LICENSE'
writing manifest file 'curl_cffi.egg-info/SOURCES.txt'
copying curl_cffi/py.typed -> build/lib.macosx-11.0-arm64-cpython-311/curl_cffi
running build_ext
generating cffi module 'build/temp.macosx-11.0-arm64-cpython-311/curl_cffi._wrapper.c'
creating build/temp.macosx-11.0-arm64-cpython-311
building 'curl_cffi._wrapper' extension
creating build/temp.macosx-11.0-arm64-cpython-311/build
creating build/temp.macosx-11.0-arm64-cpython-311/build/temp.macosx-11.0-arm64-cpython-311
creating build/temp.macosx-11.0-arm64-cpython-311/ffi
clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/9d4pm78a2zph51iy2py7i1njxnzfscqy-libxcrypt-4.4.36/include -Iinclude -Iffi>
build/temp.macosx-11.0-arm64-cpython-311/curl_cffi._wrapper.c:2067:35: warning: incompatible pointer types passing 'int *' to parameter of type 'size_t *' (>
  return curl_ws_recv(x0, x1, x2, x3, x4);
                                  ^~
/nix/store/fzir4fn0dbba3rbhds7jgavsmbg5fk67-curl-impersonate-chrome-0.6.1-dev/include/curl/websockets.h:56:43: note: passing argument to parameter 'recv' he>
                                  size_t *recv,
                                          ^
build/temp.macosx-11.0-arm64-cpython-311/curl_cffi._wrapper.c:2133:39: warning: incompatible pointer types passing 'int *' to parameter of type 'size_t *' (>
  { result = curl_ws_recv(x0, x1, x2, x3, x4); }
                                      ^~
/nix/store/fzir4fn0dbba3rbhds7jgavsmbg5fk67-curl-impersonate-chrome-0.6.1-dev/include/curl/websockets.h:56:43: note: passing argument to parameter 'recv' he>
                                  size_t *recv,
                                          ^
build/temp.macosx-11.0-arm64-cpython-311/curl_cffi._wrapper.c:2148:35: warning: incompatible pointer types passing 'int *' to parameter of type 'size_t *' (>
  return curl_ws_send(x0, x1, x2, x3, x4, x5);
                                  ^~
/nix/store/fzir4fn0dbba3rbhds7jgavsmbg5fk67-curl-impersonate-chrome-0.6.1-dev/include/curl/websockets.h:71:58: note: passing argument to parameter 'sent' he>
                                  size_t buflen, size_t *sent,
                                                         ^
build/temp.macosx-11.0-arm64-cpython-311/curl_cffi._wrapper.c:2215:39: warning: incompatible pointer types passing 'int *' to parameter of type 'size_t *' (>
  { result = curl_ws_send(x0, x1, x2, x3, x4, x5); }
                                      ^~
/nix/store/fzir4fn0dbba3rbhds7jgavsmbg5fk67-curl-impersonate-chrome-0.6.1-dev/include/curl/websockets.h:71:58: note: passing argument to parameter 'sent' he>
                                  size_t buflen, size_t *sent,
                                                         ^
4 warnings generated.
clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/9d4pm78a2zph51iy2py7i1njxnzfscqy-libxcrypt-4.4.36/include -Iinclude -Iffi>
ffi/shim.c:9:16: warning: unused variable 'opt_value' [-Wunused-variable]
    CURLoption opt_value = (CURLoption) option;
               ^
1 warning generated.
clang -bundle -undefined dynamic_lookup -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.>
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.6/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpdecimal-4.0.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4.20221231/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.13/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.45.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.6/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-apple-framework-SystemConfiguration-11.0.0/lib'
ld: warning: directory not found for option '-L/nix/store/g70w7h6882a1xn49g358ay062rp36sjn-tzdata-2024a/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p10/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.6/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpdecimal-4.0.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4.20221231/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.13/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.45.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.6/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-apple-framework-SystemConfiguration-11.0.0/lib'
ld: warning: directory not found for option '-L/nix/store/g70w7h6882a1xn49g358ay062rp36sjn-tzdata-2024a/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p10/lib'
/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/ld: line 269: 20635 Killed: 9               /nix/store/i6f0g5q8z8nnxiz1fi32kan4qzpgr4wv>
clang-16: error: linker command failed with exit code 137 (use -v to see invocation)
error: command '/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/clang' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel

Additional context

Add any other context about the problem here.

Notify maintainers

@chuangzhu

Metadata

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

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
 - host os: `Darwin 23.5.0, macOS 14.5`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/556di2dgvcsxf0n14hcf616r5ydvv2rj-source`

Add a 👍 reaction to issues you find important.

@shivaraj-bh shivaraj-bh added the 0.kind: build failure A package fails to build label Jun 16, 2024
@eclairevoyant eclairevoyant added 6.topic: python 6.topic: darwin Running or building packages on Darwin labels Jun 16, 2024
@chuangzhu
Copy link
Contributor

Related: #319304 cc @drupol

@chuangzhu
Copy link
Contributor

Another issue, it seems that yifeikong/curl_cffi removed the v0.7.0 tag:

$ nix build .#python3Packages.curl-cffi.src -L --rebuild
source> trying https://github.com/yifeikong/curl_cffi/archive/refs/tags/v0.7.0.tar.gz
source>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
source>                                  Dload  Upload   Total   Spent    Left  Speed
source>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
source>   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
source> curl: (22) The requested URL returned error: 404
source> error: cannot download source from any mirror

@drupol
Copy link
Contributor

drupol commented Jun 16, 2024

I asked upstream: lexiforest/curl_cffi#327

@drupol
Copy link
Contributor

drupol commented Jun 16, 2024

PR to revert to 0.6.4: #320219

@drupol
Copy link
Contributor

drupol commented Jun 16, 2024

The PR is ready for review. It fixes curl-cffi and duckduckgo-search (by introducing a missing dependency reqwest-impersonate).

@shivaraj-bh
Copy link
Member Author

curl-cffi on aarch64-darwin fails on pythonImportsCheckPhase now:

@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: curl_cffi
/nix/store/a4bjry25m308iixlp67kkwxawfd3cg9h-python-imports-check-hook.sh/nix-support/setup-hook: line 10: 63159 Killed: 9               /nix/store/327bf08j5>

@drupol
Copy link
Contributor

drupol commented Jun 17, 2024

This is going to be difficult for me to debug this, I don't own a Darwin machine (yet) sadly... trying to get sponsors to buy one though! :(

@shivaraj-bh
Copy link
Member Author

I understand. I am checking it out, but can’t do much without more logs 🙂

@drupol
Copy link
Contributor

drupol commented Jun 17, 2024

Maybe involving @NixOS/darwin-maintainers would help a lot here.

@drupol
Copy link
Contributor

drupol commented Jun 17, 2024

As a workaround, I just updated duckduckgo-search and removed curl-cffi at #320471

Reviews are welcome.

@drupol
Copy link
Contributor

drupol commented Jun 17, 2024

duckduckgo-search update: #320457

@reckenrode
Copy link
Contributor

What’s being killed? I suspect it’s related to #208951.

@slice
Copy link

slice commented Jul 29, 2024

Also running into this.

Nix error message
error: builder for '/nix/store/37qyknpbxhhkvn2n85vkpjzyflk7qd3l-python3.12-curl-cffi-0.7.1.drv' failed with exit code 1;
       last 25 log lines:
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.45.3/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.6.2/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3.1/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-apple-framework-SystemConfiguration-11.0.0/lib'
       > ld: warning: directory not found for option '-L/nix/store/990mx84pafvb0d9bd79xlcpnabn2zj4z-tzdata-2024a/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p10/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.6.2/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.6/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpdecimal-4.0.0/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4.20221231/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.14/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.45.3/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.6.2/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3.1/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-apple-framework-SystemConfiguration-11.0.0/lib'
       > ld: warning: directory not found for option '-L/nix/store/990mx84pafvb0d9bd79xlcpnabn2zj4z-tzdata-2024a/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib'
       > ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p10/lib'
       > /nix/store/k8mrxviw965lv59hqbln3297jwfffm2w-clang-wrapper-16.0.6/bin/ld: line 269: 52822 Killed: 9               /nix/store/y627qxz7qhscidi7c0r2lzzcd0pwg71z-cctools-binutils-darwin-973.0.1/bin/ld @<(printf "%q\n" ${extraBefore+"${extraBefore[@]}"} ${params+"${params[@]}"} ${extraAfter+"${extraAfter[@]}"})
       > clang-16: error: linker command failed with exit code 137 (use -v to see invocation)
       > error: command '/nix/store/k8mrxviw965lv59hqbln3297jwfffm2w-clang-wrapper-16.0.6/bin/clang' failed with exit code 1
       >
       > ERROR Backend subprocess exited when trying to invoke build_wheel
       For full logs, run 'nix log /nix/store/37qyknpbxhhkvn2n85vkpjzyflk7qd3l-python3.12-curl-cffi-0.7.1.drv'.
error: 1 dependencies of derivation '/nix/store/zlrr7qlg6j82kg9f4syjhnwdma8hlp2f-yt-dlp-2024.7.25.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rdrlkx51cf3f4mlx7d6q7hl0way542mb-gallery-dl-1.27.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/569r7kw5fi3knf1yg87hdcy8hbzvqvn2-home-manager-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wrn216kva86vggk1b7fdsrv9khz3d3sa-home-manager-fonts.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w794x2zki4j5yjy87vznmnjilr3x3068-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bwjp4yw0b56dy7zdy2arxzhbnbkv26iz-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7h8n9z39c7x7yaa7hzrz77wgpsmr0zm7-yt-dlp-2024.7.25-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r1gngidlbgriixg3v7xrk7p7xjk5xw9r-home-manager-generation.drv' failed to build
nix-shell -p nix-info --run "nix-info -m"
fetching path input 'path:/nix/store/np6vh95pfmrkb4xrb66vx5nb2i01aavy-source'
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.5.0, macOS 14.5`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Lix, like Nix) 2.90.0-pre20240710-2a4376b`
 - nixpkgs: `/nix/store/np6vh95pfmrkb4xrb66vx5nb2i01aavy-source`

If I look in Console I can see this, which seems relevant:

default	12:24:23.158890-0700	kernel		<Missing Description>	clang-16[52806] triggered unnest of range 0x1ea000000->0x1ec000000 of DYLD shared region in VM map 0xed73514a5fd98db7. While not abnormal for debuggers, this increases system memory footprint until the target exits.
default	12:24:23.308118-0700	kernel		<Missing Description>	clang-16[52810] triggered unnest of range 0x1ea000000->0x1ec000000 of DYLD shared region in VM map 0xed73514a5fd98db7. While not abnormal for debuggers, this increases system memory footprint until the target exits.
default	12:24:23.371443-0700	kernel		<Missing Description>	CODE SIGNING: cs_invalid_page(0x1009c0000): p=52822[ld] final status 0x23000200, denying page sending SIGKILL
default	12:24:23.371453-0700	kernel		<Missing Description>	CODE SIGNING: process 52822[ld]: rejecting invalid page at address 0x1009c0000 from offset 0x0 in file "/nix/store/v049i73alba9nl97jbnk75mh70k84iaj-curl-impersonate-chrome-0.6.1/lib/libcurl-impersonate-chrome.4.dylib" (cs_mtime:1.0 == mtime:1.0) (signed:1 validated:1 tainted:1 nx:0 wpmapped:0 dirty:0 depth:0)

I'm not too familiar with what exactly is going on here, but if libcurl-impersonate-chrome.4.dylib is being loaded in at runtime then macOS will perform a set of library validation, as part of the "Hardened Runtime" system. (Assuming it's enabled.)

/nix/store/v049i73alba9nl97jbnk75mh70k84iaj-curl-impersonate-chrome-0.6.1/lib/libcurl-impersonate-chrome.4.dylib does have an embedded code signature…

$ codesign -d -vvv /nix/store/v049i73alba9nl97jbnk75mh70k84iaj-curl-impersonate-chrome-0.6.1/lib/libcurl-impersonate-chrome.4.dylib
Executable=/nix/store/v049i73alba9nl97jbnk75mh70k84iaj-curl-impersonate-chrome-0.6.1/lib/libcurl-impersonate-chrome.4.dylib
Identifier=libcurl-impersonate-chrome.4.dylib
Format=Mach-O thin (arm64)
CodeDirectory v=20400 size=25339 flags=0x2(adhoc) hashes=786+2 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha256=93d471282d7dcc5d11cdae814e1f902bfba63bb0
CandidateCDHashFull sha256=93d471282d7dcc5d11cdae814e1f902bfba63bb0f09160f364279b4f12c0dfd8
Hash choices=sha256
CMSDigest=93d471282d7dcc5d11cdae814e1f902bfba63bb0f09160f364279b4f12c0dfd8
CMSDigestType=2
CDHash=93d471282d7dcc5d11cdae814e1f902bfba63bb0
Signature=adhoc
Info.plist=not bound
TeamIdentifier=not set
Sealed Resources=none
Internal requirements count=0 size=12

…but it's invalid:

$ codesign --verify -vvv /nix/store/v049i73alba9nl97jbnk75mh70k84iaj-curl-impersonate-chrome-0.6.1/lib/libcurl-impersonate-chrome.4.dylib
/nix/store/v049i73alba9nl97jbnk75mh70k84iaj-curl-impersonate-chrome-0.6.1/lib/libcurl-impersonate-chrome.4.dylib: invalid signature (code or signature have been modified)
In architecture: arm64

I'm not sure why it's being loaded into the linker's address space though. cc @reckenrode

@reckenrode
Copy link
Contributor

Does the error still happen after rebasing on current master? The ld64 update landed yesterday, which should address the code-signing failures.

slice added a commit to slice/nixfiles that referenced this issue Jul 29, 2024
@slice
Copy link

slice commented Jul 29, 2024

Does the error still happen after rebasing on current master?

Oh, it's fixed on current master, yeah—if I pin the nixpkgs input in my flake to c7b5f48 (committed 5 minutes ago as of writing) then I'm able to build my user environment again. So this seems fixed by that.

@shivaraj-bh
Copy link
Member Author

Does the error still happen after rebasing on current master? The ld64 update landed yesterday, which should address the code-signing failures.

Sweet, this works for me as well! closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin 6.topic: python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants