GPU 构建无法编译: boost/compute/detail/sha1.hpp 与现代 Boost 不兼容 (unsigned int[5] 与 unsigned char[20] 的摘要签名不同)
作者: nikosGeography创建于 2026年9月16日更新于 2026年9月16日
文件: `external_libs/compute/include/boost/compute/detail/sha1.hpp` operator std::string() { unsigned int digest[5]; h.get_digest(digest); std::ostringstream buf; for (int i = 0; i < 5; ++i) buf << std::hex << std::setfill('0') << std::setw(8) << digest[i]; return buf.str(); } 这假设 `sha1::get_digest()` 接受一个 `unsigned int[5]&`。现代的 `Boost`(≥1.86)将其定义为 void `get_digest(unsigned char(&digest)[20])`。
内容来源: lightgbm-org/LightGBM