# Error while building OpenCL program (gemini-1b-2022-jun-18)

**URL:** <https://forum.autonomys.xyz/t/error-while-building-opencl-program-gemini-1b-2022-jun-18/439>\
**Category:** Incentivized Testnet\
**Created:** [June 22, 2022, 10:32am UTC](https://forum.autonomys.xyz/t/error-while-building-opencl-program-gemini-1b-2022-jun-18/439 "2022-06-22T10:32:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rabinovitch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/rabinovitch/32/99_2.png) [@Rabinovitch](https://forum.autonomys.xyz/u/Rabinovitch)\
**Post date:** [June 22, 2022, 10:32am UTC](https://forum.autonomys.xyz/t/error-while-building-opencl-program-gemini-1b-2022-jun-18/439/1 "2022-06-22T10:32:10Z")

</div>

I see the following messages in node’s output during startup and later:

```auto
2022-06-22 13:26:02 [PrimaryChain] discovered: 12D3KooWELsrpA6ddQnuEhvXdzvx3DVtpyYu2f1ZKw4vzD4y3zpj /ip4/127.0.0.1/tcp/30334
2022-06-22 13:26:02 [PrimaryChain] discovered: 12D3KooWELsrpA6ddQnuEhvXdzvx3DVtpyYu2f1ZKw4vzD4y3zpj /ip6/fe80::e24f:43ff:fee6:d63/tcp/30334
2022-06-22 13:26:02 [PrimaryChain] discovered: 12D3KooWELsrpA6ddQnuEhvXdzvx3DVtpyYu2f1ZKw4vzD4y3zpj /ip4/172.17.0.1/tcp/30334
2022-06-22 13:26:03 [PrimaryChain] 🔍 Discovered new external address for our node: /ip4/212.248.62.42/tcp/30333/p2p/12D3KooWABba8yMXaWWV99ZCdqkXpjYsG3Ux9EuCb9ACf1pvd4so
failed to open /dev/dri/renderD128: Permission denied
failed to open /dev/dri/renderD128: Permission denied

Error while building OpenCL program:
<kernel>:1006:20: error: implicit conversion from address space "generic" to address space "private" is not supported when passing to parameter of destination type
    vec_copy(x->v, a, sizeof(vec256));
                   ^
<kernel>:991:52: note: passing argument to parameter 'a' here
static inline void vec_copy(void *ret, const void *a, size_t num)
                                                   ^
<kernel>:1124:21: warning: initializing ' __global uchar *__ attribute__((address_space(16776963)))' (aka '__global unsigned char * __attribute__ ((address_space(16776963)))') with an expression of type 'const __global uchar *' (aka 'const__global unsigned char *') discards qualifiers
    __global uchar* iv = _iv + x * 32;
                    ^ ~~~~~~~~~~~~
<kernel>:1126:34: error: Explicit cast from address space "global" to address space "private" is not allowed
    sloth256_189_encode((limb_t*)piece, 4096, (limb_t*)iv, layers, scratchpad);
                                 ^ ~~~~
<kernel>:1126:56: error: Explicit cast from address space "global" to address space "private" is not allowed
    sloth256_189_encode((limb_t*)piece, 4096, (limb_t*)iv, layers, scratchpad);
                                                       ^~

2022-06-22 13:26:07 [PrimaryChain] Waiting for farmer to receive and acknowledge archived segment
2022-06-22 13:26:07 [PrimaryChain] ⚙️ Syncing, target=#315686 (28 peers), best: #315679 (0x43a1…0b62), finalized #315578 (0x1790…eb99), ⬇ 147.8kiB/s ⬆ 28.9kiB/s

```

Is this a bug? Should I get rid of it in any way?

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [June 22, 2022, 11:25pm UTC](https://forum.autonomys.xyz/t/error-while-building-opencl-program-gemini-1b-2022-jun-18/439/2 "2022-06-22T23:25:05Z")

</div>

looks like there is some permission error with /dev/dri/renderD128 directory with the `permission denied` error, with is likely causing openCL issues, check out the openCL section under the linux tab on this page of the docs. [Farming with the CLI | Subspace Labs Documentation](https://docs.subspace.network/protocol/farm/farming/#ii-installation)
