Do not attempt to build the program that becomes the kernel twice. This could have been leading to failures on initialising cl.