-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI fixes #36
CI fixes #36
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Index: aws-lc/third_party/boringssl/CMakeLists.txt | ||
=================================================================== | ||
--- aws-lc.orig/third_party/boringssl/CMakeLists.txt | ||
+++ aws-lc/third_party/boringssl/CMakeLists.txt | ||
@@ -80,6 +80,8 @@ if(NOT FIPS) | ||
# CMake automatically connects include_directories to the NASM | ||
# command-line, but not add_definitions. | ||
set(CMAKE_ASM_NASM_FLAGS "${CMAKE_ASM_NASM_FLAGS} -DBORINGSSL_DISPATCH_TEST") | ||
+ elseif(CMAKE_BUILD_TYPE_LOWER MATCHES "rel") | ||
+ add_definitions(-DBORINGSSL_RELEASE_BUILD) | ||
endif() | ||
endif() | ||
|
||
Index: aws-lc/third_party/boringssl/crypto/cipher_extra/aead_test.cc | ||
=================================================================== | ||
--- aws-lc.orig/third_party/boringssl/crypto/cipher_extra/aead_test.cc | ||
+++ aws-lc/third_party/boringssl/crypto/cipher_extra/aead_test.cc | ||
@@ -665,7 +665,7 @@ TEST_P(PerAEADTest, InvalidNonceLength) | ||
} | ||
} | ||
|
||
-#if defined(SUPPORTS_ABI_TEST) | ||
+#if defined(SUPPORTS_ABI_TEST) && !defined(BORINGSSL_RELEASE_BUILD) | ||
// CHECK_ABI can't pass enums, i.e. |evp_aead_seal| and |evp_aead_open|. Thus | ||
// these two wrappers. | ||
static int aead_ctx_init_for_seal(EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, | ||
Index: aws-lc/third_party/boringssl/crypto/test/abi_test.cc | ||
=================================================================== | ||
--- aws-lc.orig/third_party/boringssl/crypto/test/abi_test.cc | ||
+++ aws-lc/third_party/boringssl/crypto/test/abi_test.cc | ||
@@ -208,7 +208,8 @@ template <typename... Args> | ||
WriteFile(stderr_handle, buf, strlen(buf), &unused, nullptr); | ||
} | ||
#else | ||
- write(STDERR_FILENO, buf, strlen(buf)); | ||
+ OPENSSL_UNUSED ssize_t unused_ret = | ||
+ write(STDERR_FILENO, buf, strlen(buf)); | ||
#endif | ||
abort(); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
0004-disable-urandom-test-docker.patch | ||
0005-fix-ssl-test-runner-output.patch | ||
0006-fix-gcc4-compile-errors.patch | ||
0007-fix-abi-test-compilation.patch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
#!/bin/bash -ex | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
#!/bin/bash | ||
|
||
# This test is aimed to run with GCC 6 and above on x86-64 architectures. | ||
Comment on lines
-2
to
3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The copyright header is needed based on open source policy. |
||
|
||
echo "Testing the C99 compatibility of AWS-LC headers." | ||
ROOT_DIR="./third_party/boringssl/" | ||
INCLUDE_DIR="$ROOT_DIR/include" | ||
|
||
AWSLC_ROOT_DIR="." | ||
AWSLC_INC_DIR=$AWSLC_ROOT_DIR/include | ||
INCLUDE_FILES=`ls $INCLUDE_DIR/openssl/*.h | grep -v $INCLUDE_DIR/openssl/arm_arch.h` | ||
|
||
INC_FILES=`ls $AWSLC_INC_DIR/awslc/*.h | grep -v $AWSLC_INC_DIR/awslc/arm_arch.h` | ||
|
||
INC_FILES_STR="" | ||
for f in $INC_FILES; do | ||
INC_FILES_STR+="-include $f " | ||
done | ||
# - This compilation line gets no source files as its input (it uses the -c flag). | ||
# Instead it uses the force include flag (-include) to include all of headers | ||
# except for arm_arch.h, which cannot run on x86-64 architectures. | ||
# - The -Wpedantic flag ensures that the compiler will fault if a non C99 line | ||
# exists in the code. | ||
# - The -fsyntax-only tells the compiler to check the syntax without producing | ||
# any outputs. | ||
|
||
TMP_C_FILE_NAME=`mktemp --suffix .c` | ||
$CC -std=c99 -c -I$INCLUDE_DIR -include $INCLUDE_FILES -Wpedantic -fsyntax-only | ||
|
||
# - This compilation line gets no source file as its input (it uses the -c flag). | ||
# Instead it uses the force include flag (-include) to include all of | ||
# AWS-LC headers except for arm_arch.h, which cannot run on x86-64 architectures. | ||
# - The -Wpedantic flag ensures that the compiler will fault if a non C99 line | ||
# exists in the code | ||
# - The -fsyntax-only tells the compiler to check the symtax without producing | ||
# any outputs. | ||
$CC -std=c99 $TMP_C_FILE_NAME -c -I$AWSLC_INC_DIR $INC_FILES_STR -Wpedantic -fsyntax-only | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to fix gcc4 related compile warning?