Build from source - refusing root privileges

Hi all,
I’m trying to build UE4 from source on my Debian (stretch) system.

I’ve followed all of the instructions from the official guide, but compiling hits an error relating to my giving it superuser privileges - see line 49 in this log: UE4 Build Log: With SU - Pastebin.com

I’ve tried following the guide again from the start (including re-downloading the source), no change there.
I haven’t made any changes to the source.

Thanks in advance, any help is very much appreciated.

Thanks for your reply. Without root privileges, the build oddly throws syntax errors in the mathcalls header: UE4 Build Log - Pastebin.com Perhaps root is needed to run the bundled version of clang? The official UE4-on-linux guide worked fine on my Ubuntu system, so I’m assuming there’s something wrong with my Debian setup…?

Please do not build it as root. Parts of Unreal engine need to run during the build and they will not run with superuser privileges.

1 Like

Don’t suppose anyone has seen this kind of error before?

https://forums.unrealengine.com/development-discussion/engine-source-github/91044-error-compiling-ue4-on-fedora-24
this will help you out it helped me :slight_smile:

I’m trying to build from inside a singularity container, on a SLURM cluster. Singularity automatically uses the --fakeroot option. Is there anyway we can force UE4 to build under the root user?