Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread Frederick Kellison-Linn via swift-dev
Good idea. In the end, I resolved the issue by renaming /opt/local/bin/ld which meant that clang used /usr/bin/ld, which had an appropriate LLVM version. Would be good if the build script utilized the Xcode toolchain instead of relying on system settings. Freddy > On Dec 8, 2016, at 9:09 PM

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread William Dillon via swift-dev
Try it with a PATH that does not include /opt/local/* I haven’t build on MacOS in a long time, so I can’t say with any more detail how the tools (clang, ld, etc.) are chosen when building swift ¯\_(ツ)_/¯  Good luck :) - Will On December 8, 2016 at 6:05:12 PM, Frederick Kellison-Linn (fred...@me

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread Frederick Kellison-Linn via swift-dev
which ld gives the same /opt/local version My path is /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Users/freddy/anaconda3/bin:/opt/local/bin:/opt/local/sbin:/Users/freddy/.rvm/gems/ruby-2.1.1/bin:/Users/freddy/.rvm/gems/ruby-

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread William Dillon via swift-dev
What if you try: which ld And, what’s your PATH? On December 8, 2016 at 2:19:20 PM, Frederick Kellison-Linn (fred...@me.com) wrote: Yeah that seems wrong to me as well. Do you know how I can change the linker that clang invokes? Freddy On Dec 8, 2016, at 5:16 PM, William Dillon wrote: The

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread Frederick Kellison-Linn via swift-dev
Yeah that seems wrong to me as well. Do you know how I can change the linker that clang invokes? Freddy > On Dec 8, 2016, at 5:16 PM, William Dillon wrote: > > The Apple folks might know better and correct me, but I’m pretty certain you > don’t want to be using any toolchains in /opt/local.

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread William Dillon via swift-dev
The Apple folks might know better and correct me, but I’m pretty certain you don’t want to be using any toolchains in /opt/local.  It all needs to be from the Xcode.app. - Will On December 8, 2016 at 2:14:42 PM, Frederick Kellison-Linn via swift-dev (swift-dev@swift.org) wrote: The output of

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread Frederick Kellison-Linn via swift-dev
The output of those commands follows: $ xcode-select -p /Applications/Xcode.app/Contents/Developer $ xcodebuild -version Xcode 8.1 Build version 8B62 Both look fine to me. It appears that clang is invoking /opt/local/bin/ld, and running /opt/local/bin/ld -v gives: @(#)PROGRAM:ld PROJECT:ld64

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread William Dillon via swift-dev
I think Greg is right.  I’ve seen this before, and the way I fixed it was by fixing the Xcode configuration, specifically relating to the command-line tools. - Will On December 8, 2016 at 1:24:59 PM, Greg Parker via swift-dev (swift-dev@swift.org) wrote: On Dec 8, 2016, at 7:28 AM, Frederick

Re: [swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread Greg Parker via swift-dev
> On Dec 8, 2016, at 7:28 AM, Frederick Kellison-Linn via swift-dev > wrote: > > Hello, > > I have been attempting to build Swift, but have been running into issues near > the end of the build. Specifically, CMake fails on the step [2112/2254] > Performing configure step for 'compiler-rt’, s

[swift-dev] Build failing on CMakeTestCCompiler.cmake

2016-12-08 Thread Frederick Kellison-Linn via swift-dev
Hello, I have been attempting to build Swift, but have been running into issues near the end of the build. Specifically, CMake fails on the step [2112/2254] Performing configure step for 'compiler-rt’, since the compiled clang fails to build a simple C program. The specific issue appears to be