# Clang++ Error

**URL:** <https://forums.unrealengine.com/t/clang-error/448718>\
**Category:** Platform & Builds\
**Tags:** clang, linux-build, unreal-engine, question\
**Created:** [May 10, 2019, 1:12pm UTC](https://forums.unrealengine.com/t/clang-error/448718 "2019-05-10T13:12:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SavageVFX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SavageVFX](https://forums.unrealengine.com/u/SavageVFX)\
**Post date:** [May 10, 2019, 1:12pm UTC](https://forums.unrealengine.com/t/clang-error/448718/1 "2019-05-10T13:12:07Z")

</div>

Hi everyone!

I was following [this](https://www.google.com/search?q=installing+unreal+engine+on+linux&oq=instal&aqs=chrome.0.69i59j69i65j69i57j69i61j0l2.863j0j7&sourceid=chrome&ie=UTF-8#kpvalbx=1) tutorial to install Unreal Engine on my Linux Mint 19.1 machine. I was able to run `./Setup.sh` and `./GenerateProjectFiles.sh` successfully, however after running `make`, I received the following error:

> /home/anson/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux\_x64/v13\_clang-7.0.1-centos7/x86\_64-unknown-linux-gnu/bin/x86\_64-unknown-linux-gnu-ld:  
> /home/anson/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/ShaderCompileWorker/Development/Slate/Module.Slate.2\_of\_5.cpp.o:  
> bad reloc symbol index (0x80d8c \>=  
> 0x1d95) for offset 0x29614c in section  
> `.debug_info' /home/anson/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v13_clang-7.0.1-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: /home/anson/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/ShaderCompileWorker/Development/Slate/Module.Slate.2_of_5.cpp.o: bad reloc symbol index (0x80d8c >= 0x1d95) for offset 0x29614c in section `.debug\_info’  
> /home/anson/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux\_x64/v13\_clang-7.0.1-centos7/x86\_64-unknown-linux-gnu/bin/x86\_64-unknown-linux-gnu-ld:  
> final link failed: bad value clang++:  
> error: linker command failed with exit  
> code 1 (use -v to see invocation)  
> [88/93] Link (ld)  
> libShaderCompileWorker-VulkanShaderFormat.so  
> Makefile:383: recipe for target  
> ‘ShaderCompileWorker’ failed make: \*\*\*  
> [ShaderCompileWorker] Error 5

(I’m not sure what’s up with all the centos7 references, especially considering I’m running Linux Mint.)I looked up the error and found [this](https://www.reddit.com/r/unrealengine/comments/6hjcjm/error_building_ue4_on_linux/) thread where the problem was solved by running

`ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so`

(which I ran as sudo). I ran `make` again, but received the same error. So, I unlinked (I think) the symlink that I made.

Just out of curiosity, I typed `clang` into the terminal, and received the following error (IDK if it’s related, or if it has to do with that symlink I tried to make):

```
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 28, in <module>
    from CommandNotFound import CommandNotFound
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
    from CommandNotFound.db.db import SqliteDatabase
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
    import apt_pkg
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/ __init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/ __init__.py", line 23, in <module>
    import apt_pkg
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 28, in <module>
    from CommandNotFound import CommandNotFound
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
    from CommandNotFound.db.db import SqliteDatabase
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
    import apt_pkg
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory

```

Thanks! I appreciate the help.
