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

[cargo install cargo-lipo error] #63

Open
weixuefeng opened this issue Apr 9, 2024 · 0 comments
Open

[cargo install cargo-lipo error] #63

weixuefeng opened this issue Apr 9, 2024 · 0 comments

Comments

@weixuefeng
Copy link

cargo install cargo-lipo
    Updating crates.io index
  Downloaded cargo-lipo v3.3.0
  Downloaded 1 crate (26.0 KB) in 1.29s
  Installing cargo-lipo v3.3.0
    Updating crates.io index
  Downloaded heck v0.3.3
  Downloaded cargo_metadata v0.6.4
  Downloaded humantime v1.3.0
  Downloaded vec_map v0.8.2
  Downloaded unicode-xid v0.1.0
  Downloaded textwrap v0.11.0
  Downloaded strsim v0.8.0
  Downloaded quick-error v1.2.3
  Downloaded proc-macro2 v0.4.30
  Downloaded error-chain v0.12.4
  Downloaded structopt v0.2.18
  Downloaded structopt-derive v0.2.18
  Downloaded quote v0.6.13
  Downloaded env_logger v0.6.2
  Downloaded unicode-segmentation v1.11.0
  Downloaded clap v2.34.0
  Downloaded syn v0.15.44
  Downloaded 17 crates (747.6 KB) in 1.75s
   Compiling libc v0.2.153
   Compiling memchr v2.7.2
   Compiling proc-macro2 v1.0.79
   Compiling proc-macro2 v0.4.30
   Compiling cc v1.0.92
   Compiling gimli v0.28.1
   Compiling serde v1.0.197
   Compiling adler v1.0.2
   Compiling unicode-xid v0.1.0
   Compiling unicode-ident v1.0.12
   Compiling miniz_oxide v0.7.2
error: failed to run custom build command for `libc v0.2.153`

Caused by:
  process didn't exit successfully: `/var/folders/zb/gj9d2pnd33jc_1l55dqzwk440000gn/T/cargo-installd7spo6/release/build/libc-1f5645fb1a8f7df9/build-script-build` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `proc-macro2 v1.0.79`

Caused by:
  process didn't exit successfully: `/var/folders/zb/gj9d2pnd33jc_1l55dqzwk440000gn/T/cargo-installd7spo6/release/build/proc-macro2-82efe65ad2884538/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to compile `cargo-lipo v3.3.0`, intermediate artifacts can be found at `/var/folders/zb/gj9d2pnd33jc_1l55dqzwk440000gn/T/cargo-installd7spo6`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

console.app log

ASP: Security policy would not allow process: 30362, /private/var/folders/zb/gj9d2pnd33jc_1l55dqzwk440000gn/T/cargo-installd7spo6/release/build/proc-macro2-82efe65ad2884538/build-script-build

rust version:

rustup 1.27.0 (bbb9276d2 2024-03-08)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.77.1 (7cf61ebde 2024-03-27)`
┬─[x@ponyMac13:~/s/g/t/hello]─[22时19分08秒]─[G:master]
╰─>$ rustc --version
rustc 1.77.1 (7cf61ebde 2024-03-27)
┬─[x@ponyMac13:~/s/g/t/hello]─[22时19分12秒]─[G:master]
╰─>$ cargo --version
cargo 1.77.1 (e52e36006 2024-03-26)

what's the problem?
env: macOs M2

PWD=/Users/weixuefeng/source/github/temp/hello
LaunchInstanceID=36A08937-1F36-4470-AC45-E1568926C4D0
COLORFGBG=7;0
USER=weixuefeng
XPC_FLAGS=0x0
LANG=zh_CN.UTF-8
JENV_SHELL=fish
HOME=/Users/weixuefeng
LOGNAME=weixuefeng
MANPATH=/opt/homebrew/share/man:
AUTOJUMP_ERROR_PATH=/Users/weixuefeng/Library/autojump/errors.log
TERM=xterm-256color
TMPDIR=/var/folders/zb/gj9d2pnd33jc_1l55dqzwk440000gn/T/
__CF_USER_TEXT_ENCODING=0x0:25:52
LC_TERMINAL_VERSION=3.4.22
OSTYPE=darwin23
XPC_SERVICE_NAME=0
AUTOJUMP_SOURCED=1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.h7pRzt1HmA/Listeners
TERM_PROGRAM_VERSION=3.4.22
TERM_PROGRAM=iTerm.app
SHELL=/opt/homebrew/bin/fish
__CFBundleIdentifier=com.googlecode.iterm2
TERM_SESSION_ID=w0t0p0:EEFA9025-5402-4F80-BA9C-AEF7E2F66E8A
HOMEBREW_CELLAR=/opt/homebrew/Cellar
XDG_DATA_DIRS=/usr/local/share:/usr/share:/nix/var/nix/profiles/default/share
NVM_BIN=/Users/weixuefeng/.nvm/versions/node/v20.3.0/bin/node
SECURITYSESSIONID=186ac
ITERM_PROFILE=Default
COLORTERM=truecolor
HOMEBREW_PREFIX=/opt/homebrew
INFOPATH=/opt/homebrew/share/info:
SHLVL=1
PATH=/Users/weixuefeng/.cabal/bin:/Users/weixuefeng/.ghcup/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/weixuefeng/.jenv/shims:/Users/weixuefeng/.jenv/shims:/Users/weixuefeng/.jenv/bin:/Users/weixuefeng/.swiftenv/shims:/Users/weixuefeng/.nvm/versions/node/v20.3.0/bin:/Users/weixuefeng/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin:/Users/weixuefeng/.everdev/sold:/Applications/Xcode.app/Contents/Developer/Tools:/Users/weixuefeng/tools/cardano-node-8.7.3-macos:/Users/weixuefeng/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin:/opt/homebrew/opt/curl/bin:/Users/weixuefeng/.rbenv/versions/2.7.3/bin:/Users/weixuefeng/.rbenv/shims:/nix/var/nix/profiles/default/bin:/Users/weixuefeng/.rbenv/versions/3.2.2/bin:/Users/weixuefeng/fvm/default/bin:/opt/homebrew/opt/binutils/bin:/usr/bin:/Library/Developer/Toolchains/swift-5.1-RELEASE.xctoolchain/usr/bin:/Users/weixuefeng/Library/Android/sdk/platform-tools:/Users/weixuefeng/tools/bitcoin-24.1/bin:/Users/weixuefeng/bin:/Users/weixuefeng/tools:/Users/weixuefeng/tools/flutter/3.7.12/bin:/Users/weixuefeng/.local/share/solana/install/active_release/bin:/Users/weixuefeng/source/github/chain/solana/target/debug:/Users/weixuefeng/tools/bitcoin-22.0/bin:/Users/weixuefeng/tools/flutter/bin:/usr/local/go/bin:/opt/homebrew/opt/libpq/bin:/Users/weixuefeng/.cargo/bin:/opt/homebrew/bin/:/usr/local/bin:/System/Cryptexes/App/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin
ITERM_SESSION_ID=w0t0p0:EEFA9025-5402-4F80-BA9C-AEF7E2F66E8A
COMMAND_MODE=unix2003
NIX_PROFILES=/nix/var/nix/profiles/default /Users/weixuefeng/.nix-profile
LC_TERMINAL=iTerm2
JENV_LOADED=1
HOMEBREW_REPOSITORY=/opt/homebrew
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant