Linux build error "UATHelper: Packaging (Linux): ld.lld: error: undefined symbol"

Got it working by using unreal-engine-bin 5.2.0-1 from AUR and following its install instructions, previously i just had downloaded/extracted the latest linux zip and running it from theUnrealEditor binary.

script installs it by default on /opt/unreal-engine/ so giving read/write permission was necessary to complete packaging a project.