# Swiftc built from source fails to compile anything on Ubuntu

**URL:** <https://forums.swift.org/t/swiftc-built-from-source-fails-to-compile-anything-on-ubuntu/34749>\
**Category:** Compiler\
**Tags:** linux, build-script, help-needed, buildin-the-compiler\
**Created:** [March 24, 2020, 2:27pm UTC](https://forums.swift.org/t/swiftc-built-from-source-fails-to-compile-anything-on-ubuntu/34749 "2020-03-24T14:27:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Finagolfin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/finagolfin/32/34388_2.png) [@Finagolfin](https://forums.swift.org/u/Finagolfin)\
**Post date:** [March 26, 2020, 4:58pm UTC](https://forums.swift.org/t/swiftc-built-from-source-fails-to-compile-anything-on-ubuntu/34749/5 "2020-03-26T16:58:43Z")

</div>

Yeah, that's not good that yet another version of clang is popping in there. 🙂 More importantly, most people use one of the build presets to get all the relevant tools and libraries installed in a toolchain directory, rather than trying to construct a build-script invocation with a bunch of flags themselves. [Take a look at utils/build-presets.ini](https://github.com/apple/swift/blob/master/utils/build-presets.ini) for some common presets that you can try, and what flags they bundle together, if you still want to try writing your own.

---

_[View the full topic](https://forums.swift.org/t/swiftc-built-from-source-fails-to-compile-anything-on-ubuntu/34749)._
