Thank you for the quick response! I realize that by doing this I’m losing multi-linux compatibility that Unreal’s build system is aiming for but in my case that’s perfectly fine right now.
I was able to force the compile to begin with a system-installed version of clang that I could point to my system’s libstdc++ with some tweaks to LinuxToolChain.cs and make ARGS=“-ForceUseSystemCompiler”. I ran into another issue when linking what was being built with the third party libraries though. Unreal’s Setup.sh downloads pre-compiled third-party binaries that are linked against Unreal-clang’s libc++. I’d like to recompile Unreal’s ThirdParty dependencies but when I run BuildThirdParty.sh it fails at LibZ with a mysterious error about x86_64-unknown-linux-gnu.
I have no yet dove into why this error is happening but I think BuildThirdParty.sh is no longer tested and working as well. Is there a suggestion for how I can compile the third party libs on my own cleanly without downloading pre-compiled libs? For context I’m evaluating Unreal as a product to integrate with a large legacy code base of Ubuntu18 libraries and source all of which are compiled and linked against libstdc++.
Error below:
building zlib
+ cd Source/ThirdParty/zlib/zlib-1.2.5/build
...
+ make -j4
/usr/bin/cc -fPIC -D_LARGEFILE64_SOURCE=1 x86_64-unknown-linux-gnu -c -o example.o example.c
/usr/bin/cc -fPIC -D_LARGEFILE64_SOURCE=1 x86_64-unknown-linux-gnu -c -o adler32.o adler32.c
/usr/bin/cc -fPIC -D_LARGEFILE64_SOURCE=1 x86_64-unknown-linux-gnu -c -o compress.o compress.c
/usr/bin/cc -fPIC -D_LARGEFILE64_SOURCE=1 x86_64-unknown-linux-gnu -c -o crc32.o crc32.c
clangclangclang: : : error: errorno such file or directory: 'x86_64-unknown-linux-gnu': clang
no such file or directory: 'x86_64-unknown-linux-gnu':
error: no such file or directory: 'x86_64-unknown-linux-gnu'
error: no such file or directory: 'x86_64-unknown-linux-gnu'