bash: bld: line 11: syntax error: unexpected end of file

I'M gettting the above when I source the attached script file. Can someone please let me know what I've got wrong here? Thanks The script file was build from the commands here > http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html

What distribution+version of Linux, and which kernel, are you running? This problem is usually due to a missing new-line at the end of the command stream. Edit the file, and add a new line at the bottom, then save the file and try again.

It's a Linux from scratch distro, the host OS is just a CLI Debian. I re checked my script file in vi and I didn't see any new line characters or spaces at the end of any of the lines.

http://www.linuxfromscratch.org/

line 3 of temp.txt is missing a ).