Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10085] swift-package-manager getting started example fails #4870

Open
swift-ci opened this issue Mar 11, 2019 · 1 comment
Open

[SR-10085] swift-package-manager getting started example fails #4870

swift-ci opened this issue Mar 11, 2019 · 1 comment
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-10085
Radar None
Original Reporter solas (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler, Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 92320bec5ab84b23daa98f42d8d90fe1

Issue Description:

Following the steps here to create a swift package:

https://swift.org/getting-started/#using-the-package-manager

1) mkdir Hello

2) cd Hello

3) swift package init

4) swift build

5) swift test

it fails at 5) with a stream of errors, starting with:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:

#include <CoreFoundation/CFBase.h>

     **^**

<module-includes>:1:9: note: in file included from <module-includes>:1:

#import "Headers/CoreFoundation.h"

    **^**

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:

#include <CoreFoundation/CFBase.h>

     **^**

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:

#include <Block.h>

     **^**

/usr/local/include/Block.h:16:3: error: Never include this file directly. Use <lzma.h> instead.

  1.    error Never include this file directly. Use \<lzma.h\> instead.
    

    ......

@belkadan
Copy link

Swift isn't expecting you to have extra headers in /usr/local/include/ that conflict with SDK headers like Block.h. I think this is behaving correctly.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants