原始文献 / 论坛帖 / Re: Build error SVN r115 on my Mac: workaround

Re: Build error SVN r115 on my Mac: workaround

Bitcointalk · 2010-07-28 21:23:23 UTC

AuthorSatoshi Nakamoto
TitleRe: Build error SVN r115 on my Mac: workaround
Date2010-07-28 21:23:23 UTC
ForumBitcointalk · 原文

我在 OSX 构建中就只搞坏了那一个地方吗?!只改那一处之后真的能用吗?

makefile.vc 我也得这么改。它能编译,但 SHA-256 工作不正常;每次都返回同一个错误的哈希。

我们先禁用它,如果有人搞清楚怎么修,到时候再重新启用。即便如此,仅中间状态(midstate)优化就带来了 1.7 倍的提速。

Crypto++ ASM SHA-256 在 Linux 和 Windows(MinGW)的 GCC 下都能工作。

我已把 makefile.osx 的修改上传到 SVN。(如果现在能编译了请告诉我)

英文原文

Was that the only thing I broke in the OSX build?! Does it actually work after just that one change?

I had to do that for makefile.vc also. It compiled, but SHA-256 didn't work correctly; it returned the same incorrect hash each time.

We'll disable it now, and if anyone figures out how to fix it, we can re-enable it then. It's still 1.7x faster from the midstate optimisation.

The Crypto++ ASM SHA-256 works with GCC on Linux and Windows (MinGW).

I uploaded this makefile.osx change to SVN. (let me know if that compiles now)