Isaac Sim build clang error

I’m having trouble building Isaac Sim. I notice building this particular branch will install clang and clang-6.0 when running Setup.sh (whereas building the 4.22.0 release of UE4 uses a different clang version). I think it’s worth noting that I was also unable to build the 4.22.0 release with a similar error.

Ubuntu 18.04.2 LTS
Threadripper 2950x
GTX 1080ti
32gb RAM

Clang dependency install snippet from ./Setup.sh:

Do you agree to the Isaac SDK EULA (y/n)? y
Content for Isaac Sim will be downloaded...
Registering git hooks... (this will override existing ones!)
Fixing inconsistent case in filenames.
Setting up Mono
Checking dependencies (excluding Win32, Win64, Mac, Android)...
Result: 0
Register the engine installation...
dpkg-query: no packages found matching clang
Attempting installation of missing package: clang
+ sudo apt-get install -y clang
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  clang-6.0 lib32stdc++6 libclang-common-6.0-dev libclang1-6.0 libobjc-7-dev libobjc4 libomp-dev libomp5
Suggested packages:
  gnustep gnustep-devel clang-6.0-doc libomp-doc
The following NEW packages will be installed:
  clang clang-6.0 lib32stdc++6 libclang-common-6.0-dev libclang1-6.0 libobjc-7-dev libobjc4 libomp-dev libomp5
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.

Error after make && make IsaacSimProjectEditor:

#18 0x000055e65aa878aa _start (/usr/lib/llvm-6.0/bin/clang+0x4568aa)
Stack dump:
0.	Program arguments: /usr/lib/llvm-6.0/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name Module.SlateCore.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=lldb -momit-leaf-frame-pointer -coverage-notes-file /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Development/SlateCore/Module.SlateCore.cpp.gcno -nostdinc++ -resource-dir /usr/lib/llvm-6.0/lib/clang/6.0.0 -include-pch /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Development/CoreUObject/SharedPCH.CoreUObject.h.gch -include /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Development/SlateCore/Definitions.SlateCore.h -I ThirdParty/Linux/LibCxx/include/ -I ThirdParty/Linux/LibCxx/include/c++/v1 -D PLATFORM_EXCEPTIONS_DISABLED=1 -D _LINUX64 -I /home/michael/UnrealEngine-nv/Engine/Source -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Animation -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Application -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Brushes -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Fonts -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Input -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Layout -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Logging -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Rendering -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Sound -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Styling -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Textures -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Types -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Private/Widgets -I /home/michael/UnrealEngine-nv/Engine/Source/ThirdParty -I /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Inc/SlateCore -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/SlateCore/Public -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/Core/Public/Linux -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/Core/Public -I /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Inc/CoreUObject -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/CoreUObject/Public -I /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Inc/InputCore -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/InputCore/Classes -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/InputCore/Public -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/ApplicationCore/Public -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/RHI/Public -I /home/michael/UnrealEngine-nv/Engine/Source/Runtime/Json/Public -I /home/michael/UnrealEngine-nv/Engine/Source/ThirdParty/FreeType2/FreeType2-2.6/Include -I /home/michael/UnrealEngine-nv/Engine/Source/ThirdParty/ICU/icu4c-53_1/include -I /home/michael/UnrealEngine-nv/Engine/Source/ThirdParty/HarfBuzz/harfbuzz-1.2.4/src -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-6.0/lib/clang/6.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wall -Werror -Wsequence-point -Wdelete-non-virtual-dtor -Wno-unused-private-field -Wno-tautological-compare -Wno-undefined-bool-conversion -Wno-unused-local-typedef -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-unused-lambda-capture -Wno-unused-variable -Wno-unused-function -Wno-switch -Wno-unknown-pragmas -Wno-invalid-offsetof -Wno-gnu-string-literal-operator-template -Wshadow -Wno-error=shadow -Wundef -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /home/michael/UnrealEngine-nv/Engine/Source -ferror-limit 19 -fmessage-length 239 -ftls-model=local-dynamic -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Development/SlateCore/Module.SlateCore.cpp.o -x c++ /home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Development/SlateCore/Module.SlateCore.cpp 
1.	<eof> parser at end of file
2.	Per-module optimization passes
3.	Running pass 'CallGraph Construction' on module '/home/michael/UnrealEngine-nv/Engine/Intermediate/Build/Linux/B4D820EA/UnrealFrontend/Development/SlateCore/Module.SlateCore.cpp'.
[126/205] Compile Module.LinuxNoEditorTargetPlatform.cpp
[127/205] Compile Module.LinuxTargetPlatform.gen.cpp
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
[128/205] Compile Module.VulkanShaderFormat.cpp
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/Module-295fec.cpp
clang: note: diagnostic msg: /tmp/Module-295fec.sh
clang: note: diagnostic msg: 

********************


ERROR: UBT ERROR: Failed to produce item: /home/michael/UnrealEngine-nv/Engine/Binaries/Linux/libUnrealFrontend-Core.so
       (see ../Programs/UnrealBuildTool/Log.txt for full exception trace)
Total build time: 75.84 seconds (Local executor: 0.00 seconds)
Makefile:498: recipe for target 'UnrealFrontend' failed
make: *** [UnrealFrontend] Error 5

From /Programs/UnrealBuildTool/Log.txt:

ActionThread.ThreadFunc: [128/205] Compile Module.VulkanShaderFormat.cpp
ExceptionUtils.<PrintExceptionInfo>m__1: ==============================================================================
ExceptionUtils.<PrintExceptionInfo>m__0: ERROR: UBT ERROR: Failed to produce item: /home/michael/UnrealEngine-nv/Engine/Binaries/Linux/libUnrealFrontend-Core.so
ExceptionUtils.<PrintExceptionInfo>m__0:        (see ../Programs/UnrealBuildTool/Log.txt for full exception trace)
ExceptionUtils.<PrintExceptionInfo>m__1: 
ExceptionUtils.<PrintExceptionInfo>m__1: BuildException: UBT ERROR: Failed to produce item: /home/michael/UnrealEngine-nv/Engine/Binaries/Linux/libUnrealFrontend-Core.so
ExceptionUtils.<PrintExceptionInfo>m__1:   at UnrealBuildTool.ActionGraph.ExecuteActions (UnrealBuildTool.BuildConfiguration BuildConfiguration, System.Collections.Generic.List`1 ActionsToExecute, Boolean bIsRemoteCompile, System.String& ExecutorName, System.String TargetInfoForTelemetry, EHotReload HotReload) [0x00000] in <filename unknown>:0 
ExceptionUtils.<PrintExceptionInfo>m__1:   at UnrealBuildTool.UnrealBuildTool.RunUBT (UnrealBuildTool.BuildConfiguration BuildConfiguration, System.String[] Arguments, Tools.DotNETCommon.FileReference ProjectFile, Boolean bCatchExceptions) [0x00000] in <filename unknown>:0
ExceptionUtils.<PrintExceptionInfo>m__1: ==============================================================================
UnrealBuildTool.RunUBT: Total build time: 75.84 seconds (Local executor: 0.00 seconds)

Hi Mike, IsaacSim is based on UE 4.20, not 4.22

I understand that. I first tried to build from this branch (as stated in the setup documentation)
https://github.com/NvPhysX/UnrealEngine/tree/IsaacSim_1.2

I only tried to build UE4 4.22 to see if there was a similar build error (and there was).

Hey Mike,
I’m not 100% sure why clang itself would crash while compiling. If you re-run the make commands does it get further? Or does it always fail at that file?

Hey Mike,

I had a similar error situation when building. Did you manually install CUDA 10.0 during the SDK install? I didn’t my first pass through and had the error, however, when I manually installed CUDA 10.0 the clang error went away and the make succeeded.

I ended up reinstalling Ubuntu 18.04. After that, build and simulation ran without issue.

I had manually install CUDA before trying to build the Isaac Sim. I’ve always installed CUDA right after graphics drivers shortly after setting up a new machine.