nervosnetwork / capsule

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.
MIT License
60 stars 34 forks source link

Compiling failed on MacOS 10.15 #25

Closed XuJiandong closed 3 years ago

XuJiandong commented 3 years ago

Describe the bug After installing capsule 0.4.4, using:

# check environment
capsule check

# create project
capsule new my-demo
cd my-demo
capsule build
capsule test

Screenshots Additional context Capsule 0.4.4 87bd895, it reports very long error, a snippets like this:

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr"

  ........

  = note: collect2: fatal error: ld terminated with signal 9 [Killed]
          compilation terminated.

I think it might be the problem of OOM of LLVM, like this: https://stackoverflow.com/questions/46259776/collect2-fatal-error-ld-terminated-with-signal-9-killed

The same problem is encountered by using Rust in docker without capsule (using capsule's docker container).

TheWaWaR commented 3 years ago

Tested with your instructions on macOS 10.15.7, Capsule 0.4.6 works just fine.