Skip to content

[boringssl] arm cross compilation issue #111

@jwinarske

Description

@jwinarske

arm cross compilation issue

| FAILED: obj/third_party/boringssl/boringssl/cpu_arm_linux.o
| ../../third_party/llvm-build/Release+Asserts/bin/clang -MD -MF obj/third_party/boringssl/boringssl/cpu_arm_linux.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-1\" -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b -DCR_SYSROOT_KEY=20230611T210420Z-2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBORINGSSL_IMPLEMENTATION -DBORINGSSL_ALLOW_CXX_RUNTIME -DBORINGSSL_NO_STATIC_INITIALIZER -DOPENSSL_SMALL -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/boringssl/src/include -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -fcomplete-member-pointers --target=arm-linux-gnueabihf -march=armv7-a -mfloat-abi=hard -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -mfpu=neon -mthumb -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Xclang -plugin-arg-find-bad-constructs -Xclang check-allow-auto-typedefs-better-nested -Xclang -plugin-arg-find-bad-constructs -Xclang check-raw-ptr-to-stack-allocated -Xclang -plugin-arg-find-bad-constructs -Xclang disable-check-raw-ptr-to-stack-allocated-error -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=/third_party/dawn/ -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wno-invalid-offsetof -Wno-vla-extension -Wno-thread-safety-reference-return -Werror -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -std=c11 --sysroot=../../../../recipe-sysroot -c ../../third_party/boringssl/src/crypto/cpu_arm_linux.c -o obj/third_party/boringssl/boringssl/cpu_arm_linux.o
| In file included from ../../third_party/boringssl/src/crypto/cpu_arm_linux.c:28:
| ../../third_party/boringssl/src/crypto/cpu_arm_linux.h:36:9: error: 'HWCAP2_AES' macro redefined [-Werror,-Wmacro-redefined]
|    36 | #define HWCAP2_AES (1 << 0)
|       |         ^
| ../../../../recipe-sysroot/usr/include/bits/hwcap-32.h:53:9: note: previous definition is here
|    53 | #define HWCAP2_AES              1
|       |         ^
| In file included from ../../third_party/boringssl/src/crypto/cpu_arm_linux.c:28:
| ../../third_party/boringssl/src/crypto/cpu_arm_linux.h:37:9: error: 'HWCAP2_PMULL' macro redefined [-Werror,-Wmacro-redefined]
|    37 | #define HWCAP2_PMULL (1 << 1)
|       |         ^
| ../../../../recipe-sysroot/usr/include/bits/hwcap-32.h:54:9: note: previous definition is here
|    54 | #define HWCAP2_PMULL            2
|       |         ^
| In file included from ../../third_party/boringssl/src/crypto/cpu_arm_linux.c:28:
| ../../third_party/boringssl/src/crypto/cpu_arm_linux.h:38:9: error: 'HWCAP2_SHA1' macro redefined [-Werror,-Wmacro-redefined]
|    38 | #define HWCAP2_SHA1 (1 << 2)
|       |         ^
| ../../../../recipe-sysroot/usr/include/bits/hwcap-32.h:55:9: note: previous definition is here
|    55 | #define HWCAP2_SHA1             4
|       |         ^
| In file included from ../../third_party/boringssl/src/crypto/cpu_arm_linux.c:28:
| ../../third_party/boringssl/src/crypto/cpu_arm_linux.h:39:9: error: 'HWCAP2_SHA2' macro redefined [-Werror,-Wmacro-redefined]
|    39 | #define HWCAP2_SHA2 (1 << 3)
|       |         ^
| ../../../../recipe-sysroot/usr/include/bits/hwcap-32.h:56:9: note: previous definition is here
|    56 | #define HWCAP2_SHA2             8
|       |         ^
| 4 errors generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions