[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
[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
/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@apple.com>, wrote:
> On Feb 11, 2017, at 10:46 AM, Ben Ng via swift-dev <swift-dev@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.
/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@apple.com>, wrote:
On Feb 11, 2017, at 10:46 AM, Ben Ng via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
[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.
/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@apple.com>, wrote:
On Feb 11, 2017, at 10:46 AM, Ben Ng via swift-dev <swift-dev@swift.org> > wrote:
[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.
/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@apple.com <mailto:gparker@apple.com>>, wrote:
On Feb 11, 2017, at 10:46 AM, Ben Ng via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
[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.
Heh. I’ll just retreat to my noob hovel and try that then. Thanks. The getting started section says you need the latest Xcode, but I didn’t realize that meant betas as well. I’d assumed it was the latest release.
···
On Feb 13, 2017, 1:24 AM -0500, mishal_shah <mishal_shah@apple.com>, wrote:
Heh. I’ll just retreat to my noob hovel and try that then. Thanks.
There is no such a thing as a noob hovel. ; ). We all are learning = ), and who knows this may be actually a documentation error (see below).
In case you are curious: the reason I guessed that it was an SDK issue is that it seemed that the overlays were expecting the SDK to provide something that either was not there or was different. In such cases, it is always a good thing to check.
As DaveA always says:
HTH
Michael
The getting started section says you need the latest Xcode, but I didn’t realize that meant betas as well. I’d assumed it was the latest release.
Mishal, maybe we should update the README to spell this out explicitly. Thoughts?
···
On Feb 13, 2017, at 4:10 AM, Kevin Hendry <kevin@lugnut.io> wrote:
On Feb 13, 2017, 1:24 AM -0500, mishal_shah <mishal_shah@apple.com>, wrote:
/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@apple.com <mailto:gparker@apple.com>>, wrote:
On Feb 11, 2017, at 10:46 AM, Ben Ng via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
[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.
Heh. I’ll just retreat to my noob hovel and try that then. Thanks.
There is no such a thing as a noob hovel. ; ). We all are learning = ), and who knows this may be actually a documentation error (see below).
In case you are curious: the reason I guessed that it was an SDK issue is that it seemed that the overlays were expecting the SDK to provide something that either was not there or was different. In such cases, it is always a good thing to check.
As DaveA always says:
HTH
Michael
The getting started section says you need the latest Xcode, but I didn’t realize that meant betas as well. I’d assumed it was the latest release.
Mishal, maybe we should update the README to spell this out explicitly. Thoughts?
/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@apple.com <mailto:gparker@apple.com>>, wrote:
On Feb 11, 2017, at 10:46 AM, Ben Ng via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
[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.