# Error installing: Cannot use an old toolchain (missing ToolchainVersion.txt file)

**URL:** <https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331>\
**Category:** Platform & Builds\
**Tags:** Linux, UE4-23, unreal-engine, Installation, bug-report, question, build-editor\
**Created:** [October 22, 2019, 10:07pm UTC](https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331 "2019-10-22T22:07:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3f79f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3f79f9](https://forums.unrealengine.com/u/anonymous_user_6f3f79f9)\
**Post date:** [October 22, 2019, 10:07pm UTC](https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331/1 "2019-10-22T22:07:14Z")

</div>

When trying to compile the new hotfix **4.23.1** the editor on Ubuntu 16.04 from the current release branch on GitHub (tagged as **4.23.1-release** ) I get the following result:

```
$ (release):/opt/UnrealEngine> ./Setup.sh 
Registering git hooks... (this will override existing ones!)
Fixing inconsistent case in filenames.
Setting up Mono
Checking dependencies...
The following file(s) have been modified:
  Engine/Binaries/ThirdParty/Mono/Linux/etc/mono/registry/last-btime
Would you like to overwrite your changes (y/n)? y
Updating dependencies: 100% (1/1), 0.6 MiB cached, done.
Result: 0
Register the engine installation...
Installing a bundled clang toolchain
Toolchain already installed skipping.

Target arch set to: x86_64-unknown-linux-gnu
Building ThirdParty libraries

If you don't see SUCCESS message in the end, then building did not finish properly.
In that case, take a look into /opt/UnrealEngine/Engine/Build/BatchFiles/Linux/BuildThirdParty.log for details.

No third party libs needed to be built locally

**********SUCCESS****************
Setup successful.
$ (release):/opt/UnrealEngine> ./GenerateProjectFiles.sh 
Attempting to set up UE4 pretty printers for gdb (existing UE4Printers.py, if any, will be overwritten)...
	updated UE4Printers.py
	found necessary entries in ~/.gdbinit file, not changing it.

Setting up Unreal Engine 4 project files...

Fixing inconsistent case in filenames.
Setting up Mono
Generating data for project indexing... 100%
Writing project files... 100%
$ (release):/opt/UnrealEngine> make
make[2]: *** No rule to make target 'CMakeFiles/FakeTarget.dir/build'. Stop.
CMakeFiles/Makefile2:1507: recipe for target 'CMakeFiles/FakeTarget.dir/all' failed
make[1]: *** [CMakeFiles/FakeTarget.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
$ (release):/opt/UnrealEngine> make all
make[2]: *** No rule to make target 'CMakeFiles/FakeTarget.dir/build'. Stop.
CMakeFiles/Makefile2:1507: recipe for target 'CMakeFiles/FakeTarget.dir/all' failed
make[1]: *** [CMakeFiles/FakeTarget.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
$ (release):/opt/UnrealEngine> make CrashReportClient ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor
Fixing inconsistent case in filenames.
Setting up Mono
Building CrashReportClient...
Using 'git status' to determine working set for adaptive non-unity build (/opt/UnrealEngine).
Creating makefile for CrashReportClient (no existing makefile)
------- Build details --------
Using toolchain located at '/opt/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v15_clang-8.0.1-centos7/x86_64-unknown-linux-gnu'.
Using clang (/opt/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v15_clang-8.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++) version '8.0.1' (string), 8 (major), 0 (minor), 1 (patch)
Using bundled libc++ standard C++ library.
Using lld linker
Using llvm-ar : /opt/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v15_clang-8.0.1-centos7/x86_64-unknown-linux-gnu/bin/llvm-ar
Using fast way to relink circularly dependent libraries (no FixDeps).
------------------------------
ERROR: Cannot use an old toolchain (missing ToolchainVersion.txt file, assuming version earlier than v11)
CMakeFiles/CrashReportClient.dir/build.make:57: recipe for target 'CMakeFiles/CrashReportClient' failed
make[3]: *** [CMakeFiles/CrashReportClient] Error 5
CMakeFiles/Makefile2:4168: recipe for target 'CMakeFiles/CrashReportClient.dir/all' failed
make[2]: *** [CMakeFiles/CrashReportClient.dir/all] Error 2
CMakeFiles/Makefile2:4175: recipe for target 'CMakeFiles/CrashReportClient.dir/rule' failed
make[1]: *** [CMakeFiles/CrashReportClient.dir/rule] Error 2
Makefile:1782: recipe for target 'CrashReportClient' failed
make: *** [CrashReportClient] Error 2

```

**The concrete problem** is logged as `ERROR: Cannot use an old toolchain (missing ToolchainVersion.txt file, assuming version earlier than v11)`. I haven’t encountered this problem when building versions 4.22 and 4.23 and I can’t seem to find what was changed in between to cause this. Has anyone got a clue?

**PS** : What’s the deal with this `FakeTarget` that doesn’t have a rule when building with the default `make` command? It didn’t work on either version I tried. As a workaround I had to build the targets manually as described on the [official Linux native build site](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Build/BatchFiles/Linux/README.md) (also shown in the logs above).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3f79f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3f79f9](https://forums.unrealengine.com/u/anonymous_user_6f3f79f9)\
**Post date:** [October 31, 2019, 1:31pm UTC](https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331/2 "2019-10-31T13:31:48Z")

</div>

{ b u m p }

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [October 31, 2019, 3:00pm UTC](https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331/3 "2019-10-31T15:00:47Z")

</div>

Please manually delete Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux\_x64 and then re-run Setup.sh. I.e. execute

```
rm -rf Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64
./Setup.sh

```

from the root engine directory.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3f79f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3f79f9](https://forums.unrealengine.com/u/anonymous_user_6f3f79f9)\
**Post date:** [November 6, 2019, 2:46pm UTC](https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331/4 "2019-11-06T14:46:15Z")

</div>

It worked magnificently! Thank you!

---

<div class="post-metadata">

**Author:** ![Tomfellow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tomfellow](https://forums.unrealengine.com/u/Tomfellow)\
**Post date:** [March 27, 2023, 10:48am UTC](https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331/5 "2023-03-27T10:48:20Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/2/5a200aad3db14ef418bf37e751ea3499d2b2b727.png)

same problem, what to do

---

<div class="post-metadata">

**Author:** ![Tomfellow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tomfellow](https://forums.unrealengine.com/u/Tomfellow)\
**Post date:** [March 27, 2023, 10:49am UTC](https://forums.unrealengine.com/t/error-installing-cannot-use-an-old-toolchain-missing-toolchainversion-txt-file/457331/6 "2023-03-27T10:49:07Z")

</div>

./Setup.sh

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/7/487e33f7240d6762932e255ce3fc7663a6b5cb7a.png)
