# Bug while compiling Swift 5.9-RELEASE under Fedora Rawhide on \`aarch64\`

**URL:** <https://forums.swift.org/t/bug-while-compiling-swift-5-9-release-under-fedora-rawhide-on-aarch64/67870>\
**Category:** Compiler\
**Tags:** linux, aarch64, fedora\
**Created:** [October 15, 2023, 9:55pm UTC](https://forums.swift.org/t/bug-while-compiling-swift-5-9-release-under-fedora-rawhide-on-aarch64/67870 "2023-10-15T21:55:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 16, 2023, 2:11am UTC](https://forums.swift.org/t/bug-while-compiling-swift-5-9-release-under-fedora-rawhide-on-aarch64/67870/4 "2023-10-16T02:11:33Z")

</div>

Bootstrapping is the process described in [this forum post last year, where parts of the Swift compiler are written in Swift and call C++ methods in the compiler through the growing C++ Interop](https://forums.swift.org/t/implementing-parts-of-the-swift-compiler-in-swift/59524).

As stated there, it is not required, though some features, like bare regex literals and macros, do require it in 5.9, contradicting that plan. There has been some work in trunk and the release/5.9 branch to not require C++ Interop for those two features, so that posted plan will likely stick soon.

Check what bootstrapping mode you are currently using with 5.9: `grep -i bootstrapping_mode build/Ninja-Release/swift-linux-aarch64/CMakeCache.txt`. Try turning it off to see if that's the problem. Alternatively, [`bootstrapping` was likely the default for you before](https://github.com/apple/swift/blob/release/5.9.0/CMakeLists.txt#L344), but was [recently overridden to `hosttools` on linux](https://github.com/apple/swift/blob/release/5.9.0/CMakeLists.txt#L965), so that may be causing the crash.

Try a couple different bootstrapping modes and see what works now, as I'm just speculating that this is the cause. Turning it off will be easiest, while going back to `bootstrapping` may require some patching, as I don't think that mode supports building macros in 5.9.0, though [it may eventually in 5.9.2](https://github.com/apple/swift/pull/68872).

---

_[View the full topic](https://forums.swift.org/t/bug-while-compiling-swift-5-9-release-under-fedora-rawhide-on-aarch64/67870)._
