due to giflib-5.2.2.patch2

I removed patch and build is ok. Not sure where this  patch was needed, may be on older distros?

I also tried to "set -e" before building cingg and get build breaking error somewhere in x265 dir, as reported already.

but for me default (seen with "set -o" ) errexit=off, you can set it off for specific build by executing  "set  +e" before building cingg.