# 4.18 Linux build errors with: clang10, bp nativization

**URL:** <https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880>\
**Category:** Platform & Builds\
**Tags:** UE4-18, nativization, linux-server, unreal-engine, build-failed, question\
**Created:** [October 25, 2017, 1:09am UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880 "2017-10-25T01:09:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [October 25, 2017, 1:09am UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/1 "2017-10-25T01:09:23Z")

</div>

I’m building a dedicated server for Linux (CentOS) on my Windows machine using source UE 4.18 and this batch file:

```
call c:\Unreal\UnrealEngine-release-4.18\Engine\Build\BatchFiles\RunUAT.bat ^
	BuildCookRun -project="c:\GameArtists\Unreal\D1M1Arena\Unreal\D1M1Arena.uproject" ^
    -nop4 -build -cook -compressed -stage ^
    -noclient -server -serverplatform=Linux -serverconfig=Shipping ^
    -pak -archive -archivedirectory="c:\GameArtists\Unreal\D1M1Arena\Unreal\Build " ^
    -utf8output

```

if I try to build using **v10\_clang-5.0.0-centos7** I get error: _specified path differs in case from file name on disk_

 ![217810-2017-10-24-20-41-20-unreal-build.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/d/d4dd7afa91429fea16485fc6f5687a912b52eb15.png)

I checked, I have these files on disk with the same exact case. For example, this is a file path from disk, like it is:  
_c:\Unreal\UnrealEngine-release-4.18\Engine\Source\Runtime\CoreUObject\Public\CoreUObjectSharedPCH.h_

if I use **v9\_clang-4.0.0-centos7** and blueprint nativization setting in DefaultGame.ini - it fails with one of the blueprints failing with _fatal error: UTF-16 (LE) byte order mark detected_ ([see file][2])

 ![217821-2017-10-24-20-56-08-unreal-build-teamviewer-free-l.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/0/2c0357210fff1fd3173f0be183cc34bb56aeca00.png)

There are no errors if I use toolchain **v9\_clang-4.0.0-centos7** and blueprint nativization is _disabled_. Also, there are no errors in **4.17** and BP nativization _enabled_.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2a0040f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2a0040f](https://forums.unrealengine.com/u/anonymous_user_e2a0040f)\
**Post date:** [November 2, 2017, 3:59pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/2 "2017-11-02T15:59:00Z")

</div>

Hi there,

Cross-referencing with the notes at [UTF 16 error - Blueprint - Epic Developer Community Forums](https://answers.unrealengine.com/questions/720847/utf-16-error.html)

Thanks!

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [November 2, 2017, 4:01pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/3 "2017-11-02T16:01:03Z")

</div>

Are you talking about: Get\xd0\xa2\xd0\xb5\xd1\x85\xd1\x82\_Attributes ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2a0040f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2a0040f](https://forums.unrealengine.com/u/anonymous_user_e2a0040f)\
**Post date:** [November 2, 2017, 4:05pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/4 "2017-11-02T16:05:10Z")

</div>

This is the line that’s causing the encoding to switch to UTF-16:

UFunction\* ReturnFunction = static\_cast(StaticFindObjectFast( UFunction::StaticClass(), Outer, TEXT(“GetТехт\_Attributes”) ));

It appears that may have been overlooked and we’re not translating that occurrence to the other form.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [November 2, 2017, 4:29pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/5 "2017-11-02T16:29:03Z")

</div>

Indeed, I opened in the hex editor - The word Text has weird characters. I wander how did that happen… Will test soon, to confirm if that fixed that issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2a0040f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2a0040f](https://forums.unrealengine.com/u/anonymous_user_e2a0040f)\
**Post date:** [November 2, 2017, 4:31pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/6 "2017-11-02T16:31:51Z")

</div>

Cool, yeah if that wasn’t intentional I’d check your Blueprint asset in the editor and correct the function name there, then rebuild the cooked target with Blueprint nativization enabled. That should do the trick.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [November 3, 2017, 7:15pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/7 "2017-11-03T19:15:22Z")

</div>

Cool, that actually helped with nativization, any ideas about **v10\_clang-5.0.0-centos7**?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2a0040f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2a0040f](https://forums.unrealengine.com/u/anonymous_user_e2a0040f)\
**Post date:** [November 4, 2017, 12:02am UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/8 "2017-11-04T00:02:19Z")

</div>

I don’t unfortunately, that’s not really my area. =(

I’ve entered a new issue for you on that one, it should eventually become available [here](https://issues.unrealengine.com/issue/UE-52026).

---

<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:** [May 15, 2018, 2:27pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/9 "2018-05-15T14:27:36Z")

</div>

For some reason the disk drive is spelled with a small “c” letter, which causes a case-sensitivity warning. Arguably in this case it should not apply (hard to imagine a path with "C:" in it being portable), but that unfortunately would need fixing in clang. You can remove -Wnonportable-include-path from LinuxToolChain.cs, although I would try to first fix the reason for lowercase “c”.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [May 16, 2018, 3:12am UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/10 "2018-05-16T03:12:07Z")

</div>

According to Windows, my drive is not “C”, it is “c”, so path is actually correct.  
RCL, it does not look like “-Wnonportable-include-path” is in LinuxToolChain.cs: \Engine\Source\Programs\UnrealBuildTool\Platform\Linux\LinuxToolChain.cs

---

<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:** [May 16, 2018, 3:26pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/11 "2018-05-16T15:26:08Z")

</div>

Ah yes, the warning is enabled by -Wall perhaps, so you rather need to add  
Result += " -Wno-nonportable-include-path";  
somewhere.

As for the drive name being lowercase - I wonder how it happened. The UBT is perhaps assuming that the drive letters are always uppercase and is not prepared to handle a situation like this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e4f4c1fa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e4f4c1fa](https://forums.unrealengine.com/u/anonymous_user_e4f4c1fa)\
**Post date:** [January 28, 2019, 8:08pm UTC](https://forums.unrealengine.com/t/4-18-linux-build-errors-with-clang10-bp-nativization/407880/12 "2019-01-28T20:08:37Z")

</div>

This response helped me fix the same issue. Make sure you pass the upper case drive letter in all RunUAT command line arguments (and that the rest of the path match in case)
