[swift-dev] Building swift-llvm fails when using build-script to cross compile due to multiple -isysroot arguments being in CFLAGS
Andrew Hyatt
ahyattdev at icloud.com
Sat Mar 19 12:11:03 CDT 2016
(From /u/thegreatbeanz on reddit.com/r/swift <http://reddit.com/r/swift>)
So the problem here is actually that something has gone horribly wrong when configuring compiler- rt.
You'll notice in the clang commands that it is building in this directory:
clang_rt.builtins_armv7_10.4.dir
What that means is it is building the clang_rt.10.4 archive which provides back ported library functions to OS X 10.4. Obviously 10.4 didn't support armv7 as an architecture, something has gone really wrong here.
If you're on the latest swift it is probably a regression caused by 53f48f8. You need to email swift-dev to get support from Dmitri Gribenko and Vedant Kumar.
Source: I wrote most of the compiler-rt builtin build system for Darwin.
Andrew Hyatt
ahyattdev at icloud.com
> On Mar 19, 2016, at 9:26 AM, Andrew Hyatt via swift-dev <swift-dev at swift.org> wrote:
>
> 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 <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.
>
> Andrew Hyatt
> andythehyatt at gmail.com <mailto:andythehyatt at gmail.com>
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160319/cc580425/attachment.html>
More information about the swift-dev
mailing list