Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]: "Could not make binaries for gfx1010:xnack-"
## Questions

Is  the code available somewhere? I'd like to build it.

After updating my system, which included updating `rocm`, `nanominer` suddenly stopped working and throws the error:

```
Could not make binaries for gfx1010:xnack-
```

Which is the name from the output of `clinfo`:

```
  Name:						 gfx1010:xnack-
```

## System Information

```sh
$ lspci -vvv | grep 5700
0b:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
$ uname -a
Linux mbana-pc-2 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.2 LTS
Release:	20.04
Codename:	focal
```

## `clinfo`

```
$ /opt/rocm-4.1.0/opencl/bin/clinfo --verbose
Number of platforms:				 1
  Platform Profile:				 FULL_PROFILE
  Platform Version:				 OpenCL 2.0 AMD-APP (3241.0)
  Platform Name:				 AMD Accelerated Parallel Processing
  Platform Vendor:				 Advanced Micro Devices, Inc.
  Platform Extensions:				 cl_khr_icd cl_amd_event_callback 


  Platform Name:				 AMD Accelerated Parallel Processing
Number of devices:				 1
  Device Type:					 CL_DEVICE_TYPE_GPU
  Vendor ID:					 1002h
  Board name:					 Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
  Device Topology:				 PCI[ B#11, D#0, F#0 ]
  Max compute units:				 20
  Max work items dimensions:			 3
    Max work items[0]:				 1024
    Max work items[1]:				 1024
    Max work items[2]:				 1024
  Max work group size:				 256
  Preferred vector width char:			 4
  Preferred vector width short:			 2
  Preferred vector width int:			 1
  Preferred vector width long:			 1
  Preferred vector width float:			 1
  Preferred vector width double:		 1
  Native vector width char:			 4
  Native vector width short:			 2
  Native vector width int:			 1
  Native vector width long:			 1
  Native vector width float:			 1
  Native vector width double:			 1
  Max clock frequency:				 2025Mhz
  Address bits:					 64
  Max memory allocation:			 7287183768
  Image support:				 Yes
  Max number of images read arguments:		 128
  Max number of images write arguments:		 8
  Max image 2D width:				 16384
  Max image 2D height:				 16384
  Max image 3D width:				 16384
  Max image 3D height:				 16384
  Max image 3D depth:				 8192
  Max samplers within kernel:			 29471
  Image formats supported:
   2D Read-Write/Read-Only/Write-Only
    CL_R: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_A: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_RG: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_RA: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float
    CL_RGB: unorm-int_101010 
    CL_RGBA: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_BGRA: snorm-int8 unorm-int8 signed-int8 unsigned-int8 
    CL_ARGB: snorm-int8 unorm-int8 signed-int8 unsigned-int8 
    CL_INTENSITY: snorm-int8 snorm-int16 unorm-int8 unorm-int16 half_float float 
    CL_LUMINANCE: snorm-int8 snorm-int16 unorm-int8 unorm-int16 half_float float 
   3D Read-Write/Read-Only/Write-Only
    CL_R: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_A: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_RG: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_RA: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float
    CL_RGB: unorm-int_101010 
    CL_RGBA: snorm-int8 snorm-int16 unorm-int8 unorm-int16 signed-int8 signed-int16 signed-int32 unsigned-int8 unsigned-int16 unsigned-int32 half_float float 
    CL_BGRA: snorm-int8 unorm-int8 signed-int8 unsigned-int8 
    CL_ARGB: snorm-int8 unorm-int8 signed-int8 unsigned-int8 
    CL_INTENSITY: snorm-int8 snorm-int16 unorm-int8 unorm-int16 half_float float 
    CL_LUMINANCE: snorm-int8 snorm-int16 unorm-int8 unorm-int16 half_float float 
  Max size of kernel argument:			 1024
  Alignment (bits) of base address:		 1024
  Minimum alignment (bytes) for any datatype:	 128
  Single precision floating point capability
    Denorms:					 Yes
    Quiet NaNs:					 Yes
    Round to nearest even:			 Yes
    Round to zero:				 Yes
    Round to +ve and infinity:			 Yes
    IEEE754-2008 fused multiply-add:		 Yes
  Cache type:					 Read/Write
  Cache line size:				 64
  Cache size:					 16384
  Global memory size:				 8573157376
  Constant buffer size:				 7287183768
  Max number of constant args:			 8
  Local memory type:				 Scratchpad
  Local memory size:				 65536
  Max pipe arguments:				 16
  Max pipe active reservations:			 16
  Max pipe packet size:				 2992216472
  Max global variable size:			 7287183768
  Max global variable preferred total size:	 8573157376
  Max read/write image args:			 64
  Max on device events:				 1024
  Queue on device max size:			 8388608
  Max on device queues:				 1
  Queue on device preferred size:		 262144
  SVM capabilities:				 
    Coarse grain buffer:			 Yes
    Fine grain buffer:				 Yes
    Fine grain system:				 No
    Atomics:					 No
  Preferred platform atomic alignment:		 0
  Preferred global atomic alignment:		 0
  Preferred local atomic alignment:		 0
  Kernel Preferred work group size multiple:	 32
  Error correction support:			 0
  Unified memory for Host and Device:		 0
  Profiling timer resolution:			 1
  Device endianess:				 Little
  Available:					 Yes
  Compiler available:				 Yes
  Execution capabilities:				 
    Execute OpenCL kernels:			 Yes
    Execute native function:			 No
  Queue on Host properties:				 
    Out-of-Order:				 No
    Profiling :					 Yes
  Queue on Device properties:				 
    Out-of-Order:				 Yes
    Profiling :					 Yes
  Platform ID:					 0x7fd899d80d10
  Name:						 gfx1010:xnack-
  Vendor:					 Advanced Micro Devices, Inc.
  Device OpenCL C version:			 OpenCL C 2.0 
  Driver version:				 3241.0 (HSA1.1,LC)
  Profile:					 FULL_PROFILE
  Version:					 OpenCL 2.0 
  Extensions:					 cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program 


```

## GPU Information

```
$ /opt/rocm-4.1.0/bin/rocm-smi --showallinfo 

======================= ROCm System Management Interface =======================
========================= Version of System Component ==========================
Driver version: 5.8.0-48-generic
================================================================================
====================================== ID ======================================
GPU[0]		: GPU ID: 0x731f
================================================================================
================================== Unique ID ===================================
GPU[0]		: Unique ID: N/A
================================================================================
==================================== VBIOS =====================================
GPU[0]		: VBIOS version: 115-D182PI0-100
================================================================================
================================= Temperature ==================================
GPU[0]		: Temperature (Sensor edge) (C): 36.0
GPU[0]		: Temperature (Sensor junction) (C): 36.0
GPU[0]		: Temperature (Sensor memory) (C): 38.0
================================================================================
========================== Current clock frequencies ===========================
GPU[0]		: dcefclk clock level: 0: (506Mhz)
GPU[0]		: fclk clock level: 1: (633Mhz)
GPU[0]		: mclk clock level: 0: (100Mhz)
GPU[0]		: sclk clock level: 1: (800Mhz)
GPU[0]		: socclk clock level: 1: (633Mhz)
GPU[0]		: pcie clock level: 1 (16.0GT/s x16)
================================================================================
============================== Current Fan Metric ==============================
GPU[0]		: Fan Level: 0 (0%)
GPU[0]		: Fan RPM: 0
================================================================================
============================ Show Performance Level ============================
GPU[0]		: Performance Level: auto
================================================================================
=============================== OverDrive Level ================================
GPU[0]		: GPU OverDrive value (%): 0
================================================================================
=============================== OverDrive Level ================================
GPU[0]		: GPU Memory OverDrive value (%): 0
================================================================================
================================== Power Cap ===================================
GPU[0]		: Max Graphics Package Power (W): 220.0
================================================================================
============================= Show Power Profiles ==============================
GPU[0]		: 1. Available power profile (#1 of 7): CUSTOM
GPU[0]		: 2. Available power profile (#2 of 7): VIDEO
GPU[0]		: 3. Available power profile (#3 of 7): POWER SAVING
GPU[0]		: 4. Available power profile (#4 of 7): COMPUTE
GPU[0]		: 5. Available power profile (#5 of 7): VR
GPU[0]		: 6. Available power profile (#6 of 7): 3D FULL SCREEN
GPU[0]		: 7. Available power profile (#7 of 7): BOOTUP DEFAULT*
================================================================================
============================== Power Consumption ===============================
GPU[0]		: Average Graphics Package Power (W): 9.0
================================================================================
========================= Supported clock frequencies ==========================
GPU[0]		: Supported dcefclk frequencies on GPU0
GPU[0]		: 0: 506Mhz *
GPU[0]		: 1: 886Mhz
GPU[0]		: 2: 1266Mhz
GPU[0]		: 
GPU[0]		: Supported fclk frequencies on GPU0
GPU[0]		: 0: 506Mhz
GPU[0]		: 1: 633Mhz *
GPU[0]		: 2: 1266Mhz
GPU[0]		: 
GPU[0]		: Supported mclk frequencies on GPU0
GPU[0]		: 0: 100Mhz *
GPU[0]		: 1: 500Mhz
GPU[0]		: 2: 625Mhz
GPU[0]		: 3: 875Mhz
GPU[0]		: 
GPU[0]		: Supported sclk frequencies on GPU0
GPU[0]		: 0: 300Mhz
GPU[0]		: 1: 800Mhz *
GPU[0]		: 2: 2025Mhz
GPU[0]		: 
GPU[0]		: Supported socclk frequencies on GPU0
GPU[0]		: 0: 506Mhz
GPU[0]		: 1: 633Mhz *
GPU[0]		: 2: 1266Mhz
GPU[0]		: 
GPU[0]		: Supported PCIe frequencies on GPU0
GPU[0]		: 0: 2.5GT/s x16
GPU[0]		: 1: 16.0GT/s x16 *
GPU[0]		: 
--------------------------------------------------------------------------------
================================================================================
============================== % time GPU is busy ==============================
GPU[0]		: GPU use (%): 0
================================================================================
============================== Current Memory Use ==============================
GPU[0]		: GPU memory use (%): 0
================================================================================
================================ Memory Vendor =================================
GPU[0]		: GPU memory vendor: micron
================================================================================
============================= PCIe Replay Counter ==============================
GPU[0]		: PCIe Replay Count: 0
================================================================================
================================ Serial Number =================================
GPU[0]		: Serial Number: N/A
================================================================================
================================ KFD Processes =================================
No KFD PIDs currently running
================================================================================
============================= GPUs Indexed by PID ==============================
No KFD PIDs currently running
================================================================================
================== GPU Memory clock frequencies and voltages ===================
ERROR: 15 GPU[0]: od volt: Data (usually from reading a file) was not of the type that was expected	
================================================================================
=============================== Current voltage ================================
GPU[0]		: Voltage (mV): 725
================================================================================
================================== PCI Bus ID ==================================
GPU[0]		: PCI Bus: 0000:0B:00.0
================================================================================
============================= Firmware Information =============================
GPU[0]		: ASD firmware version: 	553651226
GPU[0]		: CE firmware version: 		37
GPU[0]		: DMCU firmware version: 	0
GPU[0]		: MC firmware version: 		0
GPU[0]		: ME firmware version: 		88
GPU[0]		: MEC firmware version: 	118
GPU[0]		: MEC2 firmware version: 	118
GPU[0]		: PFP firmware version: 	134
GPU[0]		: RLC firmware version: 	120
GPU[0]		: RLC SRLC firmware version: 	0
GPU[0]		: RLC SRLG firmware version: 	0
GPU[0]		: RLC SRLS firmware version: 	0
GPU[0]		: SDMA firmware version: 	26
GPU[0]		: SDMA2 firmware version: 	26
GPU[0]		: SMC firmware version: 	00.42.50.00
GPU[0]		: SOS firmware version: 	0x00100126
GPU[0]		: TA RAS firmware version: 	00.00.00.00
GPU[0]		: TA XGMI firmware version: 	00.00.00.00
GPU[0]		: UVD firmware version: 	0x00000000
GPU[0]		: VCE firmware version: 	0x00000000
GPU[0]		: VCN firmware version: 	0x0410700d
================================================================================
================================= Product Info =================================
GPU[0]		: Card model: 		0x4e2
GPU[0]		: Card vendor: 		Advanced Micro Devices, Inc. [AMD/ATI]
GPU[0]		: Card SKU: 		D182PI
================================================================================
================================== Pages Info ==================================
ERROR: 2 GPU[0]: ras: RSMI_STATUS_NOT_SUPPORTED: This function is not supported in the current environment.	
============================ Show Valid sclk Range =============================
ERROR: 15 GPU[0]: od volt: Data (usually from reading a file) was not of the type that was expected	
GPU[0]		: Unable to display sclk range
================================================================================
============================ Show Valid mclk Range =============================
ERROR: 15 GPU[0]: od volt: Data (usually from reading a file) was not of the type that was expected	
GPU[0]		: Unable to display mclk range
================================================================================
=========================== Show Valid voltage Range ===========================
ERROR: 15 GPU[0]: od volt: Data (usually from reading a file) was not of the type that was expected	
GPU[0]		: Unable to display voltage range
================================================================================
============================= Voltage Curve Points =============================
ERROR: 15 GPU[0]: od volt: Data (usually from reading a file) was not of the type that was expected	
GPU[0]		: Voltage Curve is not supported
================================================================================
WARNING:  		 One or more commands failed
============================= End of ROCm SMI Log ==============================
```