[swift-dev] master fails to build

Michael Gottesman mgottesman at apple.com
Sun Feb 12 22:52:55 CST 2017


Just a stab in the dark, but are you using the latest beta SDK?

Michael

> On Feb 11, 2017, at 5:03 PM, Ben Ng via swift-dev <swift-dev at swift.org> wrote:
> 
> Hi Greg,
> 
> Thanks for the tip. It fails in a different way now:
> 
> FAILED: stdlib/public/SDK/SafariServices/macosx/x86_64/SafariServices.o
> 
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:18:68: error: unknown type name 'SFSafariServicesVersion'
> static inline bool _swift_SafariServices_isSafariServicesAvailable(SFSafariServicesVersion version) {
>                                                                    ^
> <module-includes>:1:9: note: in file included from <module-includes>:1:
> #import "SafariServicesOverlayShims.h"
>         ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:19:18: error: use of undeclared identifier 'SFSafariServicesVersion10_0'
>   if (version == SFSafariServicesVersion10_0) {
>                  ^
> <module-includes>:1:9: note: in file included from <module-includes>:1:
> #import "SafariServicesOverlayShims.h"
>         ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:23:3: error: use of undeclared identifier 'SFSafariServicesVersion'
>   SFSafariServicesVersion* latestVersion = &_SFSafariServicesVersion;
>   ^
> <module-includes>:1:9: note: in file included from <module-includes>:1:
> #import "SafariServicesOverlayShims.h"
>         ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:23:28: error: use of undeclared identifier 'latestVersion'
>   SFSafariServicesVersion* latestVersion = &_SFSafariServicesVersion;
>                            ^
> <module-includes>:1:9: note: in file included from <module-includes>:1:
> #import "SafariServicesOverlayShims.h"
>         ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:23:45: error: use of undeclared identifier '_SFSafariServicesVersion'
>   SFSafariServicesVersion* latestVersion = &_SFSafariServicesVersion;
>                                             ^
> <module-includes>:1:9: note: in file included from <module-includes>:1:
> #import "SafariServicesOverlayShims.h"
>         ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:24:15: error: use of undeclared identifier 'latestVersion'; did you mean 'ICGetVersion'?
>   if (NULL == latestVersion) {
>               ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/InternetConfig.h:711:1: note: 'ICGetVersion' declared here
> ICGetVersion(
> ^
> <module-includes>:1:9: note: in file included from <module-includes>:1:
> #import "SafariServicesOverlayShims.h"
>         ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:24:15: warning: comparison of function 'ICGetVersion' equal to a null pointer is always false
>   if (NULL == latestVersion) {
>               ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:24:15: note: prefix with the address-of operator to silence this warning
>   if (NULL == latestVersion) {
>               ^
> <module-includes>:1:9: note: in file included from <module-includes>:1:
> #import "SafariServicesOverlayShims.h"
>         ^
> /Users/ben/Documents/code/swift-sources/build/Ninja-ReleaseAssert/swift-macosx-x86_64/./lib/swift/shims/SafariServicesOverlayShims.h:28:11: error: use of undeclared identifier 'latestVersion'; did you mean 'ICGetVersion'?
>   return *latestVersion >= version;
>           ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/InternetConfig.h:711:1: note: 'ICGetVersion' declared here
> ICGetVersion(
> ^
> /Users/ben/Documents/code/swift-sources/swift/stdlib/public/SDK/SafariServices/SafariServices.swift:14:8: error: could not build Objective-C module '_SwiftSafariServicesOverlayShims'
> import _SwiftSafariServicesOverlayShims
>        ^
> 
> Ben Ng
> 
> On Feb 11, 2017, 3:59 PM -0500, Greg Parker <gparker at apple.com>, wrote:
>> 
>>> On Feb 11, 2017, at 10:46 AM, Ben Ng via swift-dev <swift-dev at swift.org <mailto:swift-dev at swift.org>> wrote:
>>> 
>>> I can’t seem to build master right now:
>>> 
>>> git pull
>>> ./utils/update-checkout --clone-with-ssh
>>> ./utils/build-script --release --assertions
>>> 
>>> (…)
>>> 
>>> [17/558] Linking CXX shared library lib/swift/macosx/x86_64/libswiftCore.dylib
>>> FAILED: lib/swift/macosx/x86_64/libswiftCore.dylib
>>> Undefined symbols for architecture x86_64:
>>>   "llvm::EnableABIBreakingChecks", referenced from:
>>>       llvm::VerifyEnableABIBreakingChecks in Casting.cpp.o
>>>       llvm::VerifyEnableABIBreakingChecks in Demangle.cpp.o
>>>       llvm::VerifyEnableABIBreakingChecks in Metadata.cpp.o
>>>       llvm::VerifyEnableABIBreakingChecks in MetadataLookup.cpp.o
>>>       llvm::VerifyEnableABIBreakingChecks in Remangle.cpp.o
>>>       llvm::VerifyEnableABIBreakingChecks in SwiftNativeNSXXXBase.mm.o
>>> 
>>> Is anyone else running into this?
>> 
>> This was a hiccup after an LLVM change a few weeks ago. Try deleting your entire build directory and rebuilding.
>> 
>> 
>> -- 
>> Greg Parker     gparker at apple.com <mailto:gparker at apple.com>     Runtime Wrangler
>> 
>> 
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170212/51ba3ef2/attachment.html>


More information about the swift-dev mailing list