Hello Bandaru Lavanya,
These linker problems are usually related to a lack of RAM memory. It is recommended to have at least 16GB RAM. A SWAP may also be used to increase the available memory if more physical RAM cannot be accessed. You can find a way to do this on the following document:
https://community.nxp.com/docs/DOC-102403
You would basically complement your RAM with a SWAP file. For example, for a 10GB SWAP file:
$ sudo fallocate -l 10g /mnt/10GB.swap
$ sudo chmod 600 /mnt/10GB.swap
$ sudo mkswap /mnt/10GB.swap
$ sudo swapon /mnt/10GB.swap
I hope this helps!
Regards,