Clang++ Error

SavageVFX
Fri, 10 May 2019 13:12:07 +0000
Platform & Builds

Hi everyone!

I was following this 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 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.

1 post - 1 participant