You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from external/yacl/yacl/crypto/base/symmetric_crypto.h:29,
from external/yacl/yacl/crypto/base/symmetric_crypto.cc:15:
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:218:64: error: optimization attribute on 'void yacl::crypto::AES_set_encrypt_key(uint128_t, yacl::crypto::AES_KEY*)' follows definition but the attribute doesn't match [-Werror=attributes]
inline void AES_set_encrypt_key(uint128_t userkey, AES_KEY key) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:106:5: note: previous definition of 'void yacl::crypto::AES_set_encrypt_key(__m128i, yacl::crypto::AES_KEY)' was here
AES_set_encrypt_key(const __m128i userkey, AES_KEY key) {
^~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:223:53: error: optimization attribute on 'yacl::crypto::AES_KEY yacl::crypto::AES_set_encrypt_key(uint128_t)' follows definition but the attribute doesn't match [-Werror=attributes]
inline AES_KEY AES_set_encrypt_key(uint128_t userkey) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:106:5: note: previous definition of 'void yacl::crypto::AES_set_encrypt_key(__m128i, yacl::crypto::AES_KEY)' was here
AES_set_encrypt_key(const __m128i userkey, AES_KEY key) {
^~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:242:64: error: optimization attribute on 'void yacl::crypto::AES_ecb_encrypt_blks(const yacl::crypto::AES_KEY&, absl::lts_20230125::Span, absl::lts_20230125::Span<__int128 unsigned>)' follows definition but the attribute doesn't match [-Werror=attributes]
absl::Span<uint128_t> out_blks) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:141:5: note: previous definition of 'void yacl::crypto::AES_ecb_encrypt_blks(const __m128i, __m128i*, size_t, const yacl::crypto::AES_KEY*)' was here
AES_ecb_encrypt_blks(const __m128i in_blks, __m128i out_blks,
^~~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:250:60: error: optimization attribute on 'std::vector<__int128 unsigned> yacl::crypto::AES_ecb_encrypt_blks(const yacl::crypto::AES_KEY&, absl::lts_20230125::Span)' follows definition but the attribute doesn't match [-Werror=attributes]
const AES_KEY &key, absl::Span in_blks) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:141:5: note: previous definition of 'void yacl::crypto::AES_ecb_encrypt_blks(const __m128i, __m128i, size_t, const yacl::crypto::AES_KEY*)' was here
AES_ecb_encrypt_blks(const __m128i in_blks, __m128i out_blks,
^~~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:258:70: error: optimization attribute on 'void yacl::crypto::AES_ecb_encrypt_blks(const yacl::crypto::AES_KEY&, const uint128_t, size_t, uint128_t)' follows definition but the attribute doesn't match [-Werror=attributes]
size_t blks_num, uint128_t out_blks) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:141:5: note: previous definition of 'void yacl::crypto::AES_ecb_encrypt_blks(const __m128i, __m128i*, size_t, const yacl::crypto::AES_KEY*)' was here
AES_ecb_encrypt_blks(const __m128i *in_blks, __m128i *out_blks,
^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Target //secretflow_lib/binding:_lib.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11.367s, Critical Path: 6.15s
INFO: 3 processes: 3 internal.
FAILED: Build did NOT complete successfully
error: command '/home/sunk/miniconda3/envs/secretflow/bin/bazel' failed with exit code 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
python setup.py bdist_wheel
...
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
running build_ext
bazel build //secretflow_lib/binding:_lib.so --symlink_prefix=build/temp.linux-x86_64-cpython-38/bazel- --compilation_mode=opt
Starting local Bazel server and connecting to it...
INFO: Analyzed target //secretflow_lib/binding:_lib.so (66 packages loaded, 5497 targets configured).
INFO: Found 1 target...
ERROR: /home/sunk/.cache/bazel/_bazel_sunk/cdb6c703c6da3c727e8b2ccd62e72991/external/yacl/yacl/crypto/base/BUILD.bazel:19:16: Compiling yacl/crypto/base/symmetric_crypto.cc failed: (Exit 1): gcc failed: error executing command (from target @yacl//yacl/crypto/base:symmetric_crypto) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 49 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from external/yacl/yacl/crypto/base/symmetric_crypto.h:29,
from external/yacl/yacl/crypto/base/symmetric_crypto.cc:15:
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:218:64: error: optimization attribute on 'void yacl::crypto::AES_set_encrypt_key(uint128_t, yacl::crypto::AES_KEY*)' follows definition but the attribute doesn't match [-Werror=attributes]
inline void AES_set_encrypt_key(uint128_t userkey, AES_KEY key) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:106:5: note: previous definition of 'void yacl::crypto::AES_set_encrypt_key(__m128i, yacl::crypto::AES_KEY)' was here
AES_set_encrypt_key(const __m128i userkey, AES_KEY key) {
^~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:223:53: error: optimization attribute on 'yacl::crypto::AES_KEY yacl::crypto::AES_set_encrypt_key(uint128_t)' follows definition but the attribute doesn't match [-Werror=attributes]
inline AES_KEY AES_set_encrypt_key(uint128_t userkey) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:106:5: note: previous definition of 'void yacl::crypto::AES_set_encrypt_key(__m128i, yacl::crypto::AES_KEY)' was here
AES_set_encrypt_key(const __m128i userkey, AES_KEY key) {
^~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:242:64: error: optimization attribute on 'void yacl::crypto::AES_ecb_encrypt_blks(const yacl::crypto::AES_KEY&, absl::lts_20230125::Span, absl::lts_20230125::Span<__int128 unsigned>)' follows definition but the attribute doesn't match [-Werror=attributes]
absl::Span<uint128_t> out_blks) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:141:5: note: previous definition of 'void yacl::crypto::AES_ecb_encrypt_blks(const __m128i, __m128i*, size_t, const yacl::crypto::AES_KEY*)' was here
AES_ecb_encrypt_blks(const __m128i in_blks, __m128i out_blks,
^~~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:250:60: error: optimization attribute on 'std::vector<__int128 unsigned> yacl::crypto::AES_ecb_encrypt_blks(const yacl::crypto::AES_KEY&, absl::lts_20230125::Span)' follows definition but the attribute doesn't match [-Werror=attributes]
const AES_KEY &key, absl::Span in_blks) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:141:5: note: previous definition of 'void yacl::crypto::AES_ecb_encrypt_blks(const __m128i, __m128i, size_t, const yacl::crypto::AES_KEY*)' was here
AES_ecb_encrypt_blks(const __m128i in_blks, __m128i out_blks,
^~~~~~~~~~~~~~~~~~~~
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:258:70: error: optimization attribute on 'void yacl::crypto::AES_ecb_encrypt_blks(const yacl::crypto::AES_KEY&, const uint128_t, size_t, uint128_t)' follows definition but the attribute doesn't match [-Werror=attributes]
size_t blks_num, uint128_t out_blks) {
^
external/yacl/yacl/crypto/base/aes/aes_intrinsics.h:141:5: note: previous definition of 'void yacl::crypto::AES_ecb_encrypt_blks(const __m128i, __m128i*, size_t, const yacl::crypto::AES_KEY*)' was here
AES_ecb_encrypt_blks(const __m128i *in_blks, __m128i *out_blks,
^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Target //secretflow_lib/binding:_lib.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11.367s, Critical Path: 6.15s
INFO: 3 processes: 3 internal.
FAILED: Build did NOT complete successfully
error: command '/home/sunk/miniconda3/envs/secretflow/bin/bazel' failed with exit code 1
这些AES_set_encrypt_key等涉及到的函数声明和定义参数冲突,是编译器版本问题还是?
Beta Was this translation helpful? Give feedback.
All reactions