# Swift compile error

**URL:** <https://forums.swift.org/t/swift-compile-error/21661>\
**Category:** Standard Library\
**Tags:** gsoc-2019\
**Created:** [March 16, 2019, 2:29am UTC](https://forums.swift.org/t/swift-compile-error/21661 "2019-03-16T02:29:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Gumichocopengin8](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/gumichocopengin8/32/6853_2.png) [@Gumichocopengin8](https://forums.swift.org/u/Gumichocopengin8)\
**Post date:** [March 16, 2019, 10:14pm UTC](https://forums.swift.org/t/swift-compile-error/21661/5 "2019-03-16T22:14:47Z")

</div>

Thank you very much.  
I could fix the issue, but the new error came out.

Terminal

> -- Configuring incomplete, errors occurred!  
> See also "/Users/keita/Desktop/gsoc/swift-source/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86\_64/CMakeFiles/CMakeOutput.log".  
> See also "/Users/keita/Desktop/gsoc/swift-source/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86\_64/CMakeFiles/CMakeError.log".  
> FAILED: build.ninja  
> /usr/local/Cellar/cmake/3.13.4/bin/cmake -S/Users/keita/Desktop/gsoc/swift-source/swift -B/Users/keita/Desktop/gsoc/swift-source/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86\_64  
> ninja: error: rebuilding 'build.ninja': subcommand failed  
> utils/build-script: fatal error: command terminated with a non-zero exit status

CMakeError.log.

> Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":  
> Apple LLVM version 10.0.1 (clang-1001.0.46.2)  
> Target: x86\_64-apple-darwin18.2.0  
> Thread model: posix  
> InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin  
> Checking whether the ASM compiler is Clang using "--version" did not match "(clang version)":  
> Apple LLVM version 10.0.1 (clang-1001.0.46.2)  
> Target: x86\_64-apple-darwin18.2.0  
> Thread model: posix  
> InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin  
> **error:** **'futimens' is only available on macOS 10.13 or newer [-Werror,-Wunguarded-availability-new]**  
> if (::futimens(FD, Times))  
> **^ ~~~~~~~~~ **  
> **/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/stat.h:373:9:**  **note:**'futimens' has been marked as being introduced in macOS 10.13 here, but the deployment target is macOS 10.9.0  
> int futimens(int \_\_fd, const struct timespec \_\_times[2]) \_\_API\_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0));  
> **^**  
> **/swift-source/llvm/lib/Support/Unix/Path.inc:644:7:**  **note:** enclose 'futimens' in a \_\_builtin\_available check to silence this warning  
> if (::futimens(FD, Times))  
> **^ ~~~~~~~~~ **  
> 1 error generated.  
> [8/2719][0%][3.485s] Building CXX ob...CMakeFiles/LLVMTableGen.dir/Main.cpp.o  
> ninja: build stopped: subcommand failed.  
> utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

I am trying to fix the problems now.

Anyways, thank you for fixing the issue.

---

_[View the full topic](https://forums.swift.org/t/swift-compile-error/21661)._
