Parity

無法在 macOS 上從原始碼建構奇偶校驗

  • January 28, 2019

剛剛從 github 做了一個新的複製,並且:

cargo build --release --features final

給我一個連結錯誤:

 = note: Undefined symbols for architecture x86_64:
           "_je_malloc_usable_size", referenced from:
               heapsize::heap_size_of_impl::hc4000c6f954eaceb in libheapsize-95360de80c444e06.rlib(heapsize-95360de80c444e06.heapsize.68twyoht-cgu.1.rcgu.o)
               _$LT$alloc..string..String$u20$as$u20$heapsize..HeapSizeOf$GT$::heap_size_of_children::haf2fa16c6b4e920b in libheapsize-95360de80c444e06.rlib(heapsize-95360de80c444e06.heapsize.68twyoht-cgu.4.rcgu.o)
         ld: symbol(s) not found for architecture x86_64
         clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: aborting due to previous error

error: Could not compile `parity-ethereum`.

我的配置是:

rustc 1.32.0
macOS High Sierra 10.13.6

此連結錯誤是否有解決方法?

根據我的評論:有一個PR可以臨時解決這個問題。

引用自:https://ethereum.stackexchange.com/questions/66224