Code Monkey home page Code Monkey logo

swift-build's Introduction

//swift/build

//swift/build homes the CI configuration for Azure and GitHub Actions based builds as well as a repo manifest to provide the ability to sync the full repository set.

Status

Active Builds

Build Status
VS2022 (main) Build Status
VS2022 (Swift 5.9) Build Status
VS2022 (Swift 5.8) Build Status
VS2022 (Swift 5.7) Build Status
VS2022 (Swift 5.6) Build Status
VS2022 (Swift 5.5) Build Status

Retired Builds

  • VS2017 (main)
  • VS2019 (main)
  • VS2019 (Swift 5.6)
  • VS2019 (Swift 5.5)
  • VS2019 (Swift 5.4)
  • VS2019 (Swift 5.3)
  • VS2019 (Swift 5.2)
  • VS2017 (Swift 5.2)

Getting the latest build

Stable builds

The latest stable build can be acquired from the Swift downloads.

swift-build's People

Contributors

alex-taffe avatar chawyehsu avatar codafi avatar compnerd avatar damuellen avatar diederich avatar drodriguez avatar egorzhdan avatar ephemer avatar fischman-bcny avatar gmittert avatar hjyamauchi avatar hyp avatar kendalharland avatar lxbndr avatar mangini avatar maruel avatar maxdesiatov avatar mikecodesdotnet avatar pcbeard avatar pvieito avatar rmjay avatar sebmarchand avatar stefanspringer1 avatar stevapple avatar texasmichelle avatar toulouse avatar tristanlabelle avatar vivekg-ai avatar wjk 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

swift-build's Issues

Consider adding a symlink in wix installer for tool_chain_root /usr/lib

For windows you have to provide a sdk directory to build a swift file like so:

swiftc main.swift -o main.exe -sdk %SDKROOT%"

This is inconsistent with linux and mac and the artifact of designs decisions handled by tooling that doesn't exist for Windows.

There are good reasons why this is the case, however we can setup a default sdk root for windows in the wix installer without touching apple/swift or breaking any assumptions made by xcrun for the mac.

My proposal is to setup a symlink from:
C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows
to:
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift\windows

on Windows we can do a symlink like so: mklink /d <target dir> <src dir>

From reading your wix environment variables I believe we could setup a custom wix command to create this symlink like so:

# this first block creates the action
<CustomAction Id="makeSymbolicLink" 
   ExeCommand='cmd /c mklink /d "$(var.TOOLCHAIN_ROOT)\usr\lib\swift\windows" "$(var.SDK_ROOT)\usr\lib\swift\windows"' 
   Execute="deferred"
   Impersonate="no"/>

# this calls to the custom action
<Custom Action="makeSymbolicLink" Before="InstallFinalize" />

Let me know what you think, thanks,

-FL

swift-build uses the wrong archiver program name on Windows

When I run swift-build.exe in an SPM project that contains a static library product, the Swift sources are compiled, but then the build process fails stating that it cannot find the ar program. There is no such program on my PATH, but there is llvm-ar.exe, which I understand has the same syntax and semantics as the classic binutils ar. I don't know how I would point SPM at the correct archiver executable. Any pointers would be appreciated. Thanks!

Cannot use Foundation

Thanks for the great project!

Unfortunately, using the current release package (from "install.exe"), I can't use Foundation. If my swift file includes Foundation, the compiler prints:

missing required module 'CoreFoundation'

So far I can't figure out why this is happening, or how to work around it. Is Foundation expected to work in this release?

Suggestion: Install under C:\Program Files

It is Windows software convention to install software applications into a subdirectory of C:\Program Files (or C:\Program Files (x86) for 32-bit programs on 64-bit systems). The WiX installers currently install into C:\Library\Developer. I recommend that you update your installers to follow the Windows convention. The Program Files directories have ACLs set on them by Windows that prevent unprivileged users from modifying their contents. By default, the contents of a directory created in the root of C: is writable by all users.

I would recommend installing into C:\Program Files\Swift instead of C:\Library\Developer. Unless it would cause problems (as you know more about making Swift run on Windows than I do) I would also recommend that you trim some of the subdirectories off of the path to the directories containing actual files. I don't have a firm idea of what the resulting directory structure would look like yet, however. IMHO parroting Xcode’s directory structure when running on Windows makes little sense. Thanks!

swiftWinSDK.dll missing from the toolchain package

I've tried running the latest trunk toolchain installer from swift.org (swift-DEVELOPMENT-SNAPSHOT-03-09-a-windows10.exe), and the installed toolchain is missing the Windows.sdk\usr\bin directory, in particular I can't find swiftWinSDK.dll anywhere in the toolchain root.

The missing binaries seem to prevent SwiftPM from launching.

(I'm not 100% sure this is an issue with the Windows installer scripts, it might as well be caused by some change in the Swift CMake logic)

enable pipeline artifact caching

We can use pipeline caching to avoid downloading the toolchain/SDK across jobs on the same pipeline run. This should help speedup the build.

Provide Merge Module for Swift runtime

I noticed while looking over the Releases tab that both an EXE bootstrapper and raw MSI files are present. I was wondering if you could also provide a merge module for the Swift runtime. The benefit of this is that merge modules can be embedded within other MSI files, as opposed to top-level MSI files, which can only be bundled with other MSIs using an EXE bootstrapper. I prefer to ship raw MSI files to my users instead of EXE bootstrappers because (a) the built-in MSI install-time UI is much more usable than the one provided by default by the WiX bootstrapper subsystem, and (b) raw MSIs are better supported in enterprise deployment scenarios as compared to installer EXEs. Merge modules are reference-counted by the system, and will not be uninstalled until the last top-level product that embeds them is removed.

You can build a merge module using the WiX Module element. I would then suggest editing the runtime MSI file to embed the runtime merge module, and contain no other files.

If you need a hand with this, I can create a PR; I have experience creating and embedding MSMs from one of my non-Swift projects. I just wanted to the idea by you before I started work. Thanks!

Errors linking Foundation

Sorry if I'm in the wrong place - I tried following the instructions over on the Swift repo on WindowsBuild.md.I've gotten as far as being able to boot the REPL and add numbers, but I'm still having build issues with building Foundation on Windows. Clearly the linker is missing something (170 symbols), but I'm not familiar enough here to tell what.

Currently running using

  • Microsoft Windows [Version 10.0.18363.836]
  • Visual Studio 2019 Developer Command Prompt v16.5.5
S:\> ninja -C S:\b\foundation

ninja: Entering directory `S:\b\foundation'
[1/6] Building C object CoreFoundation\CMakeFiles\CFXMLInterface.dir\Parsing.subproj\CFXMLInterface.c.obj
S:\swift-corelibs-foundation\CoreFoundation\Parsing.subproj\CFXMLInterface.c(1143,58): warning: incompatible function pointer types passing 'void (*)(void *, void *, xmlChar *)' (aka 'void (*)(void *, void *, unsigned char *)') to parameter of type 'xmlHashScanner' (aka 'void (*)(void *, void *, const unsigned char *)') [-Wincompatible-function-pointer-types]
        xmlHashScan((xmlNotationTablePtr)dtd->notations, &_CFXMLNotationScanner, (void*)node);
                                                         ^~~~~~~~~~~~~~~~~~~~~~
S:\Library\libxml2-development\usr\include\libxml2\libxml/hash.h(213,22): note: passing argument to parameter 'f' here
                                         xmlHashScanner f,
                                                        ^
1 warning generated.
[3/6] Linking Swift shared library Sources\Foundation\Foundation.dll
FAILED: Sources/Foundation/Foundation.dll Sources/Foundation/CMakeFiles/Foundation.dir/AffineTransform.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Array.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Boxing.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Bridging.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Bundle.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ByteCountFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Calendar.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/CGFloat.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/CharacterSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Codable.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Collections+DataProtocol.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ContiguousBytes.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Data.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/DataProtocol.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Date.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/DateComponents.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/DateComponentsFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/DateFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/DateInterval.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/DateIntervalFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Decimal.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Dictionary.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/DispatchData+DataProtocol.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/EnergyFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ExtraStringAPIs.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/FileHandle.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/FileManager.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/FileManager+POSIX.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/FileManager+Win32.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/FileManager+XDG.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Formatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/FoundationErrors.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Host.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/IndexPath.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/IndexSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ISO8601DateFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/JSONEncoder.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/JSONSerialization.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/LengthFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Locale.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/MassFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Measurement.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/MeasurementFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Notification.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NotificationQueue.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSArray.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSAttributedString.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCache.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCalendar.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCFArray.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCFBoolean.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCFCharacterSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCFDictionary.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCFSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCFString.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCharacterSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCoder.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSComparisonPredicate.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSCompoundPredicate.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSConcreteValue.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSData+DataProtocol.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSData.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSDate.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSDecimalNumber.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSDictionary.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSEnumerator.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSError.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSExpression.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSGeometry.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSIndexPath.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSIndexSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSKeyedArchiver.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSKeyedArchiverHelpers.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSKeyedCoderOldStyleArray.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSKeyedUnarchiver.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSLocale.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSLock.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSLog.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSMeasurement.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSNotification.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSNull.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSNumber.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSObjCRuntime.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSObject.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSOrderedSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSPathUtilities.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSPersonNameComponents.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSPlatform.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSPredicate.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSRange.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSRegularExpression.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSSet.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSSortDescriptor.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSSpecialValue.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSString.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSStringAPI.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSSwiftRuntime.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSTextCheckingResult.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSTimeZone.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSURL.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSURLError.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSUUID.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NSValue.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/NumberFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Operation.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/PersonNameComponents.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/PersonNameComponentsFormatter.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Pointers+DataProtocol.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Port.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/PortMessage.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Process.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ProcessInfo.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Progress.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ProgressFraction.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/PropertyListEncoder.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/PropertyListSerialization.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ReferenceConvertible.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/RunLoop.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Scanner.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/ScannerAPI.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Set.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Stream.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/String.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/StringEncodings.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Thread.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Timer.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/TimeZone.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/Unit.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/URL.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/URLComponents.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/UserDefaults.swift.obj Sources/Foundation/CMakeFiles/Foundation.dir/UUID.swift.obj swift/Foundation.swiftmodule Sources/Foundation/Foundation.lib
cmd.exe /C "cd . && S:\b\toolchain\bin\swiftc.exe -output-file-map Sources\Foundation\CMakeFiles\Foundation.dir\output-file-map.json -incremental -j 8 -emit-library -o Sources\Foundation\Foundation.dll -module-name Foundation -module-link-name Foundation -emit-module -emit-module-path swift\Foundation.swiftmodule -emit-dependencies -DDEPLOYMENT_RUNTIME_SWIFT -DFoundation_EXPORTS -O -g -libc MD   -Xcc -FS:/b/foundation -I CoreFoundation.framework\Headers -I S:\b\libdispatch\src\swift\swift -I S:\b\libdispatch -I S:\swift-corelibs-libdispatch -I S:\swift-corelibs-libdispatch\src -I S:\b\libdispatch\src -I S:\swift-corelibs-libdispatch\src\BlocksRuntime @CMakeFiles\Foundation.rsp S:/b/foundation/CoreFoundation/CMakeFiles/CoreFoundationResources.dir/CoreFoundation.rc.res   -Xlinker -implib:Sources\Foundation\Foundation.lib  && cd ."
   Creating library Sources\Foundation\Foundation.lib and object Sources\Foundation\Foundation.exp
LINK : warning LNK4217: symbol '$sSS10FoundationE19_bridgeToObjectiveCAA8NSStringCyF' defined in 'String.swift.obj' is imported by 'NSSwiftRuntime.swift.obj' in function '$s10Foundation19__CFInitializeSwiftyyF'
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_setMillis_64 referenced in function __calcNextDaylightSavingTimeTransition
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_setMillis_64
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2001: unresolved external symbol ucal_setMillis_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_close_64 referenced in function __CFCalendarDeallocate
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_close_64
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2001: unresolved external symbol ucal_close_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_open_64 referenced in function __CFCalendarCreateUCalendar
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_setAttribute_64 referenced in function __CFCalendarSetupCal
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_setAttribute_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_setGregorianChange_64 referenced in function __CFCalendarSetupCal
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_setGregorianChange_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_isWeekend_64 referenced in function _CFCalendarIsDateInWeekend
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_getDayOfWeekType_64 referenced in function _CFCalendarGetNextWeekend
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_getWeekendTransition_64 referenced in function _CFCalendarGetNextWeekend
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_getAttribute_64 referenced in function _CFCalendarInitialize
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_getGregorianChange_64 referenced in function _CFCalendarInitialize
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_getGregorianChange_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_clear_64 referenced in function CFCalendarGetMinimumRangeOfUnit
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_clear_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_getLimit_64 referenced in function CFCalendarGetMinimumRangeOfUnit
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_set_64 referenced in function _CFCalendarComposeAbsoluteTimeV
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_set_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_getMillis_64 referenced in function _CFCalendarComposeAbsoluteTimeV
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_getMillis_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_get_64 referenced in function _CFCalendarDecomposeAbsoluteTimeV
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_get_64
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_add_64 referenced in function __CFCalendarAdd
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_roll_64 referenced in function __CFCalendarAdd
CoreFoundation.lib(CFCalendar.c.obj) : error LNK2019: unresolved external symbol ucal_getFieldDifference_64 referenced in function _CFCalendarGetComponentDifferenceV
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2001: unresolved external symbol ucal_getFieldDifference_64
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udatpg_open_64 referenced in function useTemplatePatternGenerator
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udatpg_getSkeleton_64 referenced in function __CFDateFormatterCreateDateFormatFromTemplate_block_invoke
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udatpg_getBestPattern_64 referenced in function __CFDateFormatterCreateDateFormatFromTemplate_block_invoke
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_close_64 referenced in function __CFDateFormatterDeallocate
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_applyPattern_64 referenced in function CFDateFormatterSetFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_open_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_setContext_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_setLenient_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_set2DigitYearStart_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_toPatternRelativeDate_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_toPatternRelativeTime_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_toPattern_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_applyPatternRelative_64 referenced in function __ResetUDateFormat
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_format_64 referenced in function CFDateFormatterCreateStringWithAbsoluteTime
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol ufieldpositer_open_64 referenced in function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_formatForFields_64 referenced in function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol ufieldpositer_next_64 referenced in function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol ufieldpositer_close_64 referenced in function _CFDateFormatterCreateAttributedStringAndFieldsWithAbsoluteTime
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_clone_64 referenced in function CFDateFormatterGetAbsoluteTimeFromString
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_getCalendar_64 referenced in function CFDateFormatterGetAbsoluteTimeFromString
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol ucal_clone_64 referenced in function CFDateFormatterGetAbsoluteTimeFromString
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol ucal_getNow_64 referenced in function CFDateFormatterGetAbsoluteTimeFromString
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_parseCalendar_64 referenced in function CFDateFormatterGetAbsoluteTimeFromString
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_getContext_64 referenced in function CFDateFormatterCopyProperty
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_isLenient_64 referenced in function CFDateFormatterCopyProperty
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_countSymbols_64 referenced in function CFDateFormatterCopyProperty
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_getSymbols_64 referenced in function CFDateFormatterCopyProperty
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_setSymbols_64 referenced in function __CFDateFormatterSetProperty
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udatpg_close_64 referenced in function __useTemplatePatternGenerator_block_invoke
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol ucal_setTimeZone_64 referenced in function __SetCalendarProperties
CoreFoundation.lib(CFDateFormatter.c.obj) : error LNK2019: unresolved external symbol udat_setCalendar_64 referenced in function __SetCalendarProperties
CoreFoundation.lib(CFDateIntervalFormatter.c.obj) : error LNK2019: unresolved external symbol udtitvfmt_close_64 referenced in function __CFDateIntervalFormatterDeallocate
CoreFoundation.lib(CFDateIntervalFormatter.c.obj) : error LNK2019: unresolved external symbol udtitvfmt_format_64 referenced in function CFDateIntervalFormatterCreateStringFromDateToDate
CoreFoundation.lib(CFDateIntervalFormatter.c.obj) : error LNK2019: unresolved external symbol udtitvfmt_open_64 referenced in function updateFormatter
CoreFoundation.lib(CFDateIntervalFormatter.c.obj) : error LNK2019: unresolved external symbol u_errorName_64 referenced in function updateFormatter
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol unumsys_open_64 referenced in function _CFLocaleCopyNumberingSystemForLocaleIdentifier
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol unumsys_getName_64 referenced in function _CFLocaleCopyNumberingSystemForLocaleIdentifier
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol unumsys_close_64 referenced in function _CFLocaleCopyNumberingSystemForLocaleIdentifier
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol unumsys_isAlgorithmic_64 referenced in function _CFLocaleCopyValidNumberingSystemsForLocaleIdentifier
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol unumsys_getRadix_64 referenced in function _CFLocaleCopyValidNumberingSystemsForLocaleIdentifier
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_addLikelySubtags_64 referenced in function _CFLocaleCopyLocaleIdentifierByAddingLikelySubtags
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_countAvailable_64 referenced in function CFLocaleCopyAvailableLocaleIdentifiers
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getAvailable_64 referenced in function CFLocaleCopyAvailableLocaleIdentifiers
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getISOLanguages_64 referenced in function CFLocaleCopyISOLanguageCodes
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getISOCountries_64 referenced in function CFLocaleCopyISOCountryCodes
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ucurr_openISOCurrencies_64 referenced in function CFLocaleCopyISOCurrencyCodes
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uenum_close_64 referenced in function CFLocaleCopyISOCurrencyCodes
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2001: unresolved external symbol uenum_close_64
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uenum_unext_64 referenced in function __CFLocaleCopyUEnumerationAsArray
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getLocaleForLCID_64 referenced in function CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getLCID_64 referenced in function CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getCharacterOrientation_64 referenced in function CFLocaleGetLanguageCharacterDirection
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getLineOrientation_64 referenced in function CFLocaleGetLanguageLineDirection
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uset_getItemCount_64 referenced in function _CFCreateCharacterSetFromUSet
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uset_getItem_64 referenced in function _CFCreateCharacterSetFromUSet
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getDisplayName_64 referenced in function __CFLocaleFullName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getDisplayLanguage_64 referenced in function __CFLocaleFullName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getDisplayCountry_64 referenced in function __CFLocaleCountryName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getDisplayScript_64 referenced in function __CFLocaleScriptName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getDisplayVariant_64 referenced in function __CFLocaleVariantName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ulocdata_open_64 referenced in function __CFLocaleCopyExemplarCharSet
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ulocdata_getExemplarSet_64 referenced in function __CFLocaleCopyExemplarCharSet
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ulocdata_close_64 referenced in function __CFLocaleCopyExemplarCharSet
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uset_clear_64 referenced in function __CFLocaleCopyExemplarCharSet
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uset_close_64 referenced in function __CFLocaleCopyExemplarCharSet
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ulocdata_getDelimiter_64 referenced in function __CFLocaleCopyDelimiter
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getKeywordValue_64 referenced in function __CFLocaleCopyICUKeyword
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2001: unresolved external symbol uloc_getKeywordValue_64
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ucal_getKeywordValuesForLocale_64 referenced in function __CFLocaleCopyICUCalendarID
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uenum_next_64 referenced in function __CFLocaleCopyICUCalendarID
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2001: unresolved external symbol uenum_next_64
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol uloc_getDisplayKeywordValue_64 referenced in function __CFLocaleICUKeywordValueName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ulocdata_getMeasurementSystem_64 referenced in function __CFLocaleGetMeasurementSystemGuts
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol u_charsToUChars_64 referenced in function __CFLocaleICUCurrencyName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol ucurr_getName_64 referenced in function __CFLocaleICUCurrencyName
CoreFoundation.lib(CFLocale.c.obj) : error LNK2019: unresolved external symbol u_formatMessage_64 referenced in function __CFLocaleICUCurrencyName
CoreFoundation.lib(CFCharacterSet.c.obj) : error LNK2019: unresolved external symbol u_charDigitValue_64 referenced in function __CFCharDigitValue
CoreFoundation.lib(CFString.c.obj) : error LNK2019: unresolved external symbol u_hasBinaryProperty_64 referenced in function CFStringGetRangeOfCharacterClusterAtIndex
CoreFoundation.lib(CFString.c.obj) : error LNK2019: unresolved external symbol u_getIntPropertyValue_64 referenced in function CFStringGetRangeOfCharacterClusterAtIndex
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_close_64 referenced in function __CFStringCopyDefaultCollator
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_open_64 referenced in function __CFStringCreateCollator
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_setAttribute_64 referenced in function __CFStringCreateCollator
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_strcoll_64 referenced in function __CompareTextDefault
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_openElements_64 referenced in function __CompareSpecials
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_next_64 referenced in function __CompareSpecials
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_getOffset_64 referenced in function __CompareSpecials
CoreFoundation.lib(CFStringUtilities.c.obj) : error LNK2019: unresolved external symbol ucol_closeElements_64 referenced in function __CompareSpecials
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2019: unresolved external symbol u_strlen_64 referenced in function __nameStringOK
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2019: unresolved external symbol ucal_getCanonicalTimeZoneID_64 referenced in function __nameStringOK
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2019: unresolved external symbol ucal_inDaylightTime_64 referenced in function CFTimeZoneCopyAbbreviation
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2019: unresolved external symbol ucal_getTimeZoneDisplayName_64 referenced in function CFTimeZoneCopyAbbreviation
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2019: unresolved external symbol ucal_getTimeZoneTransitionDate_64 referenced in function CFTimeZoneGetNextDaylightSavingTimeTransition
CoreFoundation.lib(CFTimeZone.c.obj) : error LNK2019: unresolved external symbol ucal_getTZDataVersion_64 referenced in function __CFTimeZoneCopyDataVersionString
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2019: unresolved external symbol uloc_canonicalize_64 referenced in function _UpdateFullLocaleString
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2019: unresolved external symbol uloc_openKeywords_64 referenced in function _AppendKeyValueString
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2019: unresolved external symbol uloc_setKeywordValue_64 referenced in function _AppendKeyValueString
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2019: unresolved external symbol uloc_getLanguage_64 referenced in function CFLocaleGetLanguageRegionEncodingForLocaleIdentifier
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2019: unresolved external symbol uloc_getScript_64 referenced in function CFLocaleGetLanguageRegionEncodingForLocaleIdentifier
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2019: unresolved external symbol uloc_getCountry_64 referenced in function CFLocaleGetLanguageRegionEncodingForLocaleIdentifier
CoreFoundation.lib(CFLocaleIdentifier.c.obj) : error LNK2019: unresolved external symbol uloc_getVariant_64 referenced in function CFLocaleGetLanguageRegionEncodingForLocaleIdentifier
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_open_64 referenced in function _CFRegularExpressionCreate
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_groupCount_64 referenced in function _CFRegularExpressionGetNumberOfCaptureGroups
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_groupNumberFromName_64 referenced in function _CFRegularExpressionGetCaptureGroupNumberWithName
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_clone_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_setText_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_setRegion64_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_setMatchCallback_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_setFindProgressCallback_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_useTransparentBounds_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_useAnchoringBounds_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_findNext_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_start64_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_end64_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_hitEnd_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_requireEnd_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFRegularExpression.c.obj) : error LNK2019: unresolved external symbol uregex_close_64 referenced in function _CFRegularExpressionEnumerateMatchesInString
CoreFoundation.lib(CFStringTransform.c.obj) : error LNK2019: unresolved external symbol utrans_trans_64 referenced in function CFStringTransform
CoreFoundation.lib(CFStringTransform.c.obj) : error LNK2019: unresolved external symbol utrans_close_64 referenced in function __CFStringTransformAcquire
CoreFoundation.lib(CFStringTransform.c.obj) : error LNK2019: unresolved external symbol utrans_openU_64 referenced in function __CFStringTransformCreate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_close_64 referenced in function __CFNumberFormatterDeallocate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_open_64 referenced in function CFNumberFormatterCreate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_applyPattern_64 referenced in function CFNumberFormatterCreate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_setAttribute_64 referenced in function CFNumberFormatterCreate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_setContext_64 referenced in function CFNumberFormatterCreate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_toPattern_64 referenced in function CFNumberFormatterCreate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_getAttribute_64 referenced in function CFNumberFormatterCreate
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_formatDouble_64 referenced in function CFNumberFormatterCreateStringWithValue
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_formatDecimal_64 referenced in function CFNumberFormatterCreateStringWithValue
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_parseDecimal_64 referenced in function CFNumberFormatterGetValueFromString
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_setTextAttribute_64 referenced in function CFNumberFormatterSetProperty
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_setSymbol_64 referenced in function CFNumberFormatterSetProperty
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_setDoubleAttribute_64 referenced in function CFNumberFormatterSetProperty
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_getContext_64 referenced in function CFNumberFormatterCopyProperty
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_getTextAttribute_64 referenced in function CFNumberFormatterCopyProperty
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_getSymbol_64 referenced in function CFNumberFormatterCopyProperty
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol unum_getDoubleAttribute_64 referenced in function CFNumberFormatterCopyProperty
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol ucurr_getDefaultFractionDigits_64 referenced in function CFNumberFormatterGetDecimalInfoForCurrencyCode
CoreFoundation.lib(CFNumberFormatter.c.obj) : error LNK2019: unresolved external symbol ucurr_getRoundingIncrement_64 referenced in function CFNumberFormatterGetDecimalInfoForCurrencyCode
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_getAlias_64 referenced in function __CFStringEncodingGetICUName
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_countAliases_64 referenced in function __CFStringEncodingGetFromICUName
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_getStandardName_64 referenced in function __CFStringEncodingGetFromICUName
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_open_64 referenced in function __CFStringEncodingICUToBytes
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_setSubstChars_64 referenced in function __CFStringEncodingICUToBytes
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol UCNV_FROM_U_CALLBACK_STOP_64 referenced in function __CFStringEncodingICUToBytes
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_setFromUCallBack_64 referenced in function __CFStringEncodingICUToBytes
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_fromUnicode_64 referenced in function __CFStringEncodingICUToBytes
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_resetFromUnicode_64 referenced in function __CFStringEncodingICUToBytes
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_getInvalidUChars_64 referenced in function __CFStringEncodingICUToBytes
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_close_64 referenced in function __CFStringEncodingConverterReleaseICUConverter
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol UCNV_TO_U_CALLBACK_STOP_64 referenced in function __CFStringEncodingICUToUnicode
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_setToUCallBack_64 referenced in function __CFStringEncodingICUToUnicode
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_toUnicode_64 referenced in function __CFStringEncodingICUToUnicode
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_getInvalidChars_64 referenced in function __CFStringEncodingICUToUnicode
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_countAvailable_64 referenced in function __CFStringEncodingCreateICUEncodings
CoreFoundation.lib(CFICUConverters.c.obj) : error LNK2019: unresolved external symbol ucnv_getAvailableName_64 referenced in function __CFStringEncodingCreateICUEncodings
Sources\Foundation\Foundation.dll : fatal error LNK1120: 170 unresolved externals
clang: error: linker command failed with exit code 1120 (use -v to see invocation)
<unknown>:0: error: link command failed with exit code 1120 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Manifest parse failure

On the latest build of swift (downloaded via the python script), with a full uninstall and reinstall, the following error is occurring:

C:\SourceCache\redacted\desktop_client\shared\redacted >swift build
C:\SourceCache\AutoML\ redacted\shared\redacted: error: manifest parse error(s):
<unknown>:0: error: compiled module was created by an older version of the compiler; rebuild 'Swift' and try again: C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\Swift.swiftmodule\x86_64-unknown-windows-msvc.swiftmodule

C:\SourceCache\redacted\desktop_client\shared\redacted >

Linker failure when including outside C header libraries on 5.3-dev

I'm using an older snapshot from just before MSVC was removed (LLVM b6c965e56f7a3c6, Swift 50e6ae08bad884e).

I installed the Gnu Scientific Library to C:\gsl-2.6\gsl, added it to my %INCLUDE%, and put #include <gsl\gsl_rng.h> in a C library providing a drand48-equivalent in my Swift project (DDMathParser in the log below). I add this Swift project as a dependency to another Swift project (StateSecrets in the log below). I get a linker failure on the last step, building the .exe, saying it couldn't find several symbols found in gsl_rng.h.

I've pasted a log here. I've obscured the real names of things in the "StateSecrets" project because some of the code relates to secret work things. Pastebin apparently didn't like the way I obscured things, because it's going to warn you about "potentially sensitive content".

I have also tried including the SGSL Swift library instead. That gives me a Can't open file: 'gsl.lib' error, and that looks like it references gsl.lib in all the object files even though gsl.lib never gets built itself. I can attach that log as well if you want it.

Restore MSIs for SDKs

We need to enable the MSI generation for the SDK after the last merge and the toolchain pipeline refactoring.

Extract CoreFoundation.lib from the build?

Hello,

I have a project that I would like to just use CoreFoundation as a library (in C) as its own module. I noticed that although the CoreFoundation headers are part of the installer, the .lib file is not. It's a pain to build for Windows, so I was hoping I could utilize this project to get that library.

Unify devtools templates

The Linux and Windows devtools have individual rules. We should unify them into a single devtools template.

repair ICU data builds on Linux

It seems that ICU data generation on Linux started failing:

FAILED: CMakeFiles/icudata_lst 
cd /home/vsts/work/1/s/icu/icu4c/source/data && /usr/bin/python3.6 -B -m buildtool --mode unix-exec --src_dir /home/vsts/work/1/s/icu/icu4c/source/data --tool_dir /home/vsts/work/1/b/icu --tool_cfg .. --out_dir /home/vsts/work/1/b/icu/data/icudt64l --tmp_dir /home/vsts/work/1/b/icu/data/tmp
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
Aborted (core dumped)
Running: /home/vsts/work/1/b/icu/gencnval -s /home/vsts/work/1/s/icu/icu4c/source/data -d /home/vsts/work/1/b/icu/data/icudt64l mappings/convrtrs.txt
!!! ERROR executing above command line: exit code 134

https://dev.azure.com/compnerd/swift-build/_build/results?buildId=24829&view=logs&j=92262c8e-a477-5acd-1edf-70ba03a3a69c&t=d9a0fcf4-b5a4-51a9-6baa-d30327cae443

error: Error Domain=NSCocoaErrorDomain Code=256 "(null)"

I'm attempting to link a C library (libwebsockets) against Swift on Windows. Using similar steps on macOS worked fine. My steps were to make a SourceCache directory at the root of the C drive, then in the x64 native command line:

cd C:\SourceCache
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bash
vcpkg.exe integrate install
vcpkg.exe install libwebsockets

To compile libwebsockets. Then I am using this example swift project:

cd C:\SourceCache
git clone https://github.com/ataffeqeexo/websocket-test.git
cd websocket-test
swift package update
swift build -Xswiftc -lwebsockets -Xswiftc -I"C:\SourceCache\vcpkg\packages\openssl-windows_x64-windows\include" -Xswiftc -I"C:\SourceCache\vcpkg\packages\libuv_x64-windows\include" -Xswiftc -I"C:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\include" -Xswiftc -L"C:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\lib" -Xlinker -lwebsockets -Xlinker /INCREMENTAL:NO -v

This resolves all of the packages properly, appears to compile properly, but fails at the link stage with a cryptic error: error: Error Domain=NSCocoaErrorDomain Code=256 "(null)". 256 is NSFileReadUnknownError which doesn't help a ton. Full output below:

C:\SourceCache\data\websocket-test>swift build -Xswiftc -lwebsockets -Xswiftc -I"C:\SourceCache\vcpkg\packages\openssl-windows_x64-windows\include" -Xswiftc -I"C:\SourceCache\vcpkg\packages\libuv_x64-windows\include" -Xswiftc -I"C:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\include" -Xswiftc -L"C:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\lib" -Xlinker -lwebsockets -Xlinker /INCREMENTAL:NO -v
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -print-target-info
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -print-target-info
C:\SourceCache\data\websocket-test: warning: Creating library C:\Users\Alex\AppData\Local\Temp\TemporaryDirectory.PfA8aa\websocket-test-manifest.lib and object C:\Users\Alex\AppData\Local\Temp\TemporaryDirectory.PfA8aa\websocket-test-manifest.exp
C:\SourceCache\data\websocket-test\.build\checkouts\Clibwebsockets: warning: Creating library C:\Users\Alex\AppData\Local\Temp\TemporaryDirectory.YAA7K5\clibwebsockets-manifest.lib and object C:\Users\Alex\AppData\Local\Temp\TemporaryDirectory.YAA7K5\clibwebsockets-manifest.exp
'MyLibrary' C:\SourceCache\data\websocket-test: warning: ignoring duplicate product 'MyLibrary'
uname
pkg-config --variable pc_path pkg-config
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
'Clibwebsockets' libwebsockets.pc: warning: couldn't find pc file for libwebsockets
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -module-name MyLibrary -incremental -emit-dependencies -emit-module -emit-module-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.swiftmodule -output-file-map C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\output-file-map.json -c C:\SourceCache\data\websocket-test\Sources\MyLibrary\MyLibrary.swift C:\SourceCache\data\websocket-test\Sources\MyLibrary\main.swift -I C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug -target x86_64-unknown-windows-msvc -swift-version 5 -enable-batch-mode -index-store-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\index\store -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -L C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows -resource-dir C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -L C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows -libc MD -Onone -enable-testing -g -j8 -DSWIFT_PACKAGE -DDEBUG -Xcc -fmodule-map-file=C:\SourceCache\data\websocket-test\.build\checkouts\Clibwebsockets\Sources\Clibwebsockets\module.modulemap -module-cache-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\ModuleCache -parseable-output -lwebsockets -IC:\SourceCache\vcpkg\packages\openssl-windows_x64-windows\include -IC:\SourceCache\vcpkg\packages\libuv_x64-windows\include -IC:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\include -LC:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\lib
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -frontend -c -primary-file C:\SourceCache\data\websocket-test\Sources\MyLibrary\MyLibrary.swift C:\SourceCache\data\websocket-test\Sources\MyLibrary\main.swift -emit-module-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary~partial.swiftmodule -emit-module-doc-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary~partial.swiftdoc -emit-module-source-info-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary~partial.swiftsourceinfo -emit-dependencies-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary.d -emit-reference-dependencies-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary.swiftdeps -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -I C:\SourceCache\vcpkg\packages\openssl-windows_x64-windows\include -I C:\SourceCache\vcpkg\packages\libuv_x64-windows\include -I C:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\include -enable-testing -g -module-cache-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\ModuleCache -resource-dir C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\SourceCache\data\websocket-test\.build\checkouts\Clibwebsockets\Sources\Clibwebsockets\module.modulemap -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -module-name MyLibrary -o C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary.swift.o -index-store-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\index\store -index-system-modules
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -frontend -c C:\SourceCache\data\websocket-test\Sources\MyLibrary\MyLibrary.swift -primary-file C:\SourceCache\data\websocket-test\Sources\MyLibrary\main.swift -emit-module-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\main~partial.swiftmodule -emit-module-doc-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\main~partial.swiftdoc -emit-module-source-info-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\main~partial.swiftsourceinfo -emit-dependencies-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\main.d -emit-reference-dependencies-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\main.swiftdeps -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -I C:\SourceCache\vcpkg\packages\openssl-windows_x64-windows\include -I C:\SourceCache\vcpkg\packages\libuv_x64-windows\include -I C:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\include -enable-testing -g -module-cache-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\ModuleCache -resource-dir C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\SourceCache\data\websocket-test\.build\checkouts\Clibwebsockets\Sources\Clibwebsockets\module.modulemap -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -module-name MyLibrary -o C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\main.swift.o -index-store-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\index\store -index-system-modules
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -frontend -merge-modules -emit-module C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary~partial.swiftmodule C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\main~partial.swiftmodule -parse-as-library -disable-diagnostic-passes -disable-sil-perf-optzns -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -I C:\SourceCache\vcpkg\packages\openssl-windows_x64-windows\include -I C:\SourceCache\vcpkg\packages\libuv_x64-windows\include -I C:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\include -enable-testing -g -module-cache-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\ModuleCache -resource-dir C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\SourceCache\data\websocket-test\.build\checkouts\Clibwebsockets\Sources\Clibwebsockets\module.modulemap -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -emit-module-doc-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.swiftdoc -emit-module-source-info-path C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.swiftsourceinfo -module-name MyLibrary -o C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.swiftmodule
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -modulewrap C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.swiftmodule -o C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.build\MyLibrary.swiftmodule.o -target x86_64-unknown-windows-msvc
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -L C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows -resource-dir C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -L C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows -libc MD -L C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug -o C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.exe -module-name MyLibrary -emit-executable @C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.product\Objects.LinkFileList -target x86_64-unknown-windows-msvc -Xlinker -lwebsockets -Xlinker /INCREMENTAL:NO -lwebsockets -IC:\SourceCache\vcpkg\packages\openssl-windows_x64-windows\include -IC:\SourceCache\vcpkg\packages\libuv_x64-windows\include -IC:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\include -LC:\SourceCache\vcpkg\packages\libwebsockets_x64-windows\lib
LINK : warning LNK4044: unrecognized option '/lwebsockets'; ignored
   Creating library C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.lib and object C:\SourceCache\data\websocket-test\.build\x86_64-unknown-windows-msvc\debug\MyLibrary.exp
error: Error Domain=NSCocoaErrorDomain Code=256 "(null)"

Program crashes when using NSCalendar from Foundation

I got a lot further, but my program crashes when I try to create an NSCalendar.

As an example, I created the following program:

import Foundation

if let calendar = NSCalendar(identifier: .gregorian) {
    print("calendar is \(calendar)")
} else {
    print("calendar is nil")
}

And built it:

export SDKROOT=/c/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk
export SWIFTFLAGS="-sdk $SDKROOT -I $SDKROOT/usr/lib/swift -L $SDKROOT/usr/lib/swift/windows"
/c/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc $SWIFTFLAGS calendar.swift -o calendar.exe

When I run it, it crashes:

$ ./calendar.exe
Segmentation fault

If I debug in Visual Studio, I see:

Unhandled exception at 0x00007FF8839E552F (Foundation.dll) in calendar.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

So far, all of my other code that doesn't use NSCalendar works great!

Any tips on how to debug this type of issue?

Timing

This probably isn't the best place to be asking this, but is there a sense of when Swift for Windows will be ready for more general purpose use? Like to the point where I can just clone a swift repo, the swift package manager resolves everything properly, and I'm just off to the races. Working on porting a macOS/Linux project to Windows and not sure if I'll be able to (in the project's current state) just run Swift or not.

I know 5.2.1 is available, but there are a number of binaries (not entirely sure which I need) with somewhat limited documentation. I think I heard 5.3 was the timeline (which would coincide with Xcode 11), but just wanted to confirm.

Thanks for the work Saleem, just trying to make some business decisions here. I'd love to just use our existing Swift package, but not sure how realistic it is

Swift setup cannot create directory error

When running the latest installer build, I ran into the issue:

Cannot create the directory 'C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\x86_6MSVCRT.swiftmodule'. A file with this name already exists. Please rename or remove the file and click retry, or click Cancel to exit

This should most likely have an overwrite option (or overwrite by default), as it was created by a previous installer.

Program crashes when decoding an integer using Yams

Running into a frustrating issue. Almost the entirety of my application works on Windows, but it crashes immediately upon decoding an integer from Yaml. I can reproduce this with code as simple as this:

let decoder = YAMLDecoder()
print(try decoder.decode(Int32.self, from: "32"))

I'm entirely unsure what the problem is - could it be a bug in Yams, CYaml, Swift stdlib, or the Swift compiler? Regardless, it only affects Windows, and the same code works fine on other platforms.

I also don't know how to debug this problem. Visual Studio's debugger doesn't have any awareness of the program's symbols, and lldb won't load (errors like: C:/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/lldb.exe: error while loading shared libraries: api-ms-win-crt-utility-l1-1-0.dll: cannot open shared object file: No such file or directory, and even if I copy those runtime libraries into my working directory, it starts throwing stranger errors, like C:/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/lldb.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory). It'd be more tractable to determine the cause if I could use a debugger. Any advice would be appreciated, if you have any!

"Hello world" program won't compile

When I try to compile any Swift file with swiftc, it complains:

<unknown>:0: error: unable to load standard library for target 'x86_64-unknown-windows-msvc'`

Nothing I do will get it to succeed. This occurs even on swiftc -c empty.swift (where empty.swift is a zero-length file). I am using the installer.exe from this build. What am I doing wrong? Thanks!

Consider providing sourcekit-lsp and clangd

What the title says, really. These two tools are needed for editor integrations to provide things like autocomplete (which is very important for Swift, given its syntax and idioms). I can't simply compile this myself due to #195. I would appreciate it if these two tools could be installed alongside swift.exe and clang.exe. Thanks!

Provide Swift Package Manager?

What the title says, really. SwiftPM is used to build most cross-platform Swift programs, and is totally missing in the Windows packages. Unfortunately, this is not as simple as adding a few files into the MSIs; SwiftPM must be built alongside Swift itself. Thanks!

Reduce Template Parameters

Currently templates are using:

  • arch
  • host
  • platform
  • os
  • proc

We should be able to merge host and os at least.

Condense Caches

We have multiple cache files per target. A lot of the information can be condensed (e.g. merge the Swift information in the target information). That is consistent (until the standard library is moved to CMake) across all the users. This makes it easier to figure out what configuration is being used.

Unable to build using swiftc.exe on Windows 10 out of the box

After downloading the swift-5.3-RELEASE release from https://swift.org/download/#releases for Windows 10, I've an issue building a simple test file

>type main.swift
print("hello")
>swiftc main.swift
clang: error: no such file or directory: 'C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift\windows\x86_64\swiftrt.obj'
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)

There's a similar issue (#194); with the fix to pass in the -sdk argument. This progresses, but still fails with the following:

>swiftc -sdk %SDKROOT% main.swift
LINK : fatal error LNK1104: cannot open file 'swiftSwiftOnoneSupport.lib'
clang: error: linker command failed with exit code 1104 (use -v to see invocation)
<unknown>:0: error: link command failed with exit code 1104 (use -v to see invocation)

As shown in the verbose output below, the following paths are passed via -L:

C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows/x86_64
C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift/x86_64

but that missing lib swiftSwiftOnoneSupport.lib exists in:

C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows

so putting together a batch file to replicate the verbose output with the additional library path gives me:

>build.bat
compnerd.org clang version 10.0.0 (https://github.com/apple/llvm-project c39a810ec308dd4a8d93c5011fb73a5c987e8680)
Target: x86_64-unknown-windows-msvc
Thread model: posix
InstalledDir: C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin
 "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\Hostx64\\x64\\link.exe" -out:main.exe "-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\lib\\x64" "-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\atlmfc\\lib\\x64" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.18362.0\\ucrt\\x64" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.18362.0\\um\\x64" "-libpath:C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows\\86_64" "-libpath:C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows" "-libpath:C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift" -nologo "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows\\x86_64\\swiftrt.obj" main.o
   Creating library main.lib and object main.exp

which generates the executable:

>main.exe
hello

So it looks like adding that libpath to the build command generated by swiftc.exe could be enough to sort this out?

Appendix:

Verbose initial build

>swiftc -v main.swift
compnerd.org Swift version 5.3 (swift-5.3-RELEASE)
Target: x86_64-unknown-windows-msvc
"C:\\Library\\Developer\\Toolchains\\unknown-Asserts-development.xctoolchain\\usr\\bin\\swiftc.exe" -frontend -c -primary-file main.swift -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk" -color-diagnostics -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -module-name main -o "C:\\Users\\Tom\\AppData\\Local\\Temp\\main-e2f5f1.o"
"C:\\Library\\Developer\\Toolchains\\unknown-Asserts-development.xctoolchain\\usr\\bin\\clang.exe" -target x86_64-unknown-windows-msvc -nostartfiles -L "C:\\Library\\Developer\\Toolchains\\unknown-Asserts-development.xctoolchain\\usr\\lib\\swift\\windows/x86_64" -L "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift/x86_64" "C:\\Library\\Developer\\Toolchains\\unknown-Asserts-development.xctoolchain\\usr\\lib\\swift\\windows\\x86_64\\swiftrt.obj" "C:\\Users\\Tom\\AppData\\Local\\Temp\\main-e2f5f1.o" -I "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk" -v -o main
compnerd.org clang version 10.0.0 (https://github.com/apple/llvm-project c39a810ec308dd4a8d93c5011fb73a5c987e8680)
Target: x86_64-unknown-windows-msvc
Thread model: posix
InstalledDir: C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin
clang: error: no such file or directory: 'C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift\windows\x86_64\swiftrt.obj'
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)

Verbose build with SDK flag

>swiftc -v -sdk %SDKROOT% main.swift
compnerd.org Swift version 5.3 (swift-5.3-RELEASE)
Target: x86_64-unknown-windows-msvc
"C:\\Library\\Developer\\Toolchains\\unknown-Asserts-development.xctoolchain\\usr\\bin\\swiftc.exe" -frontend -c -primary-file main.swift -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk" -color-diagnostics -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -module-name main -o "C:\\Users\\Tom\\AppData\\Local\\Temp\\main-3b7143.o"
"C:\\Library\\Developer\\Toolchains\\unknown-Asserts-development.xctoolchain\\usr\\bin\\clang.exe" -target x86_64-unknown-windows-msvc -nostartfiles -L "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows/x86_64" -L "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift/x86_64" "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows\\x86_64\\swiftrt.obj" "C:\\Users\\Tom\\AppData\\Local\\Temp\\main-3b7143.o" -I "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk" -v -o main
compnerd.org clang version 10.0.0 (https://github.com/apple/llvm-project c39a810ec308dd4a8d93c5011fb73a5c987e8680)
Target: x86_64-unknown-windows-msvc
Thread model: posix
InstalledDir: C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin
 "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\Hostx64\\x64\\link.exe" -out:main "-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\lib\\x64" "-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\atlmfc\\lib\\x64" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.18362.0\\ucrt\\x64" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.18362.0\\um\\x64" "-libpath:C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows/x86_64" "-libpath:C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift/x86_64" -nologo "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows\\x86_64\\swiftrt.obj" "C:\\Users\\Tom\\AppData\\Local\\Temp\\main-3b7143.o"
LINK : fatal error LNK1104: cannot open file 'swiftSwiftOnoneSupport.lib'
clang: error: linker command failed with exit code 1104 (use -v to see invocation)
<unknown>:0: error: link command failed with exit code 1104 (use -v to see invocation)

Batch file with added library path

>type build.bat
@ C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swiftc.exe ^
  -frontend ^
  -c ^
  -primary-file main.swift ^
  -target x86_64-unknown-windows-msvc ^
  -disable-objc-interop ^
  -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk ^
  -color-diagnostics ^
  -autolink-library oldnames ^
  -autolink-library msvcrt ^
  -Xcc -D_MT ^
  -Xcc -D_DLL ^
  -module-name main ^
  -o main.o


@ C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\clang.exe ^
  -target x86_64-unknown-windows-msvc ^
  -nostartfiles ^
  -L C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\86_64 ^
  -L C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows ^
  -L C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift ^
  C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\x86_64\swiftrt.obj ^
  main.o ^
  -I C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk ^
  -v ^
  -o main.exe

LinuxMain test issues

What is the appropriate method for ignoring or correctly running LinuxMain.swift in the test folder? I'm getting the following error:
error: missing LinuxMain.swift file in the Tests directory

Enable versioning of MSIs

The Swift Runtime, Toolchain, SDK modules should be versioned according to the release being built. This needs to be plumbed through from the build configuration to the MSIs

Figure out deep signing for Windows toolchain

We should generate a CDF and use MakeCat and sign that with SignTool to install with the toolchain. This guarantees that the toolchain is verifiable from modifications after installation.

Unify the SDK templates

The Linux, Android, and Windows SDKs have custom job templates. We should unify them into a single sdk template.

Make Windows MSIs more usable

MSIs currently have these problems (not in .zip files) :

  1. Shim headers are not packed into sdk msi
  2. swiftCore.lib swiftrt.obj swiftSwiftOnoneSupport.lib are installed to directory different from the directory in .zip files (/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows, where it should be /Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/x86_64)

Sorry, I can't make a PR to fix the problems because I don't know how to do that :( .

Will there be an IDE?

Will this be shipped with a IDE like XCode or a visual studio (not vscode) plugin since setting up the environment in a text editor is complicated (especially when offline)?

Include Yams binaries in the devtools installer

Currently Yams.dll is built on the devtools stage, but it isn't included in the devtools installer msi.
This causes SwiftPM to fail with an error saying "Yams.dll was not found" after I install the toolchain & devtools.

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.