Apologies is this is a silly question, but do you actually have libiberty in the directory you are linking to ?
Generally speaking, configuring and building gcc is a pain. The odds of successfully using someone else's script with no modification are fairly low.
There are some pre-built linux toolchains for CHDK floating around. If you can find one that will work on your distro, that's probably the simpler path.