Navigation Menu

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-986] Building swift-llvm fails when using build-script to cross compile due to multiple -isysroot arguments being in CFLAGS #43598

Closed
swift-ci opened this issue Mar 19, 2016 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-986
Radar None
Original Reporter ahyattdev (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

Mac OS X 10.11.3 x86_64

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, BuildScript
Assignee None
Priority Medium

md5: dac935f9361815f3632d928d9eb42586

Issue Description:

Building swift-llvm fails when using build-script to cross compile because build-script wrongly gives duplicate -isysroot arguments.

The full arguments that are given to clang by build-script while building LLVM are here: https://gist.github.com/ahyattdev/8ecc5d3808b9ee543a60

The command I use to build the compiler, using the latest sources from GitHub

utils/build-script -R -i -- --cross-compile-tools-deployment-targets "iphoneos-arm64 iphoneos-armv7 iphoneos-armv7s" --user-config-args="-DLLVM_ENABLE_BACKTRACES=Off"

This error occurs after the phase of building llvm for the host machine, and occurs during the cross compilation phase.

@swift-ci
Copy link
Collaborator Author

Comment by Andrew Hyatt (JIRA)

cause: https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20160314/001464.html

@swift-ci
Copy link
Collaborator Author

Comment by Andrew Hyatt (JIRA)

Fixed by

79b7c96#diff-65b44eb6cb88af2161d8e1176231aad0

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

1 participant