swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.13k stars 102 forks source link

warm start performance #17

Closed tomerd closed 4 years ago

tomerd commented 4 years ago

this issue is to track details re. warm start performance

tomerd commented 4 years ago

current benchmark based on ./scripts/performance_test.sh

-----------------------------
results
-----------------------------
string, cold: 32658752 (ns)
string, warm: 489904 (ns)
json, cold: 34155567 (ns)
json, warm: 626493 (ns)
-----------------------------
drexin commented 4 years ago

So I managed to statically link the project and got following numbers:

-----------------------------
results
-----------------------------
string, cold: 8676418 (ns)
string, warm: 222640 (ns)
json, cold: 10234056 (ns)
json, warm: 399833 (ns)
-----------------------------

I think that looks very competitive ;)

fabianfett commented 4 years ago

What?! šŸ˜± @drexin this is super awesome!

drexin commented 4 years ago

So to link statically, I first switched to Swift 5.2-dev, because previous versions did not come with all the necessary static libraries. Then we need to install some additional dependencies (these are the Ubuntu package names):

And then we need to modify the file /usr/lib/swift_static/linux/static-executable-args.lnk to have the following content:

/usr/lib/swift_static/linux/static-executable-args.lnk
-static
-lswiftCore
-lswiftImageInspectionShared
-Xlinker
--defsym=__import_pthread_self=pthread_self
-Xlinker
--defsym=__import_pthread_once=pthread_once
-Xlinker
--defsym=__import_pthread_key_create=pthread_key_create
-lpthread
-latomic
-lDispatchStubs
-lCoreFoundation
-lFoundation
-luuid
-licui18nswift
-licuucswift
-licudataswift
-licui18n
-licuuc
-licudata
-ldl
-lstdc++
-lm

After all that we should be able to compile with swift build -Xswiftc -static-executable -c release.

I'm hoping to get these changes upstream soon. Obviously we can't just add all the libraries unconditionally, because it depends on the libraries we actually use. I'll see how the driver decides what's actually necessary.

fabianfett commented 4 years ago

@drexin With this list it looks to me that I don't even need to install swift on my target Amazon Linux 2. Is this correct?

drexin commented 4 years ago

That is correct!

tomerd commented 4 years ago

@fabianfett until we have official AL2 images, would be cool if you could create a 5.2-dev version with this patch, so we can try to build & test the test payload on real lambda. possible?

tomerd commented 4 years ago

@drexin these are amazing results, can't wait to use it

fabianfett commented 4 years ago

@tomerd my macbook is really looking forward to run with fans spinning for at least 3 hours today. šŸ˜‰

Will definitely try this out and upload the binaries at my site.

@drexin I will use just plain master for this. If there is a better/more stable branch I should checkout, give me a hint.

drexin commented 4 years ago

master is fine, or 5.2

tomerd commented 4 years ago

@tomerd my macbook is really looking forward to run with fans spinning for at least 3 hours today.

use aws?!

fabianfett commented 4 years ago

@drexin I tried to compile and test the swift-5.2-branch with docker (with skip-foundation-test):

https://github.com/fabianfett/amazonlinux-swift/blob/run_tests/compile/Dockerfile

Sadly I ran into an issue:

CMakeError.log CMakeOutput.log stdout.log

Do you know anything about this? Am I doing something wrong?

compnerd commented 4 years ago

@fabianfett - I think that you missed --cmark in your invocation (or your cmark checkout is out of date)

fabianfett commented 4 years ago

@compnerd Sorry for coming back to you but I'm not quite sure if I understand that correctly. I just reran my build with the same result.

The checkout ended with

Updating '/home/ec2-user/swift'
Tag 'swift-5.2-branch' does not exist for 'swift', just updating regularly
/home/ec2-user/swift

/home/ec2-user/swift
Current branch swift-5.2-branch is up to date.

/home/ec2-user/swift

update-checkout succeeded
cmake                              : f43a7d76c737c5bb9b903a2b1be5186c081ec21e
cmark                              : 1168665f6b36be747ffe6b7b90bc54cfc17f42b7
icu                                : fd123bf023882f07bfacf51c39111be2f946d8f8
indexstore-db                      : 14e6e25a53ca08946ae0927b6cc2b2bf36c311b9
llbuild                            : 15cb77c8b3e5ac21cbe47fd6f1f2c891d4b56093
llvm-project                       : 16b576d445bd278dace043e1f0a6e9b8eda9ddb5
ninja                              : ed7f67040b370189d989adbd60ff8ea29957231f
sourcekit-lsp                      : 7d18d3bb3841594f443868bc172bcd8a84d756b9
swift                              : 33150e32b4f5c5f9ecae234b3c3d8251877de402
swift-corelibs-foundation          : 69232d2ef971acf99938569fdd2caa8a16cb7718
swift-corelibs-libdispatch         : c992dacf3ca114806e6ac9ffc9113b19255be9fe
swift-corelibs-xctest              : 8b0eefa96c02a4cb4d3eb74e6c289eba34a744fa
swift-format                       : 5e7ef93b6b93381c6805fea57b3ccfb05f718846
swift-integration-tests            : 11f0f6e8b34ba9782b5841dbeaa207d0b4620152
swift-stress-tester                : 225a973f42140890bb49648ca090d1a53f32ff8e
swift-syntax                       : 7251727261c6d2fb225245dc20ffded8f8d0f000
swift-tools-support-core           : d08234c4cf8046786a3552143532222a56273720
swift-xcode-playground-support     : 88043d7d320f92598efb39408c3f4b1903a4fff6
swiftpm                            : 75916ca4f00c6861d8dc1b03cb5684d6fc4f8f8d

which let's me assume that cmark is checked out by the update-checkout automatically. Adding --cmark to the build-script invocation resulted in

utils/build-script --preset=buildbot_linux installable_package=/home/ec2-user/swift-package.tar.gz install_destdir=/tmp/swift

usage: build-script [-h] [-n] [--preset-file PATH] [--preset NAME]
                    [--show-presets [BOOL]] [--distcc [BOOL]]
                    [--cmake-c-launcher PATH] [--cmake-cxx-launcher PATH]
                    [-j BUILD_JOBS] [--expand-invocation [BOOL]]
                    [--swiftsyntax-install-prefix SWIFTSYNTAX_INSTALL_PREFIX]
                    [--build-dir BUILD_DIR] [--dump-config] [--reconfigure]
                    [SUBSTITUTION [SUBSTITUTION ...]]
build-script: error: unrecognized arguments: --cmark

I'm sure I made a stupid mistake here but could you please point me in the correct direction.

tomerd commented 4 years ago

@drexin can you confirm the right branch for @fabianfett ^^

compnerd commented 4 years ago

@fabianfett

Tag 'swift-5.2-branch' does not exist for 'swift', just updating regularly
/home/ec2-user/swift

This sounds suspicious. Seems as though swift may have been cloned from the wrong place?

fabianfett commented 4 years ago

Okay I could fix the problem. @compnerd thanks for your suggestion. Changing:

RUN ./utils/update-checkout --clone --tag swift-5.2-branch

to

RUN ./utils/update-checkout --clone --scheme swift-5.2-branch

fixed the problem I had.

Since I've been running into test failures again, I moved the error messages back into the open: https://forums.swift.org/t/building-swift-on-amazon-linux-2/34239/5

compnerd commented 4 years ago

Responded on the forums thread. One of the failures is interesting - the race test. Iā€™d suggest rerun the tests, it may be a flake.

fabianfett commented 4 years ago

Statically linking Swift Lambda

Today I did some research regarding static linking. If anyone needs my Amazon Linux 2 binary, I'm happy to provide it. After being done with it, I thought maybe I should compile my static linked binary with Ubuntu. I have no idea if that would execute on Amazon Linux 2, though linked libs shouldn't be an issue.

Anyway, if you need the Amazon Linux 2 Dockerimage, I used:

fabianfett/amazonlinux-swift:5.2-branch-amazonlinux2

What was needed on Amazon Linux 2

Needed to install:

$ yum -y install glibc-static

Linking against Foundation didn't work at all. Missing dependencies?

For that reason I used a branch into which I merged #41 #42.

clang-7: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
/usr/bin/ld.gold: error: cannot find -luuid-licui18nswift
/usr/bin/ld.gold: error: cannot find -licui18n
/usr/bin/ld.gold: error: cannot find -licuuc
/usr/bin/ld.gold: error: cannot find -licudata
/src/HelloWorldLambdaSecret/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift:2761: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/src/HelloWorldLambdaSecret/.build/x86_64-unknown-linux-gnu/release/NIO.build/SocketAddresses.swift.o:AddressedEnvelope.swift.o:function $s3NIO13SocketAddressO04makeC13ResolvingHost_4portACSS_SitKFZTf4nnd_n: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyUserName: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyUserName: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyFullUserName: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyFullUserName: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function _CFCopyHomeDirURLForUser: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function _CFCopyHomeDirURLForUser: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function _CFCopyHomeDirURLForUser: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function __CFUUIDCreate_block_invoke: error: undefined reference to 'uuid_generate_time'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function __CFUUIDCreate_block_invoke: error: undefined reference to 'uuid_generate_random'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_clear: error: undefined reference to 'uuid_clear'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_compare: error: undefined reference to 'uuid_compare'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_copy: error: undefined reference to 'uuid_copy'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_generate: error: undefined reference to 'uuid_generate'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_generate_random: error: undefined reference to 'uuid_generate_random'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_generate_time: error: undefined reference to 'uuid_generate_time'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_is_null: error: undefined reference to 'uuid_is_null'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_parse: error: undefined reference to 'uuid_parse'
swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_unparse: error: undefined reference to 'uuid_unparse'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_unparse_lower: error: undefined reference to 'uuid_unparse_lower'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFUUID.c.o):CFUUID.c:function _cf_uuid_unparse_upper: error: undefined reference to 'uuid_unparse_upper'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __calcNextDaylightSavingTimeTransition: error: undefined reference to 'ucal_setMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __calcNextDaylightSavingTimeTransition: error: undefined reference to 'ucal_getTimeZoneTransitionDate_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarDeallocate: error: undefined reference to 'ucal_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarCreateUCalendar: error: undefined reference to 'ucal_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarSetupCal: error: undefined reference to 'ucal_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarSetupCal: error: undefined reference to 'ucal_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarSetupCal: error: undefined reference to 'ucal_setGregorianChange_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarIsDateInWeekend: error: undefined reference to 'ucal_isWeekend_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarGetNextWeekend: error: undefined reference to 'ucal_getDayOfWeekType_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarGetNextWeekend: error: undefined reference to 'ucal_getDayOfWeekType_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarGetNextWeekend: error: undefined reference to 'ucal_getDayOfWeekType_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarGetNextWeekend: error: undefined reference to 'ucal_getDayOfWeekType_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarGetNextWeekend: error: undefined reference to 'ucal_getWeekendTransition_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarGetNextWeekend: error: undefined reference to 'ucal_getWeekendTransition_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarZapCal: error: undefined reference to 'ucal_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetLocale: error: undefined reference to 'ucal_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetLocale: error: undefined reference to 'ucal_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetLocale: error: undefined reference to 'ucal_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetLocale: error: undefined reference to 'ucal_getAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetLocale: error: undefined reference to 'ucal_getAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetLocale: error: undefined reference to 'ucal_getGregorianChange_65_swift'
ar.c.o):CFCalendar.c:function CFCalendarSetLocale: error: undefined reference to 'ucal_setGregorianChange_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarInitWithIdentifier: error: undefined reference to 'ucal_getAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarInitWithIdentifier: error: undefined reference to 'ucal_getAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarInitWithIdentifier: error: undefined reference to 'ucal_getGregorianChange_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarInitWithIdentifier: error: undefined reference to 'ucal_setGregorianChange_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarCreateCopy: error: undefined reference to 'ucal_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetGregorianStartDate: error: undefined reference to 'ucal_getGregorianChange_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarSetGregorianStartDate: error: undefined reference to 'ucal_setGregorianChange_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetMinimumRangeOfUnit: error: undefined reference to 'ucal_clear_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetMinimumRangeOfUnit: error: undefined reference to 'ucal_getLimit_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetMinimumRangeOfUnit: error: undefined reference to 'ucal_getLimit_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetMaximumRangeOfUnit: error: undefined reference to 'ucal_clear_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetMaximumRangeOfUnit: error: undefined reference to 'ucal_getLimit_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetMaximumRangeOfUnit: error: undefined reference to 'ucal_getLimit_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarComposeAbsoluteTimeV: error: undefined reference to 'ucal_clear_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarComposeAbsoluteTimeV: error: undefined reference to 'ucal_set_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarComposeAbsoluteTimeV: error: undefined reference to 'ucal_set_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarComposeAbsoluteTimeV: error: undefined reference to 'ucal_set_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarComposeAbsoluteTimeV: error: undefined reference to 'ucal_set_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarComposeAbsoluteTimeV: error: undefined reference to 'ucal_getMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarGetTimeRangeOfTimeZoneTransition: error: undefined reference to 'ucal_getMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarGetTimeRangeOfTimeZoneTransition: error: undefined reference to 'ucal_setMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarGetTimeRangeOfTimeZoneTransition: error: undefined reference to 'ucal_getTimeZoneTransitionDate_65_swift'
darGetTimeRangeOfTimeZoneTransition: error: undefined reference to 'ucal_setMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarDecomposeAbsoluteTimeV: error: undefined reference to 'ucal_clear_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarDecomposeAbsoluteTimeV: error: undefined reference to 'ucal_setMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarDecomposeAbsoluteTimeV: error: undefined reference to 'ucal_get_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarAddComponentsV: error: undefined reference to 'ucal_getMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarAdd: error: undefined reference to 'ucal_add_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarAdd: error: undefined reference to 'ucal_roll_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarAdd: error: undefined reference to 'ucal_getMillis_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarAdd: error: undefined reference to 'ucal_get_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarAdd: error: undefined reference to 'ucal_get_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function __CFCalendarAdd: error: undefined reference to 'ucal_get_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function _CFCalendarGetComponentDifferenceV: error: undefined reference to 'ucal_getFieldDifference_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetTimeRangeOfUnit: error: undefined reference to 'ucal_add_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetTimeRangeOfUnit: error: undefined reference to 'ucal_add_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFCalendar.c.o):CFCalendar.c:function CFCalendarGetTimeRangeOfUnit: error: undefined reference to 'ucal_add_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCreateDateFormatFromTemplate: error: undefined reference to 'udatpg_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCreateDateFormatFromTemplate: error: undefined reference to 'udatpg_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterCreateDateFormatFromTemplate_block_invoke: error: undefined reference to 'udatpg_getSkeleton_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterCreateDateFormatFromTemplate_block_invoke: error: undefined reference to 'udatpg_getBestPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterDeallocate: error: undefined reference to 'udat_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterSetFormat: error: undefined reference to 'udat_applyPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_setContext_65_swift'
t_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_setLenient_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_applyPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_applyPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_set2DigitYearStart_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_getCalendar_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'ucal_clone_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'ucal_setTimeZone_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_setCalendar_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_toPatternRelativeDate_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_toPatternRelativeTime_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_applyPatternRelative_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_toPatternRelativeDate_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_toPatternRelativeTime_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'ucal_getGregorianChange_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_applyPatternRelative_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ResetUDateFormat: error: undefined reference to 'udat_applyPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCreateStringWithAbsoluteTime: error: undefined reference to 'udat_format_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCreateStringWithAbsoluteTime: error: undefined reference to 'udat_format_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'ufieldpositer_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'udat_formatForFields_65_swift'
ter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'ufieldpositer_next_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'ufieldpositer_next_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'ufieldpositer_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'ufieldpositer_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'udat_formatForFields_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime: error: undefined reference to 'ufieldpositer_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'udat_clone_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'udat_getCalendar_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_clone_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'udat_set2DigitYearStart_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_getNow_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'udat_parseCalendar_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'udat_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_clone_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_getNow_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'udat_parseCalendar_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_getNow_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_getFieldDifference_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_getNow_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterGetAbsoluteTimeFromString: error: undefined reference to 'ucal_getFieldDifference_65_swift'
y: error: undefined reference to 'udat_getContext_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCopyProperty: error: undefined reference to 'udat_isLenient_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCopyProperty: error: undefined reference to 'udat_getCalendar_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCopyProperty: error: undefined reference to 'udat_countSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCopyProperty: error: undefined reference to 'udat_getSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCopyProperty: error: undefined reference to 'udat_countSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function CFDateFormatterCopyProperty: error: undefined reference to 'udat_getSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterSetProperty: error: undefined reference to 'udat_setSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterSetProperty: error: undefined reference to 'udat_setSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterSetProperty: error: undefined reference to 'udat_setContext_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterCopySymbolsArray: error: undefined reference to 'udat_countSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterCopySymbolsArray: error: undefined reference to 'udat_getSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __CFDateFormatterCopySymbolsArray: error: undefined reference to 'udat_getSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __substituteFormatStringFromPrefsDF: error: undefined reference to 'udat_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __substituteFormatStringFromPrefsDF: error: undefined reference to 'udat_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __substituteFormatStringFromPrefsDF: error: undefined reference to 'udat_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __substituteFormatStringFromPrefsDF: error: undefined reference to 'udat_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ApplyUDateFormatSymbol: error: undefined reference to 'udat_setSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateFormatter.c.o):CFDateFormatter.c:function __ApplyUDateFormatSymbol: error: undefined reference to 'udat_setSymbols_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateIntervalFormatter.c.o):CFDateIntervalFormatter.c:function __CFDateIntervalFormatterDeallocate: error: undefined reference to 'udtitvfmt_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateIntervalFormatter.c.o):CFDateIntervalFormatter.c:function CFDateIntervalFormatterCreateStringFromDateToDate: error: undefined reference to 'udtitvfmt_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateIntervalFormatter.c.o):CFDateIntervalFormatter.c:function CFDateIntervalFormatterCreateStringFromDateToDate: error: undefined reference to 'udtitvfmt_open_65_swift'
):CFDateIntervalFormatter.c:function CFDateIntervalFormatterCreateStringFromDateToDate: error: undefined reference to 'udtitvfmt_format_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFDateIntervalFormatter.c.o):CFDateIntervalFormatter.c:function CFDateIntervalFormatterCreateStringFromDateToDate: error: undefined reference to 'udtitvfmt_format_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyExemplarCharSet: error: undefined reference to 'ulocdata_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyExemplarCharSet: error: undefined reference to 'ulocdata_getExemplarSet_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyExemplarCharSet: error: undefined reference to 'ulocdata_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyCalendarID: error: undefined reference to 'ucal_getKeywordValuesForLocale_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyUsesMetric: error: undefined reference to 'ulocdata_getMeasurementSystem_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyMeasurementSystem: error: undefined reference to 'ulocdata_getMeasurementSystem_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyTemperatureUnit: error: undefined reference to 'ulocdata_getMeasurementSystem_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyDelimiter: error: undefined reference to 'ulocdata_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyDelimiter: error: undefined reference to 'ulocdata_getDelimiter_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleCopyDelimiter: error: undefined reference to 'ulocdata_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFLocale.c.o):CFLocale.c:function __CFLocaleICUCurrencyName: error: undefined reference to 'u_formatMessage_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function __CFNumberFormatterDeallocate: error: undefined reference to 'unum_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_setContext_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_applyPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_getAttribute_65_swift'
'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreate: error: undefined reference to 'unum_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterGetFormat: error: undefined reference to 'unum_toPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function __CFNumberFormatterApplyPattern: error: undefined reference to 'unum_applyPattern_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function __CFNumberFormatterApplyPattern: error: undefined reference to 'unum_getAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreateStringWithValue: error: undefined reference to 'unum_formatDouble_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreateStringWithValue: error: undefined reference to 'unum_formatDouble_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreateStringWithValue: error: undefined reference to 'unum_formatDouble_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreateStringWithValue: error: undefined reference to 'unum_formatDecimal_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCreateStringWithValue: error: undefined reference to 'unum_formatDecimal_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterGetValueFromString: error: undefined reference to 'unum_parseDecimal_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterSetProperty: error: undefined reference to 'unum_setContext_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterSetProperty: error: undefined reference to 'unum_setTextAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterSetProperty: error: undefined reference to 'unum_setSymbol_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterSetProperty: error: undefined reference to 'unum_setDoubleAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getContext_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getTextAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getTextAttribute_65_swift'
 CFNumberFormatterCopyProperty: error: undefined reference to 'unum_close_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getSymbol_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getSymbol_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getDoubleAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getTextAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function CFNumberFormatterCopyProperty: error: undefined reference to 'unum_getTextAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFNumberFormatter.c.o):CFNumberFormatter.c:function __CFNumberFormatterApplySymbolPrefs: error: undefined reference to 'unum_setSymbol_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFTimeZone.c.o):CFTimeZone.c:function __nameStringOK: error: undefined reference to 'ucal_getCanonicalTimeZoneID_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFTimeZone.c.o):CFTimeZone.c:function CFTimeZoneCopyLocalizedName: error: undefined reference to 'ucal_getTimeZoneDisplayName_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFTimeZone.c.o):CFTimeZone.c:function __CFTimeZoneCopyDataVersionString: error: undefined reference to 'ucal_getTZDataVersion_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Main.c.o):CFBundle_Main.c:function CFBundleGetMainBundle: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function _CFCompareStringsWithLocale: error: undefined reference to 'ucol_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function _CFCompareStringsWithLocale: error: undefined reference to 'ucol_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function _CFCompareStringsWithLocale: error: undefined reference to 'ucol_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function _CFCompareStringsWithLocale: error: undefined reference to 'ucol_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function _CFCompareStringsWithLocale: error: undefined reference to 'ucol_setAttribute_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function _CFCompareStringsWithLocale: error: undefined reference to 'ucol_open_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_strcoll_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_strcoll_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_openElements_65_swift'
on.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_openElements_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_next_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_next_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_getOffset_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_getOffset_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_next_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_next_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_closeElements_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_closeElements_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFStringUtilities.c.o):CFStringUtilities.c:function __CompareTextDefault: error: undefined reference to 'ucol_strcoll_65_swift'
/usr/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Binary.c.o):CFBundle_Binary.c:function _CFBundleDlfcnCheckLoaded: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Binary.c.o):CFBundle_Binary.c:function _CFBundleDlfcnLoadBundle: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Binary.c.o):CFBundle_Binary.c:function _CFBundleDlfcnLoadFramework: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func21: error: undefined reference to 'kCFStringTransformToLatin'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func22: error: undefined reference to 'kCFStringTransformLatinArabic'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func23: error: undefined reference to 'kCFStringTransformLatinCyrillic'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func24: error: undefined reference to 'kCFStringTransformLatinGreek'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func25: error: undefined reference to 'kCFStringTransformLatinHangul'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func26: error: undefined reference to 'kCFStringTransformLatinHebrew'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func27: error: undefined reference to 'kCFStringTransformLatinHiragana'
 undefined reference to 'kCFStringTransformLatinKatakana'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func29: error: undefined reference to 'kCFStringTransformLatinThai'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func30: error: undefined reference to 'kCFStringTransformHiraganaKatakana'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func31: error: undefined reference to 'kCFStringTransformMandarinLatin'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func32: error: undefined reference to 'kCFStringTransformStripDiacritics'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func33: error: undefined reference to 'kCFStringTransformStripCombiningMarks'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func34: error: undefined reference to 'kCFStringTransformFullwidthHalfwidth'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func35: error: undefined reference to 'kCFStringTransformToUnicodeName'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function globalinit_33_352A528E79284BBB704C1600E24E3449_func36: error: undefined reference to 'kCFStringTransformToXMLHex'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function $s10Foundation8NSStringC17applyingTransform_7reverseSSSgAA06StringD0V_SbtF: error: undefined reference to 'CFStringTransform'
/usr/lib/swift_static/linux/libFoundation.a(NSString.swift.o):NSString.swift.o:function $s10Foundation15NSMutableStringC14applyTransform_7reverse5range12updatedRangeSbSS_SbAA8_NSRangeVSpyAIGSgtF: error: undefined reference to 'CFStringTransform'
/usr/lib/swift_static/linux/libFoundation.a(FileHandle.swift.o):FileHandle.swift.o:function $s10Foundation10FileHandleC25readInBackgroundAndNotify8forModesySayAA7RunLoopC4ModeVGSg_tF: error: undefined reference to '$s8Dispatch0A2IOC4read18fromFileDescriptor9maxLength16runningHandlerOn7handlerys5Int32V_SiAA0A5QueueCyAA0A4DataV_AJtctFZ'
/usr/lib/swift_static/linux/libFoundation.a(FileManager.swift.o):FileManager.swift.o:function $s10Foundation11FileManagerC17_attributesOfItem6atPath26includingPrivateAttributesSDyAA0B12AttributeKeyVypGSS_SbtKF: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libFoundation.a(FileManager.swift.o):FileManager.swift.o:function $s10Foundation11FileManagerC17_attributesOfItem6atPath26includingPrivateAttributesSDyAA0B12AttributeKeyVypGSS_SbtKF: warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libFoundation.a(Host.swift.o):Host.swift.o:function $s10Foundation4HostC8_resolveyyF: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/swift_static/linux/libFoundation.a(NSCalendar.swift.o):NSCalendar.swift.o:function $s10Foundation10NSCalendarC14enumerateDates13startingAfter8matching7options5usingyAA4DateV_AA0J10ComponentsVAC7OptionsVyAJSg_SbSpyAA8ObjCBoolVGtXEtF: error: undefined reference to '_CFCalendarEnumerateDates'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC7patternSSvg: error: undefined reference to '_CFRegularExpressionGetPattern'
swift.o:function $s10Foundation19NSRegularExpressionC7optionsAC7OptionsVvg: error: undefined reference to '_CFRegularExpressionGetOptions'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC21numberOfCaptureGroupsSivg: error: undefined reference to '_CFRegularExpressionGetNumberOfCaptureGroups'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC19_captureGroupNumber8withNameSiSS_tF: error: undefined reference to '_CFRegularExpressionGetCaptureGroupNumberWithName'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC14escapedPattern3forS2S_tFZ: error: undefined reference to '_CFRegularExpressionCreateEscapedPattern'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC16enumerateMatches2in7options5range5usingySS_AC15MatchingOptionsVAA8_NSRangeVyAA20NSTextCheckingResultCSg_AC0J5FlagsVSpyAA8ObjCBoolVGtctF: error: undefined reference to '_CFRegularExpressionEnumerateMatchesInString'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC7matches2in7options5rangeSayAA20NSTextCheckingResultCGSS_AC15MatchingOptionsVAA8_NSRangeVtF: error: undefined reference to '_CFRegularExpressionEnumerateMatchesInString'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC15numberOfMatches2in7options5rangeSiSS_AC15MatchingOptionsVAA8_NSRangeVtF: error: undefined reference to '_CFRegularExpressionEnumerateMatchesInString'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC10firstMatch2in7options5rangeAA20NSTextCheckingResultCSgSS_AC15MatchingOptionsVAA8_NSRangeVtF: error: undefined reference to '_CFRegularExpressionEnumerateMatchesInString'
/usr/lib/swift_static/linux/libFoundation.a(NSRegularExpression.swift.o):NSRegularExpression.swift.o:function $s10Foundation19NSRegularExpressionC7pattern7optionsACSS_AC7OptionsVtKcfcTf4gnn_n: error: undefined reference to '_CFRegularExpressionCreate'
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)

static-executable-args

I changed /usr/lib/swift_static/linux/static-executable-args.lnk to:

-static
-lswiftCore
-lswiftImageInspectionShared
-Xlinker
--defsym=__import_pthread_self=pthread_self
-Xlinker
--defsym=__import_pthread_once=pthread_once
-Xlinker
--defsym=__import_pthread_key_create=pthread_key_create
-lpthread
-latomic
-lDispatchStubs
-licuucswift
-licudataswift
-ldl
-lstdc++
-lm

Executable size:

Unzipped:

Sizes Dynamic Static
Binary 8.5MB 46.1MB
Layer 57.2MB -

Zipped:

Sizes Dynamic Static
Binary 2.5MB 16.8MB
Layer 19.7MB -

Performance

Swift 5.2, 256mb ram.

Code:

import AWSLambdaRuntime
import NIO

Lambda.run { (ctx, _: String, callback) in
  callback(.success("Hello World"))
}

Cold start

Dynamically linked

cold - dynamically linked

Statically linked

cold - statically linked

I achieved forced restarts by setting env MAX_REQUESTS=1.

Warm start

Dynamically linked

warm - dynamically linked

Statically linked

warm -statically linked