-30 is CL_INVALID_VALUE which can occur in clBuildProgram due to different reasons.
1. if device_list is NULL and num_devices is greater than zero, or if
device_list is not NULL and num_devices is zero.
2. if pfn_notify is NULL but user_data is not NULL
Could you post your source code?
it was a numberdevice problem, I solved it