bluewhalesystems / sold

The sold linker
MIT License
476 stars 33 forks source link

Bug: clang: error: unable to execute command: Abort trap: 6 #38

Open suyanlong opened 10 months ago

suyanlong commented 10 months ago
  Compiling zklink_sender v1.0.0 (/Users/suyanlong/github/zklink/zklink-periphery/core/bin/sender)
   Compiling zklink_prometheus_exporter v1.0.0 (/Users/suyanlong/github/zklink/zklink-periphery/core/bin/prometheus_exporter)
   Compiling zklink-admin v1.0.0 (/Users/suyanlong/github/zklink/zklink-periphery/admin)
error: linking with `cc` failed: exit status: 254
  |
  = note: LC_ALL="C" PATH="/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:
...
"/Users/suyanlong/github/zklink/zklink-periphery/target/debug/deps/libradium-ee1ee78d77b6c895.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-e928029ef92cac55.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-81d4fdb920b0b587.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-e2cbb621af58f9dc.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-ab17a6b5ac151d5d.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-905a6c6bfcbe8121.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-e7738fabc44356c4.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-99c95c437c7909ad.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-bc3657b95e2f5d83.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-c19d8f1df8674abb.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-e5940fbd144babdf.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-a20b6cf346b4c589.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-856daf297d1d1a02.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-4004ef70ddd5de4e.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-ffd4b63964fec0aa.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-978f267b8ae57379.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-95965e91472e1b42.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-397d886122705dcd.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-4da7ba77f27efbf7.rlib" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-a91bcb6130fc44aa.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "SystemConfiguration" "-lz" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "Security" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/suyanlong/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/suyanlong/github/zklink/zklink-periphery/target/debug/deps/zklink_msg-d5fd3cdb0117d407" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/Users/suyanlong/.cargo/sold/bin/ld64.sold"
  = note: clang: error: unable to execute command: Abort trap: 6
          clang: error: linker command failed due to signal (use -v to see invocation)

error: could not compile `zklink_msg` (bin "zklink_msg") due to previous error
warning: build failed, waiting for other jobs to finish...

Macos:

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro16,1
      Processor Name: 6-Core Intel Core i7
      Processor Speed: 2.6 GHz
      Number of Processors: 1
      Total Number of Cores: 6
      L2 Cache (per Core): 256 KB
      L3 Cache: 12 MB
      Hyper-Threading Technology: Enabled
      Memory: 16 GB
      System Firmware Version: 1968.140.7.0.0 (iBridge: 20.16.6072.0.0,0)
      OS Loader Version: 577.140.2~15
      Activation Lock Status: Disabled

rust tool-chain:

Default host: x86_64-apple-darwin
rustup home:  /Users/***/.rustup

active toolchain
----------------

nightly-x86_64-apple-darwin (default)
rustc 1.74.0-nightly (4e78abb43 2023-08-28)

$HOME/.cargo/config


[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=/Users/***/.cargo/sold/bin/ld64.sold"]

ld64.sold:

https://github.com/bluewhalesystems/sold/actions/runs/5396396581
nastynaz commented 2 months ago

@suyanlong did you ever manage to fix this? I'm encountering the same issue but on a Macbook Pro M1 Max