Code Monkey home page Code Monkey logo

aws-iot-device-sdk-python-v2's People

Contributors

alfred2g avatar bretambrose avatar davidogunsaws avatar fthompsonaws avatar graebm avatar ilevyor avatar jmklix avatar jonathanhenson avatar jpeddicord avatar justinboswell avatar kaibalopez avatar kellertk avatar kriechi avatar kucnavya avatar lilisha100 avatar mikedombo avatar moritalous avatar peteward avatar ppadmavilasom avatar rccarper avatar rpcme avatar sbstevek avatar senmm avatar sfod avatar somayab avatar tingdaok avatar twistedtwigleg avatar xiazhvera avatar yasminetalby avatar yuma-m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-iot-device-sdk-python-v2's Issues

Provide Mechanism For how to Acquire IoT Endpoint

I'm trying to write for a Python lambda that needs to do a pub/sub. Everything seems to be working with a lot of help from the simple pub/sub example. The relevant code snippet is here:
event_loop_group = awscrt.io.EventLoopGroup(1) host_resolver = awscrt.io.DefaultHostResolver(event_loop_group) client_bootstrap = awscrt.io.ClientBootstrap(event_loop_group, host_resolver) credentials_provider = awscrt.auth.AwsCredentialsProvider.new_default_chain(client_bootstrap) mqtt_connection = awsiot.mqtt_connection_builder.websockets_with_default_aws_signing(

However, I don't want to pass in nor hardcode the endpoint parameter of this method:
endpoint="OUR_ACCOUNTS_UNIQUE_IOT_ENDPOINT_NAME_HERE-ats.iot.us-east-1.amazonaws.com",

Is there any way to programmatically pull the IoT endpoint name from one of these objects that I've already created, or fetch it some other way, rather than have me hardcode it in my serverless environment? Feels like this should be possible. I've seen examples of using a HTTP DescribeEndpoint call, but it feels like with the objects that I'm creating above, this should be readily available somehow through one of these objects and their APIs.

Thank you in advance.

mqtt_connection parameters + documentation

Confirm by changing [ ] to [x] below:

Platform/OS/Device
Mac Os

Describe the question
Where would it be possible to get the documentation for the v2 sdd?

I am interested in understanding more about the parameters used below when building the mqtt_connection (specifically the ones in bold)

mqtt_connection = mqtt_connection_builder.mtls_from_path(
endpoint="a3uxhx2wvbys89-ats.iot.us-west-2.amazonaws.com",
cert_filepath= "certificate.pem.crt",
pri_key_filepath="private.pem.key",
client_bootstrap=client_bootstrap,
ca_filepath="root-CA.crt",
on_connection_interrupted=on_connection_interrupted,
#on_connection_resumed=on_connection_resumed,
client_id="car1",
clean_session=False,
keep_alive_secs=6)

Puback received when connection is lost with QoS=1

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
With large keep_alive_secs (60 seconds) When a connection is lost the publish future finishes without exception. The connection error raises immediately after that

SDK version number
1.0.6

Platform/OS/Device
Ubuntu 18.04.4 LTS
4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

To Reproduce (observed behavior)
Publish callback:

def done_callback(future):
    print(datetime.now().strftime("%H:%M:%S.%f:"))
    print("Done callback")
    print(future.result())
    print(future.exception())

Increase keep_alive_secs:

            clean_session=False,
            keep_alive_secs=60)

publish:

    count = 10
    print(datetime.now().strftime("%H:%M:%S.%f:"))
    print("Sending {} message(s)".format(count))

    publish_count = 1
    while (publish_count <= count) or (count == 0):
        print(datetime.now().strftime("%H:%M:%S.%f:"))
        print("Publishing message to topic '{}': {}".format(
            topic, message))
        pub_future, _ = mqtt_connection.publish(
            topic=topic,
            payload=message,
            qos=mqtt.QoS.AT_LEAST_ONCE)
        publish_count += 1
        pub_future.add_done_callback(done_callback)
        time.sleep(10)

    time.sleep(10)

After the first publish occurs, try disconnecting the network. All publish callbacks are called right before the timeout error, but no clue is given that the publish actually failed.

Expected behavior
All callbacks from messages that have not been acknowledged before the timeout should have an exception

Logs/output

13:42:10.285837:
Connecting
13:42:10.999531:
Connected!
13:42:10.999735:
Sending 10 message(s)
13:42:10.999868:
Publishing message to topic 'alarms/202003_01_test': {"test": 1} [1]
13:42:11.100984:
Done callback
{'packet_id': 1}
None
13:42:21.000566:
Publishing message to topic 'alarms/202003_01_test': {"test": 1} [2]
13:42:31.009611:
Publishing message to topic 'alarms/202003_01_test': {"test": 1} [3]
13:42:41.014124:
Publishing message to topic 'alarms/202003_01_test': {"test": 1} [4]
13:42:51.024614:
Publishing message to topic 'alarms/202003_01_test': {"test": 1} [5]
13:43:01.034636:
Publishing message to topic 'alarms/202003_01_test': {"test": 1} [6]
13:43:11.038801:
Publishing message to topic 'alarms/202003_01_test': {"test": 1} [7]
13:43:14.000900:
Done callback
{'packet_id': 3}
None
13:43:14.001277:
Done callback
{'packet_id': 7}
None
13:43:14.001432:
Done callback
{'packet_id': 1}
None
13:43:14.001540:
Done callback
{'packet_id': 4}
None
13:43:14.001641:
Done callback
{'packet_id': 2}
None
13:43:14.001742:
Done callback
{'packet_id': 5}
None
13:43:14.001970:
Connection interrupted. error: AwsCrtError(name='AWS_ERROR_MQTT_TIMEOUT', message='Time limit between request and response has been exceeded.', code=5129)


test_safe.txt

No Activity logged under TheThing

Confirm by changing [ ] to [x] below:

Platform/OS/Device
What are you running the sdk on? Mac, Python

Describe the question
I am trying to figure out the device connection status, some suggested for using Fleet Service, Shadow and some say to subscribe to "$aws/events/presence/+" topic. I have tried subscribing to "$aws/events/presence/+" but somehow no events getting generated for connection. I have tried using PubSub.py (modifying to just subscribe to the event).

Would appreciate the guidance, thanks in advance

Exceptions when connect / disconnect in a loop

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • [ X] I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
To test the defender metrics connect / disconnect I run the the connect and disconnect functionality in an endless loop. Unfortunately, I get exceptions after different loop counts (eg. 30, 77, 155). I used the basicPubSub example as a template.

SDK version number
1.4.9

Platform/OS/Device
What are you running the sdk on?
MacOs

To Reproduce (observed behavior)

 while True:
        c = c + 1
        print(c)
        time.sleep(2)
        print(
            "Connecting to {} with client ID '{}'...".format(args.endpoint, args.client_id)
        )

        connect_future = mqtt_connection.connect()

        # Future.result() waits until a result is available
        connect_future.result()
        print("Connected!")


        print("Disconnecting...")
        disconnect_future = mqtt_connection.disconnect()
        disconnect_future.result()
        print("Disconnected!")

Expected behavior
proper connect and disconnect without any exception until the loop is running

Logs/output
If applicable, add logs or error output.

REMEMBER TO SANITIZE YOUR PERSONAL INFO

Connecting to XXX-ats.iot.eu-west-1.amazonaws.com with client ID 'XXXXX'...
Traceback (most recent call last):
  File "basic.py", line 197, in <module>
    connect_future.result()
  File "/Users/patrick/.pyenv/versions/3.7.5/lib/python3.7/concurrent/futures/_base.py", line 435, in result
    return self.__get_result()
  File "/Users/patrick/.pyenv/versions/3.7.5/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_ERROR_MQTT_UNEXPECTED_HANGUP', message='The connection was closed unexpectedly.', code=5134)

other exception

Traceback (most recent call last):
  File "basic.py", line 197, in <module>
    connect_future.result()
  File "/Users/patrick/.pyenv/versions/3.7.5/lib/python3.7/concurrent/futures/_base.py", line 435, in result
    return self.__get_result()
  File "/Users/patrick/.pyenv/versions/3.7.5/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_IO_TLS_NEGOTIATION_TIMEOUT', message='Channel shutdown due to tls negotiation timeout', code=1067)

Additional context
Add any other context about the problem here.

There is no access to keys(access and secret) in ECS task when connecting via WebSocket.

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
There is no access to keys(access and secret) in ECS task when connecting via WebSocket.
What did I do:

  1. Created an ECS cluster.
  2. Added task definition with a python application that uses the aws-io-device-sdk-python-v2 to send a message to the IoT topic.
  3. Created and attached a iam role to the ECS task definition. The policy for this role includes the following permissions:
{
            "Effect": "Allow",
            "Action": [
              "iot:Connect"
            ],
            "Resource": [
              "*"
            ]
      },
      {
            "Effect": "Allow",
            "Action": [
              "iot:Publish",
              "iot:Receive",
              "iot:Subscribe",
              "iot:DescribeEndpoint"
            ],
            "Resource": [
              "*"
            ]
      }

SDK version number
1.3.0

Platform/OS/Device
Docker container. Docker image - python:3.7

To Reproduce (observed behavior)

  1. Created an ECS cluster.
  2. Added task definition with a python application that uses the aws-io-device-sdk-python-v2 to send a message to the IoT topic.
  3. Created and attached a iam role to the ECS task definition with it permission.
  4. Run task

Expected behavior
Successfully receiving credentials

Logs/output

2020-07-07T18:04:03.098+03:00
Signal received: 1, errno: 0

2020-07-07T18:04:03.100+03:00
################################################################################

2020-07-07T18:04:03.100+03:00
Resolved stacktrace:

2020-07-07T18:04:03.100+03:00
################################################################################

2020-07-07T18:04:03.118+03:00
0x00007f642b62b5cb: ?? ??:0

2020-07-07T18:04:03.184+03:00
0x00000000000bc103: s_print_stack_trace at module.c:455

2020-07-07T18:04:03.188+03:00
0x0000000000012730: __restore_rt at ??:?

2020-07-07T18:04:03.193+03:00
0x00007f642b62c310: ?? ??:0

2020-07-07T18:04:03.200+03:00
0x00000000000d1ec3: s_make_ecs_http_query at credentials_provider_ecs.c:337

2020-07-07T18:04:03.208+03:00
0x00000000000e2c7b: s_aws_http_connection_manager_complete_acquisitions at connection_manager.c:448

2020-07-07T18:04:03.289+03:00
0x00000000000e3912: s_aws_http_connection_manager_on_connection_setup at connection_manager.c:1250

2020-07-07T18:04:03.299+03:00
0x00000000000e0cce: s_client_bootstrap_on_channel_setup at connection.c:709

2020-07-07T18:04:03.309+03:00
0x0000000000104b51: s_connection_args_setup_callback at channel_bootstrap.c:188

2020-07-07T18:04:03.390+03:00
0x0000000000104488: s_on_channel_setup_complete at channel.c:199

2020-07-07T18:04:03.400+03:00
0x000000000011d5de: aws_linked_list_empty at linked_list.inl:44

2020-07-07T18:04:03.483+03:00
0x000000000010ac97: s_main_loop at epoll_event_loop.c:633

2020-07-07T18:04:03.494+03:00
0x000000000011c9c2: thread_fn at thread.c:51

2020-07-07T18:04:03.498+03:00
0x0000000000007fa3: start_thread at ??:?

2020-07-07T18:04:03.501+03:00
0x00007f643e5e14cf: ?? ??:0

2020-07-07T18:04:03.501+03:00
################################################################################

2020-07-07T18:04:03.501+03:00
Raw stacktrace:

2020-07-07T18:04:03.501+03:00
################################################################################

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(aws_backtrace_print+0x4b) [0x7f642b62b5cb]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0xbc103) [0x7f642b5cb103]

2020-07-07T18:04:03.501+03:00
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7f643e84a730]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(aws_byte_cursor_from_string+0) [0x7f642b62c310]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0xd1ec3) [0x7f642b5e0ec3]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0xe2c7b) [0x7f642b5f1c7b]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0xe3912) [0x7f642b5f2912]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0xe0cce) [0x7f642b5efcce]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0x104b51) [0x7f642b613b51]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0x104488) [0x7f642b613488]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0x11d5de) [0x7f642b62c5de]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0x10ac97) [0x7f642b619c97]

2020-07-07T18:04:03.501+03:00
/usr/local/lib/python3.7/site-packages/_awscrt.cpython-37m-x86_64-linux-gnu.so(+0x11c9c2) [0x7f642b62b9c2]

2020-07-07T18:04:03.501+03:00
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3) [0x7f643e83ffa3]

2020-07-07T18:04:03.501+03:00
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f643e5e14cf]

Additional context
Workaround - get credentials from url push it to env variables:

url = 'http://169.254.170.2{}'.format(os.getenv('AWS_CONTAINER_CREDENTIALS_RELATIVE_URI'))
r = requests.get(url)
credentials = json.loads(r.content)
os.environ["AWS_ACCESS_KEY_ID"] = credentials['AccessKeyId']
os.environ["AWS_SECRET_ACCESS_KEY"] = credentials['SecretAccessKey']
os.environ["AWS_SESSION_TOKEN"] = credentials['Token']
os.environ["AWS_DEFAULT_REGION"] = region

How to setup LWT with the Python SDK V2

Confirm by changing [ ] to [x] below:

Platform/OS/Device
What are you running the sdk on? NVIDIA Jetson Nano

Describe the question

How do we setup Last Will & Testament (LWT) to update a field in the shadow when the client device is not available. I can't find any documentation how to do this with V2 SDK?

Somehow we need to set it before the client connection call is made. Where we tell it what topic to send the message on (i.e. /lwt). Then I believe we need a rule to replicate this to the shadow reserved topic... An example would be awesome?? ;-)

Unknown error when on_resubscribe_complete() is called

To reproduce this bug, I downloaded a fresh .zip of the repo and ran the pubsub sample with a known client id. I then used a separate script which attempts to make an MQTT connection using the same client ID I'd given to pubsub.py. This causes pubsub.py to momentarily* lose its connection. This is the most reliable way I've found to create a reconnection event where session_present is False.

Upon reconnecting, on_connection_resumed() finds that session_present is False and adds a callback to the future. When the on_resubscribe_complete future returns, there's an error and line 71 (print Resubscribe results...) never executes.

resubscribe_results = resubscribe_future.result()

Here is the error output (I added a print statement to get the Traceback)

Connection resumed. return_code: 0 session_present: False
Session did not persist. Resubscribing to existing topics...
MemoryError
Treating Python exception as error 1(AWS_ERROR_OOM)
AwsCrtError(name='Unknown Error Code', message='Unknown Error Code', code=-1)
exception calling callback for <Future at 0x7f800ad81588 state=finished raised AwsCrtError>
Traceback (most recent call last):
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 324, in _invoke_callbacks
    callback(self)
  File "pubsub.py", line 73, in on_resubscribe_complete
    resubscribe_results = resubscribe_future.result()
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 426, in result
    return self.__get_result()
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 385, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='Unknown Error Code', message='Unknown Error Code', code=-1)

*When replicating this, it's important that the test script you use to cause the disconnection by claiming a duplicate client id does not attempt to reconnect after that first try. If both scripts are continually trying to use the same client id they'll both go into a rapid connect/disconnect loop as they each repeatedly cause the other one to lose their MQTT session.

Sample policy for fleet provisioning example is wrong

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
The policy documented as sample policy in README.MD for fleet provisioning sample is wrong. For the subscribe policy it should be topicfilter and not topic.

Expected behavior
The correct policy should be as follows:

{
  "Version": "2012-10-17",
  "Statement": [
    {
        "Effect": "Allow",
        "Action": [
            "iot:Connect"
        ],
        "Resource": "arn:aws:iot:us-west-2:478068371121:client/*"
    },
    {
        "Effect": "Allow",
        "Action": [
            "iot:Receive"
        ],
        "Resource": [
            "arn:aws:iot:us-west-2:478068371121:topic/$aws/certificates/create/*",
            "arn:aws:iot:us-west-2:478068371121:topic/$aws/certificates/create-from-csr/*",
            "arn:aws:iot:us-west-2:478068371121:topic/$aws/provisioning-templates/mb3-sensor-fleet-provision-template/provision/*"
        ]
    },
    {
        "Effect": "Allow",
        "Action": "iot:Publish",
        "Resource": [
            "arn:aws:iot:us-west-2:478068371121:topic/$aws/certificates/create/*",
            "arn:aws:iot:us-west-2:478068371121:topic/$aws/certificates/create-from-csr/*",
            "arn:aws:iot:us-west-2:478068371121:topic/$aws/provisioning-templates/mb3-sensor-fleet-provision-template/provision/*"
        ]
    },
    {
        "Effect": "Allow",
        "Action": ["iot:Subscribe"],
        "Resource": [
            "arn:aws:iot:us-west-2:478068371121:topicfilter/$aws/certificates/create/*",
            "arn:aws:iot:us-west-2:478068371121:topicfilter/$aws/certificates/create-from-csr/*",
            "arn:aws:iot:us-west-2:478068371121:topicfilter/$aws/provisioning-templates/mb3-sensor-fleet-provision-template/provision/*"
        ]
    }
  ]
}

MQTT 5.0+ Support

Hi Team,
Does aws-iot-device-sdk-python support MQTT 3.1 with QoS 2 apart from the QoS 0 and QoS 1 ?
Does aws-iot-device-sdk-python-v2 supports MQTT 5.0 + ?

Release 1.2.0 and 1.2.1 not backward compatible with 1.1.0

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
I've code that works perfectly with SDK version 1.1.0 to manage shadows and send state update requests to the shadow. However, when i upgrade the awsiotsdk to 1.2.0 or 1.2.1, then the program breaks in trying to get the current shadow state with following error:

Requesting current shadow state...
Exiting sample due to exception.
Traceback (most recent call last):
File "valve_code/e2e_valve.py", line 291, in
publish_get_future = shadow_client.publish_get_shadow(
File "/Users/rohitus/Documents/Projects/mb3-ocatank-iot-build/iot-device-autoregistration/.venv/lib/python3.8/site-packages/awsiot/iotshadow.py", line 104, in publish_get_shadow
raise ValueError("request.thing_name is required")
ValueError: request.thing_name is required

SDK version number Using awsiotsdk 1.1.0

Platform/OS/Device
What are you running the sdk on?
MacOS Catalina 10.15.5 and Python 3.8

To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)

        print("Requesting current shadow state...")
        publish_get_future = shadow_client.publish_get_shadow(
            request=iotshadow.GetShadowRequest(thing_name),
            qos=mqtt.QoS.AT_LEAST_ONCE)

Expected behavior
Successfully able to return from publish_get_shadow call with an object that can be used to read the current shadow value by making the call publish_get_future.result()

Logs/output

Traceback (most recent call last):
  File "valve_code/e2e_valve.py", line 291, in <module>
    publish_get_future = shadow_client.publish_get_shadow(
  File "/Users/rohitus/Documents/Projects/mb3-ocatank-iot-build/iot-device-autoregistration/.venv/lib/python3.8/site-packages/awsiot/iotshadow.py", line 104, in publish_get_shadow
    raise ValueError("request.thing_name is required")
ValueError: request.thing_name is required

RuntimeError: 1033 (AWS_IO_TLS_CTX_ERROR): Failed to create tls context when trying to call mqtt_connection_builder.mtls_from_path

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
I am writing a lambda function using python 3.7 runtime to update a device shadow when a command is received. However, i get the AWS_IO_TLS_CTX_ERROR when i try to make this call:
mqtt_connection = mqtt_connection_builder.mtls_from_path(
endpoint=endpoint,
cert_filepath=device_cert,
pri_key_filepath=device_key,
client_bootstrap=client_bootstrap,
ca_filepath=amazon_ca_cert,
client_id=valve_name,
on_connection_interrupted=on_connection_interrupted,
on_connection_resumed=on_connection_resumed,
clean_session=False,
keep_alive_secs=6) .

I've printed the values of the variables and i am sure they are all correct for the certificates and the certificates are actually available in my deployment package.

The exact same code when i run locally on my laptop as a proper python program seems to work just fine.

SDK version number - 1.20.0 for awsiotsdk and 0.15.5 for awscrt

Platform/OS/Device
What are you running the sdk on? AWS Lambda, Python 3.7.

To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)

The start of the function definition upto the point that it actually errors out:

def setup_device_connection(endpoint, device_cert, device_key, amazon_ca_cert, valve_name):
logger.debug("Inside setup_device_connection...")

event_loop_group = io.EventLoopGroup(1)
host_resolver = io.DefaultHostResolver(event_loop_group)
client_bootstrap = io.ClientBootstrap(event_loop_group, host_resolver)

logger.debug("Going to setup mqtt connection object...")

mqtt_connection = mqtt_connection_builder.mtls_from_path(
    endpoint=endpoint,
    cert_filepath=device_cert,
    pri_key_filepath=device_key,
    client_bootstrap=client_bootstrap,
    ca_filepath=amazon_ca_cert,
    client_id=valve_name,
    on_connection_interrupted=on_connection_interrupted,
    on_connection_resumed=on_connection_resumed,
    clean_session=False,
    keep_alive_secs=6)

Expected behavior

Connection to get established to IOT endpoint after mqtt_connection object is instantiated using above call.

Logs/output

Below is a sample of the debug messages i am printing:

[DEBUG] 2020-06-16T12:56:07.421Z 02ab969e-f557-4063-8e0c-e625b9ccf19d valve name = pressure_valve_1

[DEBUG] 2020-06-16T12:56:07.421Z 02ab969e-f557-4063-8e0c-e625b9ccf19d device cert = certs/pressure_valve_1_ca_cert.crt

[DEBUG] 2020-06-16T12:56:07.421Z 02ab969e-f557-4063-8e0c-e625b9ccf19d device key = certs/pressure_valve_1.key

[DEBUG] 2020-06-16T12:56:07.421Z 02ab969e-f557-4063-8e0c-e625b9ccf19d endpoint = akom112at41zv-ats.iot.us-west-2.amazonaws.com

[DEBUG] 2020-06-16T12:56:07.421Z 02ab969e-f557-4063-8e0c-e625b9ccf19d amazon root CA cert = certs/AmazonRootCA1.pem

[DEBUG] 2020-06-16T12:56:07.421Z 02ab969e-f557-4063-8e0c-e625b9ccf19d Inside setup_device_connection...

[DEBUG] 2020-06-16T12:56:07.422Z 02ab969e-f557-4063-8e0c-e625b9ccf19d Going to setup mqtt connection object...

[ERROR] RuntimeError: 1033 (AWS_IO_TLS_CTX_ERROR): Failed to create tls context.

The full stack trace for the error is as follows:
Traceback (most recent call last):
ย ย File "/var/task/lambda_function.py", line 359, in lambda_handler
ย ย ย ย return dispatch(event)
ย ย File "/var/task/lambda_function.py", line 343, in dispatch
ย ย ย ย return activate_valve_instance(intent_request)
ย ย File "/var/task/lambda_function.py", line 313, in activate_valve_instance
ย ย ย ย setup_device_connection(endpoint, device_cert, device_key, amazon_ca_cert, valve_name)
ย ย File "/var/task/lambda_function.py", line 190, in setup_device_connection
ย ย ย ย keep_alive_secs=6)
ย ย File "/var/task/awscrt/awsiot_mqtt_connection_builder.py", line 211, in mtls_from_path
ย ย ย ย return _builder(tls_ctx_options, **kwargs)
ย ย File "/var/task/awscrt/awsiot_mqtt_connection_builder.py", line 172, in _builder
ย ย ย ย tls_ctx = awscrt.io.ClientTlsContext(tls_ctx_options)
ย ย File "/var/task/awscrt/io.py", line 275, in init
ย ย ย ย options.verify_peer

After Linux suspend->resume aws data are not send to cloud. Socket error after ~20min

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • [x I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
Hi guys. We are running aws app on imx7ulp from NXP with LTE modem. Once we will suspend Linux and resume again the LTE interface will disappear for a while. But it will appear again with connection to the internet. But aws will be not able to sent any messages after internet is up again. It looks like no callbacks like: on_connection_interrupted and on_connection_resumed are called.

With eth0 it is happing too but not as often as with LTE.

Based on observation it looks like AWS_IO_SOCKET_TIMEOUT is thrown after ~20min. could be this Socket timeout edited to lower value? Also based on erros it looks like there are some issues to create socket, but at the end there is some created and used.

Before suspend 18 messages were sent. And after resume 257 message was sent.
(256-18)*5s(sleep between msgs)/60 = ~20min

Interface and internet is up in 50s after resume.

SDK version number
1.3.0

Platform/OS/Device
Linux kernel 4.19 - imx7ulp Armยฎ Cortexยฎ-A7

To Reproduce (observed behavior)
`

provLoc = "/prov"
crtLoc = "/certs"
AWS_CONNECT_DELAY_SECS = 10
AWS_KEEP_ALIVE_SECS = 3*60*60  # 3hours
client_id = "abc"
endpoint = "....-ats.iot.us-east-2.amazonaws.com"
aws_topic = "/d/"+client_id

# setup AWS connection
io.init_logging(io.LogLevel.Warn, 'stderr')
event_loop_group = io.EventLoopGroup(1)
host_resolver = io.DefaultHostResolver(event_loop_group)
client_bootstrap = io.ClientBootstrap(event_loop_group, host_resolver)

aws_mqtt = mqtt_connection_builder.mtls_from_path(
    endpoint=endpoint,
    cert_filepath="%s/device.crt" % (provLoc),
    pri_key_filepath="%s/device.key" % (provLoc),
    client_bootstrap=client_bootstrap,
    ca_filepath="%s/AmazonRootCA1.pem" % (crtLoc),
    on_connection_interrupted=aws_on_connection_interrupted,
    on_connection_resumed=aws_on_connection_resumed,
    client_id=client_id,
    clean_session=False,
    keep_alive_secs=AWS_KEEP_ALIVE_SECS)

# connect loop
connected = False
while not connected:
    try:
        print("[aws] Connecting to %s as %s ..." % (endpoint, client_id))
        connect_future = aws_mqtt.connect()
        connect_future.result()
        connected = True
    except:
        print("[aws] Failed connection: %s" % (sys.exc_info()[0]))
    sleep(AWS_CONNECT_DELAY_SECS)

print("[aws] Connected!")

# subscribe to AWS topic
print("[aws] Subscribing to topic '%s'..." % (aws_topic))
subscribe_future, packet_id = aws_mqtt.subscribe(
    topic=aws_topic,
    qos=mqtt.QoS.AT_LEAST_ONCE,
    callback=aws_on_message_received)
subscribe_result = subscribe_future.result()
print("[aws] Subscribed with %s" % (str(subscribe_result['qos'])))

i = 0
while True:
    LAST_PUBLISH_RESULT, _ = aws_mqtt.publish(topic=aws_topic,
                                              payload=str(i),
                                              qos=mqtt.QoS.AT_LEAST_ONCE)
    sleep(5)
    if not LAST_PUBLISH_RESULT.done():
        LAST_PUBLISH_RESULT.cancel()
        print("Cancel aws send request. Timeout.")
    else:
        print("Done...")
    i += 1

`

Expected behavior
On laptop: When i disable interface and enable again it will send all messages which were not sent successfully.

Logs/output
If applicable, add logs or error output.
`

[aws] Connecting to ...iot.us-east-2.amazonaws.com as abc ...
[WARN ] [2020-07-14T19:19:21Z] [b51fe460] [socket] - id=0xb4809ba8 fd=11: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[ERROR] [2020-07-14T19:19:21Z] [b51fe460] [socket] - id=0xb4809ba8 fd=11: connect failed with error code 101.
[ERROR] [2020-07-14T19:19:21Z] [b51fe460] [channel-bootstrap] - id=0x1b22ec0: failed to create socket with error 1049
[WARN ] [2020-07-14T19:19:21Z] [b51fe460] [socket] - id=0xb4809ba8 fd=11: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[aws] Connected!
[aws] Subscribing to topic 'aws-data'...
[aws] Subscribed with QoS.AT_LEAST_ONCE
[aws] Received message from topic 'aws-data': b'0'
Done...
[aws] Received message from topic 'aws-data': b'1'
Done...
...
[aws] Received message from topic 'aws-data': b'18'
s[ 1004.892006] PM: suspend entry (deep)
[ 1004.903644] PM: Syncing filesystems ... done.
[ 1004.942160] Freezing user space processes ... (elapsed 0.005 seconds) done.
[ 1004.955471] OOM killer disabled.
[ 1004.958729] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
[ 1004.968407] Suspending console(s) (use no_console_suspend to debug)
[ 1005.140539] fsl-lpuart 402e0000.serial: ttyLP1: Unable to drain transmitter
[ 1005.141117] PM: suspend devices took 0.170 seconds
[ 1005.245416] PM: resume devices took 0.090 seconds
[ 1005.262232] OOM killer enabled.
[ 1005.265421] Restarting tasks ... done.
[ 1005.360987] PM: suspend exit
[ERROR] [2020-07-14T19:19:48Z] [b473f460] [dns] - static: getaddrinfo failed with error_code -3
[ERROR] [2020-07-14T19:19:49Z] [b473f460] [dns] - static: getaddrinfo failed with error_code -3
Done...
...
[ERROR] [2020-07-14T19:19:51Z] [b473f460] [dns] - static: getaddrinfo failed with error_code -3
[ERROR] [2020-07-14T19:19:52Z] [b473f460] [dns] - static: getaddrinfo failed with error_code -3
[ERROR] [2020-07-14T19:19:53Z] [b473f460] [dns] - static: getaddrinfo failed with error_code -3
[ERROR] [2020-07-14T19:19:54Z] [b473f460] [dns] - static: getaddrinfo failed with error_code -3
Cancel aws send request. Timeout.
Cancel aws send request. Timeout.
Cancel aws send request. Timeout.
....
[ERROR] [2020-07-14T19:39:29Z] [b51fe460] [socket] - id=0xb4809ba8 fd=11: socket timed out.
[aws] Connection interrupted. error: AwsCrtError(name='AWS_IO_SOCKET_TIMEOUT', message='socket operation timed out.', code=1048)
[WARN ] [2020-07-14T19:39:30Z] [b51fe460] [socket] - id=0xb4809ba8 fd=11: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[ERROR] [2020-07-14T19:39:30Z] [b51fe460] [socket] - id=0xb4809ba8 fd=11: connect failed with error code 101.
[ERROR] [2020-07-14T19:39:30Z] [b51fe460] [channel-bootstrap] - id=0x1b22ec0: failed to create socket with error 1049
[WARN ] [2020-07-14T19:39:30Z] [b51fe460] [socket] - id=0xb4809ba8 fd=11: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[aws] Connection resumed. return_code: ConnectReturnCode.ACCEPTED session_present: True
Done...
[aws] Received message from topic 'aws-data': b'257'
Done...

`

Additional context:
On laptop with Kubuntu 20.04 i have same output during connect (aws sdk 1.3.1):
WARN ] [2020-07-14T20:17:30Z] [00007fca11ace700] [socket] - id=0x7fca04004ca0 fd=6: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[ERROR] [2020-07-14T20:17:30Z] [00007fca11ace700] [socket] - id=0x7fca04004ca0 fd=6: connect failed with error code 101.
[ERROR] [2020-07-14T20:17:30Z] [00007fca11ace700] [channel-bootstrap] - id=0x23e51b0: failed to create socket with error 1049
[WARN ] [2020-07-14T20:17:30Z] [00007fca11ace700] [socket] - id=0x7fca04004ca0 fd=6: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[aws] Connected!

Problems with the instalation

After looking to most of theclosedissues in this page, there are several discussing about this issue, but none solves it for me.

When itry toinstall either with
python3 -m pip install awsiotsdk or
git clone https://github.com/aws/aws-iot-device-sdk-python-v2.git
python3 -m pip install ./aws-iot-device-sdk-python-v2

i get the following:


Collecting awsiotsdk
Using cached awsiotsdk-1.5.1-py3-none-any.whl (18 kB)
Collecting awscrt==0.9.3
Using cached awscrt-0.9.3.tar.gz (2.5 MB)
Building wheels for collected packages: awscrt
Building wheel for awscrt (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-un4mvgep/awscrt/setup.py'"'"'; file='"'"'/tmp/pip-install-un4mvgep/awscrt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-s5x44slu
cwd: /tmp/pip-install-un4mvgep/awscrt/
Complete output (112 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/awscrt
copying awscrt/auth.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/crypto.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/http.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/io.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/mqtt.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/init.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/exceptions.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-aarch64-3.6/awscrt
running build_ext
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
--- Building dependency: s2n (RelWithDebInfo) ---
cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-un4mvgep/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-un4mvgep/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INCLUDE_PATH="/usr/include/python3.6m" -DLibCrypto_INCLUDE_DIR=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include -DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a /tmp/pip-install-un4mvgep/awscrt/crt/s2n
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Attempting to try_compile PQ ASM
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- PQ ASM try_compile failed - using generic C code for PQ crypto
-- Performing Test S2N_HAVE_EXECINFO
-- Performing Test S2N_HAVE_EXECINFO - Success
-- Found LibCrypto: /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a
-- LibCrypto Include Dir: /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a
-- Configuring done
CMake Error at CMakeLists.txt:191 (add_library):
Target "s2n" links to target "LibCrypto::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at CMakeLists.txt:239 (target_include_directories):
Error evaluating generator expression:

  $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

Target "LibCrypto::Crypto" not found.

CMake Error at CMakeLists.txt:239 (target_include_directories):
Error evaluating generator expression:

  $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

Target "LibCrypto::Crypto" not found.

CMake Error at CMakeLists.txt:191 (add_library):
Target "s2n" links to target "LibCrypto::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  CMAKE_INCLUDE_PATH

-- Build files have been written to: /tmp/pip-install-un4mvgep/awscrt/build/deps/s2n
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 263, in
'boto3'
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 204, in run
self.run_command('build')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 179, in run
self._build_dependency(lib)
File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 162, in _build_dependency
subprocess.check_call(cmake_args)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-un4mvgep/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-un4mvgep/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_INCLUDE_PATH="/usr/include/python3.6m"', '-DLibCrypto_INCLUDE_DIR=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include', '-DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a', '/tmp/pip-install-un4mvgep/awscrt/crt/s2n']' returned non-zero exit status 1.

ERROR: Failed building wheel for awscrt
Running setup.py clean for awscrt
Failed to build awscrt
Installing collected packages: awscrt, awsiotsdk
Running setup.py install for awscrt ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-un4mvgep/awscrt/setup.py'"'"'; file='"'"'/tmp/pip-install-un4mvgep/awscrt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-mbraawb4/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/grabitinigo/.local/include/python3.6m/awscrt
cwd: /tmp/pip-install-un4mvgep/awscrt/
Complete output (88 lines):
running install
running build
running build_py
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/awscrt
copying awscrt/auth.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/crypto.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/http.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/io.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/mqtt.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/init.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/exceptions.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-aarch64-3.6/awscrt
running build_ext
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
--- Building dependency: s2n (RelWithDebInfo) ---
cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-un4mvgep/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-un4mvgep/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INCLUDE_PATH=\"/usr/include/python3.6m\" -DLibCrypto_INCLUDE_DIR=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include -DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a /tmp/pip-install-un4mvgep/awscrt/crt/s2n
-- Attempting to try_compile PQ ASM
-- PQ ASM try_compile failed - using generic C code for PQ crypto
-- LibCrypto Include Dir: /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a
-- Configuring done
CMake Error at CMakeLists.txt:191 (add_library):
  Target "s2n" links to target "LibCrypto::Crypto" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at CMakeLists.txt:239 (target_include_directories):
  Error evaluating generator expression:

    $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

  Target "LibCrypto::Crypto" not found.


CMake Error at CMakeLists.txt:239 (target_include_directories):
  Error evaluating generator expression:

    $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

  Target "LibCrypto::Crypto" not found.


CMake Error at CMakeLists.txt:191 (add_library):
  Target "s2n" links to target "LibCrypto::Crypto" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


-- Generating done
-- Build files have been written to: /tmp/pip-install-un4mvgep/awscrt/build/deps/s2n
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 263, in <module>
    'boto3'
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 179, in run
    self._build_dependency(lib)
  File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 162, in _build_dependency
    subprocess.check_call(cmake_args)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-un4mvgep/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-un4mvgep/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_INCLUDE_PATH="/usr/include/python3.6m"', '-DLibCrypto_INCLUDE_DIR=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include', '-DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a', '/tmp/pip-install-un4mvgep/awscrt/crt/s2n']' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-un4mvgep/awscrt/setup.py'"'"'; file='"'"'/tmp/pip-install-un4mvgep/awscrt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-mbraawb4/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/grabitinigo/.local/include/python3.6m/awscrt Check the logs for full command output.


I've tried to execute with or without sudo -H.
Thanks for the help.

configure offline publishing in v2

Is your feature request related to a problem? Please describe.
I did not see if offline publishing was enabled by default.

Describe the solution you'd like
As in python sdk v1, it would be nice to see something like configureOfflinePublishQueueing method.

Describe alternatives you've considered
I would have a Queue of my own maintaining if the message was published or not.

Additional context
https://github.com/aws/aws-iot-device-sdk-python/blob/master/samples/basicPubSub/basicPubSub.py#L101

How do I block on `future = shadow_client.publish_update_shadow(request, mqtt.QoS.AT_LEAST_ONCE)`

Confirm by changing [ ] to [x] below:

Platform/OS/Device
What are you running the sdk on?
Jetson Nano

Describe the question
I have a python program working well with the Thing Shadow. I need updates to the shadow to be synchronsous - block - till they are actually done.

I thought I could do this since the update returns a future - however the future.result() call just hangs:

   if reportedDelta is None:
        reportedDelta = {
            "connected": 1
        }
    else:
        reportedDelta["connected"] = 1

    request = iotshadow.UpdateShadowRequest(
        thing_name=thing_name,
        state=iotshadow.ShadowState(
            desired=desiredDelta,
            reported=reportedDelta
        )
    )
    future = shadow_client.publish_update_shadow(request, mqtt.QoS.AT_LEAST_ONCE)

    future.result()

How can I block till the update is completed?

Support ALPN in pubsub.py sample

Is your feature request related to a problem? Please describe.
In some environments, ALPN connections on port 443 are required. The pubsub.py sample does not show how to
configure for ALPN for MQTT over port 443, and it is not clear if the v2 SDK supports ALPN.

Describe the solution you'd like
Confirm that ALPN for MQTT over port 443 is supported in v2 and add it to the pubsub.py sample.

Describe alternatives you've considered
The ALPN support in the v1 SDK has been working well, but migrating to v2 seems to be the route forward.

Additional context
None that I can think of.

samples/pubsub.py gives AWS_ERROR_HTTP_CALLBACK_FAILURE or AWS_ERROR_MQTT_UNEXPECTED_HANGUP

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
The pubsub sample gives errors:

  • With --websockets: AwsCrtError(name='AWS_ERROR_HTTP_CALLBACK_FAILURE', message='A callback has reported failure.', code=2064)
  • Without --websockets: AwsCrtError(name='AWS_ERROR_MQTT_UNEXPECTED_HANGUP', message='The connection was closed unexpectedly.', code=5134)

SDK version number
awsiotsdk-1.5.0
awscrt-0.9.0

Platform/OS/Device
Docker python:3.8-buster

To Reproduce (observed behavior)

  1. Follow the IoT quick connect guide to get a connection kit. Extract the kit to a directory.
  2. Run a docker image, mounting the connection kit as a volume: docker run -v `pwd`:/home/root/kit -it python:3.8-buster bash

Examine the start.sh file from the connection kit. It will have your endpoint. The cert and key are included in the connection kit as well.

While in bash in the docker container:

python3 -m pip install awsiotsdk
cd /home/root/kit
git clone https://github.com/aws/aws-iot-device-sdk-python-v2.git
curl https://www.amazontrust.com/repository/AmazonRootCA1.pem > root-CA.crt
python aws-iot-device-sdk-python-v2/samples/pubsub.py --endpoint YOUR_ENDPOINT_HERE-ats.iot.us-east-2.amazonaws.com --root-ca root-CA.crt --cert YOUR_CERT_NAME.cert.pem --key YOUR_CERT_NAME.private.key --use-websocket

This gives the errors listed above

Expected behavior
The pubsub example should publish and receive messages.

Logs/output

root@4818cae41c99:/home/root/kit# python aws-iot-device-sdk-python-v2/samples/pubsub.py --endpoint <SANITIZED>-ats.iot.us-east-2.amazonaws.com --root-ca root-CA.crt --cert eric-dev-docker.cert.pem --key eric-dev-docker.private.key --use-websocket --verbosity Debug
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [event-loop] - id=0x562da6ede5e0: Initializing edge-triggered epoll
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [event-loop] - id=0x562da6ede5e0: Using eventfd for cross-thread notifications.
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [event-loop] - id=0x562da6ede5e0: Starting event-loop thread.
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [dns] - id=0x562da6edd9a0: Initializing default host resolver with 16 max host entries.
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [channel-bootstrap] - id=0x562da6f23160: Initializing client bootstrap with event-loop group 0x562da6f22890
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthProfile] - Creating profile collection from file at "/root/.aws/config"
[ERROR] [2020-10-05T05:45:36Z] [00007f2988c15740] [file-utils] - static: Failed to open file /root/.aws/config with errno 2
[WARN] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthProfile] - Failed to read file at "/root/.aws/config"
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthProfile] - Creating profile collection from file at "/root/.aws/credentials"
[ERROR] [2020-10-05T05:45:36Z] [00007f2988c15740] [file-utils] - static: Failed to open file /root/.aws/credentials with errno 2
[WARN] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthProfile] - Failed to read file at "/root/.aws/credentials"
[ERROR] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthCredentialsProvider] - static: Profile credentials parser could not load or parse a credentials or config file.
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [connection-manager] - id=0x562da6f2b4f0: Successfully created
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [exp-backoff-strategy] - id=0x562da6f324e0: Initializing exponential backoff retry strategy with scale factor: 0 jitter mode: 0 and max retries 1
[INFO] [2020-10-05T05:45:36Z] [00007f2987679700] [event-loop] - id=0x562da6ede5e0: main loop started
[INFO] [2020-10-05T05:45:36Z] [00007f2987679700] [event-loop] - id=0x562da6ede5e0: default timeout 100000, and max events to process per tick 100
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [tls-handler] - ctx: Setting ALPN list http/1.1
Connecting to <SANITIZED>-ats.iot.us-east-2.amazonaws.com with client ID 'test-a8b55126-24ac-4731-85d1-2207e2da7b10'...
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [mqtt-client] - client=0x562da6faa760: Initalizing MQTT client
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [mqtt-client] - id=0x562da704ad50: Creating new connection
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [mqtt-topic-tree] - tree=0x562da704afa8: Creating new topic tree
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [mqtt-client] - id=0x562da704ad50: using ping timeout of 3000000000 ns
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthCredentialsProvider] - (id=0x562da6ecebd0) Credentials provider chain get credentials dispatch
[INFO] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthCredentialsProvider] - (id=0x562da6db1d30) Cached credentials provider has expired credentials.  Requerying.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthCredentialsProvider] - (id=0x562da6f22830) Credentials provider chain get credentials dispatch
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthCredentialsProvider] - (id=0x562da6f22830) Credentials provider chain callback 1 invoked with invalid credentials and error code 6152
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [AuthCredentialsProvider] - (id=0x562da6f22830) Credentials provider chain invoking chain member #1
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [exp-backoff-strategy] - id=0x562da6f324e0: Initializing retry token 0x562da704b0b0
[DEBUG] [2020-10-05T05:45:36Z] [00007f2988c15740] [Unknown] - (id=0x562da6f2a4e0) IMDS client's token is invalid and is now updating.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x562da704b100: Scheduling aws_exponential_backoff_retry_task task for immediate execution
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x562da704b100: Running aws_exponential_backoff_retry_task task with <Running> status
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [exp-backoff-strategy] - id=0x562da6f324e0: Vending retry_token 0x562da704b0b0
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [Unknown] - id=0x562da6f2a4e0: IMDS Client successfully acquired retry token.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Acquire connection
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: snapshot - state=1, idle_connection_count=0, pending_acquire_count=1, pending_connect_count=1, vended_connection_count=0, open_connection_count=0, ref_count=1
[INFO] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Requesting 1 new connections from http
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [dns] - id=0x562da6edd9a0: Host resolution requested for 169.254.169.254
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [dns] - id=0x562da6edd9a0: No cached entries found for 169.254.169.254 starting new resolver thread.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2986327700] [dns] - static: resolving host 169.254.169.254
[DEBUG] [2020-10-05T05:45:36Z] [00007f2986327700] [dns] - static: resolved record: 169.254.169.254
[DEBUG] [2020-10-05T05:45:36Z] [00007f2986327700] [dns] - static: new address resolved 169.254.169.254 for host 169.254.169.254 caching
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x7f297c005110: Scheduling attempt_connection task for immediate execution
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x7f297c005110: Running attempt_connection task with <Running> status
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: initializing with domain 0 and type 0
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: setting socket options to: keep-alive 0, keep idle 0, keep-alive interval 0, keep-alive probe count 0.
[WARN] [2020-10-05T05:45:36Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: beginning connect.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: connecting to endpoint 169.254.169.254:80.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x7f2978007070: Scheduling (null) task for future execution at time 1642261114754200
[ERROR] [2020-10-05T05:45:36Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: connection failure
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: client connection on socket 0x7f2978006b20 completed with error 1047.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: recording bad address 169.254.169.254.
[INFO] [2020-10-05T05:45:36Z] [00007f2987679700] [dns] - id=0x562da6edd9a0: recording failure for record 169.254.169.254 for 169.254.169.254, moving to bad list
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [dns] - static: purging address 169.254.169.254 for host 169.254.169.254 from the cache due to cache eviction or shutdown
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: closing
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x7f2978006ce0: Scheduling epoll_event_loop_unsubscribe_cleanup task for immediate execution
[ERROR] [2020-10-05T05:45:36Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: Connection failed with error_code 1047.
[ERROR] [2020-10-05T05:45:36Z] [00007f2987679700] [http-connection] - static: Client connection failed with error 1047 (AWS_IO_SOCKET_CONNECTION_REFUSED).
[WARN] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Failed to obtain new connection from http layer, error 1047(socket connection refused.)
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Failing excess connection acquisition with error code 1047
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: snapshot - state=1, idle_connection_count=0, pending_acquire_count=0, pending_connect_count=0, vended_connection_count=0, open_connection_count=0, ref_count=1
[WARN] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Failed to complete connection acquisition with error_code 1047(socket connection refused.)
[WARN] [2020-10-05T05:45:36Z] [00007f2987679700] [Unknown] - id=0x562da6f2a4e0: IMDS Client failed to acquire a connection, error code 1047(socket connection refused.)
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [exp-backoff-strategy] - id=0x562da6f324e0: Initializing retry token 0x7f2978006a10
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x7f2978006a60: Scheduling aws_exponential_backoff_retry_task task for immediate execution
[ERROR] [2020-10-05T05:45:36Z] [00007f2987679700] [Unknown] - (id=0x562da6f2a4e0) IMDS client failed to update the token from IMDS.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: releasing bootstrap reference
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x7f2978006ce0: Running epoll_event_loop_unsubscribe_cleanup task with <Running> status
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [task-scheduler] - id=0x7f2978006a60: Running aws_exponential_backoff_retry_task task with <Running> status
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [exp-backoff-strategy] - id=0x562da6f324e0: Vending retry_token 0x7f2978006a10
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [Unknown] - id=0x562da6f2a4e0: IMDS Client successfully acquired retry token.
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Acquire connection
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: snapshot - state=1, idle_connection_count=0, pending_acquire_count=1, pending_connect_count=1, vended_connection_count=0, open_connection_count=0, ref_count=1
[INFO] [2020-10-05T05:45:36Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Requesting 1 new connections from http
[DEBUG] [2020-10-05T05:45:36Z] [00007f2987679700] [dns] - id=0x562da6edd9a0: Host resolution requested for 169.254.169.254
[DEBUG] [2020-10-05T05:45:37Z] [00007f2986327700] [dns] - static: resolving host 169.254.169.254
[DEBUG] [2020-10-05T05:45:37Z] [00007f2986327700] [dns] - static: resolved record: 169.254.169.254
[INFO] [2020-10-05T05:45:37Z] [00007f2986327700] [dns] - static: promoting spotty record 169.254.169.254 for 169.254.169.254 back to good list
[DEBUG] [2020-10-05T05:45:37Z] [00007f2986327700] [dns] - static: purging address 169.254.169.254 for host 169.254.169.254 from the cache due to cache eviction or shutdown
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [task-scheduler] - id=0x7f297c005630: Scheduling attempt_connection task for immediate execution
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [task-scheduler] - id=0x7f297c005630: Running attempt_connection task with <Running> status
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: initializing with domain 0 and type 0
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: setting socket options to: keep-alive 0, keep idle 0, keep-alive interval 0, keep-alive probe count 0.
[WARN] [2020-10-05T05:45:37Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: beginning connect.
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: connecting to endpoint 169.254.169.254:80.
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [task-scheduler] - id=0x7f29780081f0: Scheduling (null) task for future execution at time 1642262115665200
[ERROR] [2020-10-05T05:45:37Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: connection failure
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: client connection on socket 0x7f2978006b20 completed with error 1047.
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: recording bad address 169.254.169.254.
[INFO] [2020-10-05T05:45:37Z] [00007f2987679700] [dns] - id=0x562da6edd9a0: recording failure for record 169.254.169.254 for 169.254.169.254, moving to bad list
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [dns] - static: purging address 169.254.169.254 for host 169.254.169.254 from the cache due to cache eviction or shutdown
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [socket] - id=0x7f2978006b20 fd=7: closing
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [task-scheduler] - id=0x7f29780078e0: Scheduling epoll_event_loop_unsubscribe_cleanup task for immediate execution
[ERROR] [2020-10-05T05:45:37Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: Connection failed with error_code 1047.
[ERROR] [2020-10-05T05:45:37Z] [00007f2987679700] [http-connection] - static: Client connection failed with error 1047 (AWS_IO_SOCKET_CONNECTION_REFUSED).
[WARN] [2020-10-05T05:45:37Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Failed to obtain new connection from http layer, error 1047(socket connection refused.)
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Failing excess connection acquisition with error code 1047
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: snapshot - state=1, idle_connection_count=0, pending_acquire_count=0, pending_connect_count=0, vended_connection_count=0, open_connection_count=0, ref_count=1
[WARN] [2020-10-05T05:45:37Z] [00007f2987679700] [connection-manager] - id=0x562da6f2b4f0: Failed to complete connection acquisition with error_code 1047(socket connection refused.)
[WARN] [2020-10-05T05:45:37Z] [00007f2987679700] [Unknown] - id=0x562da6f2a4e0: IMDS Client failed to acquire a connection, error code 1047(socket connection refused.)
[INFO] [2020-10-05T05:45:37Z] [00007f2987679700] [AuthCredentialsProvider] - (id=0x562da6f22830) Credentials provider chain callback terminating on index 2, with invalid credentials and error code 6154
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [AuthCredentialsProvider] - (id=0x562da6db1d30) Cached credentials provider next refresh time set to 1643160120369800
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [AuthCredentialsProvider] - (id=0x562da6db1d30) Cached credentials provider was unable to source credentials on refresh
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [AuthCredentialsProvider] - (id=0x562da6db1d30) Cached credentials provider notifying pending queries of new credentials
[ERROR] [2020-10-05T05:45:37Z] [00007f2987679700] [AuthCredentialsProvider] - (id=0x562da6ecebd0) Default chain credentials provider failed to source credentials with error 6154(aws-c-auth: AWS_AUTH_CREDENTIALS_PROVIDER_IMDS_SOURCE_FAILURE, Valid credentials could not be sourced by the IMDS provider)
[ERROR] [2020-10-05T05:45:37Z] [00007f2987679700] [AuthSigning] - (id=0x562da70be2b0) Credentials Provider failed to source credentials with error 6154(aws-c-auth: AWS_AUTH_CREDENTIALS_PROVIDER_IMDS_SOURCE_FAILURE, Valid credentials could not be sourced by the IMDS provider)
[ERROR] [2020-10-05T05:45:37Z] [00007f2987679700] [mqtt-client] - id=0x562da704ad50: Failure reported by websocket handshake transform callback.
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [channel-bootstrap] - id=0x562da6f23160: releasing bootstrap reference
[DEBUG] [2020-10-05T05:45:37Z] [00007f2987679700] [task-scheduler] - id=0x7f29780078e0: Running epoll_event_loop_unsubscribe_cleanup task with <Running> status
Traceback (most recent call last):
  File "aws-iot-device-sdk-python-v2/samples/pubsub.py", line 130, in <module>
    connect_future.result()
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_ERROR_HTTP_CALLBACK_FAILURE', message='A callback has reported failure.', code=2064)
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [mqtt-client] - id=0x562da704ad50: user called disconnect.
[ERROR] [2020-10-05T05:45:37Z] [00007f2988c15740] [mqtt-client] - id=0x562da704ad50: Connection is not open, and may not be closed
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [mqtt-client] - id=0x562da704ad50: Destroying connection
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [mqtt-topic-tree] - tree=0x562da704afa8: Cleaning up topic tree
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [mqtt-client] - client=0x562da6faa760: Cleaning up MQTT client
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [channel-bootstrap] - id=0x562da6f23160: releasing bootstrap reference
[INFO] [2020-10-05T05:45:37Z] [00007f2988c15740] [connection-manager] - id=0x562da6f2b4f0: release
[INFO] [2020-10-05T05:45:37Z] [00007f2988c15740] [connection-manager] - id=0x562da6f2b4f0: ref count now zero, starting shut down process
[INFO] [2020-10-05T05:45:37Z] [00007f2988c15740] [connection-manager] - id=0x562da6f2b4f0: manager release, failing 0 pending acquisitions
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [connection-manager] - id=0x562da6f2b4f0: snapshot - state=2, idle_connection_count=0, pending_acquire_count=0, pending_connect_count=0, vended_connection_count=0, open_connection_count=0, ref_count=0
[INFO] [2020-10-05T05:45:37Z] [00007f2988c15740] [connection-manager] - id=0x562da6f2b4f0: Destroying self
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [channel-bootstrap] - id=0x562da6f23160: releasing bootstrap reference
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [channel-bootstrap] - id=0x562da6f23160: releasing bootstrap reference
[DEBUG] [2020-10-05T05:45:37Z] [00007f2988c15740] [channel-bootstrap] - id=0x562da6f23160: destroying
[INFO] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [event-loop] - id=0x55b935967140: Initializing edge-triggered epoll
[INFO] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [event-loop] - id=0x55b935967140: Using eventfd for cross-thread notifications.
[INFO] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [event-loop] - id=0x55b935967140: Starting event-loop thread.
[INFO] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [dns] - id=0x55b93591e360: Initializing default host resolver with 16 max host entries.
[INFO] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [event-loop] - id=0x55b935967140: main loop started
[INFO] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [event-loop] - id=0x55b935967140: default timeout 100000, and max events to process per tick 100
[INFO] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [channel-bootstrap] - id=0x55b9359818b0: Initializing client bootstrap with event-loop group 0x55b935980c90
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [tls-handler] - ctx: Certificate and key have been set, setting them up now.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [tls-handler] - ctx: Setting ALPN list x-amzn-mqtt-ca
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-client] - client=0x55b935adcb80: Initalizing MQTT client
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-client] - id=0x55b935adb660: Creating new connection
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-topic-tree] - tree=0x55b935adb8b8: Creating new topic tree
Connecting to <SANITIZED>-ats.iot.us-east-2.amazonaws.com with client ID 'test-37169f71-bf7c-4ce8-b74c-da182203deed'...
[INFO] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-client] - id=0x55b935adb660: using ping timeout of 3000000000 ns
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [dns] - id=0x55b93591e360: Host resolution requested for <SANITIZED>-ats.iot.us-east-2.amazonaws.com
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [dns] - id=0x55b93591e360: No cached entries found for <SANITIZED>-ats.iot.us-east-2.amazonaws.com starting new resolver thread.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: resolving host <SANITIZED>-ats.iot.us-east-2.amazonaws.com
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: resolved record: 18.219.65.120
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: resolved record: 3.18.85.137
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: resolved record: 3.131.154.213
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: resolved record: 2600:1f00:6000::12db:63c0
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: resolved record: 2600:1f00:6000::12df:f5f8
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: resolved record: 2600:1f00:6000::382:4e48
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: new address resolved 18.219.65.120 for host <SANITIZED>-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: new address resolved 3.18.85.137 for host <SANITIZED>-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: new address resolved 3.131.154.213 for host <SANITIZED>-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: new address resolved 2600:1f00:6000::12db:63c0 for host <SANITIZED>-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: new address resolved 2600:1f00:6000::12df:f5f8 for host <SANITIZED>-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf0c7e700] [dns] - static: new address resolved 2600:1f00:6000::382:4e48 for host <SANITIZED>-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce8008210: Scheduling attempt_connection task for immediate execution
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce80083c0: Scheduling attempt_connection task for immediate execution
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce8008210: Running attempt_connection task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: initializing with domain 1 and type 0
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: setting socket options to: keep-alive 0, keep idle 0, keep-alive interval 0, keep-alive probe count 0.
[WARN] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: beginning connect.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: connecting to endpoint 2600:1f00:6000::12db:63c0:443.
[ERROR] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: connect failed with error code 99.
[INFO] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [dns] - id=0x55b93591e360: recording failure for record 2600:1f00:6000::12db:63c0 for <SANITIZED>-ats.iot.us-east-2.amazonaws.com, moving to bad list
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [dns] - static: purging address 2600:1f00:6000::12db:63c0 for host <SANITIZED>-ats.iot.us-east-2.amazonaws.com from the cache due to cache eviction or shutdown
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: is still open, closing...
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: closing
[ERROR] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel-bootstrap] - id=0x55b9359818b0: failed to create socket with error 1055
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce80083c0: Running attempt_connection task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: initializing with domain 0 and type 0
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: setting socket options to: keep-alive 0, keep idle 0, keep-alive interval 0, keep-alive probe count 0.
[WARN] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: setsockopt() for NO_SIGNAL failed with errno 92. If you are having SIGPIPE signals thrown, you may want to install a signal trap in your application layer.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: beginning connect.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: connecting to endpoint 18.219.65.120:443.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006850: Scheduling (null) task for future execution at time 1642285485124700
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce40056f0: Scheduling epoll_event_loop_unsubscribe_cleanup task for immediate execution
[INFO] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: connection success
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: local endpoint 172.17.0.3:50754
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: assigning to event loop 0x55b935967140
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel-bootstrap] - id=0x55b9359818b0: client connection on socket 0x7f3ce4005180 completed with error 0.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: Beginning creation and setup of new channel.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006f10: Scheduling on_channel_setup_complete task for immediate execution
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce40056f0: Running epoll_event_loop_unsubscribe_cleanup task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006f10: Running on_channel_setup_complete task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: setup complete, notifying caller.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: no message pool is currently stored in the event-loop local storage, adding 0x7f3ce40072b0 with max message size 16384, message count 4, with 4 small blocks of 128 bytes.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel-bootstrap] - id=0x55b9359818b0: channel 0x7f3ce4006af0 setup succeeded: bootstrapping.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket-handler] - id=0x7f3ce4017860: Socket handler created with max_read_size of 16384
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce40179c0: Scheduling tls_timeout task for future execution at time 1642284545017500
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [tls-handler] - id=0x7f3ce4017990: Alpn protocol negotiated as x-amzn-mqtt-ca
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [tls-handler] - id=0x7f3ce4017990: Remote server name is <SANITIZED>-ats.iot.us-east-2.amazonaws.com
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel-bootstrap] - id=0x55b9359818b0: tls negotiation result 0 on channel 0x7f3ce4006af0
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [mqtt-client] - id=0x55b935adb660: Connection successfully opened, sending CONNECT packet
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4030d00: Scheduling mqtt_connack_timeout task for future execution at time 1642283671704000
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [mqtt-client] - id=0x55b935adb660: Adding username ?SDK=PythonV2&Version=0.9.0 to connection
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [tls-handler] - id=0x7f3ce4017990: Alert code 0
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006cf0: Scheduling channel_shutdown task for immediate execution
[INFO] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: zero read, socket is closed
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: Channel shutdown is already pending, not scheduling another.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006cf0: Running channel_shutdown task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: beginning shutdown process
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: handler 0x7f3ce4017860 shutdown in read dir completed.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [tls-handler] - id=0x7f3ce4017990: Shutting down read direction with error code 0
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: handler 0x7f3ce4017990 shutdown in read dir completed.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: handler 0x55b935adb688 shutdown in read dir completed.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006b18: Scheduling (null) task for immediate execution
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006b18: Running (null) task with <Running> status
[INFO] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [mqtt-client] - id=0x55b935adb660: sending disconnect message as part of graceful shutdown.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [mqtt-client] - id=0x55b935adb660: failed to send courteous disconnect io message
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: handler 0x55b935adb688 shutdown in write dir completed.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [tls-handler] - id=0x7f3ce4017990: Shutting down write direction
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: handler 0x7f3ce4017990 shutdown in write dir completed.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [socket] - id=0x7f3ce4005180 fd=6: closing
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce40067a0: Scheduling epoll_event_loop_unsubscribe_cleanup task for immediate execution
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4017900: Scheduling socket_handler_close task for immediate execution
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce40067a0: Running epoll_event_loop_unsubscribe_cleanup task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4017900: Running socket_handler_close task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: handler 0x7f3ce4017860 shutdown in write dir completed.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006b18: Scheduling (null) task for immediate execution
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4006b18: Running (null) task with <Running> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: during shutdown, canceling task 0x7f3ce40179c0
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce40179c0: Running tls_timeout task with <Canceled> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: during shutdown, canceling task 0x7f3ce4030d00
Traceback (most recent call last):
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [task-scheduler] - id=0x7f3ce4030d00: Running mqtt_connack_timeout task with <Canceled> status
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel-bootstrap] - id=0x55b9359818b0: channel 0x7f3ce4006af0 shutdown with error 0.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel] - id=0x7f3ce4006af0: destroying channel.
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf18e9700] [channel-bootstrap] - id=0x55b9359818b0: releasing bootstrap reference
  File "aws-iot-device-sdk-python-v2/samples/pubsub.py", line 130, in <module>
    connect_future.result()
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_ERROR_MQTT_UNEXPECTED_HANGUP', message='The connection was closed unexpectedly.', code=5134)
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-client] - id=0x55b935adb660: user called disconnect.
[ERROR] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-client] - id=0x55b935adb660: Connection is not open, and may not be closed
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-client] - id=0x55b935adb660: Destroying connection
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-topic-tree] - tree=0x55b935adb8b8: Cleaning up topic tree
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [mqtt-client] - client=0x55b935adcb80: Cleaning up MQTT client
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [channel-bootstrap] - id=0x55b9359818b0: releasing bootstrap reference
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [channel-bootstrap] - id=0x55b9359818b0: releasing bootstrap reference
[DEBUG] [2020-10-05T05:45:57Z] [00007f3cf2e45740] [channel-bootstrap] - id=0x55b9359818b0: destroying

Additional context
The start.sh that comes with the connection kit appears to work, but it uses the old V1 sdk. You can see it work by following the guide:

chmod +x start.sh
./start.sh

Fails to install on Nvidia jetson nano

Tried installing on jetson nano using pip3 insall awsiotsdk. Fails with the following "dangerous relocation: unsupported relocation" error. I attached complete log below.

`Collecting awsiotsdk
Downloading https://files.pythonhosted.org/packages/cb/7c/b91125f0c603989a76c8ba5c2fda598a7b8b657730e5e1557c0b6dfc7dbe/awsiotsdk-1.0.5-py2.py3-none-any.whl
Collecting awscrt==0.5.11 (from awsiotsdk)
Downloading https://files.pythonhosted.org/packages/10/c0/f41d126bbd3744146c6e25ad77cc4eff10988173f3226687a247c80d1801/awscrt-0.5.11.tar.gz (1.8MB)
100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 1.9MB 283kB/s
Building wheels for collected packages: awscrt
Running setup.py bdist_wheel for awscrt ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-6b20mmff/awscrt/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpag3lh30spip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/awscrt
copying awscrt/io.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/exceptions.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/http.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/crypto.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/init.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/mqtt.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/auth.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-aarch64-3.6/awscrt
running build_ext
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
--- Building dependency: s2n (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Forcing usage of generic C code for PQ crypto
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/s2n
Scanning dependencies of target s2n
[ 0%] Building C object CMakeFiles/s2n.dir/crypto/s2n_aead_cipher_aes_gcm.c.o
[ 1%] Building C object CMakeFiles/s2n.dir/crypto/s2n_aead_cipher_chacha20_poly1305.c.o
[ 1%] Building C object CMakeFiles/s2n.dir/crypto/s2n_cbc_cipher_3des.c.o
[ 2%] Building C object CMakeFiles/s2n.dir/crypto/s2n_cbc_cipher_aes.c.o
[ 3%] Building C object CMakeFiles/s2n.dir/crypto/s2n_certificate.c.o
[ 3%] Building C object CMakeFiles/s2n.dir/crypto/s2n_cipher.c.o
[ 4%] Building C object CMakeFiles/s2n.dir/crypto/s2n_composite_cipher_aes_sha.c.o
[ 5%] Building C object CMakeFiles/s2n.dir/crypto/s2n_dhe.c.o
[ 5%] Building C object CMakeFiles/s2n.dir/crypto/s2n_drbg.c.o
[ 6%] Building C object CMakeFiles/s2n.dir/crypto/s2n_ecc_evp.c.o
[ 7%] Building C object CMakeFiles/s2n.dir/crypto/s2n_ecdsa.c.o
[ 7%] Building C object CMakeFiles/s2n.dir/crypto/s2n_evp.c.o
[ 8%] Building C object CMakeFiles/s2n.dir/crypto/s2n_fips.c.o
[ 9%] Building C object CMakeFiles/s2n.dir/crypto/s2n_hash.c.o
[ 9%] Building C object CMakeFiles/s2n.dir/crypto/s2n_hkdf.c.o
[ 10%] Building C object CMakeFiles/s2n.dir/crypto/s2n_hmac.c.o
[ 11%] Building C object CMakeFiles/s2n.dir/crypto/s2n_pkey.c.o
[ 11%] Building C object CMakeFiles/s2n.dir/crypto/s2n_rsa.c.o
[ 12%] Building C object CMakeFiles/s2n.dir/crypto/s2n_rsa_pss.c.o
[ 13%] Building C object CMakeFiles/s2n.dir/crypto/s2n_sequence.c.o
[ 13%] Building C object CMakeFiles/s2n.dir/crypto/s2n_stream_cipher_null.c.o
[ 14%] Building C object CMakeFiles/s2n.dir/crypto/s2n_stream_cipher_rc4.c.o
[ 15%] Building C object CMakeFiles/s2n.dir/crypto/s2n_tls13_keys.c.o
[ 15%] Building C object CMakeFiles/s2n.dir/error/s2n_errno.c.o
[ 16%] Building C object CMakeFiles/s2n.dir/pq-crypto/pq_random.c.o
[ 17%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/aes_ctr_prf.c.o
[ 17%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/bike_r1_kem.c.o
[ 18%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/converts_portable.c.o
[ 19%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/decode.c.o
[ 19%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/error.c.o
[ 20%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/openssl_utils.c.o
[ 21%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/parallel_hash.c.o
[ 21%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/sampling.c.o
[ 22%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/sampling_portable.c.o
[ 23%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/secure_decode_portable.c.o
[ 23%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/utilities.c.o
[ 24%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/aes_ctr_prf.c.o
[ 25%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/bike_r2_kem.c.o
[ 25%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/decode.c.o
[ 26%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/error.c.o
[ 26%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/gf2x_mul.c.o
[ 27%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/gf2x_portable.c.o
[ 28%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/openssl_utils.c.o
[ 28%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/parallel_hash.c.o
[ 29%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/sampling.c.o
[ 30%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/sampling_portable.c.o
[ 30%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/secure_decode_portable.c.o
[ 31%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/utilities.c.o
[ 32%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/fp_generic_r1.c.o
[ 32%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/P503_r1.c.o
[ 33%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/sike_r1_kem.c.o
[ 34%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/fips202_r1.c.o
[ 34%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r2/fips202.c.o
[ 35%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r2/P434.c.o
[ 36%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer.c.o
[ 36%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_base64.c.o
[ 37%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_file.c.o
[ 38%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_pem.c.o
[ 38%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_text.c.o
[ 39%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_certificate_extensions.c.o
[ 40%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_alpn.c.o
[ 40%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_cookie.c.o
[ 41%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_ec_point_format.c.o
[ 42%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_key_share.c.o
[ 42%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_max_frag_len.c.o
[ 43%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_pq_kem.c.o
[ 44%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_renegotiation_info.c.o
[ 44%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_sct_list.c.o
[ 45%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_server_name.c.o
[ 46%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_session_ticket.c.o
[ 46%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_signature_algorithms.c.o
[ 47%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_status_request.c.o
[ 48%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_supported_groups.c.o
[ 48%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_supported_versions.c.o
[ 49%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_cookie.c.o
[ 50%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_key_share.c.o
[ 50%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_alpn.c.o
[ 51%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_certificate_status.c.o
[ 51%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_cookie.c.o
[ 52%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_key_share.c.o
[ 53%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_max_fragment_length.c.o
[ 53%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_renegotiation_info.c.o
[ 54%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_sct_list.c.o
[ 55%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_server_name.c.o
[ 55%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_session_ticket.c.o
[ 56%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_status_request.c.o
[ 57%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_supported_versions.c.o
[ 57%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_supported_versions.c.o
[ 58%] Building C object CMakeFiles/s2n.dir/tls/s2n_aead.c.o
[ 59%] Building C object CMakeFiles/s2n.dir/tls/s2n_alerts.c.o
[ 59%] Building C object CMakeFiles/s2n.dir/tls/s2n_cbc.c.o
[ 60%] Building C object CMakeFiles/s2n.dir/tls/s2n_change_cipher_spec.c.o
[ 61%] Building C object CMakeFiles/s2n.dir/tls/s2n_cipher_preferences.c.o
[ 61%] Building C object CMakeFiles/s2n.dir/tls/s2n_cipher_suites.c.o
[ 62%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert.c.o
[ 63%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert_preferences.c.o
[ 63%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert_request.c.o
[ 64%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert_verify.c.o
[ 65%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_extensions.c.o
[ 65%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_finished.c.o
[ 66%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_hello.c.o
[ 67%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_key_exchange.c.o
[ 67%] Building C object CMakeFiles/s2n.dir/tls/s2n_config.c.o
[ 68%] Building C object CMakeFiles/s2n.dir/tls/s2n_connection.c.o
[ 69%] Building C object CMakeFiles/s2n.dir/tls/s2n_connection_evp_digests.c.o
[ 69%] Building C object CMakeFiles/s2n.dir/tls/s2n_encrypted_extensions.c.o
[ 70%] Building C object CMakeFiles/s2n.dir/tls/s2n_handshake.c.o
[ 71%] Building C object CMakeFiles/s2n.dir/tls/s2n_handshake_io.c.o
[ 71%] Building C object CMakeFiles/s2n.dir/tls/s2n_kem.c.o
[ 72%] Building C object CMakeFiles/s2n.dir/tls/s2n_kex.c.o
[ 73%] Building C object CMakeFiles/s2n.dir/tls/s2n_ocsp_stapling.c.o
[ 73%] Building C object CMakeFiles/s2n.dir/tls/s2n_prf.c.o
[ 74%] Building C object CMakeFiles/s2n.dir/tls/s2n_protocol_preferences.c.o
[ 75%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read.c.o
[ 75%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_aead.c.o
[ 76%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_cbc.c.o
[ 76%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_composite.c.o
[ 77%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_stream.c.o
[ 78%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_write.c.o
[ 78%] Building C object CMakeFiles/s2n.dir/tls/s2n_recv.c.o
[ 79%] Building C object CMakeFiles/s2n.dir/tls/s2n_resume.c.o
[ 80%] Building C object CMakeFiles/s2n.dir/tls/s2n_send.c.o
[ 80%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_cert.c.o
[ 81%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_cert_verify.c.o
[ 82%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_done.c.o
[ 82%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_extensions.c.o
[ 83%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_finished.c.o
[ 84%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_hello.c.o
[ 84%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_hello_retry.c.o
[ 85%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_key_exchange.c.o
[ 86%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_new_session_ticket.c.o
[ 86%] Building C object CMakeFiles/s2n.dir/tls/s2n_shutdown.c.o
[ 87%] Building C object CMakeFiles/s2n.dir/tls/s2n_signature_algorithms.c.o
[ 88%] Building C object CMakeFiles/s2n.dir/tls/s2n_signature_scheme.c.o
[ 88%] Building C object CMakeFiles/s2n.dir/tls/s2n_tls.c.o
[ 89%] Building C object CMakeFiles/s2n.dir/tls/s2n_tls13.c.o
[ 90%] Building C object CMakeFiles/s2n.dir/tls/s2n_tls13_handshake.c.o
[ 90%] Building C object CMakeFiles/s2n.dir/tls/s2n_x509_validator.c.o
[ 91%] Building C object CMakeFiles/s2n.dir/utils/s2n_array.c.o
[ 92%] Building C object CMakeFiles/s2n.dir/utils/s2n_asn1_time.c.o
[ 92%] Building C object CMakeFiles/s2n.dir/utils/s2n_blob.c.o
[ 93%] Building C object CMakeFiles/s2n.dir/utils/s2n_init.c.o
[ 94%] Building C object CMakeFiles/s2n.dir/utils/s2n_map.c.o
[ 94%] Building C object CMakeFiles/s2n.dir/utils/s2n_mem.c.o
[ 95%] Building C object CMakeFiles/s2n.dir/utils/s2n_random.c.o
[ 96%] Building C object CMakeFiles/s2n.dir/utils/s2n_rfc5952.c.o
[ 96%] Building C object CMakeFiles/s2n.dir/utils/s2n_safety.c.o
[ 97%] Building C object CMakeFiles/s2n.dir/utils/s2n_set.c.o
[ 98%] Building C object CMakeFiles/s2n.dir/utils/s2n_socket.c.o
[ 98%] Building C object CMakeFiles/s2n.dir/utils/s2n_str.c.o
[ 99%] Building C object CMakeFiles/s2n.dir/utils/s2n_timer.c.o
[100%] Linking C static library lib/libs2n.a
[100%] Built target s2n
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/s2n.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libs2n.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/s2n/cmake/s2n-config.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/FindLibCrypto.cmake
--- Building dependency: aws-c-common (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS - Success
-- Performing Test AWS_HAVE_MSVC_MULX
-- Performing Test AWS_HAVE_MSVC_MULX - Failed
-- Performing Test AWS_HAVE_GCC_INLINE_ASM
-- Performing Test AWS_HAVE_GCC_INLINE_ASM - Success
-- Performing Test AWS_HAVE_EXECINFO
-- Performing Test AWS_HAVE_EXECINFO - Success
-- Performing Test HAVE_M_AVX2_FLAG
-- Performing Test HAVE_M_AVX2_FLAG - Failed
-- Performing Test HAVE_AVX2_INTRINSICS
-- Performing Test HAVE_AVX2_INTRINSICS - Failed
-- Performing Test HAVE_MM256_EXTRACT_EPI64
-- Performing Test HAVE_MM256_EXTRACT_EPI64 - Failed
-- Performing Test HAVE_MAY_I_USE
-- Performing Test HAVE_MAY_I_USE - Failed
-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS
-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS - Failed
-- Performing Test HAVE_MSVC_CPUIDEX
-- Performing Test HAVE_MSVC_CPUIDEX - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Packaging currently only supported on Fedora.
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  CMAKE_INCLUDE_PATH
  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-common
Scanning dependencies of target aws-c-common
[ 2%] Building C object CMakeFiles/aws-c-common.dir/source/allocator.c.o
[ 5%] Building C object CMakeFiles/aws-c-common.dir/source/array_list.c.o
[ 8%] Building C object CMakeFiles/aws-c-common.dir/source/assert.c.o
[ 10%] Building C object CMakeFiles/aws-c-common.dir/source/byte_buf.c.o
[ 13%] Building C object CMakeFiles/aws-c-common.dir/source/codegen.c.o
[ 16%] Building C object CMakeFiles/aws-c-common.dir/source/command_line_parser.c.o
[ 18%] Building C object CMakeFiles/aws-c-common.dir/source/common.c.o
[ 21%] Building C object CMakeFiles/aws-c-common.dir/source/condition_variable.c.o
[ 24%] Building C object CMakeFiles/aws-c-common.dir/source/date_time.c.o
[ 27%] Building C object CMakeFiles/aws-c-common.dir/source/device_random.c.o
[ 29%] Building C object CMakeFiles/aws-c-common.dir/source/encoding.c.o
[ 32%] Building C object CMakeFiles/aws-c-common.dir/source/error.c.o
[ 35%] Building C object CMakeFiles/aws-c-common.dir/source/hash_table.c.o
[ 37%] Building C object CMakeFiles/aws-c-common.dir/source/log_channel.c.o
[ 40%] Building C object CMakeFiles/aws-c-common.dir/source/log_formatter.c.o
[ 43%] Building C object CMakeFiles/aws-c-common.dir/source/log_writer.c.o
[ 45%] Building C object CMakeFiles/aws-c-common.dir/source/logging.c.o
[ 48%] Building C object CMakeFiles/aws-c-common.dir/source/lru_cache.c.o
[ 51%] Building C object CMakeFiles/aws-c-common.dir/source/math.c.o
[ 54%] Building C object CMakeFiles/aws-c-common.dir/source/memtrace.c.o
[ 56%] Building C object CMakeFiles/aws-c-common.dir/source/priority_queue.c.o
[ 59%] Building C object CMakeFiles/aws-c-common.dir/source/ring_buffer.c.o
[ 62%] Building C object CMakeFiles/aws-c-common.dir/source/statistics.c.o
[ 64%] Building C object CMakeFiles/aws-c-common.dir/source/string.c.o
[ 67%] Building C object CMakeFiles/aws-c-common.dir/source/task_scheduler.c.o
[ 70%] Building C object CMakeFiles/aws-c-common.dir/source/uuid.c.o
[ 72%] Building C object CMakeFiles/aws-c-common.dir/source/posix/clock.c.o
[ 75%] Building C object CMakeFiles/aws-c-common.dir/source/posix/condition_variable.c.o
[ 78%] Building C object CMakeFiles/aws-c-common.dir/source/posix/device_random.c.o
[ 81%] Building C object CMakeFiles/aws-c-common.dir/source/posix/environment.c.o
[ 83%] Building C object CMakeFiles/aws-c-common.dir/source/posix/mutex.c.o
[ 86%] Building C object CMakeFiles/aws-c-common.dir/source/posix/process.c.o
[ 89%] Building C object CMakeFiles/aws-c-common.dir/source/posix/rw_lock.c.o
[ 91%] Building C object CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o
[ 94%] Building C object CMakeFiles/aws-c-common.dir/source/posix/thread.c.o
[ 97%] Building C object CMakeFiles/aws-c-common.dir/source/posix/time.c.o
[100%] Linking C static library libaws-c-common.a
[100%] Built target aws-c-common
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/allocator.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/array_list.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/assert.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/byte_buf.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/byte_order.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/clock.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/command_line_parser.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/common.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/condition_variable.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/date_time.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/device_random.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/encoding.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/environment.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/error.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/exports.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/hash_table.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/linked_list.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/log_channel.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/log_formatter.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/log_writer.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/logging.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/lru_cache.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/macros.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/mutex.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/package.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/predicates.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/priority_queue.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/process.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/ring_buffer.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/rw_lock.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/statistics.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/stdbool.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/stdint.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/string.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/system_info.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/task_scheduler.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/thread.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/time.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/uuid.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/zero.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/array_list.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_fallback.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_gnu.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_gnu_old.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_msvc.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/byte_order.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/clock.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/encoding.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/error.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/linked_list.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.cbmc.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.fallback.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.gcc_overflow.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.gcc_x64_asm.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.msvc.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/ring_buffer.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/string.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/zero.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/posix/common.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/config.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/aws_test_allocators.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/aws_test_harness.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-common.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-common/cmake/aws-c-common-config.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsCFlags.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsCheckHeaders.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsSharedLibSetup.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsTestHarness.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsLibFuzzer.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsSanitizers.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsSIMD.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsFindPackage.cmake
--- Building dependency: aws-c-io (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-io
Scanning dependencies of target aws-c-io
[ 4%] Building C object CMakeFiles/aws-c-io.dir/source/alpn_handler.c.o
[ 8%] Building C object CMakeFiles/aws-c-io.dir/source/channel.c.o
[ 13%] Building C object CMakeFiles/aws-c-io.dir/source/channel_bootstrap.c.o
[ 17%] Building C object CMakeFiles/aws-c-io.dir/source/event_loop.c.o
[ 21%] Building C object CMakeFiles/aws-c-io.dir/source/file_utils_shared.c.o
[ 26%] Building C object CMakeFiles/aws-c-io.dir/source/host_resolver.c.o
[ 30%] Building C object CMakeFiles/aws-c-io.dir/source/io.c.o
[ 34%] Building C object CMakeFiles/aws-c-io.dir/source/message_pool.c.o
[ 39%] Building C object CMakeFiles/aws-c-io.dir/source/pki_utils.c.o
[ 43%] Building C object CMakeFiles/aws-c-io.dir/source/socket_channel_handler.c.o
[ 47%] Building C object CMakeFiles/aws-c-io.dir/source/statistics.c.o
[ 52%] Building C object CMakeFiles/aws-c-io.dir/source/stream.c.o
[ 56%] Building C object CMakeFiles/aws-c-io.dir/source/tls_channel_handler.c.o
[ 60%] Building C object CMakeFiles/aws-c-io.dir/source/tls_channel_handler_shared.c.o
[ 65%] Building C object CMakeFiles/aws-c-io.dir/source/uri.c.o
[ 69%] Building C object CMakeFiles/aws-c-io.dir/source/linux/epoll_event_loop.c.o
[ 73%] Building C object CMakeFiles/aws-c-io.dir/source/posix/file_utils.c.o
[ 78%] Building C object CMakeFiles/aws-c-io.dir/source/posix/host_resolver.c.o
[ 82%] Building C object CMakeFiles/aws-c-io.dir/source/posix/pipe.c.o
[ 86%] Building C object CMakeFiles/aws-c-io.dir/source/posix/shared_library.c.o
[ 91%] Building C object CMakeFiles/aws-c-io.dir/source/posix/socket.c.o
[ 95%] Building C object CMakeFiles/aws-c-io.dir/source/s2n/s2n_tls_channel_handler.c.o
[100%] Linking C static library libaws-c-io.a
[100%] Built target aws-c-io
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-io.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/channel.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/channel_bootstrap.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/event_loop.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/exports.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/file_utils.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/host_resolver.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/io.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/logging.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/message_pool.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/pipe.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/pki_utils.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/shared_library.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/socket.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/socket_channel_handler.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/statistics.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/stream.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/tls_channel_handler.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/uri.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/io_testing_channel.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-io/cmake/aws-c-io-config.cmake
--- Building dependency: aws-c-cal (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-cal
Scanning dependencies of target aws-c-cal
[ 11%] Building C object CMakeFiles/aws-c-cal.dir/source/cal.c.o
[ 22%] Building C object CMakeFiles/aws-c-cal.dir/source/der.c.o
[ 33%] Building C object CMakeFiles/aws-c-cal.dir/source/ecc.c.o
[ 44%] Building C object CMakeFiles/aws-c-cal.dir/source/hash.c.o
[ 55%] Building C object CMakeFiles/aws-c-cal.dir/source/hmac.c.o
[ 66%] Building C object CMakeFiles/aws-c-cal.dir/source/unix/opensslcrypto_ecc.c.o
[ 77%] Building C object CMakeFiles/aws-c-cal.dir/source/unix/opensslcrypto_hash.c.o
[ 88%] Building C object CMakeFiles/aws-c-cal.dir/source/unix/opensslcrypto_hmac.c.o
[100%] Linking C static library libaws-c-cal.a
[100%] Built target aws-c-cal
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-cal.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/cal.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/ecc.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/exports.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/hash.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/hmac.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-cal/cmake/aws-c-cal-config.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/FindLibCryptoCAL.cmake
--- Building dependency: aws-c-compression (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  CMAKE_INCLUDE_PATH
  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-compression
Scanning dependencies of target aws-c-compression
[ 50%] Building C object CMakeFiles/aws-c-compression.dir/source/huffman.c.o
[100%] Linking C static library libaws-c-compression.a
[100%] Built target aws-c-compression
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-compression.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/compression.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/error.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/exports.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/huffman.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/compression/huffman.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/compression/huffman.inl
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-compression/cmake/aws-c-compression-config.cmake
--- Building dependency: aws-c-http (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-http
Scanning dependencies of target aws-c-http
[ 4%] Building C object CMakeFiles/aws-c-http.dir/source/connection.c.o
[ 8%] Building C object CMakeFiles/aws-c-http.dir/source/connection_manager.c.o
[ 12%] Building C object CMakeFiles/aws-c-http.dir/source/connection_monitor.c.o
[ 16%] Building C object CMakeFiles/aws-c-http.dir/source/h1_connection.c.o
[ 20%] Building C object CMakeFiles/aws-c-http.dir/source/h1_decoder.c.o
[ 24%] Building C object CMakeFiles/aws-c-http.dir/source/h1_encoder.c.o
[ 28%] Building C object CMakeFiles/aws-c-http.dir/source/h1_stream.c.o
[ 32%] Building C object CMakeFiles/aws-c-http.dir/source/h2_connection.c.o
[ 36%] Building C object CMakeFiles/aws-c-http.dir/source/h2_decoder.c.o
[ 40%] Building C object CMakeFiles/aws-c-http.dir/source/h2_frames.c.o
[ 44%] Building C object CMakeFiles/aws-c-http.dir/source/h2_stream.c.o
[ 48%] Building C object CMakeFiles/aws-c-http.dir/source/hpack.c.o
[ 52%] Building C object CMakeFiles/aws-c-http.dir/source/hpack_huffman_static.c.o
[ 56%] Building C object CMakeFiles/aws-c-http.dir/source/http.c.o
[ 60%] Building C object CMakeFiles/aws-c-http.dir/source/proxy_connection.c.o
[ 64%] Building C object CMakeFiles/aws-c-http.dir/source/request_response.c.o
[ 68%] Building C object CMakeFiles/aws-c-http.dir/source/statistics.c.o
[ 72%] Building C object CMakeFiles/aws-c-http.dir/source/strutil.c.o
[ 76%] Building C object CMakeFiles/aws-c-http.dir/source/websocket.c.o
[ 80%] Building C object CMakeFiles/aws-c-http.dir/source/websocket_bootstrap.c.o
[ 84%] Building C object CMakeFiles/aws-c-http.dir/source/websocket_decoder.c.o
[ 88%] Building C object CMakeFiles/aws-c-http.dir/source/websocket_encoder.c.o
[ 92%] Linking C static library libaws-c-http.a
[ 92%] Built target aws-c-http
Scanning dependencies of target elasticurl
[ 96%] Building C object bin/elasticurl/CMakeFiles/elasticurl.dir/main.c.o
[100%] Linking C executable elasticurl
[100%] Built target elasticurl
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-http.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/connection.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/connection_manager.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/exports.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/http.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/request_response.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/server.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/statistics.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/websocket.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-http/cmake/aws-c-http-config.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/bin/elasticurl
--- Building dependency: aws-c-auth (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-auth
Scanning dependencies of target aws-c-auth
[ 5%] Building C object CMakeFiles/aws-c-auth.dir/source/auth.c.o
[ 10%] Building C object CMakeFiles/aws-c-auth.dir/source/aws_profile.c.o
[ 15%] Building C object CMakeFiles/aws-c-auth.dir/source/aws_signing.c.o
[ 20%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials.c.o
[ 25%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_cached.c.o
[ 30%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_chain.c.o
[ 35%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_environment.c.o
[ 40%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_imds.c.o
[ 45%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_profile.c.o
[ 50%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_static.c.o
[ 55%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_sts.c.o
[ 60%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_utils.c.o
[ 65%] Building C object CMakeFiles/aws-c-auth.dir/source/signable.c.o
[ 70%] Building C object CMakeFiles/aws-c-auth.dir/source/signing.c.o
[ 75%] Building C object CMakeFiles/aws-c-auth.dir/source/signing_config.c.o
[ 80%] Building C object CMakeFiles/aws-c-auth.dir/source/signing_result.c.o
[ 85%] Building C object CMakeFiles/aws-c-auth.dir/source/sigv4_http_request.c.o
[ 90%] Building C object CMakeFiles/aws-c-auth.dir/source/xml_parser.c.o
[ 95%] Building C object CMakeFiles/aws-c-auth.dir/source/external/cJSON.c.o
[100%] Linking C static library libaws-c-auth.a
[100%] Built target aws-c-auth
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-auth.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/auth.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/credentials.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/exports.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signable.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signing.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signing_config.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signing_result.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-auth/cmake/aws-c-auth-config.cmake
--- Building dependency: aws-c-mqtt (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-mqtt
Scanning dependencies of target aws-c-mqtt
[ 14%] Building C object CMakeFiles/aws-c-mqtt.dir/source/client.c.o
[ 28%] Building C object CMakeFiles/aws-c-mqtt.dir/source/client_channel_handler.c.o
[ 42%] Building C object CMakeFiles/aws-c-mqtt.dir/source/fixed_header.c.o
[ 57%] Building C object CMakeFiles/aws-c-mqtt.dir/source/mqtt.c.o
[ 71%] Building C object CMakeFiles/aws-c-mqtt.dir/source/packets.c.o
[ 85%] Building C object CMakeFiles/aws-c-mqtt.dir/source/topic_tree.c.o
[100%] Linking C static library libaws-c-mqtt.a
[100%] Built target aws-c-mqtt
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-mqtt.a
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/mqtt/client.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/mqtt/exports.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/mqtt/mqtt.h
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/aws-c-mqtt-config.cmake
building '_awscrt' extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/source
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_proxy.c -o build/temp.linux-aarch64-3.6/source/http_proxy.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/mqtt_client_connection.c -o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/auth_signer.c -o build/temp.linux-aarch64-3.6/source/auth_signer.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/module.c -o build/temp.linux-aarch64-3.6/source/module.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/mqtt_client.c -o build/temp.linux-aarch64-3.6/source/mqtt_client.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/auth_credentials.c -o build/temp.linux-aarch64-3.6/source/auth_credentials.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_connection.c -o build/temp.linux-aarch64-3.6/source/http_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/auth_signing_config.c -o build/temp.linux-aarch64-3.6/source/auth_signing_config.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/io.c -o build/temp.linux-aarch64-3.6/source/io.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/crypto.c -o build/temp.linux-aarch64-3.6/source/crypto.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_headers.c -o build/temp.linux-aarch64-3.6/source/http_headers.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_message.c -o build/temp.linux-aarch64-3.6/source/http_message.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_stream.c -o build/temp.linux-aarch64-3.6/source/http_stream.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/source/http_proxy.o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o build/temp.linux-aarch64-3.6/source/auth_signer.o build/temp.linux-aarch64-3.6/source/module.o build/temp.linux-aarch64-3.6/source/mqtt_client.o build/temp.linux-aarch64-3.6/source/auth_credentials.o build/temp.linux-aarch64-3.6/source/http_connection.o build/temp.linux-aarch64-3.6/source/auth_signing_config.o build/temp.linux-aarch64-3.6/source/io.o build/temp.linux-aarch64-3.6/source/crypto.o build/temp.linux-aarch64-3.6/source/http_headers.o build/temp.linux-aarch64-3.6/source/http_message.o build/temp.linux-aarch64-3.6/source/http_stream.o -L/tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib -laws-c-mqtt -laws-c-auth -laws-c-http -laws-c-compression -laws-c-cal -laws-c-io -laws-c-common -ls2n -l:libcrypto.a -lrt -o build/lib.linux-aarch64-3.6/_awscrt.cpython-36m-aarch64-linux-gnu.so
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): In function sha1_block_armv8':
(.text+0x1240): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o):(.text+0x20): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): In function poly1305_emit_neon': (.text+0x9a0): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): In function sha256_block_data_order': (.text+0xf88): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): In function `sha512_block_data_order':
(.text+0x10c8): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1


Failed building wheel for awscrt
Running setup.py clean for awscrt
Failed to build awscrt
Installing collected packages: awscrt, awsiotsdk
Running setup.py install for awscrt ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-6b20mmff/awscrt/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-co_lxy93-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/awscrt
copying awscrt/io.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/exceptions.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/http.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/crypto.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/init.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/mqtt.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/auth.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-aarch64-3.6/awscrt
running build_ext
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
--- Building dependency: s2n (RelWithDebInfo) ---
-- Forcing usage of generic C code for PQ crypto
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/s2n
[100%] Built target s2n
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/s2n.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libs2n.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/s2n/cmake/s2n-config.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/FindLibCrypto.cmake
--- Building dependency: aws-c-common (RelWithDebInfo) ---
-- Packaging currently only supported on Fedora.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-common
[100%] Built target aws-c-common
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/allocator.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/array_list.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/assert.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/byte_buf.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/byte_order.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/clock.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/command_line_parser.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/common.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/condition_variable.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/date_time.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/device_random.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/encoding.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/environment.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/error.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/exports.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/hash_table.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/linked_list.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/log_channel.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/log_formatter.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/log_writer.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/logging.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/lru_cache.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/macros.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/mutex.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/package.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/predicates.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/priority_queue.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/process.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/ring_buffer.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/rw_lock.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/statistics.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/stdbool.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/stdint.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/string.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/system_info.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/task_scheduler.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/thread.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/time.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/uuid.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/zero.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/array_list.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_fallback.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_gnu.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_gnu_old.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/atomics_msvc.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/byte_order.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/clock.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/encoding.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/error.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/linked_list.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.cbmc.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.fallback.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.gcc_overflow.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.gcc_x64_asm.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/math.msvc.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/ring_buffer.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/string.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/zero.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/posix/common.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/common/config.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/aws_test_allocators.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/aws_test_harness.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-common.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-common/cmake/aws-c-common-config.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsCFlags.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsCheckHeaders.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsSharedLibSetup.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsTestHarness.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsLibFuzzer.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsSanitizers.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsSIMD.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/AwsFindPackage.cmake
--- Building dependency: aws-c-io (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-io
[100%] Built target aws-c-io
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-io.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/channel.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/channel_bootstrap.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/event_loop.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/exports.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/file_utils.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/host_resolver.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/io.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/logging.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/message_pool.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/pipe.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/pki_utils.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/shared_library.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/socket.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/socket_channel_handler.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/statistics.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/stream.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/tls_channel_handler.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/io/uri.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/io_testing_channel.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-io/cmake/aws-c-io-config.cmake
--- Building dependency: aws-c-cal (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-cal
[100%] Built target aws-c-cal
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-cal.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/cal.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/ecc.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/exports.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/hash.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/cal/hmac.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-cal/cmake/aws-c-cal-config.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/cmake/FindLibCryptoCAL.cmake
--- Building dependency: aws-c-compression (RelWithDebInfo) ---
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-compression
[100%] Built target aws-c-compression
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-compression.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/compression.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/error.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/exports.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/compression/huffman.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/compression/huffman.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/testing/compression/huffman.inl
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-compression/cmake/aws-c-compression-config.cmake
--- Building dependency: aws-c-http (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-http
[ 92%] Built target aws-c-http
[100%] Built target elasticurl
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-http.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/connection.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/connection_manager.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/exports.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/http.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/request_response.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/server.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/statistics.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/http/websocket.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-http/cmake/aws-c-http-config.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/bin/elasticurl
--- Building dependency: aws-c-auth (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-auth
[100%] Built target aws-c-auth
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-auth.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/auth.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/credentials.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/exports.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signable.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signing.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signing_config.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/auth/signing_result.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-auth/cmake/aws-c-auth-config.cmake
--- Building dependency: aws-c-mqtt (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-6b20mmff/awscrt/build/deps/aws-c-mqtt
[100%] Built target aws-c-mqtt
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/libaws-c-mqtt.a
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/mqtt/client.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/mqtt/exports.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/include/aws/mqtt/mqtt.h
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets.cmake
-- Installing: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/aws-c-mqtt-config.cmake
building '_awscrt' extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/source
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_proxy.c -o build/temp.linux-aarch64-3.6/source/http_proxy.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/mqtt_client_connection.c -o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/auth_signer.c -o build/temp.linux-aarch64-3.6/source/auth_signer.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/module.c -o build/temp.linux-aarch64-3.6/source/module.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/mqtt_client.c -o build/temp.linux-aarch64-3.6/source/mqtt_client.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/auth_credentials.c -o build/temp.linux-aarch64-3.6/source/auth_credentials.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_connection.c -o build/temp.linux-aarch64-3.6/source/http_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/auth_signing_config.c -o build/temp.linux-aarch64-3.6/source/auth_signing_config.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/io.c -o build/temp.linux-aarch64-3.6/source/io.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/crypto.c -o build/temp.linux-aarch64-3.6/source/crypto.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_headers.c -o build/temp.linux-aarch64-3.6/source/http_headers.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_message.c -o build/temp.linux-aarch64-3.6/source/http_message.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-6b20mmff/awscrt/build/deps/install/include -c source/http_stream.c -o build/temp.linux-aarch64-3.6/source/http_stream.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/source/http_proxy.o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o build/temp.linux-aarch64-3.6/source/auth_signer.o build/temp.linux-aarch64-3.6/source/module.o build/temp.linux-aarch64-3.6/source/mqtt_client.o build/temp.linux-aarch64-3.6/source/auth_credentials.o build/temp.linux-aarch64-3.6/source/http_connection.o build/temp.linux-aarch64-3.6/source/auth_signing_config.o build/temp.linux-aarch64-3.6/source/io.o build/temp.linux-aarch64-3.6/source/crypto.o build/temp.linux-aarch64-3.6/source/http_headers.o build/temp.linux-aarch64-3.6/source/http_message.o build/temp.linux-aarch64-3.6/source/http_stream.o -L/tmp/pip-build-6b20mmff/awscrt/build/deps/install/lib -laws-c-mqtt -laws-c-auth -laws-c-http -laws-c-compression -laws-c-cal -laws-c-io -laws-c-common -ls2n -l:libcrypto.a -lrt -o build/lib.linux-aarch64-3.6/_awscrt.cpython-36m-aarch64-linux-gnu.so
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): In function `sha1_block_armv8':
(.text+0x1240): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o):(.text+0x20): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): In function `poly1305_emit_neon':
(.text+0x9a0): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): In function `sha256_block_data_order':
(.text+0xf88): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): In function `sha512_block_data_order':
(.text+0x10c8): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-6b20mmff/awscrt/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-co_lxy93-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-6b20mmff/awscrt/
`

Provide a sample implementation in Python of the raw-pub-sub client from the CPP SDK

Is your feature request related to a problem? Please describe.

I would like to have examples on how to use MQTT connections with username and password, or custom headers on WSS to interact with a custom authorizer

Describe the solution you'd like
Provide a sample implementation in Python of the raw-pub-sub client from the CPP SDK

Describe alternatives you've considered
Write the code myself based on the CPP code, but I would not have time to maintain it

Additional context
Add any other context or screenshots about the feature request here.

Cannot connect AWS IOT with JITP first.

Confirm by changing [ ] to [x] below:

Platform/OS/Device
aws-iot-device-sdk-python-v2ใ€Windows

commit 15a25be7d18ab61543a7937828bc9592e3c44493 (HEAD -> master, tag: v1.4.0, origin/master, origin/HEAD)
Author: Dengke Tang <[email protected]>
Date:   Fri Aug 28 16:10:10 2020 -0700

    update awscrt to 0.8.0 (#100)


    -    API CHANGE: awscrt.auth.AwsSigningConfig.signed_body_value is now a string instead of an enum.
     -   API CHANGE: Added check for iOS platform
     -   BUGFIX: websocket no longer hangs if CLOSE frame cannot be sent.
      -  BUGFIX: Fixes a crash when shutting down an mqtt connection with an incomplete request with no callback from aws-c-mqtt


    Co-authored-by: Dengke Tang <[email protected]>

Describe the question
I am developing a tool which is a JITP certificate generation tool.which has these functions:

  1. Generate a self-signed device certificate
  2. Try to connect to AWS (for automatic registration of things)

In step2, I want to use aws-iot-device-sdk-python-v2 to acheive. But, When I create a Device Certificate, and first connect aws iot core use follow command, It will happen some error in last sector.

$python pubsub.py --endpoint "a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com" --root-ca CA\AmazonRootCA1.pem --cert DeviceCertificate\240ac4ea2972\240ac4ea2972androot.pem --key DeviceCertificat
e\240ac4ea2972\240ac4ea2972.key
[INFO ] [2020-09-04T02:07:39Z] [00005338] [event-loop] - id=000001E09641E870: Initializing IO Completion Port
[INFO ] [2020-09-04T02:07:39Z] [00005338] [event-loop] - id=000001E09641E870: Starting event-loop thread.
[INFO ] [2020-09-04T02:07:39Z] [00005338] [dns] - id=000001E0985F3070: Initializing default host resolver with 16 max host entries.
[INFO ] [2020-09-04T02:07:39Z] [00005338] [channel-bootstrap] - id=000001E09641CF70: Initializing client bootstrap with event-loop group 000001E0982D63A0
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [tls-handler] - static: This library was built with Windows 8.1 or later, probing OS to see what we're actually running on.
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [tls-handler] - static: We're running on Windows 8.1 or later. ALPN is available.
[INFO ] [2020-09-04T02:07:39Z] [00003794] [event-loop] - id=000001E09641E870: main loop started
[INFO ] [2020-09-04T02:07:39Z] [00003794] [event-loop] - id=000001E09641E870: default timeout 100000
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [tls-handler] - static: loading custom CA file.
[INFO ] [2020-09-04T02:07:39Z] [00005338] [pki-utils] - static: loading 1 certificates in cert chain for use as a CA
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [tls-handler] - static: certificate and key have been set, setting them up now.
[INFO ] [2020-09-04T02:07:39Z] [00005338] [pki-utils] - static: loading certificate chain with 2 certificates.
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [mqtt-client] - client=000001E098613E40: Initalizing MQTT client
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [mqtt-client] - id=000001E0987C3230: Creating new connection
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [mqtt-topic-tree] - tree=000001E0987C3470: Creating new topic tree
Connecting to a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com with client ID 'test-7169db88-14a3-4a1b-8f9a-acf74df1ec38'...
[INFO ] [2020-09-04T02:07:39Z] [00005338] [mqtt-client] - id=000001E0987C3230: using ping timeout of 3000000000 ns
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [dns] - id=000001E0985F3070: Host resolution requested for a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com
[DEBUG] [2020-09-04T02:07:39Z] [00005338] [dns] - id=000001E0985F3070: No cached entries found for a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com starting new resolver thread.
[INFO ] [2020-09-04T02:07:39Z] [000037a0] [socket] - static: initializing WinSock
[INFO ] [2020-09-04T02:07:39Z] [000037a0] [socket] - static: loading WSAID_CONNECTEX function
[INFO ] [2020-09-04T02:07:39Z] [000037a0] [socket] - static: loading WSAID_ACCEPTEX function
[DEBUG] [2020-09-04T02:07:39Z] [000037a0] [dns] - static: resolving host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: resolved record: 3.18.85.137
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: resolved record: 18.219.65.120
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: resolved record: 3.129.110.211
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: resolved record: 2600:1f00:6000::382:4e48
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: resolved record: 2600:1f00:6000::12df:f5f8
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: resolved record: 2600:1f00:6000::12db:63c0
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: new address resolved 3.18.85.137 for host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: new address resolved 18.219.65.120 for host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: new address resolved 3.129.110.211 for host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: new address resolved 2600:1f00:6000::382:4e48 for host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: new address resolved 2600:1f00:6000::12df:f5f8 for host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-09-04T02:07:40Z] [000037a0] [dns] - static: new address resolved 2600:1f00:6000::12db:63c0 for host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com caching
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0964FEE10: Scheduling attempt_connection task for immediate execution
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E096431FD0: Scheduling attempt_connection task for immediate execution
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0964FEE10: Running attempt_connection task with <Running> status
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=0000000000000390: initializing with domain 1 and type 0
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=0000000000000390: setting socket options to: keep-alive 0, keep idle 0, keep-alive interval 0, max failed probe count 0
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=0000000000000390: beginning connect.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=0000000000000390: connecting to endpoint 2600:1f00:6000::382:4e48:443.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0985F5A20: Scheduling (null) task for future execution at time 68340352409000
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E096431FD0: Running attempt_connection task with <Running> status
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: initializing with domain 0 and type 0
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: setting socket options to: keep-alive 0, keep idle 0, keep-alive interval 0, max failed probe count 0
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: beginning connect.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: connecting to endpoint 3.18.85.137:443.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0985F6500: Scheduling (null) task for future execution at time 68340352578000
[ERROR] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=0000000000000390: connect completion triggered with error -1073741252
[ERROR] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=0000000000000390: connection error with code 1049
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel-bootstrap] - id=000001E09641CF70: client connection on socket 000001E098664DE0 completed with error 1049.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel-bootstrap] - id=000001E09641CF70: recording bad address 2600:1f00:6000::382:4e48.
[INFO ] [2020-09-04T02:07:40Z] [00003794] [dns] - id=000001E0985F3070: recording failure for record 2600:1f00:6000::382:4e48 for a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com, moving to bad list
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [dns] - static: purging address 2600:1f00:6000::382:4e48 for host a386xm06thrxxr-ats.iot.us-east-2.amazonaws.com from the cache due to cache eviction or shutdown
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=0000000000000390: closing
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0, handle=FFFFFFFFFFFFFFFF: cleaning up socket.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664DE0 handle=FFFFFFFFFFFFFFFF: closing
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: setting socket options to: keep-alive 0, keep idle 0, keep-alive interval 0, max failed probe count 0
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: connection success
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: local endpoint 192.168.1.100:54353
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel-bootstrap] - id=000001E09641CF70: client connection on socket 000001E098664160 completed with error 0.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel] - id=000001E0986ADFB0: Beginning creation and setup of new channel.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986B1CC0: Scheduling on_channel_setup_complete task for immediate execution
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986B1CC0: Running on_channel_setup_complete task with <Running> status
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel] - id=000001E0986ADFB0: setup complete, notifying caller.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel] - id=000001E0986ADFB0: no message pool is currently stored in the event-loop local storage, adding 000001E0982C8690 with max message size 16384, message count 4, with 4 small blocks of 128 bytes.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel-bootstrap] - id=000001E09641CF70: channel 000001E0986ADFB0 setup succeeded: bootstrapping.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket-handler] - id=000001E0986E0430: Socket handler created with max_read_size of 16384
[ERROR] [2020-09-04T02:07:40Z] [00003794] [tls-handler] - Error on AcquireCredentialsHandle. SECURITY_STATUS is -2146893043
Traceback (most recent call last):
[ERROR] [2020-09-04T02:07:40Z] [00003794] [channel-bootstrap] - id=000001E09641CF70: channel 000001E0986ADFB0 setup failed with error 1029.
  File "pubsub.py", line 132, in <module>
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986AE190: Scheduling channel_shutdown task for immediate execution
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986AE190: Running channel_shutdown task with <Running> status
    connect_future.result()
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel] - id=000001E0986ADFB0: beginning shutdown process
  File "D:\anaconda3\lib\concurrent\futures\_base.py", line 435, in result
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel] - id=000001E0986ADFB0: handler 000001E0986E0430 shutdown in read dir completed.
    return self.__get_result()
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986ADFD8: Scheduling (null) task for immediate execution
  File "D:\anaconda3\lib\concurrent\futures\_base.py", line 384, in __get_result
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986ADFD8: Running (null) task with <Running> status
    raise self._exception
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=0000000000000394: closing
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE', message='TLS (SSL) negotiation failed', code=1029)
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986E04D0: Scheduling socket_handler_close task for immediate execution
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986E04D0: Running socket_handler_close task with <Running> status
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel] - id=000001E0986ADFB0: handler 000001E0986E0430 shutdown in write dir completed.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986ADFD8: Scheduling (null) task for immediate execution
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [task-scheduler] - id=000001E0986ADFD8: Running (null) task with <Running> status
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel-bootstrap] - id=000001E09641CF70: channel 000001E0986ADFB0 shutdown with error 1029.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [channel] - id=000001E0986ADFB0: destroying channel.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160, handle=FFFFFFFFFFFFFFFF: cleaning up socket.
[DEBUG] [2020-09-04T02:07:40Z] [00003794] [socket] - id=000001E098664160 handle=FFFFFFFFFFFFFFFF: closing
[DEBUG] [2020-09-04T02:07:40Z] [00005338] [mqtt-client] - id=000001E0987C3230: user called disconnect.
[ERROR] [2020-09-04T02:07:40Z] [00005338] [mqtt-client] - id=000001E0987C3230: Connection is not open, and may not be closed
[DEBUG] [2020-09-04T02:07:40Z] [00005338] [mqtt-client] - id=000001E0987C3230: Destroying connection
[DEBUG] [2020-09-04T02:07:40Z] [00005338] [mqtt-topic-tree] - tree=000001E0987C3470: Cleaning up topic tree
[DEBUG] [2020-09-04T02:07:40Z] [00005338] [mqtt-client] - client=000001E098613E40: Cleaning up MQTT client
[DEBUG] [2020-09-04T02:07:40Z] [00005338] [channel-bootstrap] - id=000001E09641CF70: releasing bootstrap reference
[DEBUG] [2020-09-04T02:07:40Z] [00005338] [channel-bootstrap] - id=000001E09641CF70: destroying

Fails to install on Nvidia jetson nano (smilar to issue 43)

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
can not install using pip3 install awsiotsdk on jetson nano (jetpack 4.4)

SDK version number
1.1.0

Platform/OS/Device
Jetson nano (Jetpack 4.3 or 4.4)

To Reproduce (observed behavior)

  1. flash new jetson ssd with jetpack 4.3 or 4.4 - https://developer.nvidia.com/embedded/downloads

  2. sudo apt install python3-pip

  3. sudo apt-get install libssl-dev

  4. pip3 install awscrt

Expected behavior
expect the SDK to get installed

Logs/output
pip3 install awsiotsdk
Collecting awsiotsdk
Using cached https://files.pythonhosted.org/packages/95/36/5e510997e38b95ec3a9c0d5055b3e4cbde5143c387c446d08922e922a5a3/awsiotsdk-1.1.0-py2.py3-none-any.whl
Collecting awscrt==0.5.15 (from awsiotsdk)
Using cached https://files.pythonhosted.org/packages/6c/a0/a2c16e9e78f4228128ef895d134275cd7ab0d88340572ed913c1dcb1e884/awscrt-0.5.15.tar.gz
Building wheels for collected packages: awscrt
Running setup.py bdist_wheel for awscrt ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-maebhs0r/awscrt/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp4sw5fkw0pip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/awscrt
copying awscrt/auth.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/init.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/io.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/http.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/crypto.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/mqtt.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/exceptions.py -> build/lib.linux-aarch64-3.6/awscrt
running build_ext
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
--- Building dependency: s2n (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Forcing usage of generic C code for PQ crypto
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/s2n
Scanning dependencies of target s2n
[ 0%] Building C object CMakeFiles/s2n.dir/crypto/s2n_aead_cipher_aes_gcm.c.o
[ 1%] Building C object CMakeFiles/s2n.dir/crypto/s2n_aead_cipher_chacha20_poly1305.c.o
[ 2%] Building C object CMakeFiles/s2n.dir/crypto/s2n_cbc_cipher_3des.c.o
[ 2%] Building C object CMakeFiles/s2n.dir/crypto/s2n_cbc_cipher_aes.c.o
[ 3%] Building C object CMakeFiles/s2n.dir/crypto/s2n_certificate.c.o
[ 4%] Building C object CMakeFiles/s2n.dir/crypto/s2n_cipher.c.o
[ 4%] Building C object CMakeFiles/s2n.dir/crypto/s2n_composite_cipher_aes_sha.c.o
[ 5%] Building C object CMakeFiles/s2n.dir/crypto/s2n_dhe.c.o
[ 6%] Building C object CMakeFiles/s2n.dir/crypto/s2n_drbg.c.o
[ 6%] Building C object CMakeFiles/s2n.dir/crypto/s2n_ecc_evp.c.o
[ 7%] Building C object CMakeFiles/s2n.dir/crypto/s2n_ecdsa.c.o
[ 8%] Building C object CMakeFiles/s2n.dir/crypto/s2n_evp.c.o
[ 8%] Building C object CMakeFiles/s2n.dir/crypto/s2n_fips.c.o
[ 9%] Building C object CMakeFiles/s2n.dir/crypto/s2n_hash.c.o
[ 10%] Building C object CMakeFiles/s2n.dir/crypto/s2n_hkdf.c.o
[ 10%] Building C object CMakeFiles/s2n.dir/crypto/s2n_hmac.c.o
[ 11%] Building C object CMakeFiles/s2n.dir/crypto/s2n_pkey.c.o
[ 12%] Building C object CMakeFiles/s2n.dir/crypto/s2n_rsa.c.o
[ 12%] Building C object CMakeFiles/s2n.dir/crypto/s2n_rsa_pss.c.o
[ 13%] Building C object CMakeFiles/s2n.dir/crypto/s2n_sequence.c.o
[ 14%] Building C object CMakeFiles/s2n.dir/crypto/s2n_stream_cipher_null.c.o
[ 14%] Building C object CMakeFiles/s2n.dir/crypto/s2n_stream_cipher_rc4.c.o
[ 15%] Building C object CMakeFiles/s2n.dir/crypto/s2n_tls13_keys.c.o
[ 16%] Building C object CMakeFiles/s2n.dir/error/s2n_errno.c.o
[ 16%] Building C object CMakeFiles/s2n.dir/pq-crypto/pq_random.c.o
[ 17%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/aes_ctr_prf.c.o
[ 18%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/bike_r1_kem.c.o
[ 18%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/converts_portable.c.o
[ 19%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/decode.c.o
[ 20%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/error.c.o
[ 20%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/openssl_utils.c.o
[ 21%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/parallel_hash.c.o
[ 22%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/sampling.c.o
[ 22%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/sampling_portable.c.o
[ 23%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/secure_decode_portable.c.o
[ 24%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r1/utilities.c.o
[ 24%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/aes_ctr_prf.c.o
[ 25%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/bike_r2_kem.c.o
[ 26%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/decode.c.o
[ 26%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/error.c.o
[ 27%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/gf2x_mul.c.o
[ 28%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/gf2x_portable.c.o
[ 28%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/openssl_utils.c.o
[ 29%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/parallel_hash.c.o
[ 30%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/sampling.c.o
[ 30%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/sampling_portable.c.o
[ 31%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/secure_decode_portable.c.o
[ 32%] Building C object CMakeFiles/s2n.dir/pq-crypto/bike_r2/utilities.c.o
[ 32%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/fp_generic_r1.c.o
[ 33%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/P503_r1.c.o
[ 34%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/sike_r1_kem.c.o
[ 34%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r1/fips202_r1.c.o
[ 35%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r2/fips202.c.o
[ 36%] Building C object CMakeFiles/s2n.dir/pq-crypto/sike_r2/P434.c.o
[ 36%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer.c.o
[ 37%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_base64.c.o
[ 38%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_file.c.o
[ 38%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_pem.c.o
[ 39%] Building C object CMakeFiles/s2n.dir/stuffer/s2n_stuffer_text.c.o
[ 40%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_certificate_extensions.c.o
[ 40%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_alpn.c.o
[ 41%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_ec_point_format.c.o
[ 42%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_key_share.c.o
[ 42%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_max_frag_len.c.o
[ 43%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_pq_kem.c.o
[ 44%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_renegotiation_info.c.o
[ 44%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_sct_list.c.o
[ 45%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_server_name.c.o
[ 46%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_session_ticket.c.o
[ 46%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_signature_algorithms.c.o
[ 47%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_status_request.c.o
[ 48%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_supported_groups.c.o
[ 48%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_client_supported_versions.c.o
[ 49%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_key_share.c.o
[ 50%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_alpn.c.o
[ 51%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_certificate_status.c.o
[ 51%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_key_share.c.o
[ 52%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_max_fragment_length.c.o
[ 53%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_renegotiation_info.c.o
[ 53%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_sct_list.c.o
[ 54%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_server_name.c.o
[ 55%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_session_ticket.c.o
[ 55%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_status_request.c.o
[ 56%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_server_supported_versions.c.o
[ 57%] Building C object CMakeFiles/s2n.dir/tls/extensions/s2n_supported_versions.c.o
[ 57%] Building C object CMakeFiles/s2n.dir/tls/s2n_aead.c.o
[ 58%] Building C object CMakeFiles/s2n.dir/tls/s2n_alerts.c.o
[ 59%] Building C object CMakeFiles/s2n.dir/tls/s2n_cbc.c.o
[ 59%] Building C object CMakeFiles/s2n.dir/tls/s2n_change_cipher_spec.c.o
[ 60%] Building C object CMakeFiles/s2n.dir/tls/s2n_cipher_preferences.c.o
[ 61%] Building C object CMakeFiles/s2n.dir/tls/s2n_cipher_suites.c.o
[ 61%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert.c.o
[ 62%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert_preferences.c.o
[ 63%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert_request.c.o
[ 63%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_cert_verify.c.o
[ 64%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_extensions.c.o
[ 65%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_finished.c.o
[ 65%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_hello.c.o
[ 66%] Building C object CMakeFiles/s2n.dir/tls/s2n_client_key_exchange.c.o
[ 67%] Building C object CMakeFiles/s2n.dir/tls/s2n_config.c.o
[ 67%] Building C object CMakeFiles/s2n.dir/tls/s2n_connection.c.o
[ 68%] Building C object CMakeFiles/s2n.dir/tls/s2n_connection_evp_digests.c.o
[ 69%] Building C object CMakeFiles/s2n.dir/tls/s2n_encrypted_extensions.c.o
[ 69%] Building C object CMakeFiles/s2n.dir/tls/s2n_handshake.c.o
[ 70%] Building C object CMakeFiles/s2n.dir/tls/s2n_handshake_io.c.o
[ 71%] Building C object CMakeFiles/s2n.dir/tls/s2n_kem.c.o
[ 71%] Building C object CMakeFiles/s2n.dir/tls/s2n_kex.c.o
[ 72%] Building C object CMakeFiles/s2n.dir/tls/s2n_ocsp_stapling.c.o
[ 73%] Building C object CMakeFiles/s2n.dir/tls/s2n_prf.c.o
[ 73%] Building C object CMakeFiles/s2n.dir/tls/s2n_protocol_preferences.c.o
[ 74%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read.c.o
[ 75%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_aead.c.o
[ 75%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_cbc.c.o
[ 76%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_composite.c.o
[ 77%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_read_stream.c.o
[ 77%] Building C object CMakeFiles/s2n.dir/tls/s2n_record_write.c.o
[ 78%] Building C object CMakeFiles/s2n.dir/tls/s2n_recv.c.o
[ 79%] Building C object CMakeFiles/s2n.dir/tls/s2n_resume.c.o
[ 79%] Building C object CMakeFiles/s2n.dir/tls/s2n_send.c.o
[ 80%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_cert.c.o
[ 81%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_cert_verify.c.o
[ 81%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_done.c.o
[ 82%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_extensions.c.o
[ 83%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_finished.c.o
[ 83%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_hello.c.o
[ 84%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_hello_retry.c.o
[ 85%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_key_exchange.c.o
[ 85%] Building C object CMakeFiles/s2n.dir/tls/s2n_server_new_session_ticket.c.o
[ 86%] Building C object CMakeFiles/s2n.dir/tls/s2n_shutdown.c.o
[ 87%] Building C object CMakeFiles/s2n.dir/tls/s2n_signature_algorithms.c.o
[ 87%] Building C object CMakeFiles/s2n.dir/tls/s2n_signature_scheme.c.o
[ 88%] Building C object CMakeFiles/s2n.dir/tls/s2n_tls.c.o
[ 89%] Building C object CMakeFiles/s2n.dir/tls/s2n_tls13.c.o
[ 89%] Building C object CMakeFiles/s2n.dir/tls/s2n_tls13_handshake.c.o
[ 90%] Building C object CMakeFiles/s2n.dir/tls/s2n_x509_validator.c.o
[ 91%] Building C object CMakeFiles/s2n.dir/utils/s2n_array.c.o
[ 91%] Building C object CMakeFiles/s2n.dir/utils/s2n_asn1_time.c.o
[ 92%] Building C object CMakeFiles/s2n.dir/utils/s2n_blob.c.o
[ 93%] Building C object CMakeFiles/s2n.dir/utils/s2n_init.c.o
[ 93%] Building C object CMakeFiles/s2n.dir/utils/s2n_map.c.o
[ 94%] Building C object CMakeFiles/s2n.dir/utils/s2n_mem.c.o
[ 95%] Building C object CMakeFiles/s2n.dir/utils/s2n_random.c.o
[ 95%] Building C object CMakeFiles/s2n.dir/utils/s2n_rfc5952.c.o
[ 96%] Building C object CMakeFiles/s2n.dir/utils/s2n_safety.c.o
[ 97%] Building C object CMakeFiles/s2n.dir/utils/s2n_set.c.o
[ 97%] Building C object CMakeFiles/s2n.dir/utils/s2n_socket.c.o
[ 98%] Building C object CMakeFiles/s2n.dir/utils/s2n_str.c.o
[ 99%] Building C object CMakeFiles/s2n.dir/utils/s2n_timer.c.o
[100%] Linking C static library lib/libs2n.a
[100%] Built target s2n
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/s2n.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libs2n.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/s2n/cmake/s2n-config.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/FindLibCrypto.cmake
--- Building dependency: aws-c-common (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS - Success
-- Performing Test AWS_HAVE_MSVC_MULX
-- Performing Test AWS_HAVE_MSVC_MULX - Failed
-- Performing Test AWS_HAVE_GCC_INLINE_ASM
-- Performing Test AWS_HAVE_GCC_INLINE_ASM - Success
-- Performing Test AWS_HAVE_EXECINFO
-- Performing Test AWS_HAVE_EXECINFO - Success
-- Performing Test HAVE_M_AVX2_FLAG
-- Performing Test HAVE_M_AVX2_FLAG - Failed
-- Performing Test HAVE_AVX2_INTRINSICS
-- Performing Test HAVE_AVX2_INTRINSICS - Failed
-- Performing Test HAVE_MM256_EXTRACT_EPI64
-- Performing Test HAVE_MM256_EXTRACT_EPI64 - Failed
-- Performing Test HAVE_MAY_I_USE
-- Performing Test HAVE_MAY_I_USE - Failed
-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS
-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS - Failed
-- Performing Test HAVE_MSVC_CPUIDEX
-- Performing Test HAVE_MSVC_CPUIDEX - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Packaging currently only supported on Fedora.
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  CMAKE_INCLUDE_PATH
  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-common
Scanning dependencies of target aws-c-common
[ 2%] Building C object CMakeFiles/aws-c-common.dir/source/allocator.c.o
[ 5%] Building C object CMakeFiles/aws-c-common.dir/source/array_list.c.o
[ 7%] Building C object CMakeFiles/aws-c-common.dir/source/assert.c.o
[ 10%] Building C object CMakeFiles/aws-c-common.dir/source/bigint.c.o
[ 12%] Building C object CMakeFiles/aws-c-common.dir/source/byte_buf.c.o
[ 15%] Building C object CMakeFiles/aws-c-common.dir/source/codegen.c.o
[ 17%] Building C object CMakeFiles/aws-c-common.dir/source/command_line_parser.c.o
[ 20%] Building C object CMakeFiles/aws-c-common.dir/source/common.c.o
[ 23%] Building C object CMakeFiles/aws-c-common.dir/source/condition_variable.c.o
[ 25%] Building C object CMakeFiles/aws-c-common.dir/source/date_time.c.o
[ 28%] Building C object CMakeFiles/aws-c-common.dir/source/device_random.c.o
[ 30%] Building C object CMakeFiles/aws-c-common.dir/source/encoding.c.o
[ 33%] Building C object CMakeFiles/aws-c-common.dir/source/error.c.o
[ 35%] Building C object CMakeFiles/aws-c-common.dir/source/hash_table.c.o
[ 38%] Building C object CMakeFiles/aws-c-common.dir/source/log_channel.c.o
[ 41%] Building C object CMakeFiles/aws-c-common.dir/source/log_formatter.c.o
[ 43%] Building C object CMakeFiles/aws-c-common.dir/source/log_writer.c.o
[ 46%] Building C object CMakeFiles/aws-c-common.dir/source/logging.c.o
[ 48%] Building C object CMakeFiles/aws-c-common.dir/source/lru_cache.c.o
[ 51%] Building C object CMakeFiles/aws-c-common.dir/source/math.c.o
[ 53%] Building C object CMakeFiles/aws-c-common.dir/source/memtrace.c.o
[ 56%] Building C object CMakeFiles/aws-c-common.dir/source/priority_queue.c.o
[ 58%] Building C object CMakeFiles/aws-c-common.dir/source/resource_name.c.o
[ 61%] Building C object CMakeFiles/aws-c-common.dir/source/ring_buffer.c.o
[ 64%] Building C object CMakeFiles/aws-c-common.dir/source/statistics.c.o
[ 66%] Building C object CMakeFiles/aws-c-common.dir/source/string.c.o
[ 69%] Building C object CMakeFiles/aws-c-common.dir/source/task_scheduler.c.o
[ 71%] Building C object CMakeFiles/aws-c-common.dir/source/uuid.c.o
[ 74%] Building C object CMakeFiles/aws-c-common.dir/source/posix/clock.c.o
[ 76%] Building C object CMakeFiles/aws-c-common.dir/source/posix/condition_variable.c.o
[ 79%] Building C object CMakeFiles/aws-c-common.dir/source/posix/device_random.c.o
[ 82%] Building C object CMakeFiles/aws-c-common.dir/source/posix/environment.c.o
[ 84%] Building C object CMakeFiles/aws-c-common.dir/source/posix/mutex.c.o
[ 87%] Building C object CMakeFiles/aws-c-common.dir/source/posix/process.c.o
[ 89%] Building C object CMakeFiles/aws-c-common.dir/source/posix/rw_lock.c.o
[ 92%] Building C object CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o
[ 94%] Building C object CMakeFiles/aws-c-common.dir/source/posix/thread.c.o
[ 97%] Building C object CMakeFiles/aws-c-common.dir/source/posix/time.c.o
[100%] Linking C static library libaws-c-common.a
[100%] Built target aws-c-common
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/allocator.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/array_list.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/assert.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/bigint.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/byte_buf.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/byte_order.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/clock.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/command_line_parser.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/common.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/condition_variable.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/date_time.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/device_random.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/encoding.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/environment.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/error.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/exports.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/hash_table.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/linked_list.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/log_channel.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/log_formatter.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/log_writer.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/logging.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/lru_cache.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/macros.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/mutex.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/package.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/predicates.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/priority_queue.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/process.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/resource_name.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/ring_buffer.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/rw_lock.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/statistics.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/stdbool.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/stdint.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/string.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/system_info.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/task_scheduler.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/thread.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/time.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/uuid.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/zero.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/array_list.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_fallback.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_gnu.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_gnu_old.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_msvc.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/byte_order.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/clock.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/encoding.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/error.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/linked_list.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.cbmc.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.fallback.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.gcc_overflow.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.gcc_x64_asm.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.msvc.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/ring_buffer.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/string.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/zero.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/posix/common.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/config.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/aws_test_allocators.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/aws_test_harness.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-common.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-common/cmake/aws-c-common-config.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsCFlags.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsCheckHeaders.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsSharedLibSetup.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsTestHarness.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsLibFuzzer.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsSanitizers.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsSIMD.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsFindPackage.cmake
--- Building dependency: aws-c-io (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-io
Scanning dependencies of target aws-c-io
[ 4%] Building C object CMakeFiles/aws-c-io.dir/source/alpn_handler.c.o
[ 8%] Building C object CMakeFiles/aws-c-io.dir/source/channel.c.o
[ 12%] Building C object CMakeFiles/aws-c-io.dir/source/channel_bootstrap.c.o
[ 16%] Building C object CMakeFiles/aws-c-io.dir/source/event_loop.c.o
[ 20%] Building C object CMakeFiles/aws-c-io.dir/source/exponential_backoff_retry_strategy.c.o
[ 24%] Building C object CMakeFiles/aws-c-io.dir/source/file_utils_shared.c.o
[ 28%] Building C object CMakeFiles/aws-c-io.dir/source/host_resolver.c.o
[ 32%] Building C object CMakeFiles/aws-c-io.dir/source/io.c.o
[ 36%] Building C object CMakeFiles/aws-c-io.dir/source/message_pool.c.o
[ 40%] Building C object CMakeFiles/aws-c-io.dir/source/pki_utils.c.o
[ 44%] Building C object CMakeFiles/aws-c-io.dir/source/retry_strategy.c.o
[ 48%] Building C object CMakeFiles/aws-c-io.dir/source/socket_channel_handler.c.o
[ 52%] Building C object CMakeFiles/aws-c-io.dir/source/statistics.c.o
[ 56%] Building C object CMakeFiles/aws-c-io.dir/source/stream.c.o
[ 60%] Building C object CMakeFiles/aws-c-io.dir/source/tls_channel_handler.c.o
[ 64%] Building C object CMakeFiles/aws-c-io.dir/source/tls_channel_handler_shared.c.o
[ 68%] Building C object CMakeFiles/aws-c-io.dir/source/uri.c.o
[ 72%] Building C object CMakeFiles/aws-c-io.dir/source/linux/epoll_event_loop.c.o
[ 76%] Building C object CMakeFiles/aws-c-io.dir/source/posix/file_utils.c.o
[ 80%] Building C object CMakeFiles/aws-c-io.dir/source/posix/host_resolver.c.o
[ 84%] Building C object CMakeFiles/aws-c-io.dir/source/posix/pipe.c.o
[ 88%] Building C object CMakeFiles/aws-c-io.dir/source/posix/shared_library.c.o
[ 92%] Building C object CMakeFiles/aws-c-io.dir/source/posix/socket.c.o
[ 96%] Building C object CMakeFiles/aws-c-io.dir/source/s2n/s2n_tls_channel_handler.c.o
[100%] Linking C static library libaws-c-io.a
[100%] Built target aws-c-io
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-io.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/channel.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/channel_bootstrap.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/event_loop.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/exports.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/file_utils.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/host_resolver.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/io.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/logging.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/message_pool.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/pipe.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/pki_utils.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/retry_strategy.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/shared_library.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/socket.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/socket_channel_handler.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/statistics.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/stream.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/tls_channel_handler.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/uri.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/io_testing_channel.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-io/cmake/aws-c-io-config.cmake
--- Building dependency: aws-c-cal (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-cal
Scanning dependencies of target aws-c-cal
[ 11%] Building C object CMakeFiles/aws-c-cal.dir/source/cal.c.o
[ 22%] Building C object CMakeFiles/aws-c-cal.dir/source/der.c.o
[ 33%] Building C object CMakeFiles/aws-c-cal.dir/source/ecc.c.o
[ 44%] Building C object CMakeFiles/aws-c-cal.dir/source/hash.c.o
[ 55%] Building C object CMakeFiles/aws-c-cal.dir/source/hmac.c.o
[ 66%] Building C object CMakeFiles/aws-c-cal.dir/source/unix/opensslcrypto_ecc.c.o
[ 77%] Building C object CMakeFiles/aws-c-cal.dir/source/unix/opensslcrypto_hash.c.o
[ 88%] Building C object CMakeFiles/aws-c-cal.dir/source/unix/opensslcrypto_hmac.c.o
[100%] Linking C static library libaws-c-cal.a
[100%] Built target aws-c-cal
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-cal.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/cal.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/ecc.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/exports.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/hash.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/hmac.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-cal/cmake/aws-c-cal-config.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/FindLibCryptoCAL.cmake
--- Building dependency: aws-c-compression (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  CMAKE_INCLUDE_PATH
  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-compression
Scanning dependencies of target aws-c-compression
[ 33%] Building C object CMakeFiles/aws-c-compression.dir/source/compression.c.o
[ 66%] Building C object CMakeFiles/aws-c-compression.dir/source/huffman.c.o
[100%] Linking C static library libaws-c-compression.a
[100%] Built target aws-c-compression
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-compression.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/compression/compression.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/compression/exports.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/compression/huffman.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/compression/huffman.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/compression/huffman.inl
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-compression/cmake/aws-c-compression-config.cmake
--- Building dependency: aws-c-http (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-http
Scanning dependencies of target aws-c-http
[ 4%] Building C object CMakeFiles/aws-c-http.dir/source/connection.c.o
[ 8%] Building C object CMakeFiles/aws-c-http.dir/source/connection_manager.c.o
[ 12%] Building C object CMakeFiles/aws-c-http.dir/source/connection_monitor.c.o
[ 16%] Building C object CMakeFiles/aws-c-http.dir/source/h1_connection.c.o
[ 20%] Building C object CMakeFiles/aws-c-http.dir/source/h1_decoder.c.o
[ 24%] Building C object CMakeFiles/aws-c-http.dir/source/h1_encoder.c.o
[ 28%] Building C object CMakeFiles/aws-c-http.dir/source/h1_stream.c.o
[ 32%] Building C object CMakeFiles/aws-c-http.dir/source/h2_connection.c.o
[ 36%] Building C object CMakeFiles/aws-c-http.dir/source/h2_decoder.c.o
[ 40%] Building C object CMakeFiles/aws-c-http.dir/source/h2_frames.c.o
[ 44%] Building C object CMakeFiles/aws-c-http.dir/source/h2_stream.c.o
[ 48%] Building C object CMakeFiles/aws-c-http.dir/source/hpack.c.o
[ 52%] Building C object CMakeFiles/aws-c-http.dir/source/hpack_huffman_static.c.o
[ 56%] Building C object CMakeFiles/aws-c-http.dir/source/http.c.o
[ 60%] Building C object CMakeFiles/aws-c-http.dir/source/proxy_connection.c.o
[ 64%] Building C object CMakeFiles/aws-c-http.dir/source/request_response.c.o
[ 68%] Building C object CMakeFiles/aws-c-http.dir/source/statistics.c.o
[ 72%] Building C object CMakeFiles/aws-c-http.dir/source/strutil.c.o
[ 76%] Building C object CMakeFiles/aws-c-http.dir/source/websocket.c.o
[ 80%] Building C object CMakeFiles/aws-c-http.dir/source/websocket_bootstrap.c.o
[ 84%] Building C object CMakeFiles/aws-c-http.dir/source/websocket_decoder.c.o
[ 88%] Building C object CMakeFiles/aws-c-http.dir/source/websocket_encoder.c.o
[ 92%] Linking C static library libaws-c-http.a
[ 92%] Built target aws-c-http
Scanning dependencies of target elasticurl
[ 96%] Building C object bin/elasticurl/CMakeFiles/elasticurl.dir/main.c.o
[100%] Linking C executable elasticurl
[100%] Built target elasticurl
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-http.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/connection.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/connection_manager.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/exports.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/http.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/request_response.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/server.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/statistics.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/status_code.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/websocket.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-http/cmake/aws-c-http-config.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/bin/elasticurl
--- Building dependency: aws-c-auth (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-auth
Scanning dependencies of target aws-c-auth
[ 4%] Building C object CMakeFiles/aws-c-auth.dir/source/auth.c.o
[ 9%] Building C object CMakeFiles/aws-c-auth.dir/source/aws_profile.c.o
[ 14%] Building C object CMakeFiles/aws-c-auth.dir/source/aws_signing.c.o
[ 19%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials.c.o
[ 23%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_cached.c.o
[ 28%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_chain.c.o
[ 33%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_ecs.c.o
[ 38%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_environment.c.o
[ 42%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_imds.c.o
[ 47%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_profile.c.o
[ 52%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_static.c.o
[ 57%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_provider_sts.c.o
[ 61%] Building C object CMakeFiles/aws-c-auth.dir/source/credentials_utils.c.o
[ 66%] Building C object CMakeFiles/aws-c-auth.dir/source/signable.c.o
[ 71%] Building C object CMakeFiles/aws-c-auth.dir/source/signing.c.o
[ 76%] Building C object CMakeFiles/aws-c-auth.dir/source/signing_config.c.o
[ 80%] Building C object CMakeFiles/aws-c-auth.dir/source/signing_result.c.o
[ 85%] Building C object CMakeFiles/aws-c-auth.dir/source/sigv4_http_request.c.o
[ 90%] Building C object CMakeFiles/aws-c-auth.dir/source/xml_parser.c.o
[ 95%] Building C object CMakeFiles/aws-c-auth.dir/source/external/cJSON.c.o
[100%] Linking C static library libaws-c-auth.a
[100%] Built target aws-c-auth
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-auth.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/auth.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/credentials.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/exports.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signable.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signing.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signing_config.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signing_result.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-auth/cmake/aws-c-auth-config.cmake
--- Building dependency: aws-c-mqtt (RelWithDebInfo) ---
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found LibCrypto: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  S2N_NO_PQ_ASM

-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-mqtt
Scanning dependencies of target aws-c-mqtt
[ 14%] Building C object CMakeFiles/aws-c-mqtt.dir/source/client.c.o
[ 28%] Building C object CMakeFiles/aws-c-mqtt.dir/source/client_channel_handler.c.o
[ 42%] Building C object CMakeFiles/aws-c-mqtt.dir/source/fixed_header.c.o
[ 57%] Building C object CMakeFiles/aws-c-mqtt.dir/source/mqtt.c.o
[ 71%] Building C object CMakeFiles/aws-c-mqtt.dir/source/packets.c.o
[ 85%] Building C object CMakeFiles/aws-c-mqtt.dir/source/topic_tree.c.o
[100%] Linking C static library libaws-c-mqtt.a
[100%] Built target aws-c-mqtt
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-mqtt.a
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/mqtt/client.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/mqtt/exports.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/mqtt/mqtt.h
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets-relwithdebinfo.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/aws-c-mqtt-config.cmake
building '_awscrt' extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/source
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/io.c -o build/temp.linux-aarch64-3.6/source/io.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_headers.c -o build/temp.linux-aarch64-3.6/source/http_headers.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_stream.c -o build/temp.linux-aarch64-3.6/source/http_stream.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/auth_signing_config.c -o build/temp.linux-aarch64-3.6/source/auth_signing_config.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_message.c -o build/temp.linux-aarch64-3.6/source/http_message.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_connection.c -o build/temp.linux-aarch64-3.6/source/http_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/module.c -o build/temp.linux-aarch64-3.6/source/module.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/auth_credentials.c -o build/temp.linux-aarch64-3.6/source/auth_credentials.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/auth_signer.c -o build/temp.linux-aarch64-3.6/source/auth_signer.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/crypto.c -o build/temp.linux-aarch64-3.6/source/crypto.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/mqtt_client.c -o build/temp.linux-aarch64-3.6/source/mqtt_client.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_proxy.c -o build/temp.linux-aarch64-3.6/source/http_proxy.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/mqtt_client_connection.c -o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/source/io.o build/temp.linux-aarch64-3.6/source/http_headers.o build/temp.linux-aarch64-3.6/source/http_stream.o build/temp.linux-aarch64-3.6/source/auth_signing_config.o build/temp.linux-aarch64-3.6/source/http_message.o build/temp.linux-aarch64-3.6/source/http_connection.o build/temp.linux-aarch64-3.6/source/module.o build/temp.linux-aarch64-3.6/source/auth_credentials.o build/temp.linux-aarch64-3.6/source/auth_signer.o build/temp.linux-aarch64-3.6/source/crypto.o build/temp.linux-aarch64-3.6/source/mqtt_client.o build/temp.linux-aarch64-3.6/source/http_proxy.o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o -L/tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib -laws-c-mqtt -laws-c-auth -laws-c-http -laws-c-compression -laws-c-cal -laws-c-io -laws-c-common -ls2n -l:libcrypto.a -lrt -o build/lib.linux-aarch64-3.6/_awscrt.cpython-36m-aarch64-linux-gnu.so
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): In function sha1_block_armv8':
(.text+0x1240): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o):(.text+0x20): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): In function poly1305_emit_neon': (.text+0x9a0): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): In function sha256_block_data_order': (.text+0xf88): dangerous relocation: unsupported relocation /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): In function `sha512_block_data_order':
(.text+0x10c8): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1


Failed building wheel for awscrt
Running setup.py clean for awscrt
Failed to build awscrt
Installing collected packages: awscrt, awsiotsdk
Running setup.py install for awscrt ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-maebhs0r/awscrt/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-xzhqxv7o-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/awscrt
copying awscrt/auth.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/init.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/io.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/http.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/crypto.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/mqtt.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-aarch64-3.6/awscrt
copying awscrt/exceptions.py -> build/lib.linux-aarch64-3.6/awscrt
running build_ext
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
--- Building dependency: s2n (RelWithDebInfo) ---
-- Forcing usage of generic C code for PQ crypto
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/s2n
[100%] Built target s2n
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/s2n.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libs2n.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/s2n/cmake/static/s2n-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/s2n/cmake/s2n-config.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/FindLibCrypto.cmake
--- Building dependency: aws-c-common (RelWithDebInfo) ---
-- Packaging currently only supported on Fedora.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-common
[100%] Built target aws-c-common
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/allocator.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/array_list.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/assert.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/bigint.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/byte_buf.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/byte_order.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/clock.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/command_line_parser.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/common.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/condition_variable.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/date_time.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/device_random.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/encoding.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/environment.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/error.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/exports.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/hash_table.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/linked_list.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/log_channel.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/log_formatter.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/log_writer.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/logging.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/lru_cache.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/macros.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/mutex.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/package.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/predicates.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/priority_queue.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/process.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/resource_name.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/ring_buffer.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/rw_lock.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/statistics.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/stdbool.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/stdint.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/string.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/system_info.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/task_scheduler.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/thread.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/time.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/uuid.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/zero.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/array_list.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_fallback.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_gnu.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_gnu_old.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/atomics_msvc.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/byte_order.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/clock.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/encoding.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/error.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/linked_list.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.cbmc.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.fallback.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.gcc_overflow.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.gcc_x64_asm.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/math.msvc.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/ring_buffer.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/string.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/zero.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/posix/common.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/common/config.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/aws_test_allocators.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/aws_test_harness.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-common.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-common/cmake/static/aws-c-common-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-common/cmake/aws-c-common-config.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsCFlags.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsCheckHeaders.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsSharedLibSetup.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsTestHarness.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsLibFuzzer.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsSanitizers.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsSIMD.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/AwsFindPackage.cmake
--- Building dependency: aws-c-io (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-io
[100%] Built target aws-c-io
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-io.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/channel.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/channel_bootstrap.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/event_loop.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/exports.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/file_utils.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/host_resolver.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/io.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/logging.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/message_pool.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/pipe.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/pki_utils.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/retry_strategy.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/shared_library.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/socket.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/socket_channel_handler.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/statistics.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/stream.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/tls_channel_handler.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/io/uri.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/io_testing_channel.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-io/cmake/static/aws-c-io-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-io/cmake/aws-c-io-config.cmake
--- Building dependency: aws-c-cal (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-cal
[100%] Built target aws-c-cal
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-cal.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/cal.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/ecc.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/exports.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/hash.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/cal/hmac.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-cal/cmake/static/aws-c-cal-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-cal/cmake/aws-c-cal-config.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/cmake/FindLibCryptoCAL.cmake
--- Building dependency: aws-c-compression (RelWithDebInfo) ---
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-compression
[100%] Built target aws-c-compression
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-compression.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/compression/compression.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/compression/exports.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/compression/huffman.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/compression/huffman.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/testing/compression/huffman.inl
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-compression/cmake/static/aws-c-compression-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-compression/cmake/aws-c-compression-config.cmake
--- Building dependency: aws-c-http (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-http
[ 92%] Built target aws-c-http
[100%] Built target elasticurl
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-http.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/connection.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/connection_manager.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/exports.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/http.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/request_response.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/server.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/statistics.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/status_code.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/http/websocket.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-http/cmake/static/aws-c-http-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-http/cmake/aws-c-http-config.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/bin/elasticurl
--- Building dependency: aws-c-auth (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-auth
[100%] Built target aws-c-auth
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-auth.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/auth.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/credentials.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/exports.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signable.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signing.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signing_config.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/auth/signing_result.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-auth/cmake/static/aws-c-auth-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-auth/cmake/aws-c-auth-config.cmake
--- Building dependency: aws-c-mqtt (RelWithDebInfo) ---
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.a
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-build-maebhs0r/awscrt/build/deps/aws-c-mqtt
[100%] Built target aws-c-mqtt
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/libaws-c-mqtt.a
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/mqtt/client.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/mqtt/exports.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/include/aws/mqtt/mqtt.h
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets.cmake
-- Installing: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/static/aws-c-mqtt-targets-relwithdebinfo.cmake
-- Up-to-date: /tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib/aws-c-mqtt/cmake/aws-c-mqtt-config.cmake
building '_awscrt' extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/source
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/io.c -o build/temp.linux-aarch64-3.6/source/io.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_headers.c -o build/temp.linux-aarch64-3.6/source/http_headers.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_stream.c -o build/temp.linux-aarch64-3.6/source/http_stream.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/auth_signing_config.c -o build/temp.linux-aarch64-3.6/source/auth_signing_config.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_message.c -o build/temp.linux-aarch64-3.6/source/http_message.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_connection.c -o build/temp.linux-aarch64-3.6/source/http_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/module.c -o build/temp.linux-aarch64-3.6/source/module.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/auth_credentials.c -o build/temp.linux-aarch64-3.6/source/auth_credentials.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/auth_signer.c -o build/temp.linux-aarch64-3.6/source/auth_signer.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/crypto.c -o build/temp.linux-aarch64-3.6/source/crypto.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/mqtt_client.c -o build/temp.linux-aarch64-3.6/source/mqtt_client.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/http_proxy.c -o build/temp.linux-aarch64-3.6/source/http_proxy.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-maebhs0r/awscrt/build/deps/install/include -c source/mqtt_client_connection.c -o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/source/io.o build/temp.linux-aarch64-3.6/source/http_headers.o build/temp.linux-aarch64-3.6/source/http_stream.o build/temp.linux-aarch64-3.6/source/auth_signing_config.o build/temp.linux-aarch64-3.6/source/http_message.o build/temp.linux-aarch64-3.6/source/http_connection.o build/temp.linux-aarch64-3.6/source/module.o build/temp.linux-aarch64-3.6/source/auth_credentials.o build/temp.linux-aarch64-3.6/source/auth_signer.o build/temp.linux-aarch64-3.6/source/crypto.o build/temp.linux-aarch64-3.6/source/mqtt_client.o build/temp.linux-aarch64-3.6/source/http_proxy.o build/temp.linux-aarch64-3.6/source/mqtt_client_connection.o -L/tmp/pip-build-maebhs0r/awscrt/build/deps/install/lib -laws-c-mqtt -laws-c-auth -laws-c-http -laws-c-compression -laws-c-cal -laws-c-io -laws-c-common -ls2n -l:libcrypto.a -lrt -o build/lib.linux-aarch64-3.6/_awscrt.cpython-36m-aarch64-linux-gnu.so
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha1-armv8.o): In function `sha1_block_armv8':
(.text+0x1240): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(chacha-armv8.o):(.text+0x20): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(poly1305-armv8.o): In function `poly1305_emit_neon':
(.text+0x9a0): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha256-armv8.o): In function `sha256_block_data_order':
(.text+0xf88): dangerous relocation: unsupported relocation
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libcrypto.a(sha512-armv8.o): In function `sha512_block_data_order':
(.text+0x10c8): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-maebhs0r/awscrt/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-xzhqxv7o-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-maebhs0r/awscrt/
`

Additional context
Add any other context about the problem here.

Offline mode with Greengrass

Confirm by changing [ ] to [x] below:

Platform/OS/Device
What are you running the sdk on?
Ubuntu18.04

Describe the question
Are there any ways to receive MQTT messages or shadow updates during the offline period?
I'm using Greengrass Core locally and I had a test with the pubsub example. From this test, you can see that when a device is offline it can only publish and not receive.
Selection_115

Unable to install awscrt on ARMv7 Processor rev 0 (v7l) with python2.7

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
i have installed cmake & libssl-dev, however i am facing below error while installing awscrt in cmake
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find LibCrypto (missing: LibCrypto_LIBRARY LibCrypto_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindLibCrypto.cmake:61 (find_package_handle_standard_args) CMakeLists.txt:226 (find_package)

SDK version number
1.3.0
Platform/OS/Device
QCT APQ8064 CDP / LINARO (UBUNTU 15.04) / ARMv7 Processor rev 0 (v7l)

To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)

Expected behavior
A clear and concise description of what you expected to happen.

Logs/output

  Downloading awscrt-0.6.0.tar.gz (2.1MB): 2.1MB downloaded
  Running setup.py (path:/tmp/pip-build-vj7cIb/awscrt/setup.py) egg_info for package awscrt
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '.git*/**' found anywhere in distribution
    warning: no previously-included files matching '.travis*' found anywhere in distribution
    warning: no previously-included files matching '.travis/**' found anywhere in distribution
    warning: no previously-included files matching 'codebuild/**' found anywhere in distribution
    warning: no previously-included files matching '.cbmc-batch/**' found anywhere in distribution
    warning: no previously-included files matching 'aws-common-runtime/*/docs/**' found anywhere in distribution
    warning: no previously-included files matching 'docker-images/**' found anywhere in distribution
    no previously-included directories found matching 'aws-common-runtime/**/AWSCRTAndroidTestRunner'
    no previously-included directories found matching 'aws-common-runtime/aws-c-auth/tests/aws-sig-v4-test-suite'
    no previously-included directories found matching 'aws-common-runtime/aws-c-auth/tests/fuzz/corpus'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/fuzz/corpus'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/ctverif'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/pems'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/saw'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/sidetrail'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/integration/trust-store'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/integration/data'
    no previously-included directories found matching 'aws-common-runtime/s2n/tests/unit/kats'
Installing collected packages: awscrt
  Running setup.py install for awscrt
    cmake version 3.5.1
    
    CMake suite maintained and supported by Kitware (kitware.com/cmake).
    -- The C compiler identification is GNU 5.3.1
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Check if compiler accepts -pthread
    -- Check if compiler accepts -pthread - yes
    -- Found Threads: TRUE
    -- S2N_NO_PQ_ASM flag was detected - forcing usage of generic C code for PQ crypto
    -- Performing Test S2N_HAVE_EXECINFO
    -- Performing Test S2N_HAVE_EXECINFO - Success

    CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
      Could NOT find LibCrypto (missing: LibCrypto_LIBRARY LibCrypto_INCLUDE_DIR)
    Call Stack (most recent call first):
      /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
      cmake/modules/FindLibCrypto.cmake:61 (find_package_handle_standard_args)
      CMakeLists.txt:226 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/tmp/pip-build-vj7cIb/awscrt/build/deps/s2n/CMakeFiles/CMakeOutput.log".
    See also "/tmp/pip-build-vj7cIb/awscrt/build/deps/s2n/CMakeFiles/CMakeError.log".
    --- Building dependency: s2n (RelWithDebInfo) ---
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-vj7cIb/awscrt/setup.py", line 268, in <module>
        'boto3'
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
        self.run_command('build')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
        self.run_command(cmd_name)
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-vj7cIb/awscrt/setup.py", line 180, in run
        self._build_dependency(lib)
      File "/tmp/pip-build-vj7cIb/awscrt/setup.py", line 164, in _build_dependency
        subprocess.check_call(cmake_args)
      File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-build-vj7cIb/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-build-vj7cIb/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DS2N_NO_PQ_ASM=ON', '-DCMAKE_INCLUDE_PATH=/usr/include/python2.7', '/tmp/pip-build-vj7cIb/awscrt/aws-common-runtime/s2n']' returned non-zero exit status 1
    Complete output from command /opt/ixn-python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-vj7cIb/awscrt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-SmITdn-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/ixn-python/include/site/python2.7:
    running install

running build

running build_py

creating build

creating build/lib.linux-armv7l-2.7

creating build/lib.linux-armv7l-2.7/awscrt

copying awscrt/mqtt.py -> build/lib.linux-armv7l-2.7/awscrt

copying awscrt/io.py -> build/lib.linux-armv7l-2.7/awscrt

copying awscrt/http.py -> build/lib.linux-armv7l-2.7/awscrt

copying awscrt/exceptions.py -> build/lib.linux-armv7l-2.7/awscrt

copying awscrt/crypto.py -> build/lib.linux-armv7l-2.7/awscrt

copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-armv7l-2.7/awscrt

copying awscrt/auth.py -> build/lib.linux-armv7l-2.7/awscrt

copying awscrt/__init__.py -> build/lib.linux-armv7l-2.7/awscrt

running build_ext

cmake version 3.5.1



CMake suite maintained and supported by Kitware (kitware.com/cmake).

-- The C compiler identification is GNU 5.3.1

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Looking for pthread.h

-- Looking for pthread.h - found

-- Looking for pthread_create

-- Looking for pthread_create - not found

-- Check if compiler accepts -pthread

-- Check if compiler accepts -pthread - yes

-- Found Threads: TRUE

-- S2N_NO_PQ_ASM flag was detected - forcing usage of generic C code for PQ crypto

-- Performing Test S2N_HAVE_EXECINFO

-- Performing Test S2N_HAVE_EXECINFO - Success

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):

  Could NOT find LibCrypto (missing: LibCrypto_LIBRARY LibCrypto_INCLUDE_DIR)

Call Stack (most recent call first):

  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)

  cmake/modules/FindLibCrypto.cmake:61 (find_package_handle_standard_args)

  CMakeLists.txt:226 (find_package)





-- Configuring incomplete, errors occurred!

See also "/tmp/pip-build-vj7cIb/awscrt/build/deps/s2n/CMakeFiles/CMakeOutput.log".

See also "/tmp/pip-build-vj7cIb/awscrt/build/deps/s2n/CMakeFiles/CMakeError.log".

--- Building dependency: s2n (RelWithDebInfo) ---

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/tmp/pip-build-vj7cIb/awscrt/setup.py", line 268, in <module>

    'boto3'

  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup

    dist.run_commands()

  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands

    self.run_command(cmd)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run

    return orig.install.run(self)

  File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run

    self.run_command('build')

  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run

    self.run_command(cmd_name)

  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/tmp/pip-build-vj7cIb/awscrt/setup.py", line 180, in run

    self._build_dependency(lib)

  File "/tmp/pip-build-vj7cIb/awscrt/setup.py", line 164, in _build_dependency

    subprocess.check_call(cmake_args)

  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-build-vj7cIb/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-build-vj7cIb/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DS2N_NO_PQ_ASM=ON', '-DCMAKE_INCLUDE_PATH=/usr/include/python2.7', '/tmp/pip-build-vj7cIb/awscrt/aws-common-runtime/s2n']' returned non-zero exit status 1

----------------------------------------
Cleaning up...
Command /opt/ixn-python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-vj7cIb/awscrt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-SmITdn-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/ixn-python/include/site/python2.7 failed with error code 1 in /tmp/pip-build-vj7cIb/awscrt
Storing debug log for failure in /root/.pip/pip.log`
```
*REMEMBER TO SANITIZE YOUR PERSONAL INFO*

```
awscrt.io.init_logging(awscrt.io.LogLevel.Warn, 'stderr')
```

**Additional context**
Add any other context about the problem here.

AWS IOT MQTT with Persistent Session = True but subscription failed

Dear All,

While experimenting with AWS IOT MQTT with Persistent Session I found that Broker returns 'session_present = True' in reply to connection request having 'clean_session = False'.
Which is expected as I reconnected within 60 mins as specified by AWS Documentation ( practically it was less than 5 mins )

Issue :
As per the theory, if 'session_present = True' then the broker stores ass previous session's info hence no need to subscribe to topics again.
But if I skip the step of subscribing to the topic then no messages received.
Is it the obvious behavior ? do I need to unsubscribe even though 'session_present = True' ?

I am using aws-iot-device-sdk-python-v2

def conenct_mqtt(mqtt_connection):
    connect_future = mqtt_connection.connect()

    excep_count = 0
    while True:
        print(f"[{datetime.now()}]Connecting......")
        try:
            # Future.result() waits until a result is available
            result = connect_future.result(timeout=30)
            print(f"Connected! session persistent = {result['session_present']}")
            return result['session_present']
        
        except Exception as exc:
            print(f"[{datetime.now()}]Error while connecting {exc}")
            time.sleep(10)
            excep_count=excep_count+1
            if excep_count > 5 :
                print(f"[{datetime.now()}]Exiting Script.....")
                quit()

Cannot install on Onion Omega

I'm trying to do pip install awscrt on an Onion Omega2S but I'm getting the following error:

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gi2by6pj/awscrt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gi2by6pj/awscrt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-s81dnvy7/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.6/awscrt Check the logs for full command output.

Upon examining the logs, I can see:

2020-02-21T20:21:57,388     Traceback (most recent call last):
2020-02-21T20:21:57,396       File "/tmp/pip-install-3cqiqwut/awscrt/setup.py", line 93, in check_cmake_installed
2020-02-21T20:21:57,399         subprocess.check_call(['cmake', '--version'])
2020-02-21T20:21:57,408       File "/subprocess.py", line 306, in check_call
2020-02-21T20:21:57,411       File "/subprocess.py", line 287, in call
2020-02-21T20:21:57,414       File "/subprocess.py", line 729, in __init__
2020-02-21T20:21:57,428       File "/subprocess.py", line 1364, in _execute_child
2020-02-21T20:21:57,431     FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'

2020-02-21T20:21:57,458     During handling of the above exception, another exception occurred:

2020-02-21T20:21:57,464     Traceback (most recent call last):
2020-02-21T20:21:57,468       File "<string>", line 1, in <module>
2020-02-21T20:21:57,471       File "/tmp/pip-install-3cqiqwut/awscrt/setup.py", line 267, in <module>
2020-02-21T20:21:57,474         'boto3'
2020-02-21T20:21:57,488       File "/__init__.py", line 143, in setup
2020-02-21T20:21:57,491       File "/core.py", line 148, in setup
2020-02-21T20:21:57,494       File "/dist.py", line 955, in run_commands
2020-02-21T20:21:57,509       File "/dist.py", line 974, in run_command
2020-02-21T20:21:57,512       File "/install.py", line 61, in run
2020-02-21T20:21:57,516       File "/install.py", line 545, in run
2020-02-21T20:21:57,529       File "/cmd.py", line 313, in run_command
2020-02-21T20:21:57,532       File "/dist.py", line 974, in run_command
2020-02-21T20:21:57,535       File "/build.py", line 135, in run
2020-02-21T20:21:57,545       File "/cmd.py", line 313, in run_command
2020-02-21T20:21:57,560       File "/dist.py", line 974, in run_command
2020-02-21T20:21:57,563       File "/tmp/pip-install-3cqiqwut/awscrt/setup.py", line 180, in run
2020-02-21T20:21:57,567         self._build_dependency(lib)
2020-02-21T20:21:57,580       File "/tmp/pip-install-3cqiqwut/awscrt/setup.py", line 126, in _build_dependency
2020-02-21T20:21:57,583         check_cmake_installed()
2020-02-21T20:21:57,586       File "/tmp/pip-install-3cqiqwut/awscrt/setup.py", line 96, in check_cmake_installed
2020-02-21T20:21:57,598         raise Exception("'cmake' not found. cmake must be installed to build from source.")
2020-02-21T20:21:57,602     Exception: 'cmake' not found. cmake must be installed to build from source.

I can use the old version of the library but I'm trying to build a low-power device that publishes to a topic but also listens on the device's shadow. It uses a cellular connection so I want to try and minimise the number of connections (I think the old library will open and maintain two MQTT connections, one for the publishing and one for the shadow).

Thanks,

Dan

on_connection_resumed issue - sample app incorrect

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
Unable to use on_connection_resumed. When I set the on_connection_resumed parameter when setting up the mqtt_connection like this:

mqtt_connection = mqtt_connection_builder.mtls_from_path(
endpoint=config["ENDPOINT"],
cert_filepath=args["cert"],
pri_key_filepath=args["key"],
client_bootstrap=client_bootstrap,
ca_filepath=None,
client_id=config["DEVICEID"],
clean_session=False,
keep_alive_secs=60,
will=lwt,
on_connection_interrupted=on_connection_interupted,
on_connection_resumed=on_connection_resumed)

The connection resumed callback is defined like so:

def on_connection_resumed(connection, return_code, session_present, **kwargs):
    print('connection resumed with return code {}, session present {}'.format(return_code, session_present))

At runtime when I disconnect the internet and then reconnect to make a reconnection occur I get this python exception:

Exception ignored in: <class 'TypeError'>
Traceback (most recent call last): 
File "/home/jason/.virtualenvs/sg/lib/python3.6/site-packages/awscrt/mqtt.py", line 215, in _on_connection_resumed
session_present=session_present) 
TypeError: on_connection_resumed() missing 1 required positional argument: 'return_code'

It turns out this is just because of an error in the sample programs and also the doc comments in aws-crt-python/awscrt/awsiot_mqtt_connection_builder.py.

You need to remove the return_code parameter so that the signature is like so:

def on_connection_resumed(connection, session_present, **kwargs):

readme.md documentation error

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
Documentation
Example for fleetprovisioning.py includes a thing-name argument
Latest version of fleetprovisioning.py does not include thing-name as an arugment

Failed in receiving shadow document due to awsiotsdk SDK wrong encoding 'ascii' instead of 'utf-8'

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
I have added a uni-coded string (not english) inside my-thing shadow document and tried to recieve the updated document on the client side without success.
when i ran (Python2.7) the request of the shadow document i received "None"(which means no document was received) without any error.
After a bit of research i have discovered the following:
1)the old sdk "awsiotpythonsdk" works perfectly good
2)changing the default system encoding from 'asci' to 'utf-8' solved the problem, i added the following lines in my python script (but adding these lines are bad practice)
"
import sys
reload(sys)
sys.setdefaultencoding('UTF8')
"
These led me to the conclusion that there is software bug in the new SDK - the default encoding should be 'utf-8' and not let the system decide it for you.

SDK version number
1.2.1
Platform/OS/Device
What are you running the sdk on?
Linux, Python2.7
To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)
1)make sure system default encoding is 'asci' - you can verify it by running "python -c 'import sys; print(sys.getdefaultencoding())'"
2)run a python2.7 script to receive a shadow document which includes uni-coded strings (non-English)

result - you will not be able to receive the shadow document.

Expected behavior
i expect that the SDK will encode all incoming mqtt messaged as UTF-8, and will not give the system to decide it.

Logs/output

Additional context

Exceptions are being ignored during subscription's callback functions execution

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • [x ] I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
Hi guys,
lately ive noticed that all type of exceptions which are being thrown during mqtt callbacks function are being ignored in the higher level (inside the awsiot sdk).
for example:
`"Exception Exception: Exception('ASAF EXCEPTION',) in <type 'exceptions.Exception'> ignored"
is there away to disable ignoring these exceptions?
maybe i missing something in the implementation? or is this the expected behavior?

SDK version number
1.2.0
Platform/OS/Device
What are you running the sdk on?
Linux 4.15.0-107-generic #108~16.04.1-Ubuntu
To Reproduce (observed behavior)
for example:

        get_accepted_subscribed_future, _ = self._shadow_client.subscribe_to_get_shadow_accepted(
            request=iotshadow.GetShadowSubscriptionRequest(thing_name=SensorHubConfig.get_iot_thing()),
            qos=mqtt.QoS.AT_LEAST_ONCE,
            callback=self._on_get_shadow_accepted)
    def _on_get_shadow_accepted(self, response):
        # type: (iotshadow.GetShadowResponse) -> None
        raise Exception("ASAF EXCEPTION")

when i publish get shadow request an exception is thrown in callback function "self._on_get_shadow_accepted" and it is being ignored with the following output:

`"Exception Exception: Exception('ASAF EXCEPTION',) in <type 'exceptions.Exception'> ignored"

Expected behavior
i would like my program to explode with the Exceptions raised instead of ignoring them.

Logs/output
`"Exception Exception: Exception('ASAF EXCEPTION',) in <type 'exceptions.Exception'> ignored"

REMEMBER TO SANITIZE YOUR PERSONAL INFO

awscrt.io.init_logging(awscrt.io.LogLevel.Warn, 'stderr')

Additional context
Add any other context about the problem here.

Is it possible to have to apps running at same time and using AWS IoT Python SDK

I have two applications that need to use the IoT Python sdk. The first one sends messages to a specific topic when an event occurs.

The second app uses the thing shadow.

I find that when I start the second app with the shadow; the first one starts going haywire with these messages - but works fine on its own:

Connection interrupted. error: AwsCrtError(name='AWS_ERROR_MQTT_UNEXPECTED_HANGUP', message='The connection was closed unexpectedly.', code=5134)
Exception ignored in: <class 'TypeError'>
Traceback (most recent call last):
  File "/home/jason/.virtualenvs/sg/lib/python3.6/site-packages/awscrt/mqtt.py", line 215, in _on_connection_resumed
    session_present=session_present)
TypeError: on_connection_resumed() missing 1 required positional argument: 'return_code'

It repeats the error continually.

Is there something I need to be doing to have two applications using AWS IoT?

Shadow Topic QoS

Confirm by changing [ ] to [x] below:

Platform/OS/Device
What are you running the sdk on?
Macbook

Describe the question
I am using IOT shadow to monitor hardware testing devices. However, The shadow continues to be a point of failure. I am getting publish and subscribe time out error.

AWSIoTPythonSDK.core.protocol.mqtt_core ERROR Thread-1 mqtt_core.py publish : Publish timed out

Library doesn't work on multiple processes and threads

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
When running an app on multiple processes and threads (basically deployed on uwsgi), the messages won't be sent if the request doesn't arrive to the worker that started the connection. It gets stuck forever on the result (if you execute the Future ), otherwise you won't notice it won't be delivered.

SDK version number

awscrt==0.5.13
awsiotsdk==1.0.6

Platform/OS/Device

Docker: python:3.7-slim

To Reproduce (observed behavior)

Create a Flask application URI that publishes a message to an IoT endpoint, but don't start the connection on the URI, start it somewhere else ( so it won't be created every time the request goes through), send as many requests as possible, and some messages will never ve delivered, or if you execute the result of the Future it will get stuck forever (a timeout would be nice)

Execute this app with uwsgi and multiple processes and threads, even if you execute it with both 1 process and 1 thread it won't work.

Expected behavior
To send the message, no matter in which process received the request.

I will create a reproducible example later.

How to get entire shadow in `on_shadow_delta_updated`

I'm basing an application off the shadow sample app. When a delta is received the on_shadow_delta_updated function is called and it is passed just the delta. i.e. Only the property(s) in the shadow that has changed.

What is the best way to get the entire shadow document here and not just the delta? I want to simply replace my local state with this.

Cannot set shadow desired or reported state to None?

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
You cannot set the desired or reported state to null to remove it from the shadow as the documentation shows this is possible and I can do it from the GUI. If it is None, it is not included in the payload.

SDK version number

v2

Platform/OS/Device
What are you running the sdk on?
OSX. 10.15.3

To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)

Code here:

    def to_payload(self):
        # type: () -> typing.Dict[str, typing.Any]
        payload = {} # type: typing.Dict[str, typing.Any]
        if self.desired is not None:           ### <- I think None should be allowed? 
            payload['desired'] = self.desired
        if self.reported is not None:
            payload['reported'] = self.reported
        return payload

Expected behavior
A clear and concise description of what you expected to happen.

I would expect you can set the desired or reported state of a shadow to null by settings its value to None.

Logs/output
If applicable, add logs or error output.

REMEMBER TO SANITIZE YOUR PERSONAL INFO

awscrt.io.init_logging(awscrt.io.LogLevel.Warn, 'stderr')

Additional context
Add any other context about the problem here.

AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE on 1.0.6 (awscrt 0.5.13)

Describe the bug
After upgrading my installation to awsiotsdk-1.0.6 it stopped working with awscrt failing to authorize with aws' backend. Might be connected with awscrt upgrade to 0.5.13.

SDK version number
awsiotsdk-1.0.6

Platform/OS/Device
rpi3b+

To Reproduce (observed behavior)
Upgrade awsiotsdk to version 1.0.6.

Expected behavior
Should work as expected.

Logs/output

Apr 15 06:55:01 raspberrypi python3[581]: Connecting to something-east-1.amazonaws.com with client ID 'foo-bar-baz'...
Apr 15 06:55:01 raspberrypi python3[581]: Traceback (most recent call last):
Apr 15 06:55:01 raspberrypi python3[581]:   File "app.py", line 86, in <module>
Apr 15 06:55:01 raspberrypi python3[581]:     connect_future.result()
Apr 15 06:55:01 raspberrypi python3[581]:   File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
Apr 15 06:55:01 raspberrypi python3[581]:     return self.__get_result()
Apr 15 06:55:01 raspberrypi python3[581]:   File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
Apr 15 06:55:01 raspberrypi python3[581]:     raise self._exception
Apr 15 06:55:01 raspberrypi python3[581]: awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE', message='TLS (SSL) negotiation failed', code=1029)
Apr 15 06:55:01 raspberrypi systemd[1]: app.service: Main process exited, code=exited, status=1/FAILURE

LWT sent for unknown reason and no on_connection_resumed called

Describe the bug
I am using the device shadow as per the sample. I have configured an LWT message with the will parameter as well as on_connection_resumed as follows:

mqtt_connection = mqtt_connection_builder.mtls_from_path(
    endpoint=config["ENDPOINT"],
    cert_filepath=args["cert"],
    pri_key_filepath=args["key"],
    client_bootstrap=client_bootstrap,
    ca_filepath=None, #this is not requried as its already on the nano
    client_id=config["DEVICEID"],
    clean_session=False, #if True, all mesage sent when disconnected will be discarded
    keep_alive_secs=60,
    will=lwt,
    on_connection_interrupted=on_connection_interupted,
    on_connection_resumed=on_connection_resumed)

Sometimes an LWT is sent and my rule which copies the LWT to the shadow sets connected to 0.
Then we I check the device running the python program I see that it has a good internet connection still. I also don't see any sign that the on_connection_resumed function was called as I write some log statements when it is...

So first question is: Why would the LWT get triggered - possible because of a temporary internet issue... but then the on_connection_resumed should have been called. Is that correct?

SDK version number
awsiotsdk==1.0.3

Platform/OS/Device
What are you running the sdk on?
NVIDIA Jetson Nano

To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)

Expected behavior
I'd like to know precisely what situations can trigger an LWT to be sent. And if the on_connection_resumed is meant to be called once the connection comes back up.

If this is not how its meant to work - how can I get my python app to know that the connection is back up after an LWT so that I can actually set connected to 1 in the shadow?

Subscribing to Multiple topics Simultaneously

In my policy document I have stated that I want to have a topic like below

arn:{}:topicfilter/room*

While this works when I have 1-1 mapping between my publisher and subscriber when the topic is explicitly stated

Publisher - > room1; Subscriber -> room1

But, it does not work in this instance (I want my subscriber to be able to subscribe to multiple topics with 1 line)

Publisher - > room1; Subscriber - > room*

Can't resolve greengrass-ats.iot.us-west-2.amazonaws.com on basic_discovery.py

Confirm by changing [ ] to [x] below:

Platform/OS/Device
What are you running the sdk on?
Ubuntu 18.04

Describe the question
It seems that greengrass-ats.iot.us-west-2.amazonaws.com is not responding.
I'm getting the following error when trying to run basic_discovery.py:

[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolving host greengrass-ats.iot.us-west-2.amazonaws.com
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 52.24.25.150
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 52.26.22.211
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 52.32.172.172
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 52.43.174.175
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 35.160.173.75
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 52.10.2.147
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3423:3b86
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3424:4666
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3428:53b8
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3459:7d0b
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::23a4:4d16
[DEBUG] [2020-04-16T20:55:56Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3270:9a82
[DEBUG] [2020-04-16T20:55:57Z] [00007f0160e9c700] [task-scheduler] - id=0x7f0154003ee0: Running (null) task with status
[ERROR] [2020-04-16T20:55:57Z] [00007f0160e9c700] [socket] - id=0x7f0154003180 fd=7: timed out, shutting down.
[DEBUG] [2020-04-16T20:55:57Z] [00007f0160e9c700] [task-scheduler] - id=0x7f0154003730: Scheduling epoll_event_loop_unsubscribe_cleanup task for immediate execution
[DEBUG] [2020-04-16T20:55:57Z] [00007f0160e9c700] [socket] - id=0x7f0154003180 fd=7: closing
[ERROR] [2020-04-16T20:55:57Z] [00007f0160e9c700] [socket] - id=0x7f0154003180 fd=-1: connection failure
[DEBUG] [2020-04-16T20:55:57Z] [00007f0160e9c700] [channel-bootstrap] - id=0x11eb540: client connection on socket 0x7f0154003180 completed with error 1048.
[DEBUG] [2020-04-16T20:55:57Z] [00007f0160e9c700] [channel-bootstrap] - id=0x11eb540: recording bad address 52.10.2.147.
[INFO ] [2020-04-16T20:55:57Z] [00007f0160e9c700] [dns] - id=0x121aa10: recording failure for record 52.10.2.147 for greengrass-ats.iot.us-west-2.amazonaws.com, moving to bad list
[DEBUG] [2020-04-16T20:55:57Z] [00007f0160e9c700] [socket] - id=0x7f0154003180 fd=-1: closing
[ERROR] [2020-04-16T20:55:57Z] [00007f0160e9c700] [channel-bootstrap] - id=0x11eb540: Connection failed with error_code 1048.
[ERROR] [2020-04-16T20:55:57Z] [00007f0160e9c700] [http-connection] - static: Client connection failed with error 1048 (AWS_IO_SOCKET_TIMEOUT).
[DEBUG] [2020-04-16T20:55:57Z] [00007f0160e9c700] [task-scheduler] - id=0x7f0154003730: Running epoll_event_loop_unsubscribe_cleanup task with status
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolving host greengrass-ats.iot.us-west-2.amazonaws.com
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 52.26.22.211
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 52.32.172.172
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 52.43.174.175
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 35.160.173.75
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 52.10.2.147
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 52.24.25.150
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3424:4666
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3428:53b8
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3459:7d0b
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::23a4:4d16
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3270:9a82
[DEBUG] [2020-04-16T20:55:57Z] [00007f015bfff700] [dns] - static: resolved record: 2620:108:700f::3423:3b86
Traceback (most recent call last):
File "basic_discovery.py", line 64, in
discover_response = resp_future.result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/local/lib/python3.6/dist-packages/awsiot/greengrass_discovery.py", line 65, in on_connection_completed
connection = conn_future.result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_IO_SOCKET_TIMEOUT', message='socket operation timed out.', code=1048)

raspberry pi awscrt import error

After running python3 setup.py install and ran the sample pubsub.py and encounter an error - 'ModuleNotFoundError: No module named 'awscrt''. Try to set sys.path and PATH in .profile could not solve the problem. awscrt folder can be found in the site-packages folder.
The code runs well on mac os but not in raspberry pi. I am not sure if it is a bug or I have missed out something.

Pubsub sample hangs if there's a significant disconnection during execution

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
The pubsub sample's wait event assumes all messages should get successfully received, but in the case where the channel gets fully torn down due to a disconnect, this isn't the case and the sample waits forever.

SDK version number
1.3.0

To Reproduce (observed behavior)
Run pubsub with a higher count (60), disable the host's internet adapter long enough to get a channel shutdown, reenable the adapater, wait for the messages to complete, then watch the program hang.

MQTT over Websocket can't connect

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
MQTT over Websocket connection can't connect, even though a normal MQTT is working fine.

SDK version number
awscrt==0.5.13
awsiotsdk==1.0.6

Platform/OS/Device
MAC

To Reproduce (observed behavior)

  1. Create a new Thing with a Policy iot:* and * for the ARN.
    2.- Execute the pubsub example with the websocket option, it won't work.

Expected behavior
To work as smooth as possible

Logs/output

Full logs can be found here

python pubsub.py --endpoint xxxxxxxx-ats.iot.us-east-2.amazonaws.com --root-ca AmazonRootCA1.pem   --cert Certificate.crt  --key PrivateKey.pem.key  --use-websocket --signing-region us-east-2 --verbosity Debug

Additional context
When connecting without websocket it works as expected.

can't receive (or see) messages in the MQTT Client Test under IOT Console, when MQTT broker is running via Python SDK

Confirm by changing [ ] to [x] below:

Platform/OS/Device
AWS Cloud

Describe the question
I can start the pubsub.py program and it connects to my IOT endpoint; I tried several names for the topics for publish/subscribe; but I can't monitor them under MQTT client in the IOT Console; maybe the naming is wrong ?

Here is the debug from the application side (Python).

Any help would be appreciated, I checked all the documentation and can't figure out what needs to be modified, thanks

[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x7f015802a250: Scheduling mqtt_connack_timeout task for future execution at time 553309694383
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [mqtt-client] - id=0x25e79f0: Adding username ?SDK=PythonV2&Version=0.5.13 to connection
Connected!
Subscribing to topic 'iotclientsj'...
[DEBUG] [2020-05-05T06:24:27Z] [00007f016b27a740] [mqtt-client] - id=0x25e79f0: Starting subscribe 1 on topic iotclientsj
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x25e7bd0: Scheduling mqtt_ping task for future execution at time 556377577432
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x7f0158002f10: Scheduling schedule_cross_thread_tasks task for immediate execution
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x7f0158002f10: Running schedule_cross_thread_tasks task with status
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [mqtt-topic-tree] - tree=0x25e7ad8: Inserting topic filter iotclientsj into topic tree
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x251aae0: Scheduling mqtt_request_timeout task for future execution at time 553377861525
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [mqtt-client] - id=0x25e79f0: Subscribe 1 completed with error code 0
Subscribed with QoS.AT_LEAST_ONCE
Sending 10 message(s)
Publishing message to topic 'iotclientsj': Hello World! [1]
[DEBUG] [2020-05-05T06:24:27Z] [00007f016b27a740] [mqtt-client] - id=0x25e79f0: Starting publish 2 to topic iotclientsj
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x7f0158002f10: Scheduling schedule_cross_thread_tasks task for immediate execution
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x7f0158002f10: Running schedule_cross_thread_tasks task with status
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x2614450: Scheduling mqtt_request_timeout task for future execution at time 553409205683
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [tls-handler] - id=0x7f0158014a40: Alert code 0
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x7f0158002f50: Scheduling channel_shutdown task for immediate execution
[INFO ] [2020-05-05T06:24:27Z] [00007f015e08d700] [socket] - id=0x7f0158002bf0 fd=9: zero read, socket is closed
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [channel] - id=0x7f0158002d50: Channel shutdown is already pending, not scheduling another.
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [channel] - id=0x7f0158002d50: Channel shutdown is already pending, not scheduling another.
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [task-scheduler] - id=0x7f0158002f50: Running channel_shutdown task with status
[DEBUG] [2020-05-05T06:24:27Z] [00007f015e08d700] [channel] - id=0x7f0158002d50: beginning shutdown process

Unable to Clear the "Reported" and "Desired" fields

Is your feature request related to a problem? Please describe.
Version 1 of aws-iot-device-sdk-python required the developer to send a JSON payload containing the contents of the shadow. Version 2 abstracts this functionality away with iotshadow.ShadowState. This is a convenient way for a programmer to specify the reported and desired fields of an MQTT request. However, MQTT allows the user to clear the reported, desired, and fields by sending a null value in the JSON payload. In v1, the programmer could accomplish this by doing something like:

my_json_payload[state][desired] = None

The v1 SDK would then convert the Python 'None' into null in the JSON document.

{
    "state": {
        "desired": null
    }
}

However, the v2 implementation sets any unspecified field to None (found here).

Describe the solution you'd like
I would like the ability to clear the desired and reported fields by setting them to None, or by some other process.

Describe alternatives you've considered
My current workaround involves keeping a local copy of the desired field, entitled self.shadow_desired, and setting each property to None, if the situation sets clear_desired to True. (self.shadow_reported is my local copy of the reported field - always set by me).

if clear_desired:
            state = iotshadow.ShadowState(
                reported=self.shadow_reported,
                # If desired was present, the attributes are nulled
                # If desired was not present, this is an empty dict
                desired={k:None for k in self.shadow_desired.keys()}
            )

Architecture for subscribing for multiple topics

Confirm by changing [ ] to [x] below:

I plan to have subscribe to multiple topics with each topic sending 1 message per second. What would be the best architecture to manage subscription for multiple topics? Any pointers that I should be aware of when building this out?

LWT (Will) with retain=True causes AWS_ERROR_MQTT_UNEXPECTED_HANGUP

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
When configuring an MQTT connection with a last will and testament (LWT), the .connect() future returns AWS_ERROR_MQTT_UNEXPECTED_HANGUP when the Will is configured with retain=True.

Could this be related to the updated way messages are queued in V2?

SDK version number
==1.5.0

Platform/OS/Device
Mac OS 10.15.6

To Reproduce (observed behavior)

  • Certificates have policy with iot:* so I do not believe it is a permissions issue
import awscrt
from awscrt import io, mqtt
from awsiot import iotshadow
from awsiot import mqtt_connection_builder
import os
import time

# Also verified to be an issue with us-west-2
MQTT_ENDPOINT="xxx-ats.iot.us-east-2.amazonaws.com"


event_loop_group = io.EventLoopGroup(1)
host_resolver = io.DefaultHostResolver(event_loop_group)
client_bootstrap = io.ClientBootstrap(event_loop_group, host_resolver)

mqtt_will: mqtt.Will = mqtt.Will(
    topic="joshtest/lwt",
    qos=mqtt.QoS.AT_LEAST_ONCE,
    payload=b"Mqtt Bridge (V2) lost connection",
    retain=True,
)

mqtt_conn: mqtt.Connection = mqtt_connection_builder.mtls_from_path(
    endpoint=MQTT_ENDPOINT,
    cert_filepath=os.path.join(
        "./certs", "certificate.pem.crt"
    ),
    pri_key_filepath=os.path.join(
        "./certs", "private.pem.key"
    ),
    client_bootstrap=client_bootstrap,
    ca_filepath=os.path.join("./certs", "AmazonRootCA1.pem"),
    client_id="josh-lwt-test",
    will=mqtt_will,
)

pub_future = mqtt_conn.connect()
pub_future.result()
print("connected")
while 1:
    time.sleep(1)

Expected behavior
When changing retain=True to retain=False on line 19, the connection is established and the print statement is executed

Logs/output

Traceback (most recent call last):
  File "mqtt_lwt.py", line 39, in <module>
    pub_future.result()
  File "/Users/xxx/.pyenv/versions/3.7.8/lib/python3.7/concurrent/futures/_base.py", line 435, in result
    return self.__get_result()
  File "/Users/xxx/.pyenv/versions/3.7.8/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_ERROR_MQTT_UNEXPECTED_HANGUP', message='The connection was closed unexpectedly.', code=5134)
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: Beginning creation and setup of new channel.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec12b160: Scheduling on_channel_setup_complete task for immediate execution
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec036340: Running kqueue_event_loop_clean_up_handle_data task with <Running> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec167bf0: Running kqueue_event_loop_subscribe task with <Running> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec12b160: Running on_channel_setup_complete task with <Running> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: setup complete, notifying caller.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: no message pool is currently stored in the event-loop local storage, adding 0x7f8cec107200 with max message size 16384, message count 4, with 4 small blocks of 128 bytes.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel-bootstrap] - id=0x7f8ceae07970: channel 0x7f8cec167e90 setup succeeded: bootstrapping.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [socket-handler] - id=0x7f8cec1689a0: Socket handler created with max_read_size of 16384
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec168c00: Scheduling tls_timeout task for future execution at time 6697565445706
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [tls-handler] - id=0x7f8cec168bd0: negotiation succeeded
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [tls-handler] - id=0x7f8cec168bd0: negotiated protocol: x-amzn-mqtt-ca
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [tls-handler] - id=0x7f8cec168bd0: Remote Server Name: 
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel-bootstrap] - id=0x7f8ceae07970: tls negotiation result 0 on channel 0x7f8cec167e90
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [mqtt-client] - id=0x7f8cec031e80: Connection successfully opened, sending CONNECT packet
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cee0040d0: Scheduling mqtt_connack_timeout task for future execution at time 6696898016827
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [mqtt-client] - id=0x7f8cec031e80: Adding will to connection on joshtest/lwt with payload Mqtt Bridge (V2) lost connection
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [mqtt-client] - id=0x7f8cec031e80: Adding username ?SDK=PythonV2&Version=0.9.0 to connection
[ERROR] [2020-09-23T18:12:10Z] [00007000091cf000] [tls-handler] - id=0x7f8cec168bd0: error reported during SSLRead. OSStatus code -9805
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec1680a8: Scheduling channel_shutdown task for immediate execution
[INFO] [2020-09-23T18:12:10Z] [00007000091cf000] [socket] - id=0x7f8cec035d90 fd=8: zero read, socket is closed
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: Channel shutdown is already pending, not scheduling another.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: Channel shutdown is already pending, not scheduling another.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec1680a8: Running channel_shutdown task with <Running> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: beginning shutdown process
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: handler 0x7f8cec1689a0 shutdown in read dir completed.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [tls-handler] - id=0x7f8cec168bd0: shutting down read direction with error 0. Flushing queues.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: handler 0x7f8cec168bd0 shutdown in read dir completed.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: handler 0x7f8cec031ea8 shutdown in read dir completed.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec167eb8: Scheduling (null) task for immediate execution
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec167eb8: Running (null) task with <Running> status
[INFO] [2020-09-23T18:12:10Z] [00007000091cf000] [mqtt-client] - id=0x7f8cec031e80: sending disconnect message as part of graceful shutdown.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [tls-handler] - id=0x7f8cec168bd0: SSLWrite failed with OSStatus error code -9805.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [mqtt-client] - id=0x7f8cec031e80: failed to send courteous disconnect io message
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: handler 0x7f8cec031ea8 shutdown in write dir completed.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: handler 0x7f8cec168bd0 shutdown in write dir completed.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [socket] - id=0x7f8cec035d90 fd=8: closing
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec167c30: Scheduling kqueue_event_loop_clean_up_handle_data task for immediate execution
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec168a40: Scheduling socket_handler_close task for immediate execution
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec167c30: Running kqueue_event_loop_clean_up_handle_data task with <Running> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec168a40: Running socket_handler_close task with <Running> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: handler 0x7f8cec1689a0 shutdown in write dir completed.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec167eb8: Scheduling (null) task for immediate execution
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec167eb8: Running (null) task with <Running> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: during shutdown, canceling task 0x7f8cec168c00
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cec168c00: Running tls_timeout task with <Canceled> status
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: during shutdown, canceling task 0x7f8cee0040d0
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [task-scheduler] - id=0x7f8cee0040d0: Running mqtt_connack_timeout task with <Canceled> status
Traceback (most recent call last):
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel-bootstrap] - id=0x7f8ceae07970: channel 0x7f8cec167e90 shutdown with error 0.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel] - id=0x7f8cec167e90: destroying channel.
[DEBUG] [2020-09-23T18:12:10Z] [00007000091cf000] [channel-bootstrap] - id=0x7f8ceae07970: releasing bootstrap reference
  File "mqtt_lwt.py", line 38, in <module>
    pub_future.result()
  File "/Users/xxx/.pyenv/versions/3.7.8/lib/python3.7/concurrent/futures/_base.py", line 435, in result
    return self.__get_result()
  File "/Users/xxx/.pyenv/versions/3.7.8/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_ERROR_MQTT_UNEXPECTED_HANGUP', message='The connection was closed unexpectedly.', code=5134)
[DEBUG] [2020-09-23T18:12:10Z] [000000010cec1dc0] [mqtt-client] - id=0x7f8cec031e80: user called disconnect.
[ERROR] [2020-09-23T18:12:10Z] [000000010cec1dc0] [mqtt-client] - id=0x7f8cec031e80: Connection is not open, and may not be closed
[DEBUG] [2020-09-23T18:12:10Z] [000000010cec1dc0] [mqtt-client] - id=0x7f8cec031e80: Destroying connection
[DEBUG] [2020-09-23T18:12:10Z] [000000010cec1dc0] [mqtt-topic-tree] - tree=0x7f8cec0320d8: Cleaning up topic tree
[DEBUG] [2020-09-23T18:12:10Z] [000000010cec1dc0] [mqtt-client] - client=0x7f8cec00e3e0: Cleaning up MQTT client
[DEBUG] [2020-09-23T18:12:10Z] [000000010cec1dc0] [channel-bootstrap] - id=0x7f8ceae07970: releasing bootstrap reference
[DEBUG] [2020-09-23T18:12:10Z] [000000010cec1dc0] [channel-bootstrap] - id=0x7f8ceae07970: releasing bootstrap reference
[DEBUG] [2020-09-23T18:12:10Z] [000000010cec1dc0] [channel-bootstrap] - id=0x7f8ceae07970: destroying

Additional context
The main error I am seeing in the logs above is:

[ERROR] [2020-09-23T18:12:10Z] [00007000091cf000] [tls-handler] - id=0x7f8cec168bd0: error reported during SSLRead. OSStatus code -9805

With retain=False, the above line does not appear:

[DEBUG] [2020-09-23T18:15:47Z] [000070000fb4f000] [mqtt-client] - id=0x7feac8ca14d0: Adding will to connection on joshtest/lwt with payload Mqtt Bridge (V2) lost connection
[DEBUG] [2020-09-23T18:15:47Z] [000070000fb4f000] [mqtt-client] - id=0x7feac8ca14d0: Adding username ?SDK=PythonV2&Version=0.9.0 to connection
[DEBUG] [2020-09-23T18:15:47Z] [000070000fb4f000] [task-scheduler] - id=0x7feac8ca1688: Scheduling mqtt_ping task for future execution at time 8111153746033
connected

When running on a Linux image, the error is slightly different but still gives the same AWS error:

[DEBUG] [2020-09-23T18:23:58Z] [0000ffff9c1041e0] [mqtt-client] - id=0xaaaad99bd3d0: Adding will to connection on joshtest/lwt with payload Mqtt Bridge (V2) lost connection
[DEBUG] [2020-09-23T18:23:58Z] [0000ffff9c1041e0] [mqtt-client] - id=0xaaaad99bd3d0: Adding username ?SDK=PythonV2&Version=0.6.2 to connection
[DEBUG] [2020-09-23T18:23:58Z] [0000ffff9c1041e0] [tls-handler] - id=0xffff94017a20: Alert code 0
[DEBUG] [2020-09-23T18:23:58Z] [0000ffff9c1041e0] [task-scheduler] - id=0xffff94006ac8: Scheduling channel_shutdown task for immediate execution
[INFO ] [2020-09-23T18:23:58Z] [0000ffff9c1041e0] [socket] - id=0xffff94004fd0 fd=6: zero read, socket is closed
[DEBUG] [2020-09-23T18:23:58Z] [0000ffff9c1041e0] [channel] - id=0xffff940068c0: Channel shutdown is already pending, not scheduling another.
[DEBUG] [2020-09-23T18:23:58Z] [0000ffff9c1041e0] [channel] - id=0xffff940068c0: destroying channel.
Traceback (most recent call last):
  File "mqtt_lwt.py", line 38, in <module>
    pub_future.result()
  File "/opt/xxx/current/usr/lib/python3.7/concurrent/futures/_base.py", line 435, in result
    return self.__get_result()
  File "/opt/xxx/current/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_ERROR_MQTT_UNEXPECTED_HANGUP', message='The connection was closed unexpectedly.', code=5134)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.