OpenCL1.1: Is there a limit on the .cl file size/number of lines?

I am working with OpenCL 1.1 on a translator that convert a fortran Code OpenMP loops into OpenCL kernels. The program being fairly long, the cl file generated has more than 5000 lines.
I noticed that if I load one of those files either as a cl or embedded as a string, an error is thrown while building the program.
The following error is reported:
what(): Error while initializing the OpenCL device.

If I trim the cl file to a smaller number of kernels. It is properly read. Is there any limit in file size or number of kernels that can be specified within the same program source?