LLVM ERROR: out of memory

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.10.0-hiveos root=UUID=b4b60f60-cd34-49c7-859b-53f802e8659c ro text consoleblank=0 intel_pstate=disable net.ifnames=0 ipv6.disable=1 pci=noaer iommu=soft usbcore.autosuspend=-1 radeon.si_support=0 radeon.cik_support=0 amdgpu.vm_fragment_size=9 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.ppfeaturemask=0xffff7fff amdgpu.runpm=0 amdgpu.gpu_recovery=0 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off e1000e.EEE=0 fsck.mode=force fsck.repair=yes
[ 0.042887] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10.0-hiveos root=UUID=b4b60f60-cd34-49c7-859b-53f802e8659c ro text consoleblank=0 intel_pstate=disable net.ifnames=0 ipv6.disable=1 pci=noaer iommu=soft usbcore.autosuspend=-1 radeon.si_support=0 radeon.cik_support=0 amdgpu.vm_fragment_size=9 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.ppfeaturemask=0xffff7fff amdgpu.runpm=0 amdgpu.gpu_recovery=0 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off e1000e.EEE=0 fsck.mode=force fsck.repair=yes
[ 61.159574] [drm] amdgpu kernel modesetting enabled.
[ 61.159576] [drm] amdgpu version: 5.13.0201
[ 61.160431] amdgpu: CRAT table not found
[ 61.160433] amdgpu: Virtual CRAT table created for CPU
[ 61.160443] amdgpu: Topology: Add CPU node
[ 61.171427] amdgpu 0000:04:00.0: enabling device (0006 → 0007)
[ 61.171506] amdgpu 0000:04:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[ 61.174314] amdgpu 0000:04:00.0: amdgpu: Fetched VBIOS from VFCT
[ 61.174315] amdgpu: ATOM BIOS: 113-D5121100-O02
[ 61.174332] amdgpu 0000:04:00.0: amdgpu: PCIE atomic ops is not supported
[ 61.174375] amdgpu 0000:04:00.0: BAR 2: releasing [mem 0x2ff0000000-0x2ff01fffff 64bit pref]
[ 61.174376] amdgpu 0000:04:00.0: BAR 0: releasing [mem 0x2fe0000000-0x2fefffffff 64bit pref]
[ 61.174433] amdgpu 0000:04:00.0: BAR 0: assigned [mem 0x2000000000-0x23ffffffff 64bit pref]
[ 61.174444] amdgpu 0000:04:00.0: BAR 2: assigned [mem 0x2400000000-0x24001fffff 64bit pref]
[ 61.174517] amdgpu 0000:04:00.0: amdgpu: VRAM: 12272M 0x0000008000000000 - 0x00000082FEFFFFFF (12272M used)
[ 61.174518] amdgpu 0000:04:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[ 61.174519] amdgpu 0000:04:00.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
[ 61.174574] [drm] amdgpu: 12272M of VRAM memory ready
[ 61.174576] [drm] amdgpu: 12272M of GTT memory ready.
[ 61.242600] amdgpu 0000:04:00.0: amdgpu: PSP runtime database doesn’t exist
[ 64.622029] amdgpu 0000:04:00.0: amdgpu: STB initialized to 2048 entries
[ 64.723195] amdgpu 0000:04:00.0: amdgpu: Will use PSP to load VCN firmware
[ 64.993966] amdgpu 0000:04:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 65.005372] amdgpu 0000:04:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[ 65.005407] amdgpu 0000:04:00.0: amdgpu: smu driver if version = 0x0000000e, smu fw if version = 0x00000012, smu fw version = 0x00412e00 (65.46.0)
[ 65.005409] amdgpu 0000:04:00.0: amdgpu: SMU driver if version not matched
[ 65.005418] amdgpu 0000:04:00.0: amdgpu: use vbios provided pptable
[ 65.057750] amdgpu 0000:04:00.0: amdgpu: SMU is initialized successfully!
[ 65.073337] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[ 65.073509] amdgpu: SRAT table not found
[ 65.073510] amdgpu: Virtual CRAT table created for GPU
[ 65.073621] amdgpu: Topology: Add dGPU node [0x73df:0x1002]
[ 65.073622] kfd kfd: amdgpu: added device 1002:73df
[ 65.073657] amdgpu 0000:04:00.0: amdgpu: SE 2, SH per SE 2, CU per SH 10, active_cu_number 40
[ 65.073716] amdgpu 0000:04:00.0: [drm] Cannot find any crtc or sizes
[ 65.073919] amdgpu 0000:04:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[ 65.073920] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[ 65.073921] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[ 65.073922] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[ 65.073923] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[ 65.073924] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[ 65.073925] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[ 65.073926] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[ 65.073927] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[ 65.073928] amdgpu 0000:04:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[ 65.073929] amdgpu 0000:04:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[ 65.073930] amdgpu 0000:04:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[ 65.073931] amdgpu 0000:04:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1
[ 65.073932] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1
[ 65.073933] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1
[ 65.073934] amdgpu 0000:04:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[ 65.078371] [drm] Initialized amdgpu 3.44.0 20150101 for 0000:04:00.0 on minor 1
[ 100.272114] amdgpu 0000:04:00.0: amdgpu: smu driver if version = 0x0000000e, smu fw if version = 0x00000012, smu fw version = 0x00412e00 (65.46.0)
[ 100.272115] amdgpu 0000:04:00.0: amdgpu: SMU driver if version not matched
[ 100.272119] amdgpu 0000:04:00.0: amdgpu: use vbios provided pptable
[ 100.277083] amdgpu 0000:04:00.0: amdgpu: SMU is initialized successfully!
[ 102.490195] amdgpu 0000:04:00.0: amdgpu: smu driver if version = 0x0000000e, smu fw if version = 0x00000012, smu fw version = 0x00412e00 (65.46.0)
[ 102.490197] amdgpu 0000:04:00.0: amdgpu: SMU driver if version not matched
[ 102.490201] amdgpu 0000:04:00.0: amdgpu: use vbios provided pptable
[ 102.494788] amdgpu 0000:04:00.0: amdgpu: SMU is initialized successfully!

Have you tried the gpu on its own, directly on a motherboard 16x slot with conservative clocks?