master fails to build

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?

Ben Ng

This was a hiccup after an LLVM change a few weeks ago. Try deleting your entire build directory and rebuilding.

···

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?

--
Greg Parker gparker@apple.com <mailto:gparker@apple.com> Runtime Wrangler

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@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.

--
Greg Parker gparker@apple.com Runtime Wrangler

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@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@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:

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@apple.com <mailto:gparker@apple.com> Runtime Wrangler

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

I'm seeing the same thing as Ben.

···

On Sat, Feb 11, 2017 at 8:03 PM, Ben Ng via swift-dev <swift-dev@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@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.

--
Greg Parker gparker@apple.com Runtime Wrangler

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

--
--
K.

I'm not. Is this the part where you tell me I should be?

···

On Feb 12, 2017, 11:53 PM -0500, Michael Gottesman via swift-dev <swift-dev@swift.org>, wrote:

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@swift.org (mailto:swift-dev@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@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:
> > > 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@apple.com (mailto:gparker@apple.com) Runtime Wrangler
> >
> >
> _______________________________________________
> swift-dev mailing list
> swift-dev@swift.org (mailto:swift-dev@swift.org)
> https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Hi,

You will need Xcode 8.3 beta 2 (https://developer.apple.com/download/\).

Thanks,
Mishal Shah

···

On Feb 12, 2017, at 9:17 PM, Kevin Hendry via swift-dev <swift-dev@swift.org> wrote:

I'm not. Is this the part where you tell me I should be?

On Feb 12, 2017, 11:53 PM -0500, Michael Gottesman via swift-dev <swift-dev@swift.org>, wrote:

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@swift.org <mailto:swift-dev@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@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:

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@apple.com <mailto:gparker@apple.com> Runtime Wrangler

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

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:

Hi,

You will need Xcode 8.3 beta 2 (https://developer.apple.com/download/\).

Thanks,
Mishal Shah
> On Feb 12, 2017, at 9:17 PM, Kevin Hendry via swift-dev <swift-dev@swift.org> wrote:
>
> I'm not. Is this the part where you tell me I should be?
>
>
> On Feb 12, 2017, 11:53 PM -0500, Michael Gottesman via swift-dev <swift-dev@swift.org>, wrote:
> > 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@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@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.
> > > >
> > > >
> > > > --
> > > > Greg Parker gparker@apple.com Runtime Wrangler
> > > >
> > > >
> > > _______________________________________________
> > > swift-dev mailing list
> > > swift-dev@swift.org
> > > https://lists.swift.org/mailman/listinfo/swift-dev
> >
> > _______________________________________________
> > swift-dev mailing list
> > swift-dev@swift.org
> > https://lists.swift.org/mailman/listinfo/swift-dev
> _______________________________________________
> swift-dev mailing list
> swift-dev@swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

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:

Hi,

You will need Xcode 8.3 beta 2 (https://developer.apple.com/download/\).

Thanks,
Mishal Shah

On Feb 12, 2017, at 9:17 PM, Kevin Hendry via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

I'm not. Is this the part where you tell me I should be?

On Feb 12, 2017, 11:53 PM -0500, Michael Gottesman via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>>, wrote:

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@swift.org <mailto:swift-dev@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@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:

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@apple.com <mailto:gparker@apple.com> Runtime Wrangler

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

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?

README updated with specific Xcode version (https://github.com/apple/swift/pull/7430\), I will keep this updated as we change the CI Xcode version.

Thanks,
Mishal Shah

···

On Feb 13, 2017, at 10:04 AM, Michael Gottesman <mgottesman@apple.com> wrote:

On Feb 13, 2017, at 4:10 AM, Kevin Hendry <kevin@lugnut.io <mailto:kevin@lugnut.io>> wrote:

On Feb 13, 2017, 1:24 AM -0500, mishal_shah <mishal_shah@apple.com <mailto:mishal_shah@apple.com>>, wrote:

Hi,

You will need Xcode 8.3 beta 2 (https://developer.apple.com/download/\).

Thanks,
Mishal Shah

On Feb 12, 2017, at 9:17 PM, Kevin Hendry via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

I'm not. Is this the part where you tell me I should be?

On Feb 12, 2017, 11:53 PM -0500, Michael Gottesman via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>>, wrote:

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@swift.org <mailto:swift-dev@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@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:

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@apple.com <mailto:gparker@apple.com> Runtime Wrangler

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev