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-10576] SwiftPM drops includes from dependent system libraries on Linux #4715

Open
CodaFi opened this issue Apr 29, 2019 · 1 comment
Open
Labels

Comments

@CodaFi
Copy link
Member

CodaFi commented Apr 29, 2019

Previous ID SR-10576
Radar rdar://problem/50301929
Original Reporter @CodaFi
Type Bug

Attachment: Download

Environment

https://swift.org/builds/swift-5.0-release/ubuntu1404/swift-5.0-RELEASE/swift-5.0-RELEASE-ubuntu14.04.tar.gz

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 6335422cc53a27275fa000cdd2b9f2fa

Issue Description:

As a test, I tried upgrading LLVMSwift's Linux build from the 5.0 release to the 5.1 snapshot. For some odd reason, this caused Swift PM to fail to build our shims package. Attached are the build logs between two different runs of Travis:

  • swift5.txt contains a run with Swift 5.0 in verbose mode

  • swift51.txt contains a run with Swift 5.1 in verbose mode

The Swift 5.1 build indicates an error when trying to access the PC file we write to setup the freshly apt-installed copy of LLVM and Clang as a system library

> 'cllvm' cllvm.pc: �[33m�[1mwarning: �[0minvalidAccess

After that, the command line for clang in the 5.1 log is clearly missing the argument

> -I/usr/lib/llvm-8/include

This used to be inherited from the `cllvm` package, and it still is on macOS.

A branch that reproduces this build failure on Travis' Linux bots is available here: llvm-swift/LLVMSwift#205

@ankitspd
Copy link
Member

Can you provide a smaller reproducer?

@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