xmrig 2.8.6 / Ubuntu 18.04 / ROCM 1.9.307 / haven / CL compile error
Clean install of latest Ubuntu and ROCM does not compile CL code. XMR-stak works in the same configuration without a problem.
$ bin/xmrig-amd -c config.json.haven
 * ABOUT        XMRig-AMD/2.8.6 gcc/7.3.0
 * LIBS         libuv/1.18.0 OpenCL/2.0 OpenSSL/1.1.0g 
 * CPU          AMD FX(tm)-6300 Six-Core Processor              x64 AES
 * ALGO         cryptonight-heavy/xhv, donate=5%
 * POOL #1      [hidden] variant xhv
 * COMMANDS     hashrate, pause, resume
[2018-12-04 09:27:06] compiling code and initializing GPUs. This will take a while...
[2018-12-04 09:27:06] found AMD platform index: 0, name: Advanced Micro Devices, Inc.
[2018-12-04 09:27:06] found OpenCL GPU: Vega [Radeon RX Vega] (gfx900), cu: 64
[2018-12-04 09:27:06] #0, GPU #0 Vega [Radeon RX Vega] (gfx900), intensity: 976 (8/256), unroll: 8, cu: 64
[2018-12-04 09:27:06] GPU #0 compiling...
/tmp/AMD_25952_19/t_25952_21.cl:1468:23: error: variables in the local address space can only be declared in the outermost scope of a kernel function
        __local uint4 xin[8][8];
                      ^
1 error generated.
[2018-12-04 09:27:07] Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
Error: Failed to compile opencl source (from CL to LLVM IR).

[2018-12-04 09:27:07] Error CL_INVALID_KERNEL_NAME when calling clCreateKernel for kernel cn0.
[2018-12-04 09:27:07] Failed to start threads.
$ apt show rocm-libs -a
Package: rocm-libs
Version: 1.9.307
Priority: optional
Section: devel
Maintainer: Advanced Micro Devices Inc.
Installed-Size: 1 024 B
Depends: rocfft, rocrand, hipblas, rocblas
Homepage: https://github.com/RadeonOpenCompute/ROCm
Download-Size: 774 B
APT-Sources: http://repo.radeon.com/rocm/apt/debian xenial/main amd64 Packages
Description: Radeon Open Compute (ROCm) Runtime software stack

